Lines Matching full:wait
12 void iowait_set_flag(struct iowait *wait, u32 flag) in iowait_set_flag() argument
14 trace_hfi1_iowait_set(wait, flag); in iowait_set_flag()
15 set_bit(flag, &wait->flags); in iowait_set_flag()
18 bool iowait_flag_set(struct iowait *wait, u32 flag) in iowait_flag_set() argument
20 return test_bit(flag, &wait->flags); in iowait_flag_set()
23 inline void iowait_clear_flag(struct iowait *wait, u32 flag) in iowait_clear_flag() argument
25 trace_hfi1_iowait_clear(wait, flag); in iowait_clear_flag()
26 clear_bit(flag, &wait->flags); in iowait_clear_flag()
30 * iowait_init() - initialize wait structure
31 * @wait: wait struct to initialize
41 void iowait_init(struct iowait *wait, u32 tx_limit, in iowait_init() argument
45 struct iowait_work *wait, in iowait_init() argument
49 void (*wakeup)(struct iowait *wait, int reason), in iowait_init() argument
50 void (*sdma_drained)(struct iowait *wait), in iowait_init() argument
51 void (*init_priority)(struct iowait *wait)) in iowait_init() argument
55 wait->count = 0; in iowait_init()
56 INIT_LIST_HEAD(&wait->list); in iowait_init()
57 init_waitqueue_head(&wait->wait_dma); in iowait_init()
58 init_waitqueue_head(&wait->wait_pio); in iowait_init()
59 atomic_set(&wait->sdma_busy, 0); in iowait_init()
60 atomic_set(&wait->pio_busy, 0); in iowait_init()
61 wait->tx_limit = tx_limit; in iowait_init()
62 wait->sleep = sleep; in iowait_init()
63 wait->wakeup = wakeup; in iowait_init()
64 wait->sdma_drained = sdma_drained; in iowait_init()
65 wait->init_priority = init_priority; in iowait_init()
66 wait->flags = 0; in iowait_init()
68 wait->wait[i].iow = wait; in iowait_init()
69 INIT_LIST_HEAD(&wait->wait[i].tx_head); in iowait_init()
71 INIT_WORK(&wait->wait[i].iowork, func); in iowait_init()
73 INIT_WORK(&wait->wait[i].iowork, tidfunc); in iowait_init()
95 if (w == &w->iow->wait[IOWAIT_IB_SE]) { in iowait_set_work_flag()