Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/vfio/pci/mlx5/cmd.c mlx5vf_alloc_qp_recv_resources() -> create_mkey()

Type Parameter Key Value
PARAM_VALUE 0 mdev 4096-ptr_max
PARAM_VALUE 0 mdev->caps.hca 4096-ptr_max
PARAM_VALUE 0 mdev->cmd.pool->dev->dma_io_tlb_mem->dyn_alloc.flags 0-4294967295
PARAM_VALUE 0 mdev->cmd.pool->dev->dma_io_tlb_mem->dyn_alloc.is_hard 0-1
PARAM_VALUE 0 mdev->cmd.pool->dev->dma_io_tlb_mem->dyn_alloc.is_lazy 0-1
PARAM_VALUE 0 mdev->cmd.pool->dev->dma_io_tlb_mem->dyn_alloc.is_queued 0-1
PARAM_VALUE 0 mdev->cmd.pool->dev->dma_io_tlb_mem->dyn_alloc.is_soft 0-1
PARAM_VALUE 0 mdev->cmd.pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 mdev->cmd.state 1
PARAM_VALUE 0 mdev->cmd.token 1-255
PARAM_VALUE 0 mdev->cmd.token_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.first_waiter->list.next 5349227543279349760
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.first_waiter->list.prev 5349227543279349760
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.first_waiter->list.prev->next 5349227543279349760
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.first_waiter->up 0-1
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.last_holder 0
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.lock.owner (-1)
PARAM_VALUE 0 mdev->cmd.vars.throttle_sem.lock.owner_cpu u32max
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.first_waiter->list.next 5349227543279349760
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.first_waiter->list.prev 5349227543279349760
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.first_waiter->list.prev->next 5349227543279349760
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.first_waiter->up 0-1
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.last_holder 0
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.lock.owner (-1)
PARAM_VALUE 0 mdev->cmd.vars.unprivileged_sem.lock.owner_cpu u32max
PARAM_VALUE 0 mdev->device->dma_mask 0,4096-ptr_max
PARAM_VALUE 0 mdev->device->flags 4096-ptr_max
PARAM_VALUE 0 mdev->pdev->error_state 1
PARAM_VALUE 0 mdev->priv.alloc_mutex.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 mdev->priv.alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 mdev->priv.alloc_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 mdev->priv.alloc_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 mdev->priv.alloc_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 mdev->priv.alloc_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.list.next 4096-ptr_max
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.list.next->next 4096-ptr_max
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.list.next->prev 4096-ptr_max
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 mdev->priv.bfregs.reg_head.lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 mdev->priv.dbg.cq_debugfs->d_children.first 4096-ptr_max
PARAM_VALUE 0 mdev->priv.dbg.cq_debugfs->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mdev->priv.dbg.cq_debugfs->d_inode->i_rwsem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 mdev->priv.dbg.cq_debugfs->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 mdev->priv.dbg.cq_debugfs->d_sb 4096-ptr_max
PARAM_VALUE 0 mdev->priv.dbg.eq_debugfs->d_children.first 4096-ptr_max
PARAM_VALUE 0 mdev->priv.dbg.eq_debugfs->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mdev->priv.dbg.eq_debugfs->d_inode->i_rwsem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 mdev->priv.dbg.eq_debugfs->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 mdev->priv.dbg.eq_debugfs->d_sb 4096-ptr_max
PARAM_VALUE 0 mdev->priv.eq_table->comp_eqs.xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.eq_table->comp_irqs.xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 mdev->priv.eq_table->comp_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 mdev->priv.eq_table->ctrl_irq 0,4096-s64max
PARAM_VALUE 0 mdev->priv.eq_table->curr_comp_eqs s32min-s32max
PARAM_VALUE 0 mdev->priv.eq_table->max_comp_eqs 1-s32max
PARAM_VALUE 0 mdev->priv.parent_mdev->priv.eq_table->rmap->refcount.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 mdev->priv.pgdir_mutex.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.pgdir_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 mdev->priv.pgdir_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 mdev->priv.pgdir_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 mdev->priv.pgdir_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 mdev->priv.pgdir_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 mdev->priv.pgdir_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 mdev->priv.pgdir_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 *mdev->priv.dbg.cq_debugfs->d_children.first->pprev 1-u64max
PARAM_VALUE 0 *mdev->priv.dbg.eq_debugfs->d_children.first->pprev 1-u64max
PARAM_VALUE 1 npages 512-4194304
PARAM_VALUE 2 mkey_in 4096-ptr_max
PARAM_VALUE 3 mkey 4096-ptr_max
BUF_SIZE 2 mkey_in s32min-s32max
CAPPED_DATA 0 mdev->priv.eq_table->max_comp_eqs 1
CAPPED_DATA 1 npages 1
DATA_SOURCE 0 mdev $0
DATA_SOURCE 2 mkey_in r alloc_mkey_in
NO_OVERFLOW_SIMPLE 1 npages
UNITS 1 npages unit_array_size
LOCK2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex

drivers/vfio/pci/mlx5/cmd.c mlx5vf_dma_data_buffer() -> create_mkey()

Type Parameter Key Value
PARAM_VALUE 0 mdev 4096-ptr_max
PARAM_VALUE 0 mdev->device->dma_mask 0,4096-ptr_max
PARAM_VALUE 0 mdev->device->flags 4096-ptr_max
PARAM_VALUE 1 npages 1-s32max
PARAM_VALUE 2 mkey_in 4096-ptr_max
PARAM_VALUE 3 mkey 4096-ptr_max
BUF_SIZE 2 mkey_in s32min-s32max
DATA_SOURCE 2 mkey_in r alloc_mkey_in
NO_OVERFLOW_SIMPLE 1 npages
HALF_LOCKED2 &migf->lock
HALF_LOCKED2 &migf->mvdev->state_mutex
HALF_LOCKED2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex