/linux-4.4.14/include/linux/ |
D | blk-mq.h | 21 struct blk_mq_hw_ctx { struct 90 typedef int (queue_rq_fn)(struct blk_mq_hw_ctx *, const struct blk_mq_queue_data *); 91 typedef struct blk_mq_hw_ctx *(map_queue_fn)(struct request_queue *, const int); 93 typedef int (init_hctx_fn)(struct blk_mq_hw_ctx *, void *, unsigned int); 94 typedef void (exit_hctx_fn)(struct blk_mq_hw_ctx *, unsigned int); 100 typedef void (busy_iter_fn)(struct blk_mq_hw_ctx *, struct request *, void *, 103 typedef int (poll_fn)(struct blk_mq_hw_ctx *, unsigned int); 189 void blk_mq_free_hctx_request(struct blk_mq_hw_ctx *, struct request *rq); 190 bool blk_mq_can_queue(struct blk_mq_hw_ctx *); 213 struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *, const int ctx_index); [all …]
|
D | blkdev.h | 318 struct blk_mq_hw_ctx **queue_hw_ctx;
|
/linux-4.4.14/block/ |
D | blk-mq-sysfs.c | 28 ssize_t (*show)(struct blk_mq_hw_ctx *, char *); 29 ssize_t (*store)(struct blk_mq_hw_ctx *, const char *, size_t); 82 struct blk_mq_hw_ctx *hctx; in blk_mq_hw_sysfs_show() 87 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_show() 106 struct blk_mq_hw_ctx *hctx; in blk_mq_hw_sysfs_store() 111 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_store() 177 static ssize_t blk_mq_hw_sysfs_poll_show(struct blk_mq_hw_ctx *hctx, char *page) in blk_mq_hw_sysfs_poll_show() 182 static ssize_t blk_mq_hw_sysfs_queued_show(struct blk_mq_hw_ctx *hctx, in blk_mq_hw_sysfs_queued_show() 188 static ssize_t blk_mq_hw_sysfs_run_show(struct blk_mq_hw_ctx *hctx, char *page) in blk_mq_hw_sysfs_run_show() 193 static ssize_t blk_mq_hw_sysfs_dispatched_show(struct blk_mq_hw_ctx *hctx, in blk_mq_hw_sysfs_dispatched_show() [all …]
|
D | blk-mq-tag.h | 55 extern void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, unsigned int tag, unsigned int *last_tag); 75 extern bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *); 76 extern void __blk_mq_tag_idle(struct blk_mq_hw_ctx *); 78 static inline bool blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) in blk_mq_tag_busy() 86 static inline void blk_mq_tag_idle(struct blk_mq_hw_ctx *hctx) in blk_mq_tag_idle() 100 static inline void blk_mq_tag_set_rq(struct blk_mq_hw_ctx *hctx, in blk_mq_tag_set_rq()
|
D | blk-mq.c | 36 static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx); 41 static bool blk_mq_hctx_has_pending(struct blk_mq_hw_ctx *hctx) in blk_mq_hctx_has_pending() 52 static inline struct blk_align_bitmap *get_bm(struct blk_mq_hw_ctx *hctx, in get_bm() 64 static void blk_mq_hctx_mark_pending(struct blk_mq_hw_ctx *hctx, in blk_mq_hctx_mark_pending() 73 static void blk_mq_hctx_clear_pending(struct blk_mq_hw_ctx *hctx, in blk_mq_hctx_clear_pending() 140 struct blk_mq_hw_ctx *hctx; in blk_mq_wake_waiters() 155 bool blk_mq_can_queue(struct blk_mq_hw_ctx *hctx) in blk_mq_can_queue() 236 struct blk_mq_hw_ctx *hctx; in blk_mq_alloc_request() 271 static void __blk_mq_free_request(struct blk_mq_hw_ctx *hctx, in __blk_mq_free_request() 286 void blk_mq_free_hctx_request(struct blk_mq_hw_ctx *hctx, struct request *rq) in blk_mq_free_hctx_request() [all …]
|
D | blk-mq.h | 28 void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async); 104 struct blk_mq_hw_ctx *hctx; 110 struct blk_mq_hw_ctx *hctx) in blk_mq_set_alloc_data() 119 static inline bool blk_mq_hw_queue_mapped(struct blk_mq_hw_ctx *hctx) in blk_mq_hw_queue_mapped()
|
D | blk-mq-tag.c | 61 bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) in __blk_mq_tag_busy() 104 void __blk_mq_tag_idle(struct blk_mq_hw_ctx *hctx) in __blk_mq_tag_idle() 120 static inline bool hctx_may_queue(struct blk_mq_hw_ctx *hctx, in hctx_may_queue() 191 static int __bt_get(struct blk_mq_hw_ctx *hctx, struct blk_mq_bitmap_tags *bt, in __bt_get() 244 struct blk_mq_hw_ctx *hctx) in bt_wait_ptr() 260 struct blk_mq_hw_ctx *hctx, in bt_get() 405 void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, unsigned int tag, in blk_mq_put_tag() 423 static void bt_for_each(struct blk_mq_hw_ctx *hctx, in bt_for_each() 481 struct blk_mq_hw_ctx *hctx; in blk_mq_queue_tag_busy_iter() 689 struct blk_mq_hw_ctx *hctx; in blk_mq_unique_tag()
|
D | blk-flush.c | 230 struct blk_mq_hw_ctx *hctx; in flush_end_io() 321 struct blk_mq_hw_ctx *hctx; in blk_kick_flush() 355 struct blk_mq_hw_ctx *hctx; in mq_flush_data_end_io()
|
D | blk.h | 42 struct blk_mq_hw_ctx *hctx; in blk_get_flush_queue()
|
D | blk-core.c | 287 struct blk_mq_hw_ctx *hctx; in blk_sync_queue() 3343 struct blk_mq_hw_ctx *hctx = q->queue_hw_ctx[queue_num]; in blk_poll()
|
/linux-4.4.14/drivers/block/ |
D | null_blk.c | 354 static int null_queue_rq(struct blk_mq_hw_ctx *hctx, in null_queue_rq() 381 static int null_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in null_init_hctx()
|
D | virtio_blk.c | 160 static int virtio_queue_rq(struct blk_mq_hw_ctx *hctx, in virtio_queue_rq()
|
D | loop.c | 1651 static int loop_queue_rq(struct blk_mq_hw_ctx *hctx, in loop_queue_rq()
|
D | xen-blkfront.c | 747 static int blkif_queue_rq(struct blk_mq_hw_ctx *hctx, in blkif_queue_rq()
|
D | rbd.c | 3473 static int rbd_queue_rq(struct blk_mq_hw_ctx *hctx, in rbd_queue_rq()
|
/linux-4.4.14/drivers/mtd/ubi/ |
D | block.c | 319 static int ubiblock_queue_rq(struct blk_mq_hw_ctx *hctx, in ubiblock_queue_rq()
|
/linux-4.4.14/drivers/nvme/host/ |
D | pci.c | 191 static int nvme_admin_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_admin_init_hctx() 206 static void nvme_admin_exit_hctx(struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx) in nvme_admin_exit_hctx() 226 static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_init_hctx() 841 static int nvme_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_queue_rq() 1014 static int nvme_poll(struct blk_mq_hw_ctx *hctx, unsigned int tag) in nvme_poll()
|
/linux-4.4.14/drivers/block/mtip32xx/ |
D | mtip32xx.c | 197 struct blk_mq_hw_ctx *hctx = dd->queue->queue_hw_ctx[0]; in mtip_rq_from_tag() 2383 struct blk_mq_hw_ctx *hctx) in mtip_hw_submit_io() 3748 static int mtip_submit_request(struct blk_mq_hw_ctx *hctx, struct request *rq) in mtip_submit_request() 3791 static bool mtip_check_unal_depth(struct blk_mq_hw_ctx *hctx, in mtip_check_unal_depth() 3815 static int mtip_queue_rq(struct blk_mq_hw_ctx *hctx, in mtip_queue_rq()
|
/linux-4.4.14/drivers/scsi/ |
D | scsi_lib.c | 1966 static int scsi_queue_rq(struct blk_mq_hw_ctx *hctx, in scsi_queue_rq()
|
/linux-4.4.14/drivers/md/ |
D | dm.c | 2647 static int dm_mq_queue_rq(struct blk_mq_hw_ctx *hctx, in dm_mq_queue_rq()
|