Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/infiniband/hw/cxgb4/provider.c c4iw_alloc_ucontext() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
LOCK2 &file->hw_destroy_rwsem
LOCK2 &file->ucontext_lock
TYPE_LOCK (struct ib_uverbs_file)->hw_destroy_rwsem
TYPE_LOCK (struct ib_uverbs_file)->ucontext_lock

drivers/infiniband/hw/cxgb4/provider.c c4iw_dealloc_ucontext() -> to_c4iw_dev()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ufile->hw_destroy_rwsem
TYPE_LOCK (struct ib_uverbs_file)->hw_destroy_rwsem

drivers/infiniband/hw/cxgb4/provider.c c4iw_get_mib() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
BUF_SIZE 0 ibdev->dev.parent (-1),1616
BUF_SIZE 0 ibdev->driver_def (-1),32,112
BUF_SIZE 0 ibdev->hw_stats_data (-1),200-s32max
CAPPED_DATA 0 ibdev 1
DATA_SOURCE 0 ibdev $0
STR_LEN 0 ibdev (-1),6-9,11-12
STR_LEN 0 ibdev (-1),6-9,11-12
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 ibdev->phys_port_cnt 0-255
NO_OVERFLOW_SIMPLE 0 ibdev->num_comp_vectors
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &stats->lock

drivers/infiniband/hw/cxgb4/provider.c c4iw_mmap() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &file->device->disassociate_srcu
LOCK2 &file->disassociation_lock
HALF_LOCKED2 &ipcp->lock
TYPE_LOCK (struct ib_uverbs_device)->disassociate_srcu
TYPE_LOCK (struct ib_uverbs_file)->disassociation_lock

drivers/infiniband/hw/cxgb4/provider.c c4iw_query_device() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
BUF_SIZE 0 ibdev->dev.parent (-1),1616
BUF_SIZE 0 ibdev->driver_def (-1),32,112
CAPPED_DATA 0 ibdev 1
DATA_SOURCE 0 ibdev $0
STR_LEN 0 ibdev (-1),6-9,11-12
STR_LEN 0 ibdev (-1),6-9,11-12
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 ibdev->phys_port_cnt 0-u32max
NO_OVERFLOW_SIMPLE 0 ibdev->num_comp_vectors

drivers/infiniband/hw/cxgb4/provider.c c4iw_query_gid() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
BUF_SIZE 0 ibdev->dev.parent (-1),1616
BUF_SIZE 0 ibdev->driver_def (-1),32,112
DATA_SOURCE 0 ibdev $0
STR_LEN 0 ibdev (-1),6-9,11-12
STR_LEN 0 ibdev (-1),6-9,11-12
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 ibdev->cc_dma_bounce 0-1
HOST_DATA 0 ibdev->client_data.xa_flags 0-u32max
HOST_DATA 0 ibdev->client_data_rwsem.count.counter s64min-s64max
HOST_DATA 0 ibdev->client_data_rwsem.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->client_data_rwsem.owner.counter s64min-s64max
HOST_DATA 0 ibdev->compat_devs.xa_flags 0-u32max
HOST_DATA 0 ibdev->compat_devs_mutex.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->compat_devs_mutex.owner.counter s64min-s64max
HOST_DATA 0 ibdev->coredev.dev.bus_dma_limit 0-u64max
HOST_DATA 0 ibdev->coredev.dev.coherent_dma_mask 0-u64max
HOST_DATA 0 ibdev->coredev.dev.devt 0-u32max
HOST_DATA 0 ibdev->coredev.dev.dma_uses_io_tlb 0-1
HOST_DATA 0 ibdev->coredev.dev.id 0-u32max
HOST_DATA 0 ibdev->coredev.dev.kobj.kref.refcount.refs.counter s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.kobj.release.cpu s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.kobj.release.timer.expires 0-u64max
HOST_DATA 0 ibdev->coredev.dev.kobj.release.timer.flags 0-u32max
HOST_DATA 0 ibdev->coredev.dev.kobj.release.work.data.counter s64min-s64max
HOST_DATA 0 ibdev->coredev.dev.kobj.state_add_uevent_sent 0-1
HOST_DATA 0 ibdev->coredev.dev.kobj.state_in_sysfs 0-1
HOST_DATA 0 ibdev->coredev.dev.kobj.state_initialized 0-1
HOST_DATA 0 ibdev->coredev.dev.kobj.state_remove_uevent_sent 0-1
HOST_DATA 0 ibdev->coredev.dev.kobj.uevent_suppress 0-1
HOST_DATA 0 ibdev->coredev.dev.links.status 0-u32max
HOST_DATA 0 ibdev->coredev.dev.mutex.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.mutex.owner.counter s64min-s64max
HOST_DATA 0 ibdev->coredev.dev.numa_node s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.accounting_timestamp 0-u64max
HOST_DATA 0 ibdev->coredev.dev.power.active_time 0-u64max
HOST_DATA 0 ibdev->coredev.dev.power.async_suspend 0-1
HOST_DATA 0 ibdev->coredev.dev.power.autosuspend_delay s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.can_wakeup 0-1
HOST_DATA 0 ibdev->coredev.dev.power.child_count.counter s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.completion.done 0-u32max
HOST_DATA 0 ibdev->coredev.dev.power.deferred_resume 0-1
HOST_DATA 0 ibdev->coredev.dev.power.detach_power_off 0-1
HOST_DATA 0 ibdev->coredev.dev.power.direct_complete 0-1
HOST_DATA 0 ibdev->coredev.dev.power.disable_depth 0-7
HOST_DATA 0 ibdev->coredev.dev.power.driver_flags 0-u32max
HOST_DATA 0 ibdev->coredev.dev.power.early_init 0-1
HOST_DATA 0 ibdev->coredev.dev.power.idle_notification 0-1
HOST_DATA 0 ibdev->coredev.dev.power.ignore_children 0-1
HOST_DATA 0 ibdev->coredev.dev.power.in_dpm_list 0-1
HOST_DATA 0 ibdev->coredev.dev.power.irq_safe 0-1
HOST_DATA 0 ibdev->coredev.dev.power.is_late_suspended 0-1
HOST_DATA 0 ibdev->coredev.dev.power.is_noirq_suspended 0-1
HOST_DATA 0 ibdev->coredev.dev.power.is_prepared 0-1
HOST_DATA 0 ibdev->coredev.dev.power.is_suspended 0-1
HOST_DATA 0 ibdev->coredev.dev.power.last_busy 0-u64max
HOST_DATA 0 ibdev->coredev.dev.power.last_status s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.links_count 0-u32max
HOST_DATA 0 ibdev->coredev.dev.power.may_skip_resume 0-1
HOST_DATA 0 ibdev->coredev.dev.power.memalloc_noio 0-1
HOST_DATA 0 ibdev->coredev.dev.power.must_resume 0-1
HOST_DATA 0 ibdev->coredev.dev.power.needs_force_resume 0-1
HOST_DATA 0 ibdev->coredev.dev.power.no_callbacks 0-1
HOST_DATA 0 ibdev->coredev.dev.power.no_pm 0-1
HOST_DATA 0 ibdev->coredev.dev.power.no_pm_callbacks 0-1
HOST_DATA 0 ibdev->coredev.dev.power.out_band_wakeup 0-1
HOST_DATA 0 ibdev->coredev.dev.power.power_state.event s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.request 0-u32max
HOST_DATA 0 ibdev->coredev.dev.power.request_pending 0-1
HOST_DATA 0 ibdev->coredev.dev.power.runtime_auto 0-1
HOST_DATA 0 ibdev->coredev.dev.power.runtime_error s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.runtime_status s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.smart_suspend 0-1
HOST_DATA 0 ibdev->coredev.dev.power.strict_midlayer 0-1
HOST_DATA 0 ibdev->coredev.dev.power.suspended_time 0-u64max
HOST_DATA 0 ibdev->coredev.dev.power.syscore 0-1
HOST_DATA 0 ibdev->coredev.dev.power.timer_autosuspends 0-1
HOST_DATA 0 ibdev->coredev.dev.power.timer_expires 0-u64max
HOST_DATA 0 ibdev->coredev.dev.power.usage_count.counter s32min-s32max
HOST_DATA 0 ibdev->coredev.dev.power.use_autosuspend 0-1
HOST_DATA 0 ibdev->coredev.dev.power.work_in_progress 0-1
HOST_DATA 0 ibdev->coredev.dev.removable 0-u32max
HOST_DATA 0 ibdev->dev.bus_dma_limit 0-u64max
HOST_DATA 0 ibdev->dev.coherent_dma_mask 0-u64max
HOST_DATA 0 ibdev->dev.devt 0-u32max
HOST_DATA 0 ibdev->dev.dma_uses_io_tlb 0-1
HOST_DATA 0 ibdev->dev.id 0-u32max
HOST_DATA 0 ibdev->dev.kobj.kref.refcount.refs.counter s32min-s32max
HOST_DATA 0 ibdev->dev.kobj.release.cpu s32min-s32max
HOST_DATA 0 ibdev->dev.kobj.release.timer.expires 0-u64max
HOST_DATA 0 ibdev->dev.kobj.release.timer.flags 0-u32max
HOST_DATA 0 ibdev->dev.kobj.release.work.data.counter s64min-s64max
HOST_DATA 0 ibdev->dev.kobj.state_add_uevent_sent 0-1
HOST_DATA 0 ibdev->dev.kobj.state_in_sysfs 0-1
HOST_DATA 0 ibdev->dev.kobj.state_initialized 0-1
HOST_DATA 0 ibdev->dev.kobj.state_remove_uevent_sent 0-1
HOST_DATA 0 ibdev->dev.kobj.uevent_suppress 0-1
HOST_DATA 0 ibdev->dev.links.status 0-u32max
HOST_DATA 0 ibdev->dev.mutex.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->dev.mutex.owner.counter s64min-s64max
HOST_DATA 0 ibdev->dev.numa_node s32min-s32max
HOST_DATA 0 ibdev->dev.power.accounting_timestamp 0-u64max
HOST_DATA 0 ibdev->dev.power.active_time 0-u64max
HOST_DATA 0 ibdev->dev.power.async_suspend 0-1
HOST_DATA 0 ibdev->dev.power.autosuspend_delay s32min-s32max
HOST_DATA 0 ibdev->dev.power.can_wakeup 0-1
HOST_DATA 0 ibdev->dev.power.child_count.counter s32min-s32max
HOST_DATA 0 ibdev->dev.power.completion.done 0-u32max
HOST_DATA 0 ibdev->dev.power.deferred_resume 0-1
HOST_DATA 0 ibdev->dev.power.detach_power_off 0-1
HOST_DATA 0 ibdev->dev.power.direct_complete 0-1
HOST_DATA 0 ibdev->dev.power.disable_depth 0-7
HOST_DATA 0 ibdev->dev.power.driver_flags 0-u32max
HOST_DATA 0 ibdev->dev.power.early_init 0-1
HOST_DATA 0 ibdev->dev.power.idle_notification 0-1
HOST_DATA 0 ibdev->dev.power.ignore_children 0-1
HOST_DATA 0 ibdev->dev.power.in_dpm_list 0-1
HOST_DATA 0 ibdev->dev.power.irq_safe 0-1
HOST_DATA 0 ibdev->dev.power.is_late_suspended 0-1
HOST_DATA 0 ibdev->dev.power.is_noirq_suspended 0-1
HOST_DATA 0 ibdev->dev.power.is_prepared 0-1
HOST_DATA 0 ibdev->dev.power.is_suspended 0-1
HOST_DATA 0 ibdev->dev.power.last_busy 0-u64max
HOST_DATA 0 ibdev->dev.power.last_status s32min-s32max
HOST_DATA 0 ibdev->dev.power.links_count 0-u32max
HOST_DATA 0 ibdev->dev.power.may_skip_resume 0-1
HOST_DATA 0 ibdev->dev.power.memalloc_noio 0-1
HOST_DATA 0 ibdev->dev.power.must_resume 0-1
HOST_DATA 0 ibdev->dev.power.needs_force_resume 0-1
HOST_DATA 0 ibdev->dev.power.no_callbacks 0-1
HOST_DATA 0 ibdev->dev.power.no_pm 0-1
HOST_DATA 0 ibdev->dev.power.no_pm_callbacks 0-1
HOST_DATA 0 ibdev->dev.power.out_band_wakeup 0-1
HOST_DATA 0 ibdev->dev.power.power_state.event s32min-s32max
HOST_DATA 0 ibdev->dev.power.request 0-u32max
HOST_DATA 0 ibdev->dev.power.request_pending 0-1
HOST_DATA 0 ibdev->dev.power.runtime_auto 0-1
HOST_DATA 0 ibdev->dev.power.runtime_error s32min-s32max
HOST_DATA 0 ibdev->dev.power.runtime_status s32min-s32max
HOST_DATA 0 ibdev->dev.power.smart_suspend 0-1
HOST_DATA 0 ibdev->dev.power.strict_midlayer 0-1
HOST_DATA 0 ibdev->dev.power.suspended_time 0-u64max
HOST_DATA 0 ibdev->dev.power.syscore 0-1
HOST_DATA 0 ibdev->dev.power.timer_autosuspends 0-1
HOST_DATA 0 ibdev->dev.power.timer_expires 0-u64max
HOST_DATA 0 ibdev->dev.power.usage_count.counter s32min-s32max
HOST_DATA 0 ibdev->dev.power.use_autosuspend 0-1
HOST_DATA 0 ibdev->dev.power.work_in_progress 0-1
HOST_DATA 0 ibdev->dev.removable 0-u32max
HOST_DATA 0 ibdev->event_handler_rwsem.count.counter s64min-s64max
HOST_DATA 0 ibdev->event_handler_rwsem.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->event_handler_rwsem.owner.counter s64min-s64max
HOST_DATA 0 ibdev->hw_stats_attr_index 0-255
HOST_DATA 0 ibdev->is_switch 0-1
HOST_DATA 0 ibdev->iw_driver_flags 0-u32max
HOST_DATA 0 ibdev->lag_flags 0-u32max
HOST_DATA 0 ibdev->local_dma_lkey 0-u32max
HOST_DATA 0 ibdev->name_assign_type 0-u32max
HOST_DATA 0 ibdev->node_guid 0-u64max
HOST_DATA 0 ibdev->ops.driver_id 0-u32max
HOST_DATA 0 ibdev->ops.size_ib_ah 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_counters 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_cq 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_dmah 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_mw 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_pd 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_qp 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_rwq_ind_table 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_srq 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_ucontext 0-u64max
HOST_DATA 0 ibdev->ops.size_ib_xrcd 0-u64max
HOST_DATA 0 ibdev->ops.size_rdma_counter 0-u64max
HOST_DATA 0 ibdev->ops.uverbs_abi_ver 0-u32max
HOST_DATA 0 ibdev->ops.uverbs_no_driver_id_binding 0-1
HOST_DATA 0 ibdev->ops.uverbs_robust_udata 0-1
HOST_DATA 0 ibdev->phys_port_cnt 0-u32max
HOST_DATA 0 ibdev->refcount.refs.counter s32min-s32max
HOST_DATA 0 ibdev->subdev_lock.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->subdev_lock.owner.counter s64min-s64max
HOST_DATA 0 ibdev->type 0-u32max
HOST_DATA 0 ibdev->unreg_completion.done 0-u32max
HOST_DATA 0 ibdev->unreg_completion.wait.lock.magic 0-u32max
HOST_DATA 0 ibdev->unreg_completion.wait.lock.owner_cpu 0-u32max
HOST_DATA 0 ibdev->unreg_completion.wait.lock.raw_lock.locked 0-255
HOST_DATA 0 ibdev->unreg_completion.wait.lock.raw_lock.locked_pending 0-u16max
HOST_DATA 0 ibdev->unreg_completion.wait.lock.raw_lock.pending 0-255
HOST_DATA 0 ibdev->unreg_completion.wait.lock.raw_lock.tail 0-u16max
HOST_DATA 0 ibdev->unreg_completion.wait.lock.raw_lock.val.counter s32min-s32max
HOST_DATA 0 ibdev->unregistration_lock.osq.tail.counter s32min-s32max
HOST_DATA 0 ibdev->unregistration_lock.owner.counter s64min-s64max
HOST_DATA 0 ibdev->unregistration_work.data.counter s64min-s64max
HOST_DATA 0 ibdev->use_cq_dim 0-1
HOST_DATA 0 ibdev->uverbs_cmd_mask 0,2097152-u64max
NO_OVERFLOW_SIMPLE 0 ibdev->hw_stats_attr_index
NO_OVERFLOW_SIMPLE 0 ibdev->num_comp_vectors
HALF_LOCKED2 &table->lock

drivers/infiniband/hw/cxgb4/cm.c c4iw_accept_cr() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctx->mutex
HALF_LOCKED2 &sport->mutex
HALF_LOCKED2 &srv->paths_mutex

drivers/infiniband/hw/cxgb4/cm.c c4iw_connect() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &id_priv->handler_mutex
HALF_LOCKED2 &iser_conn->state_mutex

drivers/infiniband/hw/cxgb4/cm.c c4iw_create_listen() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &ctx->mutex
HALF_LOCKED2 &device->client_data_rwsem
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 global &clients_rwsem
HALF_LOCKED2 global &ctrl_lock
HALF_LOCKED2 global &devices_rwsem
HALF_LOCKED2 global &ib_ctx.ib_dev_mutex
HALF_LOCKED2 global &init_lock
HALF_LOCKED2 global &lock

drivers/infiniband/hw/cxgb4/qp.c c4iw_get_qp() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
DATA_SOURCE 0 ibdev $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &cm_id_priv->lock
LOCK2 flags
TYPE_LOCK (struct iwcm_id_private)->lock

drivers/infiniband/hw/cxgb4/cq.c c4iw_create_cq() -> to_c4iw_dev()

Type Parameter Key Value
PARAM_VALUE 0 ibdev 4096-ptr_max
BUF_SIZE 0 ibdev (-1),5000
BUF_SIZE 0 ibdev (-1),5000
STR_LEN 0 ibdev (-1),3,6-12
STR_LEN 0 ibdev (-1),3,6-12
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 ibdev->hw_stats_attr_index
NO_OVERFLOW_SIMPLE 0 ibdev->num_comp_vectors
NO_OVERFLOW_SIMPLE 0 ibdev->phys_port_cnt