Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- drivers/infiniband/core/rw.c, line 107
- drivers/infiniband/core/verbs.c, line 2793
- drivers/infiniband/ulp/iser/iser_memory.c, line 321
- drivers/infiniband/ulp/rtrs/rtrs-clt.c, line 1072
- drivers/infiniband/ulp/rtrs/rtrs-srv.c, line 632
- drivers/infiniband/ulp/srp/ib_srp.c, line 1461
- drivers/nvme/host/rdma.c, line 1321
- fs/smb/smbdirect/mr.c, line 312
- include/rdma/ib_verbs.h, line 4800
- net/smc/smc_ib.c, line 706
- net/sunrpc/xprtrdma/frwr_ops.c
Smatch caller information:
net/sunrpc/xprtrdma/frwr_ops.c frwr_map() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | sg_nents | 1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 2 | sg_nents | r ib_dma_map_sg |
| TASK_NOT_RUNNING | |||
| UNITS | 4 | page_size | unit_byte |
net/sunrpc/xprtrdma/frwr_ops.c frwr_wp_create() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg | 4096-ptr_max |
| PARAM_VALUE | 2 | sg_nents | 1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 2 | sg_nents | r ib_dma_map_sg |
| MEM_ZERO | 1 | sg | |
| UNITS | 4 | page_size | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/infiniband/ulp/rtrs/rtrs-clt.c rtrs_map_sg_fr() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mr | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->need_inval | 0 |
| PARAM_VALUE | 2 | sg_nents | s32min-(-1),1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 2 | sg_nents | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| LOCK2 | rcu_read |
net/rds/ib_frmr.c ib_map_mr_sg_zbva() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg | 4096-ptr_max |
| PARAM_VALUE | 1 | sg->dma_flags | 0,2-u32max |
| PARAM_VALUE | 1 | sg->dma_length | 0 |
| PARAM_VALUE | 2 | sg_nents | 1-s32max |
| PARAM_VALUE | 3 | sg_offset | 5766312516548599808 |
| PARAM_VALUE | 3 | *sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| BUF_SIZE | 1 | sg | 0,32-s32max |
| BUF_SIZE | 1 | sg | 0,32-s32max |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 0 | mr | $0 |
| DATA_SOURCE | 1 | sg | $1 |
| DATA_SOURCE | 2 | sg_nents | $2 |
| DATA_SOURCE | 3 | sg_offset | $3 |
| DATA_SOURCE | 4 | page_size | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | sg_nents | 2-s32max[c] |
| UNITS | 4 | page_size | unit_byte |
drivers/nvme/host/rdma.c nvme_rdma_map_sg_fr() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mr | 4096-ptr_max |
| PARAM_VALUE | 2 | sg_nents | 1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| DATA_SOURCE | 0 | mr | r ib_mr_pool_get |
| DATA_SOURCE | 2 | sg_nents | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| UNITS | 2 | sg_nents | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/infiniband/ulp/rtrs/rtrs-srv.c map_cont_bufs() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mr | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->device | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->device->ops.alloc_mr | 1-u64max |
| PARAM_VALUE | 0 | mr->dm | 0 |
| PARAM_VALUE | 0 | mr->need_inval | 0 |
| PARAM_VALUE | 0 | mr->pd | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->pd->device | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->res.comp.done | 0 |
| PARAM_VALUE | 0 | mr->res.comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | mr->res.comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | mr->res.comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | mr->res.comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->res.comp.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->res.comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->res.comp.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->res.comp.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mr->res.kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | mr->res.type | 4 |
| PARAM_VALUE | 0 | mr->res.user | 1 |
| PARAM_VALUE | 0 | mr->sig_attrs | 0 |
| PARAM_VALUE | 0 | mr->type | 0-1 |
| PARAM_VALUE | 0 | mr->uobject | 0 |
| PARAM_VALUE | 1 | sg | 0 |
| PARAM_VALUE | 2 | sg_nents | 1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| BUF_SIZE | 0 | mr | 280 |
| BUF_SIZE | 1 | sg | 0 |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 0 | mr | r ib_alloc_mr |
| DATA_SOURCE | 2 | sg_nents | r ib_dma_map_sg |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mr->attr.pbl_size | |
| NO_OVERFLOW_SIMPLE | 0 | mr->buf.tbl_limit | |
| NO_OVERFLOW_SIMPLE | 0 | mr->device->hw_stats_attr_index | |
| NO_OVERFLOW_SIMPLE | 0 | mr->device->num_comp_vectors | |
| NO_OVERFLOW_SIMPLE | 0 | mr->device->phys_port_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | mr->hwmr.num_pbes | |
| NO_OVERFLOW_SIMPLE | 0 | mr->ibmr.device->hw_stats_attr_index | |
| NO_OVERFLOW_SIMPLE | 0 | mr->ibmr.device->num_comp_vectors | |
| NO_OVERFLOW_SIMPLE | 0 | mr->ibmr.device->phys_port_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | mr->info.pbl_info.num_pbes | |
| NO_OVERFLOW_SIMPLE | 0 | mr->max_allowed_buf | |
| NO_OVERFLOW_SIMPLE | 0 | mr->max_pages | |
| NO_OVERFLOW_SIMPLE | 0 | mr->mem.page_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | mr->mr.max_segs | |
| NO_OVERFLOW_SIMPLE | 0 | mr->num_buf | |
| NO_OVERFLOW_SIMPLE | 0 | mr->page_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | mr->pdir.npages | |
| UNITS | 1 | sg | unit_byte |
| 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/iser/iser_memory.c iser_fast_reg_mr() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mr | 4096-ptr_max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &session->frwd_lock | ||
| HALF_LOCKED2 | bh |
drivers/infiniband/ulp/srp/ib_srp.c srp_map_finish_fr() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mr | 4096-ptr_max |
| PARAM_VALUE | 2 | sg_nents | s32min-(-1),1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0,6666684501720178688 |
| DATA_SOURCE | 2 | sg_nents | $3 |
| DATA_SOURCE | 3 | sg_offset | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| UNITS | 2 | sg_nents | unit_byte |
| HALF_LOCKED2 | &sdev->state_mutex |
net/smc/smc_ib.c smc_ib_map_mr_sg() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | sg_offset | 2184881598211444736 |
| PARAM_VALUE | 3 | *sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| UNITS | 4 | page_size | unit_byte |
| HALF_LOCKED2 | &lgr->llc_conf_mutex | ||
| HALF_LOCKED2 | lock |
fs/smb/smbdirect/mr.c smbdirect_connection_register_mr_io() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | sg_nents | s32min-(-1),1-s32max |
| PARAM_VALUE | 3 | sg_offset | 0 |
| PARAM_VALUE | 4 | page_size | 4096 |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 2 | sg_nents | r ib_dma_map_sg |
| MEM_ZERO | 1 | sg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| UNITS | 4 | page_size | unit_byte |
| LOCK2 | &mr->mutex | ||
| TYPE_LOCK | (struct smbdirect_mr_io)->mutex |
drivers/infiniband/core/rw.c rdma_rw_init_one_mr() -> ib_map_mr_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mr | 4096-ptr_max |
| PARAM_VALUE | 2 | sg_nents | 0-256 |
| PARAM_VALUE | 3 | *sg_offset | 0-4294967294 |
| PARAM_VALUE | 4 | page_size | 4096 |
| BUF_SIZE | 1 | sg | (-1),4096 |
| BUF_SIZE | 1 | sg | (-1),4096 |
| CAPPED_DATA | 2 | sg_nents | 1 |
| DATA_SOURCE | 0 | mr | r ib_mr_pool_get |
| DATA_SOURCE | 1 | sg | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sg | unit_byte |
| UNITS | 4 | page_size | unit_byte |