Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/infiniband/hw/mlx5/dm.c handle_alloc_dm_sw_icm() -> mlx5_dm_sw_icm_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->caps.hca 4096-ptr_max
PARAM_VALUE 1 type 0-3
PARAM_VALUE 5 addr 4096-ptr_max
PARAM_VALUE 6 obj_id 4096-ptr_max
DATA_SOURCE 1 type r get_icm_type
DATA_SOURCE 2 length r __roundup_pow_of_two
CAPABLE 0 13
CAPABLE 0 17
UNITS 0 dev unit_byte

drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c dr_icm_pool_mr_create() -> mlx5_dm_sw_icm_alloc()

Type Parameter Key Value
PARAM_VALUE 1 type 0-2
PARAM_VALUE 2 length 0-s32max,18446744071562067968-u64max
PARAM_VALUE 4 uid 0
PARAM_VALUE 5 addr 4096-ptr_max
PARAM_VALUE 6 obj_id 4096-ptr_max
DATA_SOURCE 2 length r mlx5dr_icm_pool_chunk_size_to_byte
BIT_INFO 2 length 0x0,0x7fffffff
BIT_INFO 2 length 0x0,0x7fffffff
BIT_INFO 3 log_alignment 0x0,0xffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &pool->mutex
HALF_LOCKED2 &mgr->modify_hdr_mutex
TYPE_LOCK (struct mlx5dr_icm_pool)->mutex