Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/mmc/core/queue.c blk_rq_map_sg() -> __blk_rq_map_sg()

Type Parameter Key Value
PARAM_VALUE 0 rq 4096-ptr_max
PARAM_VALUE 2 last_sg 5750625154931568640
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/nvme/target/loop.c blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 6973222118430740480
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 sglist unit_byte
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/scsi/scsi_lib.c scsi_alloc_sgtables() -> __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
PARAM_VALUE 2 last_sg 7551901602639028224
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq r scsi_cmd_to_rq
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 blk_rq_map_sg() -> __blk_rq_map_sg()

Type Parameter Key Value
PARAM_VALUE 2 last_sg 6598625331564331008
PARAM_VALUE 2 *last_sg 0
BUF_SIZE 1 sglist 1024
BUF_SIZE 1 sglist 1024
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
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 blk_rq_map_sg() -> __blk_rq_map_sg()

Type Parameter Key Value
PARAM_VALUE 0 rq 1-u64max
PARAM_VALUE 2 last_sg 2994545209277034496
PARAM_VALUE 2 *last_sg 0
BUF_SIZE 1 sglist 1056
BUF_SIZE 1 sglist 1056
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
HALF_LOCKED2 &pool->lock

drivers/block/rnbd/rnbd-clt.c blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 6237097707315167232
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $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 blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 3771480033510633472
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 sglist unit_byte
HALF_LOCKED2 &pool->lock

drivers/mtd/ubi/block.c blk_rq_map_sg() -> __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 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 2 last_sg 8051511808771207168
PARAM_VALUE 2 *last_sg 0
BUF_SIZE 1 sglist 2048
BUF_SIZE 1 sglist 2048
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/nvme/host/rdma.c blk_rq_map_sg() -> __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->ctrl->nr_active.counter s32min-s32max
PARAM_VALUE 0 rq->q->timeout->entry.pprev 4096-ptr_max
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
PARAM_VALUE 2 last_sg 4873307384208273408
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $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 blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 1038349706456293376
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
MEM_ZERO 1 sglist
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/block/virtio_blk.c blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 4226250280593907712
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $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 blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 6246784199367147520
PARAM_VALUE 2 *last_sg 0
BUF_SIZE 1 sglist 16128
BUF_SIZE 1 sglist 16128
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/block/xen-blkfront.c blk_rq_map_sg() -> __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->timeout->entry.pprev 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 2 last_sg 1273615546974380032
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
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 blk_rq_map_sg() -> __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
PARAM_VALUE 2 last_sg 3738630328148750336
PARAM_VALUE 2 *last_sg 0
DATA_SOURCE 0 rq $0
DATA_SOURCE 1 sglist $1
MEM_ZERO 1 sglist
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read