Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/infiniband/core/mr_pool.c, line 48
- drivers/infiniband/core/verbs.c, line 2402
- drivers/infiniband/ulp/iser/iser_verbs.c, line 117
- drivers/infiniband/ulp/rtrs/rtrs-clt.c, line 1389
- drivers/infiniband/ulp/rtrs/rtrs-srv.c, line 627
- drivers/infiniband/ulp/srp/ib_srp.c, line 436
- fs/smb/smbdirect/mr.c, line 40
- net/rds/ib_frmr.c, line 78
- net/smc/smc_ib.c, line 722
- net/sunrpc/xprtrdma/frwr_ops.c, line 134
Smatch caller information:
drivers/infiniband/ulp/iser/iser_verbs.c iser_create_fastreg_desc() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mr_type | 0-1 |
| DATA_SOURCE | 0 | pd | $1 |
| DATA_SOURCE | 2 | max_num_sg | $3 |
| FUZZY_MAX | 1 | mr_type | 1 |
| HARD_MAX | 1 | mr_type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &cls_conn->ep_mutex | ||
| LOCK2 | &iser_conn->state_mutex | ||
| LOCK2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct iscsi_cls_conn)->ep_mutex | ||
| TYPE_LOCK | (struct iser_conn)->state_mutex |
net/sunrpc/xprtrdma/frwr_ops.c frwr_mr_init() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NO_OVERFLOW_SIMPLE | 2 | max_num_sg | |
| UNITS | 2 | max_num_sg | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/infiniband/core/mr_pool.c ib_mr_pool_init() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mr_type | 0 |
| PARAM_VALUE | 2 | max_num_sg | 0-257 |
| BUF_SIZE | 0 | pd | s32min,(-1)-s32max |
| BUF_SIZE | 0 | pd | s32min,(-1)-s32max |
| CAPPED_DATA | 2 | max_num_sg | 1 |
| DATA_SOURCE | 1 | mr_type | $3 |
| DATA_SOURCE | 2 | max_num_sg | $4 |
| STR_LEN | 0 | pd | (-1),3,6-8 |
| STR_LEN | 0 | pd | (-1),3,6-8 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/ulp/rtrs/rtrs-clt.c alloc_path_reqs() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mr_type | 0-1 |
| FUZZY_MAX | 1 | mr_type | 1 |
| HARD_MAX | 1 | mr_type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | max_num_sg | unit_byte |
| LOCK2 | &clt_path->init_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct rtrs_clt_path)->init_mutex |
net/rds/ib_frmr.c rds_ib_alloc_frmr() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mr_type | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/ulp/rtrs/rtrs-srv.c map_cont_bufs() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pd | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->device | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->device->ops.size_ib_pd | 0-4000000 |
| PARAM_VALUE | 0 | pd->res.comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | pd->res.comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | pd->res.comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | pd->res.comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->res.comp.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->res.comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->res.comp.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->res.comp.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | pd->res.kern_name | 4470977615512817664 |
| PARAM_VALUE | 0 | pd->res.kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 1 | mr_type | 0-1 |
| PARAM_VALUE | 2 | max_num_sg | 1-s32max |
| CAPPED_DATA | 2 | max_num_sg | 1 |
| DATA_SOURCE | 2 | max_num_sg | r ib_dma_map_sg |
| FUZZY_MAX | 1 | mr_type | 1 |
| HARD_MAX | 1 | mr_type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | pd->device->hw_stats_attr_index | |
| NO_OVERFLOW_SIMPLE | 0 | pd->device->num_comp_vectors | |
| NO_OVERFLOW_SIMPLE | 0 | pd->device->phys_port_cnt | |
| LOCK2 | &srv->paths_mutex | ||
| HALF_LOCKED2 | &id_priv->handler_mutex | ||
| HALF_LOCKED2 | &listen_id->handler_mutex | ||
| TYPE_LOCK | (struct rtrs_srv_sess)->paths_mutex |
drivers/infiniband/ulp/srp/ib_srp.c srp_create_fr_pool() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pd | 4096-ptr_max |
| PARAM_VALUE | 1 | mr_type | 0-1 |
| DATA_SOURCE | 0 | pd | $1 |
| DATA_SOURCE | 2 | max_num_sg | $3 |
| FUZZY_MAX | 1 | mr_type | 1 |
| HARD_MAX | 1 | mr_type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | max_num_sg | unit_byte |
| HALF_LOCKED2 | &host->add_target_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &rport->mutex |
net/smc/smc_ib.c smc_ib_get_memory_region() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mr_type | 0 |
| DATA_SOURCE | 0 | pd | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | pd->device->hw_stats_attr_index | |
| NO_OVERFLOW_SIMPLE | 0 | pd->device->num_comp_vectors | |
| NO_OVERFLOW_SIMPLE | 0 | pd->device->phys_port_cnt | |
| HALF_LOCKED2 | &lgr->llc_conf_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | lock |
fs/smb/smbdirect/mr.c smbdirect_connection_create_mr_list() -> ib_alloc_mr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | max_num_sg | 1-1048575 |
| NO_OVERFLOW_SIMPLE | 2 | max_num_sg | |
| UNITS | 2 | max_num_sg | unit_array_size |
| HALF_LOCKED2 | &pool->lock |