Lines Matching refs:epc
254 static enum c4iw_ep_state state_read(struct c4iw_ep_common *epc) in state_read() argument
258 mutex_lock(&epc->mutex); in state_read()
259 state = epc->state; in state_read()
260 mutex_unlock(&epc->mutex); in state_read()
264 static void __state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new) in __state_set() argument
266 epc->state = new; in __state_set()
269 static void state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new) in state_set() argument
271 mutex_lock(&epc->mutex); in state_set()
272 PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]); in state_set()
273 __state_set(epc, new); in state_set()
274 mutex_unlock(&epc->mutex); in state_set()
280 struct c4iw_ep_common *epc; in alloc_ep() local
282 epc = kzalloc(size, gfp); in alloc_ep()
283 if (epc) { in alloc_ep()
284 kref_init(&epc->kref); in alloc_ep()
285 mutex_init(&epc->mutex); in alloc_ep()
286 c4iw_init_wr_wait(&epc->wr_wait); in alloc_ep()
288 PDBG("%s alloc ep %p\n", __func__, epc); in alloc_ep()
289 return epc; in alloc_ep()