Defined in 1 files as a function:
Referenced in 14 files:
- block/bsg-lib.c, line 222
- drivers/block/mtip32xx/mtip32xx.c, line 2060
- drivers/block/rnbd/rnbd-clt.c, line 1015
- drivers/block/sunvdc.c, line 487
- drivers/block/virtio_blk.c, line 229
- drivers/block/xen-blkfront.c, line 754
- drivers/memstick/core/ms_block.c, line 1910
- drivers/memstick/core/mspro_block.c, line 629
- drivers/mmc/core/queue.c, line 537
- drivers/mtd/ubi/block.c, line 202
- drivers/nvme/host/apple.c, line 559
- drivers/nvme/host/fc.c, line 2579
- drivers/nvme/host/rdma.c, line 1483
- drivers/nvme/target/loop.c, line 166
Smatch caller information:
drivers/mmc/core/queue.c mmc_queue_map_sg() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| DATA_SOURCE | 0 | rq | r mmc_queue_req_to_req |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/nvme/target/loop.c nvme_loop_queue_rq() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio->bi_iter.bi_bvec_done | 0-4294967295 |
| PARAM_VALUE | 0 | rq->mq_hctx | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->queuedata->ctrl->nr_active.counter | s32min-s32max |
| PARAM_VALUE | 0 | rq->q->timeout.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->special_vec.bv_len | 4096 |
| PARAM_VALUE | 0 | rq->special_vec.bv_offset | 0-4095 |
| PARAM_VALUE | 0 | rq->state | 1 |
| PARAM_VALUE | 0 | *rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sglist | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/memstick/core/mspro_block.c mspro_block_issue_req() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | sglist | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &msb->q_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct mspro_block_data)->q_lock |
drivers/memstick/core/ms_block.c msb_io_work() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 1-u64max |
| BUF_SIZE | 1 | sglist | 1056 |
| BUF_SIZE | 1 | sglist | 1056 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/block/rnbd/rnbd-clt.c rnbd_client_xfer_request() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio->bi_iter.bi_bvec_done | 0-4294967295 |
| PARAM_VALUE | 0 | rq->mq_hctx | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->disk | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->disk->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->timeout.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->state | 1 |
| PARAM_VALUE | 0 | *rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| DATA_SOURCE | 0 | rq | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sglist | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/nvme/host/fc.c nvme_fc_map_data() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| DATA_SOURCE | 0 | rq | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sglist | unit_byte |
drivers/mtd/ubi/block.c ubiblock_read() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->queuedata | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->timeout.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->state | 1 |
| PARAM_VALUE | 0 | *rq->mq_hctx->tags->rqs | 4096-ptr_max |
| BUF_SIZE | 1 | sglist | 2048 |
| DATA_SOURCE | 0 | rq | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/nvme/host/rdma.c nvme_rdma_dma_map_req() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio->bi_iter.bi_bvec_done | 0-4294967295 |
| PARAM_VALUE | 0 | rq->mq_hctx | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->queuedata->ctrl->nr_active.counter | s32min-s32max |
| PARAM_VALUE | 0 | rq->q->timeout.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->special_vec.bv_len | 4096 |
| PARAM_VALUE | 0 | rq->special_vec.bv_offset | 0-4095 |
| PARAM_VALUE | 0 | rq->state | 1 |
| PARAM_VALUE | 0 | *rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 1 | sglist | 4096-ptr_max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| DATA_SOURCE | 0 | rq | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sglist | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/nvme/host/apple.c apple_nvme_map_data() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio->bi_iter.bi_bvec_done | 0-4294967295 |
| PARAM_VALUE | 0 | rq->special_vec.bv_len | 4096 |
| PARAM_VALUE | 0 | rq->special_vec.bv_offset | 0-4095 |
| PARAM_VALUE | 1 | sglist | 1-u64max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| DATA_SOURCE | 0 | rq | $1 |
| DATA_SOURCE | 1 | sglist | r mempool_alloc_noprof |
| MEM_ZERO | 1 | sglist | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/block/virtio_blk.c virtblk_map_data() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| DATA_SOURCE | 0 | rq | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sglist | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/block/mtip32xx/mtip32xx.c mtip_hw_submit_io() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio->bi_iter.bi_bvec_done | 0-4294967295 |
| PARAM_VALUE | 0 | rq->mq_hctx | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->timeout.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->state | 1 |
| PARAM_VALUE | 0 | *rq->mq_hctx->tags->rqs | 4096-ptr_max |
| BUF_SIZE | 1 | sglist | 16128 |
| DATA_SOURCE | 0 | rq | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/block/xen-blkfront.c blkif_queue_rw_req() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rq->bio->bi_iter.bi_bvec_done | 0-4294967295 |
| PARAM_VALUE | 0 | rq->mq_hctx | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->mq_hctx->tags->rqs | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->q->timeout.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->state | 1 |
| PARAM_VALUE | 0 | *rq->mq_hctx->tags->rqs | 4096-ptr_max |
| DATA_SOURCE | 0 | rq | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &rinfo->ring_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct blkfront_ring_info)->ring_lock |
block/bsg-lib.c bsg_map_buffer() -> blk_rq_map_sg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rq | 4096-ptr_max |
| PARAM_VALUE | 0 | rq->nr_phys_segments | 1-u16max |
| PARAM_VALUE | 1 | sglist | 16,4096-ptr_max |
| PARAM_VALUE | 1 | sglist->dma_address | 0 |
| PARAM_VALUE | 1 | sglist->dma_flags | 0 |
| PARAM_VALUE | 1 | sglist->dma_length | 0 |
| PARAM_VALUE | 1 | sglist->length | 0 |
| PARAM_VALUE | 1 | sglist->offset | 0 |
| PARAM_VALUE | 1 | sglist->page_link | 0 |
| BUF_SIZE | 1 | sglist | 0-u64max |
| DATA_SOURCE | 0 | rq | $1 |
| DATA_SOURCE | 1 | sglist | r _kmalloc_noprof |
| MEM_ZERO | 1 | sglist | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |