Home
last modified time | relevance | path

Searched refs:request_queue (Results 1 – 25 of 191) sorted by relevance

12345678

/linux-6.6.21/block/
Delevator.h27 int (*init_sched)(struct request_queue *, struct elevator_type *);
33 bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
34 bool (*bio_merge)(struct request_queue *, struct bio *, unsigned int);
35 int (*request_merge)(struct request_queue *q, struct request **, struct bio *);
36 void (*request_merged)(struct request_queue *, struct request *, enum elv_merge);
37 void (*requests_merged)(struct request_queue *, struct request *, struct request *);
47 struct request *(*former_request)(struct request_queue *, struct request *);
48 struct request *(*next_request)(struct request_queue *, struct request *);
106 void elv_rqhash_del(struct request_queue *q, struct request *rq);
107 void elv_rqhash_add(struct request_queue *q, struct request *rq);
[all …]
Dblk-mq-debugfs.h23 void blk_mq_debugfs_register(struct request_queue *q);
24 void blk_mq_debugfs_register_hctx(struct request_queue *q,
27 void blk_mq_debugfs_register_hctxs(struct request_queue *q);
28 void blk_mq_debugfs_unregister_hctxs(struct request_queue *q);
30 void blk_mq_debugfs_register_sched(struct request_queue *q);
31 void blk_mq_debugfs_unregister_sched(struct request_queue *q);
32 void blk_mq_debugfs_register_sched_hctx(struct request_queue *q,
39 static inline void blk_mq_debugfs_register(struct request_queue *q) in blk_mq_debugfs_register()
43 static inline void blk_mq_debugfs_register_hctx(struct request_queue *q, in blk_mq_debugfs_register_hctx()
52 static inline void blk_mq_debugfs_register_hctxs(struct request_queue *q) in blk_mq_debugfs_register_hctxs()
[all …]
Dblk-sysfs.c25 ssize_t (*show)(struct request_queue *, char *);
26 ssize_t (*store)(struct request_queue *, const char *, size_t);
50 static ssize_t queue_requests_show(struct request_queue *q, char *page) in queue_requests_show()
56 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store()
78 static ssize_t queue_ra_show(struct request_queue *q, char *page) in queue_ra_show()
89 queue_ra_store(struct request_queue *q, const char *page, size_t count) in queue_ra_store()
103 static ssize_t queue_max_sectors_show(struct request_queue *q, char *page) in queue_max_sectors_show()
110 static ssize_t queue_max_segments_show(struct request_queue *q, char *page) in queue_max_segments_show()
115 static ssize_t queue_max_discard_segments_show(struct request_queue *q, in queue_max_discard_segments_show()
121 static ssize_t queue_max_integrity_segments_show(struct request_queue *q, char *page) in queue_max_integrity_segments_show()
[all …]
Dblk.h34 void blk_freeze_queue(struct request_queue *q);
35 void __blk_mq_unfreeze_queue(struct request_queue *q, bool force_atomic);
36 void blk_queue_start_drain(struct request_queue *q);
37 int __bio_queue_enter(struct request_queue *q, struct bio *bio);
40 static inline bool blk_try_enter_queue(struct request_queue *q, bool pm) in blk_try_enter_queue()
66 struct request_queue *q = bdev_get_queue(bio->bi_bdev); in bio_queue_enter()
78 bool bvec_try_merge_hw_page(struct request_queue *q, struct bio_vec *bv,
82 static inline bool biovec_phys_mergeable(struct request_queue *q, in biovec_phys_mergeable()
169 static inline unsigned int blk_queue_get_max_sectors(struct request_queue *q, in blk_queue_get_max_sectors()
193 bool blk_integrity_merge_rq(struct request_queue *, struct request *,
[all …]
Dblk-mq.h28 struct request_queue *queue;
43 int blk_mq_poll(struct request_queue *q, blk_qc_t cookie, struct io_comp_batch *iob,
45 void blk_mq_exit_queue(struct request_queue *q);
46 int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr);
47 void blk_mq_wake_waiters(struct request_queue *q);
78 static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue *q, in blk_mq_map_queue_type()
105 static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q, in blk_mq_map_queue()
115 extern void blk_mq_sysfs_init(struct request_queue *q);
116 extern void blk_mq_sysfs_deinit(struct request_queue *q);
119 int blk_mq_sysfs_register_hctxs(struct request_queue *q);
[all …]
Dblk-rq-qos.h61 static inline struct rq_qos *rq_qos_id(struct request_queue *q, in rq_qos_id()
72 static inline struct rq_qos *wbt_rq_qos(struct request_queue *q) in wbt_rq_qos()
77 static inline struct rq_qos *iolat_rq_qos(struct request_queue *q) in iolat_rq_qos()
113 static inline void rq_qos_cleanup(struct request_queue *q, struct bio *bio) in rq_qos_cleanup()
119 static inline void rq_qos_done(struct request_queue *q, struct request *rq) in rq_qos_done()
125 static inline void rq_qos_issue(struct request_queue *q, struct request *rq) in rq_qos_issue()
131 static inline void rq_qos_requeue(struct request_queue *q, struct request *rq) in rq_qos_requeue()
141 struct request_queue *q = bdev_get_queue(bio->bi_bdev); in rq_qos_done_bio()
147 static inline void rq_qos_throttle(struct request_queue *q, struct bio *bio) in rq_qos_throttle()
155 static inline void rq_qos_track(struct request_queue *q, struct request *rq, in rq_qos_track()
[all …]
Dblk-wbt.h11 u64 wbt_get_min_lat(struct request_queue *q);
12 void wbt_set_min_lat(struct request_queue *q, u64 val);
13 bool wbt_disabled(struct request_queue *);
15 void wbt_set_write_cache(struct request_queue *, bool);
17 u64 wbt_default_latency_nsec(struct request_queue *);
27 static inline void wbt_set_write_cache(struct request_queue *q, bool wc) in wbt_set_write_cache()
Dblk-settings.c22 void blk_queue_rq_timeout(struct request_queue *q, unsigned int timeout) in blk_queue_rq_timeout()
98 void blk_queue_bounce_limit(struct request_queue *q, enum blk_bounce bounce) in blk_queue_bounce_limit()
123 void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors) in blk_queue_max_hw_sectors()
167 void blk_queue_chunk_sectors(struct request_queue *q, unsigned int chunk_sectors) in blk_queue_chunk_sectors()
178 void blk_queue_max_discard_sectors(struct request_queue *q, in blk_queue_max_discard_sectors()
191 void blk_queue_max_secure_erase_sectors(struct request_queue *q, in blk_queue_max_secure_erase_sectors()
204 void blk_queue_max_write_zeroes_sectors(struct request_queue *q, in blk_queue_max_write_zeroes_sectors()
216 void blk_queue_max_zone_append_sectors(struct request_queue *q, in blk_queue_max_zone_append_sectors()
247 void blk_queue_max_segments(struct request_queue *q, unsigned short max_segments) in blk_queue_max_segments()
268 void blk_queue_max_discard_segments(struct request_queue *q, in blk_queue_max_discard_segments()
[all …]
Dblk-mq-sched.h10 bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio,
12 bool blk_mq_sched_bio_merge(struct request_queue *q, struct bio *bio,
14 bool blk_mq_sched_try_insert_merge(struct request_queue *q, struct request *rq,
21 int blk_mq_init_sched(struct request_queue *q, struct elevator_type *e);
22 void blk_mq_exit_sched(struct request_queue *q, struct elevator_queue *e);
23 void blk_mq_sched_free_rqs(struct request_queue *q);
37 blk_mq_sched_allow_merge(struct request_queue *q, struct request *rq, in blk_mq_sched_allow_merge()
62 struct request_queue *q = rq->q; in blk_mq_sched_requeue_request()
Delevator.c62 struct request_queue *q = rq->q; in elv_iosched_allow_bio_merge()
86 static inline bool elv_support_features(struct request_queue *q, in elv_support_features()
116 static struct elevator_type *elevator_find_get(struct request_queue *q, in elevator_find_get()
131 struct elevator_queue *elevator_alloc(struct request_queue *q, in elevator_alloc()
159 void elevator_exit(struct request_queue *q) in elevator_exit()
179 void elv_rqhash_del(struct request_queue *q, struct request *rq) in elv_rqhash_del()
186 void elv_rqhash_add(struct request_queue *q, struct request *rq) in elv_rqhash_add()
196 void elv_rqhash_reposition(struct request_queue *q, struct request *rq) in elv_rqhash_reposition()
202 struct request *elv_rqhash_find(struct request_queue *q, sector_t offset) in elv_rqhash_find()
276 enum elv_merge elv_merge(struct request_queue *q, struct request **req, in elv_merge()
[all …]
Dblk-core.c79 void blk_queue_flag_set(unsigned int flag, struct request_queue *q) in blk_queue_flag_set()
90 void blk_queue_flag_clear(unsigned int flag, struct request_queue *q) in blk_queue_flag_clear()
104 bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q) in blk_queue_flag_test_and_set()
231 void blk_sync_queue(struct request_queue *q) in blk_sync_queue()
242 void blk_set_pm_only(struct request_queue *q) in blk_set_pm_only()
248 void blk_clear_pm_only(struct request_queue *q) in blk_clear_pm_only()
261 struct request_queue *q = container_of(rcu_head, in blk_free_queue_rcu()
262 struct request_queue, rcu_head); in blk_free_queue_rcu()
268 static void blk_free_queue(struct request_queue *q) in blk_free_queue()
285 void blk_put_queue(struct request_queue *q) in blk_put_queue()
[all …]
Dblk-pm.c29 void blk_pm_runtime_init(struct request_queue *q, struct device *dev) in blk_pm_runtime_init()
59 int blk_pre_runtime_suspend(struct request_queue *q) in blk_pre_runtime_suspend()
120 void blk_post_runtime_suspend(struct request_queue *q, int err) in blk_post_runtime_suspend()
150 void blk_pre_runtime_resume(struct request_queue *q) in blk_pre_runtime_resume()
174 void blk_post_runtime_resume(struct request_queue *q) in blk_post_runtime_resume()
197 void blk_set_runtime_active(struct request_queue *q) in blk_set_runtime_active()
Dblk-stat.h67 bool blk_stats_alloc_enable(struct request_queue *q);
72 void blk_stat_enable_accounting(struct request_queue *q);
73 void blk_stat_disable_accounting(struct request_queue *q);
100 void blk_stat_add_callback(struct request_queue *q,
112 void blk_stat_remove_callback(struct request_queue *q,
Dblk-mq-sched.c89 struct request_queue *q = hctx->queue; in __blk_mq_do_dispatch_sched()
217 struct request_queue *q = hctx->queue; in blk_mq_do_dispatch_ctx()
321 struct request_queue *q = hctx->queue; in blk_mq_sched_dispatch_requests()
339 bool blk_mq_sched_bio_merge(struct request_queue *q, struct bio *bio, in blk_mq_sched_bio_merge()
375 bool blk_mq_sched_try_insert_merge(struct request_queue *q, struct request *rq, in blk_mq_sched_try_insert_merge()
382 static int blk_mq_sched_alloc_map_and_rqs(struct request_queue *q, in blk_mq_sched_alloc_map_and_rqs()
399 static void blk_mq_exit_sched_shared_tags(struct request_queue *queue) in blk_mq_exit_sched_shared_tags()
406 static void blk_mq_sched_tags_teardown(struct request_queue *q, unsigned int flags) in blk_mq_sched_tags_teardown()
423 static int blk_mq_init_sched_shared_tags(struct request_queue *queue) in blk_mq_init_sched_shared_tags()
443 int blk_mq_init_sched(struct request_queue *q, struct elevator_type *e) in blk_mq_init_sched()
[all …]
Dblk-mq.c53 static int blk_hctx_poll(struct request_queue *q, struct blk_mq_hw_ctx *hctx,
104 unsigned int blk_mq_in_flight(struct request_queue *q, in blk_mq_in_flight()
114 void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part, in blk_mq_in_flight_rw()
124 void blk_freeze_queue_start(struct request_queue *q) in blk_freeze_queue_start()
138 void blk_mq_freeze_queue_wait(struct request_queue *q) in blk_mq_freeze_queue_wait()
144 int blk_mq_freeze_queue_wait_timeout(struct request_queue *q, in blk_mq_freeze_queue_wait_timeout()
157 void blk_freeze_queue(struct request_queue *q) in blk_freeze_queue()
170 void blk_mq_freeze_queue(struct request_queue *q) in blk_mq_freeze_queue()
180 void __blk_mq_unfreeze_queue(struct request_queue *q, bool force_atomic) in __blk_mq_unfreeze_queue()
194 void blk_mq_unfreeze_queue(struct request_queue *q) in blk_mq_unfreeze_queue()
[all …]
Dblk-mq-sysfs.c54 struct request_queue *q; in blk_mq_hw_sysfs_show()
160 struct request_queue *q = hctx->queue; in blk_mq_register_hctx()
192 void blk_mq_sysfs_deinit(struct request_queue *q) in blk_mq_sysfs_deinit()
204 void blk_mq_sysfs_init(struct request_queue *q) in blk_mq_sysfs_init()
221 struct request_queue *q = disk->queue; in blk_mq_sysfs_register()
258 struct request_queue *q = disk->queue; in blk_mq_sysfs_unregister()
273 void blk_mq_sysfs_unregister_hctxs(struct request_queue *q) in blk_mq_sysfs_unregister_hctxs()
289 int blk_mq_sysfs_register_hctxs(struct request_queue *q) in blk_mq_sysfs_register_hctxs()
/linux-6.6.21/include/linux/
Dblk-pm.h7 struct request_queue;
13 extern void blk_pm_runtime_init(struct request_queue *q, struct device *dev);
14 extern int blk_pre_runtime_suspend(struct request_queue *q);
15 extern void blk_post_runtime_suspend(struct request_queue *q, int err);
16 extern void blk_pre_runtime_resume(struct request_queue *q);
17 extern void blk_post_runtime_resume(struct request_queue *q);
18 extern void blk_set_runtime_active(struct request_queue *q);
20 static inline void blk_pm_runtime_init(struct request_queue *q, in blk_pm_runtime_init()
Dblkdev.h29 struct request_queue;
146 struct request_queue *queue;
378 struct request_queue { struct
563 void blk_queue_flag_set(unsigned int flag, struct request_queue *q);
564 void blk_queue_flag_clear(unsigned int flag, struct request_queue *q);
565 bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q);
600 extern void blk_set_pm_only(struct request_queue *q);
601 extern void blk_clear_pm_only(struct request_queue *q);
609 static inline bool queue_is_mq(struct request_queue *q) in queue_is_mq()
615 static inline enum rpm_status queue_rpm_status(struct request_queue *q) in queue_rpm_status()
[all …]
Dblk-mq.h81 struct request_queue *q;
335 struct request_queue *queue;
567 int (*get_budget)(struct request_queue *);
572 void (*put_budget)(struct request_queue *, int);
633 bool (*busy)(struct request_queue *);
698 struct gendisk *blk_mq_alloc_disk_for_queue(struct request_queue *q,
700 struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *);
702 struct request_queue *q);
703 void blk_mq_destroy_queue(struct request_queue *);
715 bool blk_mq_queue_inflight(struct request_queue *q);
[all …]
Dblk-integrity.h42 int blk_rq_map_integrity_sg(struct request_queue *, struct bio *,
44 int blk_rq_count_integrity_sg(struct request_queue *, struct bio *);
63 blk_integrity_queue_supports_integrity(struct request_queue *q) in blk_integrity_queue_supports_integrity()
68 static inline void blk_queue_max_integrity_segments(struct request_queue *q, in blk_queue_max_integrity_segments()
75 queue_max_integrity_segments(const struct request_queue *q) in queue_max_integrity_segments()
118 static inline int blk_rq_count_integrity_sg(struct request_queue *q, in blk_rq_count_integrity_sg()
123 static inline int blk_rq_map_integrity_sg(struct request_queue *q, in blk_rq_map_integrity_sg()
138 blk_integrity_queue_supports_integrity(struct request_queue *q) in blk_integrity_queue_supports_integrity()
153 static inline void blk_queue_max_integrity_segments(struct request_queue *q, in blk_queue_max_integrity_segments()
158 queue_max_integrity_segments(const struct request_queue *q) in queue_max_integrity_segments()
Dblktrace_api.h32 extern void blk_trace_shutdown(struct request_queue *);
63 static inline bool blk_trace_note_message_enabled(struct request_queue *q) in blk_trace_note_message_enabled()
76 extern int blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
79 extern int blk_trace_startstop(struct request_queue *q, int start);
80 extern int blk_trace_remove(struct request_queue *q);
92 static inline int blk_trace_remove(struct request_queue *q) in blk_trace_remove()
Dbsg.h9 struct request_queue;
11 typedef int (bsg_sg_io_fn)(struct request_queue *, struct sg_io_v4 *hdr,
14 struct bsg_device *bsg_register_queue(struct request_queue *q,
/linux-6.6.21/include/scsi/
Dscsi_dh.h66 extern int scsi_dh_activate(struct request_queue *, activate_complete, void *);
67 extern int scsi_dh_attach(struct request_queue *, const char *);
68 extern const char *scsi_dh_attached_handler_name(struct request_queue *, gfp_t);
69 extern int scsi_dh_set_params(struct request_queue *, const char *);
71 static inline int scsi_dh_activate(struct request_queue *req, in scsi_dh_activate()
77 static inline int scsi_dh_attach(struct request_queue *req, const char *name) in scsi_dh_attach()
81 static inline const char *scsi_dh_attached_handler_name(struct request_queue *q, in scsi_dh_attached_handler_name()
86 static inline int scsi_dh_set_params(struct request_queue *req, const char *params) in scsi_dh_set_params()
/linux-6.6.21/drivers/usb/storage/
Dscsiglue.c83 blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1)); in slave_alloc()
107 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
108 blk_queue_max_hw_sectors(sdev->request_queue, in slave_configure()
116 blk_queue_max_hw_sectors(sdev->request_queue, 0x7FFFFF); in slave_configure()
122 blk_queue_max_hw_sectors(sdev->request_queue, 2048); in slave_configure()
129 blk_queue_max_hw_sectors(sdev->request_queue, in slave_configure()
130 min_t(size_t, queue_max_hw_sectors(sdev->request_queue), in slave_configure()
140 blk_queue_bounce_limit(sdev->request_queue, BLK_BOUNCE_HIGH); in slave_configure()
593 return sprintf(buf, "%u\n", queue_max_hw_sectors(sdev->request_queue)); in max_sectors_show()
604 blk_queue_max_hw_sectors(sdev->request_queue, ms); in max_sectors_store()
/linux-6.6.21/drivers/mmc/core/
Dcrypto.h13 struct request_queue;
19 void mmc_crypto_setup_queue(struct request_queue *q, struct mmc_host *host);
29 static inline void mmc_crypto_setup_queue(struct request_queue *q, in mmc_crypto_setup_queue()

12345678