Lines Matching refs:prio
194 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merged() local
195 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merged()
214 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_merged_requests() local
218 dd->per_prio[prio].stats.merged++; in dd_merged_requests()
235 deadline_remove_request(q, &dd->per_prio[prio], next); in dd_merged_requests()
252 static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) in dd_queued() argument
254 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_queued()
323 enum dd_prio prio; in __dd_dispatch_request() local
419 prio = ioprio_class_to_prio[ioprio_class]; in __dd_dispatch_request()
420 dd->per_prio[prio].latest_pos[data_dir] = blk_rq_pos(rq); in __dd_dispatch_request()
421 dd->per_prio[prio].stats.dispatched++; in __dd_dispatch_request()
434 enum dd_prio prio; in dd_dispatch_prio_aged_requests() local
444 for (prio = DD_BE_PRIO; prio <= DD_PRIO_MAX; prio++) { in dd_dispatch_prio_aged_requests()
445 rq = __dd_dispatch_request(dd, &dd->per_prio[prio], in dd_dispatch_prio_aged_requests()
467 enum dd_prio prio; in dd_dispatch_request() local
478 for (prio = 0; prio <= DD_PRIO_MAX; prio++) { in dd_dispatch_request()
479 rq = __dd_dispatch_request(dd, &dd->per_prio[prio], now); in dd_dispatch_request()
480 if (rq || dd_queued(dd, prio)) in dd_dispatch_request()
545 enum dd_prio prio; in dd_exit_sched() local
547 for (prio = 0; prio <= DD_PRIO_MAX; prio++) { in dd_exit_sched()
548 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_exit_sched()
556 queued = dd_queued(dd, prio); in dd_exit_sched()
561 prio, stats->inserted, stats->merged, in dd_exit_sched()
575 enum dd_prio prio; in dd_init_sched() local
588 for (prio = 0; prio <= DD_PRIO_MAX; prio++) { in dd_init_sched()
589 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_init_sched()
626 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merge() local
627 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merge()
682 enum dd_prio prio; in dd_insert_request() local
686 prio = ioprio_class_to_prio[ioprio_class]; in dd_insert_request()
687 per_prio = &dd->per_prio[prio]; in dd_insert_request()
759 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_finish_request() local
760 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_finish_request()
781 enum dd_prio prio; in dd_has_work() local
783 for (prio = 0; prio <= DD_PRIO_MAX; prio++) in dd_has_work()
784 if (dd_has_work_for_prio(&dd->per_prio[prio])) in dd_has_work()
857 #define DEADLINE_DEBUGFS_DDIR_ATTRS(prio, data_dir, name) \ argument
864 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
875 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
901 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
964 static u32 dd_owned_by_driver(struct deadline_data *dd, enum dd_prio prio) in dd_owned_by_driver() argument
966 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_owned_by_driver()
991 #define DEADLINE_DISPATCH_ATTR(prio) \ argument
992 static void *deadline_dispatch##prio##_start(struct seq_file *m, \
998 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1004 static void *deadline_dispatch##prio##_next(struct seq_file *m, \
1009 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1014 static void deadline_dispatch##prio##_stop(struct seq_file *m, void *v) \
1023 static const struct seq_operations deadline_dispatch##prio##_seq_ops = { \
1024 .start = deadline_dispatch##prio##_start, \
1025 .next = deadline_dispatch##prio##_next, \
1026 .stop = deadline_dispatch##prio##_stop, \