Lines Matching refs:rq_qos

26 struct rq_qos {  struct
30 struct rq_qos *next; argument
37 void (*throttle)(struct rq_qos *, struct bio *); argument
38 void (*track)(struct rq_qos *, struct request *, struct bio *);
39 void (*merge)(struct rq_qos *, struct request *, struct bio *);
40 void (*issue)(struct rq_qos *, struct request *);
41 void (*requeue)(struct rq_qos *, struct request *);
42 void (*done)(struct rq_qos *, struct request *);
43 void (*done_bio)(struct rq_qos *, struct bio *);
44 void (*cleanup)(struct rq_qos *, struct bio *);
45 void (*queue_depth_changed)(struct rq_qos *);
46 void (*exit)(struct rq_qos *);
60 static inline struct rq_qos *rq_qos_id(struct request_queue *q, in rq_qos_id()
63 struct rq_qos *rqos; in rq_qos_id()
64 for (rqos = q->rq_qos; rqos; rqos = rqos->next) { in rq_qos_id()
71 static inline struct rq_qos *wbt_rq_qos(struct request_queue *q) in wbt_rq_qos()
76 static inline struct rq_qos *blkcg_rq_qos(struct request_queue *q) in blkcg_rq_qos()
100 static inline void rq_qos_add(struct request_queue *q, struct rq_qos *rqos) in rq_qos_add()
102 rqos->next = q->rq_qos; in rq_qos_add()
103 q->rq_qos = rqos; in rq_qos_add()
109 static inline void rq_qos_del(struct request_queue *q, struct rq_qos *rqos) in rq_qos_del()
111 struct rq_qos **cur; in rq_qos_del()
113 for (cur = &q->rq_qos; *cur; cur = &(*cur)->next) { in rq_qos_del()
134 void __rq_qos_cleanup(struct rq_qos *rqos, struct bio *bio);
135 void __rq_qos_done(struct rq_qos *rqos, struct request *rq);
136 void __rq_qos_issue(struct rq_qos *rqos, struct request *rq);
137 void __rq_qos_requeue(struct rq_qos *rqos, struct request *rq);
138 void __rq_qos_throttle(struct rq_qos *rqos, struct bio *bio);
139 void __rq_qos_track(struct rq_qos *rqos, struct request *rq, struct bio *bio);
140 void __rq_qos_merge(struct rq_qos *rqos, struct request *rq, struct bio *bio);
141 void __rq_qos_done_bio(struct rq_qos *rqos, struct bio *bio);
142 void __rq_qos_queue_depth_changed(struct rq_qos *rqos);
146 if (q->rq_qos) in rq_qos_cleanup()
147 __rq_qos_cleanup(q->rq_qos, bio); in rq_qos_cleanup()
152 if (q->rq_qos) in rq_qos_done()
153 __rq_qos_done(q->rq_qos, rq); in rq_qos_done()
158 if (q->rq_qos) in rq_qos_issue()
159 __rq_qos_issue(q->rq_qos, rq); in rq_qos_issue()
164 if (q->rq_qos) in rq_qos_requeue()
165 __rq_qos_requeue(q->rq_qos, rq); in rq_qos_requeue()
170 if (q->rq_qos) in rq_qos_done_bio()
171 __rq_qos_done_bio(q->rq_qos, bio); in rq_qos_done_bio()
181 if (q->rq_qos) in rq_qos_throttle()
182 __rq_qos_throttle(q->rq_qos, bio); in rq_qos_throttle()
188 if (q->rq_qos) in rq_qos_track()
189 __rq_qos_track(q->rq_qos, rq, bio); in rq_qos_track()
195 if (q->rq_qos) in rq_qos_merge()
196 __rq_qos_merge(q->rq_qos, rq, bio); in rq_qos_merge()
201 if (q->rq_qos) in rq_qos_queue_depth_changed()
202 __rq_qos_queue_depth_changed(q->rq_qos); in rq_qos_queue_depth_changed()