/drivers/s390/block/ |
D | scm_blk.c | 283 static blk_status_t scm_blk_request(struct blk_mq_hw_ctx *hctx, in scm_blk_request() argument 286 struct scm_device *scmdev = hctx->queue->queuedata; in scm_blk_request() 288 struct scm_queue *sq = hctx->driver_data; in scm_blk_request() 332 static int scm_blk_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in scm_blk_init_hctx() argument 341 hctx->driver_data = qd; in scm_blk_init_hctx() 346 static void scm_blk_exit_hctx(struct blk_mq_hw_ctx *hctx, unsigned int idx) in scm_blk_exit_hctx() argument 348 struct scm_queue *qd = hctx->driver_data; in scm_blk_exit_hctx() 351 kfree(hctx->driver_data); in scm_blk_exit_hctx() 352 hctx->driver_data = NULL; in scm_blk_exit_hctx()
|
D | dasd.c | 3067 static blk_status_t do_dasd_request(struct blk_mq_hw_ctx *hctx, in do_dasd_request() argument 3070 struct dasd_block *block = hctx->queue->queuedata; in do_dasd_request() 3071 struct dasd_queue *dq = hctx->driver_data; in do_dasd_request() 3227 static int dasd_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in dasd_init_hctx() argument 3236 hctx->driver_data = dq; in dasd_init_hctx() 3241 static void dasd_exit_hctx(struct blk_mq_hw_ctx *hctx, unsigned int idx) in dasd_exit_hctx() argument 3243 kfree(hctx->driver_data); in dasd_exit_hctx() 3244 hctx->driver_data = NULL; in dasd_exit_hctx()
|
/drivers/block/rnbd/ |
D | rnbd-clt.c | 139 if (WARN_ON(!q->hctx)) in rnbd_clt_dev_requeue() 143 blk_mq_run_hw_queue(q->hctx, true); in rnbd_clt_dev_requeue() 1096 struct blk_mq_hw_ctx *hctx, in rnbd_clt_dev_kick_mq_queue() argument 1099 struct rnbd_queue *q = hctx->driver_data; in rnbd_clt_dev_kick_mq_queue() 1102 blk_mq_delay_run_hw_queue(hctx, delay); in rnbd_clt_dev_kick_mq_queue() 1108 blk_mq_delay_run_hw_queue(hctx, 10/*ms*/); in rnbd_clt_dev_kick_mq_queue() 1111 static blk_status_t rnbd_queue_rq(struct blk_mq_hw_ctx *hctx, in rnbd_queue_rq() argument 1126 rnbd_clt_dev_kick_mq_queue(dev, hctx, RNBD_DELAY_IFBUSY); in rnbd_queue_rq() 1140 rnbd_clt_dev_kick_mq_queue(dev, hctx, 10/*ms*/); in rnbd_queue_rq() 1150 rnbd_clt_dev_kick_mq_queue(dev, hctx, 10/*ms*/); in rnbd_queue_rq() [all …]
|
D | rnbd-clt.h | 105 struct blk_mq_hw_ctx *hctx; member
|
/drivers/block/ |
D | virtio_blk.c | 132 static inline struct virtio_blk_vq *get_virtio_blk_vq(struct blk_mq_hw_ctx *hctx) in get_virtio_blk_vq() argument 134 struct virtio_blk *vblk = hctx->queue->queuedata; in get_virtio_blk_vq() 135 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in get_virtio_blk_vq() 214 static int virtblk_map_data(struct blk_mq_hw_ctx *hctx, struct request *req, in virtblk_map_data() argument 230 return blk_rq_map_sg(hctx->queue, req, vbr->sg_table.sgl); in virtblk_map_data() 380 static void virtio_commit_rqs(struct blk_mq_hw_ctx *hctx) in virtio_commit_rqs() argument 382 struct virtio_blk *vblk = hctx->queue->queuedata; in virtio_commit_rqs() 383 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in virtio_commit_rqs() 407 static blk_status_t virtblk_prep_rq(struct blk_mq_hw_ctx *hctx, in virtblk_prep_rq() argument 419 num = virtblk_map_data(hctx, req, vbr); in virtblk_prep_rq() [all …]
|
D | ps3disk.c | 180 static blk_status_t ps3disk_queue_rq(struct blk_mq_hw_ctx *hctx, in ps3disk_queue_rq() argument 183 struct request_queue *q = hctx->queue; in ps3disk_queue_rq()
|
D | z2ram.c | 68 static blk_status_t z2_queue_rq(struct blk_mq_hw_ctx *hctx, in z2_queue_rq() argument
|
D | sunvdc.c | 537 static blk_status_t vdc_queue_rq(struct blk_mq_hw_ctx *hctx, in vdc_queue_rq() argument 540 struct vdc_port *port = hctx->queue->queuedata; in vdc_queue_rq() 560 blk_mq_stop_hw_queue(hctx); in vdc_queue_rq()
|
D | swim.c | 526 static blk_status_t swim_queue_rq(struct blk_mq_hw_ctx *hctx, in swim_queue_rq() argument 529 struct floppy_state *fs = hctx->queue->queuedata; in swim_queue_rq()
|
D | ublk_drv.c | 1284 static blk_status_t ublk_queue_rq(struct blk_mq_hw_ctx *hctx, in ublk_queue_rq() argument 1287 struct ublk_queue *ubq = hctx->driver_data; in ublk_queue_rq() 1320 static int ublk_init_hctx(struct blk_mq_hw_ctx *hctx, void *driver_data, in ublk_init_hctx() argument 1324 struct ublk_queue *ubq = ublk_get_queue(ub, hctx->queue_num); in ublk_init_hctx() 1326 hctx->driver_data = ubq; in ublk_init_hctx()
|
/drivers/hid/bpf/entrypoints/ |
D | entrypoints.bpf.c | 18 int BPF_PROG(hid_tail_call, struct hid_bpf_ctx *hctx) in BPF_PROG() argument 20 bpf_tail_call(ctx, &hid_jmp_table, hctx->index); in BPF_PROG()
|
/drivers/nvme/target/ |
D | loop.c | 131 static blk_status_t nvme_loop_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_loop_queue_rq() argument 134 struct nvme_ns *ns = hctx->queue->queuedata; in nvme_loop_queue_rq() 135 struct nvme_loop_queue *queue = hctx->driver_data; in nvme_loop_queue_rq() 218 static int nvme_loop_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_loop_init_hctx() argument 232 blk_mq_hctx_set_fq_lock_class(hctx, &loop_hctx_fq_lock_key); in nvme_loop_init_hctx() 234 hctx->driver_data = queue; in nvme_loop_init_hctx() 238 static int nvme_loop_init_admin_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_loop_init_admin_hctx() argument 246 hctx->driver_data = queue; in nvme_loop_init_admin_hctx()
|
/drivers/block/null_blk/ |
D | main.c | 1653 static int null_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob) in null_poll() argument 1655 struct nullb_queue *nq = hctx->driver_data; in null_poll() 1686 struct blk_mq_hw_ctx *hctx = rq->mq_hctx; in null_timeout_rq() local 1689 if (hctx->type == HCTX_TYPE_POLL) { in null_timeout_rq() 1690 struct nullb_queue *nq = hctx->driver_data; in null_timeout_rq() 1712 if (cmd->fake_timeout || hctx->type == HCTX_TYPE_POLL) in null_timeout_rq() 1717 static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx, in null_queue_rq() argument 1722 struct nullb_queue *nq = hctx->driver_data; in null_queue_rq() 1725 const bool is_poll = hctx->type == HCTX_TYPE_POLL; in null_queue_rq() 1727 might_sleep_if(hctx->flags & BLK_MQ_F_BLOCKING); in null_queue_rq() [all …]
|
/drivers/nvme/host/ |
D | apple.c | 732 static blk_status_t apple_nvme_queue_rq(struct blk_mq_hw_ctx *hctx, in apple_nvme_queue_rq() argument 735 struct nvme_ns *ns = hctx->queue->queuedata; in apple_nvme_queue_rq() 736 struct apple_nvme_queue *q = hctx->driver_data; in apple_nvme_queue_rq() 775 static int apple_nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in apple_nvme_init_hctx() argument 778 hctx->driver_data = data; in apple_nvme_init_hctx() 936 static int apple_nvme_poll(struct blk_mq_hw_ctx *hctx, in apple_nvme_poll() argument 939 struct apple_nvme_queue *q = hctx->driver_data; in apple_nvme_poll()
|
D | tcp.c | 499 static int nvme_tcp_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_tcp_init_hctx() argument 505 hctx->driver_data = queue; in nvme_tcp_init_hctx() 509 static int nvme_tcp_init_admin_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_tcp_init_admin_hctx() argument 515 hctx->driver_data = queue; in nvme_tcp_init_admin_hctx() 2384 static void nvme_tcp_commit_rqs(struct blk_mq_hw_ctx *hctx) in nvme_tcp_commit_rqs() argument 2386 struct nvme_tcp_queue *queue = hctx->driver_data; in nvme_tcp_commit_rqs() 2392 static blk_status_t nvme_tcp_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_tcp_queue_rq() argument 2395 struct nvme_ns *ns = hctx->queue->queuedata; in nvme_tcp_queue_rq() 2396 struct nvme_tcp_queue *queue = hctx->driver_data; in nvme_tcp_queue_rq() 2423 static int nvme_tcp_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob) in nvme_tcp_poll() argument [all …]
|
D | rdma.c | 319 static int nvme_rdma_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_rdma_init_hctx() argument 327 hctx->driver_data = queue; in nvme_rdma_init_hctx() 331 static int nvme_rdma_init_admin_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_rdma_init_admin_hctx() argument 339 hctx->driver_data = queue; in nvme_rdma_init_admin_hctx() 1978 static blk_status_t nvme_rdma_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_rdma_queue_rq() argument 1981 struct nvme_ns *ns = hctx->queue->queuedata; in nvme_rdma_queue_rq() 1982 struct nvme_rdma_queue *queue = hctx->driver_data; in nvme_rdma_queue_rq() 2059 static int nvme_rdma_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob) in nvme_rdma_poll() argument 2061 struct nvme_rdma_queue *queue = hctx->driver_data; in nvme_rdma_poll()
|
D | pci.c | 395 static int nvme_admin_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_admin_init_hctx() argument 402 WARN_ON(dev->admin_tagset.tags[0] != hctx->tags); in nvme_admin_init_hctx() 404 hctx->driver_data = nvmeq; in nvme_admin_init_hctx() 408 static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_init_hctx() argument 414 WARN_ON(dev->tagset.tags[hctx_idx] != hctx->tags); in nvme_init_hctx() 415 hctx->driver_data = nvmeq; in nvme_init_hctx() 497 static void nvme_commit_rqs(struct blk_mq_hw_ctx *hctx) in nvme_commit_rqs() argument 499 struct nvme_queue *nvmeq = hctx->driver_data; in nvme_commit_rqs() 876 static blk_status_t nvme_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_queue_rq() argument 879 struct nvme_queue *nvmeq = hctx->driver_data; in nvme_queue_rq() [all …]
|
D | fc.c | 38 struct blk_mq_hw_ctx *hctx; member 2216 __nvme_fc_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, unsigned int qidx) in __nvme_fc_init_hctx() argument 2221 hctx->driver_data = queue; in __nvme_fc_init_hctx() 2222 queue->hctx = hctx; in __nvme_fc_init_hctx() 2227 nvme_fc_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, unsigned int hctx_idx) in nvme_fc_init_hctx() argument 2229 return __nvme_fc_init_hctx(hctx, data, hctx_idx + 1); in nvme_fc_init_hctx() 2233 nvme_fc_init_admin_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_fc_init_admin_hctx() argument 2236 return __nvme_fc_init_hctx(hctx, data, hctx_idx); in nvme_fc_init_admin_hctx() 2785 nvme_fc_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_fc_queue_rq() argument 2788 struct nvme_ns *ns = hctx->queue->queuedata; in nvme_fc_queue_rq() [all …]
|
/drivers/scsi/ |
D | scsi_lib.c | 1706 static blk_status_t scsi_queue_rq(struct blk_mq_hw_ctx *hctx, in scsi_queue_rq() argument 1848 static int scsi_mq_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob) in scsi_mq_poll() argument 1850 struct Scsi_Host *shost = hctx->driver_data; in scsi_mq_poll() 1853 return shost->hostt->mq_poll(shost, hctx->queue_num); in scsi_mq_poll() 1858 static int scsi_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in scsi_init_hctx() argument 1863 hctx->driver_data = shost; in scsi_init_hctx() 1934 static void scsi_commit_rqs(struct blk_mq_hw_ctx *hctx) in scsi_commit_rqs() argument 1936 struct Scsi_Host *shost = hctx->driver_data; in scsi_commit_rqs() 1938 shost->hostt->commit_rqs(shost, hctx->queue_num); in scsi_commit_rqs()
|
/drivers/ufs/core/ |
D | ufs-mcq.c | 114 struct blk_mq_hw_ctx *hctx = READ_ONCE(req->mq_hctx); in ufshcd_mcq_req_to_hwq() local 116 return hctx ? &hba->uhq[hctx->queue_num] : NULL; in ufshcd_mcq_req_to_hwq()
|
/drivers/block/mtip32xx/ |
D | mtip32xx.c | 2047 struct blk_mq_hw_ctx *hctx) in mtip_hw_submit_io() argument 2059 nents = blk_rq_map_sg(hctx->queue, rq, command->sg); in mtip_hw_submit_io() 3249 static bool mtip_check_unal_depth(struct blk_mq_hw_ctx *hctx, in mtip_check_unal_depth() argument 3252 struct driver_data *dd = hctx->queue->queuedata; in mtip_check_unal_depth() 3273 static blk_status_t mtip_issue_reserved_cmd(struct blk_mq_hw_ctx *hctx, in mtip_issue_reserved_cmd() argument 3276 struct driver_data *dd = hctx->queue->queuedata; in mtip_issue_reserved_cmd() 3310 static blk_status_t mtip_queue_rq(struct blk_mq_hw_ctx *hctx, in mtip_queue_rq() argument 3313 struct driver_data *dd = hctx->queue->queuedata; in mtip_queue_rq() 3318 return mtip_issue_reserved_cmd(hctx, rq); in mtip_queue_rq() 3320 if (unlikely(mtip_check_unal_depth(hctx, rq))) in mtip_queue_rq() [all …]
|
/drivers/block/aoe/ |
D | aoeblk.c | 250 static blk_status_t aoeblk_queue_rq(struct blk_mq_hw_ctx *hctx, in aoeblk_queue_rq() argument 253 struct aoedev *d = hctx->queue->queuedata; in aoeblk_queue_rq()
|
/drivers/mtd/ |
D | mtd_blkdevs.c | 166 static blk_status_t mtd_queue_rq(struct blk_mq_hw_ctx *hctx, in mtd_queue_rq() argument 171 dev = hctx->queue->queuedata; in mtd_queue_rq()
|
/drivers/md/ |
D | dm-rq.c | 477 static blk_status_t dm_mq_queue_rq(struct blk_mq_hw_ctx *hctx, in dm_mq_queue_rq() argument
|
/drivers/mmc/core/ |
D | queue.c | 228 static blk_status_t mmc_mq_queue_rq(struct blk_mq_hw_ctx *hctx, in mmc_mq_queue_rq() argument
|