Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/block/rnbd/rnbd-clt.c, line 1133
- drivers/block/virtio_blk.c, line 222
- drivers/nvme/host/fc.c, line 2573
- drivers/nvme/host/rdma.c
- drivers/nvme/target/loop.c, line 158
- drivers/scsi/scsi_lib.c
- drivers/vhost/scsi.c
- fs/smb/smbdirect/rw.c, line 187
- lib/sg_pool.c, line 140
Smatch caller information:
drivers/nvme/target/loop.c nvme_loop_queue_rq() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 0-u16max |
| PARAM_VALUE | 3 | nents_first_chunk | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/scsi/scsi_lib.c scsi_alloc_sgtables() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 1-u16max |
| PARAM_VALUE | 3 | nents_first_chunk | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | nents | unit_array_size |
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/scsi/scsi_lib.c scsi_alloc_sgtables() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 1-u64max |
| PARAM_VALUE | 3 | nents_first_chunk | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | nents | unit_page |
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/block/rnbd/rnbd-clt.c rnbd_queue_rq() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 1-u16max |
| PARAM_VALUE | 3 | nents_first_chunk | 2 |
| FUZZY_MAX | 1 | nents | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | nents | unit_array_size |
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/nvme/host/fc.c nvme_fc_map_data() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 0-u16max |
| PARAM_VALUE | 3 | nents_first_chunk | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | first_chunk | unit_byte |
drivers/nvme/host/rdma.c nvme_rdma_dma_map_req() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->sgl | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 0-u16max |
| PARAM_VALUE | 2 | first_chunk | 4096-ptr_max |
| PARAM_VALUE | 3 | nents_first_chunk | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/nvme/host/rdma.c nvme_rdma_dma_map_req() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->sgl | 4096-ptr_max |
| PARAM_VALUE | 2 | first_chunk | 4096-ptr_max |
| PARAM_VALUE | 3 | nents_first_chunk | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | nents | unit_page |
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
fs/smb/smbdirect/rw.c smbdirect_connection_rdma_xmit() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->sgl | 4096-ptr_max |
| PARAM_VALUE | 2 | first_chunk | 4096-ptr_max |
| PARAM_VALUE | 3 | nents_first_chunk | 128 |
| BUF_SIZE | 2 | first_chunk | 4096 |
| DATA_SOURCE | 1 | nents | r smbdirect_get_buf_page_count |
| LOCK2 | &pool->lock |
drivers/block/virtio_blk.c virtblk_map_data() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 0-u16max |
| PARAM_VALUE | 3 | nents_first_chunk | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | first_chunk | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/vhost/scsi.c vhost_scsi_mapal() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 0-2048 |
| CAPPED_DATA | 1 | nents | 1 |
| DATA_SOURCE | 1 | nents | r vhost_scsi_calc_sgls |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | nents | 0-2048[c] |
| UNITS | 2 | first_chunk | unit_byte |
| UNITS | 3 | nents_first_chunk | unit_array_size |
| LOCK2 | &vq->mutex | ||
| TYPE_LOCK | (struct vhost_virtqueue)->mutex |
drivers/vhost/scsi.c vhost_scsi_mapal() -> sg_alloc_table_chained()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | nents | 0-2048 |
| CAPPED_DATA | 1 | nents | 1 |
| DATA_SOURCE | 1 | nents | r vhost_scsi_calc_sgls |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | nents | 0-2048[c] |
| UNITS | 2 | first_chunk | unit_byte |
| UNITS | 3 | nents_first_chunk | unit_array_size |
| LOCK2 | &vq->mutex | ||
| TYPE_LOCK | (struct vhost_virtqueue)->mutex |