Lines Matching refs:epc
220 static enum c4iw_ep_state state_read(struct c4iw_ep_common *epc)
225 spin_lock_irqsave(&epc->lock, flags);
226 state = epc->state;
227 spin_unlock_irqrestore(&epc->lock, flags);
231 static void __state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new)
233 epc->state = new;
236 static void state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new)
240 spin_lock_irqsave(&epc->lock, flags);
241 PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]);
242 __state_set(epc, new);
243 spin_unlock_irqrestore(&epc->lock, flags);
249 struct c4iw_ep_common *epc;
251 epc = kzalloc(size, gfp);
252 if (epc) {
253 kref_init(&epc->kref);
254 spin_lock_init(&epc->lock);
255 init_waitqueue_head(&epc->waitq);
257 PDBG("%s alloc ep %p\n", __func__, epc);
258 return epc;