Lines Matching refs:epc
240 static enum iwch_ep_state state_read(struct iwch_ep_common *epc)
245 spin_lock_irqsave(&epc->lock, flags);
246 state = epc->state;
247 spin_unlock_irqrestore(&epc->lock, flags);
251 static void __state_set(struct iwch_ep_common *epc, enum iwch_ep_state new)
253 epc->state = new;
256 static void state_set(struct iwch_ep_common *epc, enum iwch_ep_state new)
260 spin_lock_irqsave(&epc->lock, flags);
261 PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]);
262 __state_set(epc, new);
263 spin_unlock_irqrestore(&epc->lock, flags);
269 struct iwch_ep_common *epc;
271 epc = kzalloc(size, gfp);
272 if (epc) {
273 kref_init(&epc->kref);
274 spin_lock_init(&epc->lock);
275 init_waitqueue_head(&epc->waitq);
277 PDBG("%s alloc ep %p\n", __func__, epc);
278 return epc;
2183 struct iwch_ep_common *epc = ctx;
2185 get_ep(epc);