Lines Matching refs:epc
239 static enum iwch_ep_state state_read(struct iwch_ep_common *epc) in state_read() argument
244 spin_lock_irqsave(&epc->lock, flags); in state_read()
245 state = epc->state; in state_read()
246 spin_unlock_irqrestore(&epc->lock, flags); in state_read()
250 static void __state_set(struct iwch_ep_common *epc, enum iwch_ep_state new) in __state_set() argument
252 epc->state = new; in __state_set()
255 static void state_set(struct iwch_ep_common *epc, enum iwch_ep_state new) in state_set() argument
259 spin_lock_irqsave(&epc->lock, flags); in state_set()
260 PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]); in state_set()
261 __state_set(epc, new); in state_set()
262 spin_unlock_irqrestore(&epc->lock, flags); in state_set()
268 struct iwch_ep_common *epc; in alloc_ep() local
270 epc = kzalloc(size, gfp); in alloc_ep()
271 if (epc) { in alloc_ep()
272 kref_init(&epc->kref); in alloc_ep()
273 spin_lock_init(&epc->lock); in alloc_ep()
274 init_waitqueue_head(&epc->waitq); in alloc_ep()
276 PDBG("%s alloc ep %p\n", __func__, epc); in alloc_ep()
277 return epc; in alloc_ep()
2205 struct iwch_ep_common *epc = ctx; in sched() local
2207 get_ep(epc); in sched()