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