Defined in 3 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/net/ethernet/mellanox/mlx4/resource_tracker.c add_mcg_res() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->caps.steering_mode 1-2
PARAM_VALUE 0 state->persist 4096-ptr_max
PARAM_VALUE 0 state->persist->catas_wq->flush_color s32min-s32max
PARAM_VALUE 0 state->persist->catas_wq->work_color s32min-s32max
PARAM_VALUE 0 state->persist->device_state_mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 state->persist->device_state_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 state->persist->device_state_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 state->persist->device_state_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 state->persist->pdev->dev.cma_area->available_count 0-s64max
PARAM_VALUE 0 state->persist->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 state->persist->pdev->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 state->persist->pdev->dev.iommu_group->default_domain 0-s64max
PARAM_VALUE 0 state->persist->pdev->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 state->persist->pdev->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 state->persist->pdev->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 *state->caps.ib_port_def_cap 0-4294967295
PARAM_VALUE 0 *state->caps.port_mask 0-4294967295
PARAM_VALUE 0 *state->caps.port_type 0-4294967295
PARAM_VALUE 0 *state->caps.possible_type 0-4294967295
PARAM_VALUE 0 *state->phys_caps.gid_phys_table_len 0-4294967295
PARAM_VALUE 0 *state->phys_caps.pkey_phys_table_len 0-4294967295
PARAM_VALUE 2 val 4096-ptr_max
PARAM_VALUE 2 val->from_state s32min-0,2-s32max
PARAM_VALUE 2 val->mcg_spl.rlock.dep_map->name 0-255
PARAM_VALUE 2 val->state 1
PARAM_VALUE 3 default_gid 4096-ptr_max
CAPPED_DATA 0 state->persist->num_vfs 1
CAPPED_DATA 0 state->persist->pdev->dev.cma_area->nranges 1
CAPPED_DATA 1 gid 1
DATA_SOURCE 0 state $0
DATA_SOURCE 1 gid $1
DATA_SOURCE 2 val $2
DATA_SOURCE 3 default_gid $3
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 state->caps.cqe_size
NO_OVERFLOW_SIMPLE 0 state->caps.max_counters
NO_OVERFLOW_SIMPLE 0 state->caps.num_comp_vectors
NO_OVERFLOW_SIMPLE 0 state->caps.num_ports
NO_OVERFLOW_SIMPLE 0 state->caps.sqp_demux
NO_OVERFLOW_SIMPLE 0 state->num_slaves
NO_OVERFLOW_SIMPLE 0 state->persist->num_vfs
NO_OVERFLOW_SIMPLE 0 state->persist->pdev->dev.cma_area->available_count
LOCK2 irq
LOCK2 2 &val->mcg_spl
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &priv->cmd.slave_cmd_mutex
TYPE_LOCK (struct mlx4_cmd)->slave_cmd_mutex
TYPE_LOCK (struct res_qp)->mcg_spl

drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rem_mcg_res() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->persist 4096-ptr_max
PARAM_VALUE 0 state->persist->catas_wq->flush_color s32min-s32max
PARAM_VALUE 0 state->persist->catas_wq->work_color s32min-s32max
PARAM_VALUE 0 state->persist->pdev->dev.cma_area->available_count 0-s64max
PARAM_VALUE 0 state->persist->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 state->persist->pdev->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 state->persist->pdev->dev.iommu_group->default_domain 0-s64max
PARAM_VALUE 0 state->persist->pdev->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 state->persist->pdev->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 state->persist->pdev->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 *state->caps.ib_port_def_cap 0-4294967295
PARAM_VALUE 0 *state->caps.port_mask 0-4294967295
PARAM_VALUE 0 *state->caps.port_type 0-4294967295
PARAM_VALUE 0 *state->caps.possible_type 0-4294967295
PARAM_VALUE 0 *state->phys_caps.gid_phys_table_len 0-4294967295
PARAM_VALUE 0 *state->phys_caps.pkey_phys_table_len 0-4294967295
PARAM_VALUE 2 val 4096-ptr_max
PARAM_VALUE 2 val->from_state s32min-0,2-s32max
PARAM_VALUE 2 val->mcg_spl.rlock.dep_map->name 0-255
PARAM_VALUE 2 val->state 1
PARAM_VALUE 3 default_gid 4096-ptr_max
CAPPED_DATA 1 gid 1
DATA_SOURCE 0 state $0
DATA_SOURCE 1 gid $1
DATA_SOURCE 2 val $2
DATA_SOURCE 3 default_gid $3
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 state->caps.cqe_size
NO_OVERFLOW_SIMPLE 0 state->caps.max_counters
NO_OVERFLOW_SIMPLE 0 state->caps.num_comp_vectors
NO_OVERFLOW_SIMPLE 0 state->caps.num_ports
NO_OVERFLOW_SIMPLE 0 state->caps.sqp_demux
NO_OVERFLOW_SIMPLE 0 state->num_slaves
NO_OVERFLOW_SIMPLE 0 state->persist->num_vfs
NO_OVERFLOW_SIMPLE 0 state->persist->pdev->dev.cma_area->available_count
LOCK2 irq
LOCK2 2 &val->mcg_spl
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &priv->cmd.slave_cmd_mutex
TYPE_LOCK (struct mlx4_cmd)->slave_cmd_mutex
TYPE_LOCK (struct res_qp)->mcg_spl

fs/nfsd/nfs4acl.c process_one_v4_ace() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state 4669014515792711680,6248505474262003712
PARAM_VALUE 0 state->groups 16,4096-ptr_max
DATA_SOURCE 0 state $0
MEM_ZERO 0 state

drivers/infiniband/core/cache.c __ib_cache_gid_add() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state->lock.dep_map->name 0-255
PARAM_VALUE 0 state->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 state->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 state->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 state->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 state->lock.wait_lock.owner (-1)
PARAM_VALUE 0 state->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 gid 4096-ptr_max
PARAM_VALUE 2 val 4096-ptr_max
PARAM_VALUE 2 val->gid_type 0-2
PARAM_VALUE 4 mask 11,14
PARAM_VALUE 5 pempty 757489674978525184
CAPPED_DATA 0 &state->lock 1
CAPPED_DATA 2 val->gid_type 1
DATA_SOURCE 0 state r rdma_gid_table
DATA_SOURCE 1 gid $2
DATA_SOURCE 2 val $3
DATA_SOURCE 3 default_gid $5
DATA_SOURCE 4 mask $4
HARD_MAX 4 mask 14
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 val->device->num_comp_vectors
LOCK2 0 &state->lock
TYPE_LOCK (struct ib_gid_table)->lock

drivers/infiniband/core/cache.c _ib_cache_gid_del() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state->lock.dep_map->name 0-255
PARAM_VALUE 0 state->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 state->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 state->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 state->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 state->lock.wait_lock.owner (-1)
PARAM_VALUE 0 state->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 gid 4096-ptr_max
PARAM_VALUE 2 val 4096-ptr_max
PARAM_VALUE 2 val->gid_type 0-2
PARAM_VALUE 4 mask 14-15
PARAM_VALUE 5 pempty 0
CAPPED_DATA 0 &state->lock 1
CAPPED_DATA 2 val->gid_type 1
DATA_SOURCE 0 state r rdma_gid_table
DATA_SOURCE 1 gid $2
DATA_SOURCE 2 val $3
DATA_SOURCE 3 default_gid $5
DATA_SOURCE 4 mask $4
HARD_MAX 4 mask 15
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 val->device->num_comp_vectors
LOCK2 0 &state->lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &devices_rwsem
TYPE_LOCK (struct ib_gid_table)->lock

drivers/infiniband/core/cache.c rdma_find_gid() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->rwlock.dep_map->name 0-255
PARAM_VALUE 1 gid 4096-ptr_max
PARAM_VALUE 2 val 4723657851378757632
PARAM_VALUE 2 val->device 0
PARAM_VALUE 2 val->gid_type 0-2
PARAM_VALUE 2 val->index 0
PARAM_VALUE 2 val->ndev 0
PARAM_VALUE 2 val->port_num 0
PARAM_VALUE 3 default_gid 0
PARAM_VALUE 4 mask 9,11
PARAM_VALUE 5 pempty 0
DATA_SOURCE 1 gid $1
FUZZY_MAX 4 mask 9
BIT_INFO 4 mask 0x9,0xb
BIT_INFO 4 mask 0x9,0xb
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &state->rwlock
HALF_LOCKED2 &dev->macsec.lock
HALF_LOCKED2 &table->lock
HALF_LOCKED2 flags
HALF_LOCKED2 global &cm.device_lock
TYPE_LOCK (struct ib_gid_table)->rwlock

drivers/infiniband/core/cache.c rdma_find_gid_by_port() -> find_gid()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->rwlock.dep_map->name 0-255
PARAM_VALUE 1 gid 4096-ptr_max
PARAM_VALUE 2 val 1996192822078672896
PARAM_VALUE 2 val->device 0
PARAM_VALUE 2 val->index 0
PARAM_VALUE 2 val->port_num 0
PARAM_VALUE 3 default_gid 0
PARAM_VALUE 4 mask 9,11
PARAM_VALUE 5 pempty 0
BUF_SIZE 1 gid (-1),16
BUF_SIZE 1 gid (-1),16
DATA_SOURCE 0 state r rdma_gid_table
DATA_SOURCE 1 gid $1
FUZZY_MAX 4 mask 9
BIT_INFO 4 mask 0x9,0xb
BIT_INFO 4 mask 0x9,0xb
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &state->rwlock
TYPE_LOCK (struct ib_gid_table)->rwlock