Lines Matching refs:prio
205 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merged() local
206 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merged()
225 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_merged_requests() local
229 dd->per_prio[prio].stats.merged++; in dd_merged_requests()
246 deadline_remove_request(q, &dd->per_prio[prio], next); in dd_merged_requests()
267 static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) in dd_queued() argument
269 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_queued()
429 enum dd_prio prio; in __dd_dispatch_request() local
526 prio = ioprio_class_to_prio[ioprio_class]; in __dd_dispatch_request()
527 dd->per_prio[prio].stats.dispatched++; in __dd_dispatch_request()
544 enum dd_prio prio; in dd_dispatch_prio_aged_requests() local
554 for (prio = DD_BE_PRIO; prio <= DD_PRIO_MAX; prio++) { in dd_dispatch_prio_aged_requests()
555 rq = __dd_dispatch_request(dd, &dd->per_prio[prio], in dd_dispatch_prio_aged_requests()
577 enum dd_prio prio; in dd_dispatch_request() local
588 for (prio = 0; prio <= DD_PRIO_MAX; prio++) { in dd_dispatch_request()
589 rq = __dd_dispatch_request(dd, &dd->per_prio[prio], now); in dd_dispatch_request()
590 if (rq || dd_queued(dd, prio)) in dd_dispatch_request()
641 enum dd_prio prio; in dd_exit_sched() local
643 for (prio = 0; prio <= DD_PRIO_MAX; prio++) { in dd_exit_sched()
644 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_exit_sched()
652 queued = dd_queued(dd, prio); in dd_exit_sched()
657 prio, stats->inserted, stats->merged, in dd_exit_sched()
671 enum dd_prio prio; in dd_init_sched() local
684 for (prio = 0; prio <= DD_PRIO_MAX; prio++) { in dd_init_sched()
685 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_init_sched()
723 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merge() local
724 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merge()
779 enum dd_prio prio; in dd_insert_request() local
790 prio = ioprio_class_to_prio[ioprio_class]; in dd_insert_request()
791 per_prio = &dd->per_prio[prio]; in dd_insert_request()
883 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_finish_request() local
884 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_finish_request()
918 enum dd_prio prio; in dd_has_work() local
920 for (prio = 0; prio <= DD_PRIO_MAX; prio++) in dd_has_work()
921 if (dd_has_work_for_prio(&dd->per_prio[prio])) in dd_has_work()
994 #define DEADLINE_DEBUGFS_DDIR_ATTRS(prio, data_dir, name) \ argument
1001 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1012 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1038 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1099 static u32 dd_owned_by_driver(struct deadline_data *dd, enum dd_prio prio) in dd_owned_by_driver() argument
1101 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_owned_by_driver()
1126 #define DEADLINE_DISPATCH_ATTR(prio) \ argument
1127 static void *deadline_dispatch##prio##_start(struct seq_file *m, \
1133 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1139 static void *deadline_dispatch##prio##_next(struct seq_file *m, \
1144 struct dd_per_prio *per_prio = &dd->per_prio[prio]; \
1149 static void deadline_dispatch##prio##_stop(struct seq_file *m, void *v) \
1158 static const struct seq_operations deadline_dispatch##prio##_seq_ops = { \
1159 .start = deadline_dispatch##prio##_start, \
1160 .next = deadline_dispatch##prio##_next, \
1161 .stop = deadline_dispatch##prio##_stop, \