Lines Matching defs:iowait
81 * @iow: the parent iowait structure
90 struct iowait;
94 struct iowait *iow;
123 * the embedded iowait and its containing struct
139 struct iowait {
148 void (*wakeup)(struct iowait *wait, int reason);
149 void (*sdma_drained)(struct iowait *wait);
150 void (*init_priority)(struct iowait *wait);
167 void iowait_set_flag(struct iowait *wait, u32 flag);
168 bool iowait_flag_set(struct iowait *wait, u32 flag);
169 void iowait_clear_flag(struct iowait *wait, u32 flag);
171 void iowait_init(struct iowait *wait, u32 tx_limit,
179 void (*wakeup)(struct iowait *wait, int reason),
180 void (*sdma_drained)(struct iowait *wait),
181 void (*init_priority)(struct iowait *wait));
189 static inline bool iowait_schedule(struct iowait *wait,
197 * @wait: the iowait structure
201 static inline bool iowait_tid_schedule(struct iowait *wait,
210 * @wait: iowait structure
212 * This will delay until the iowait sdmas have
215 static inline void iowait_sdma_drain(struct iowait *wait)
223 * @wait: iowait structure
226 static inline int iowait_sdma_pending(struct iowait *wait)
233 * @wait: iowait structure
235 static inline void iowait_sdma_inc(struct iowait *wait)
242 * @wait: iowait structure
244 static inline void iowait_sdma_add(struct iowait *wait, int count)
251 * @wait: iowait structure
253 static inline int iowait_sdma_dec(struct iowait *wait)
263 * @wait: iowait structure
265 * This will delay until the iowait pios have
268 static inline void iowait_pio_drain(struct iowait *wait)
278 * @wait: iowait structure
281 static inline int iowait_pio_pending(struct iowait *wait)
288 * @wait: iowait structure
290 static inline void iowait_pio_inc(struct iowait *wait)
297 * @wait: iowait structure
299 static inline int iowait_pio_dec(struct iowait *wait)
309 * @wait: iowait structure
313 static inline void iowait_drain_wakeup(struct iowait *wait)
322 * iowait_get_txhead() - get packet off of iowait list
355 static inline u32 iowait_get_all_desc(struct iowait *w)
376 static inline void iowait_update_all_priority(struct iowait *w)
382 static inline void iowait_init_priority(struct iowait *w)
389 static inline void iowait_get_priority(struct iowait *w)
396 * iowait_queue - Put the iowait on a wait queue
398 * @w: the iowait struct
401 * This function is called to insert an iowait struct into a
405 static inline void iowait_queue(bool pkts_sent, struct iowait *w,
409 * To play fair, insert the iowait at the tail of the wait queue if it
428 * @w: the iowait struct
433 static inline void iowait_starve_clear(bool pkts_sent, struct iowait *w)
440 uint iowait_priority_update_top(struct iowait *w,
441 struct iowait *top,
468 * @w: the iowait struct
470 static inline struct iowait_work *iowait_get_tid_work(struct iowait *w)
477 * @w: the iowait struct
479 static inline struct iowait_work *iowait_get_ib_work(struct iowait *w)
485 * iowait_ioww_to_iow - return iowait given iowait_work
488 static inline struct iowait *iowait_ioww_to_iow(struct iowait_work *w)
495 void iowait_cancel_work(struct iowait *w);