Lines Matching refs:epc
255 static enum c4iw_ep_state state_read(struct c4iw_ep_common *epc) in state_read() argument
259 mutex_lock(&epc->mutex); in state_read()
260 state = epc->state; in state_read()
261 mutex_unlock(&epc->mutex); in state_read()
265 static void __state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new) in __state_set() argument
267 epc->state = new; in __state_set()
270 static void state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new) in state_set() argument
272 mutex_lock(&epc->mutex); in state_set()
273 PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]); in state_set()
274 __state_set(epc, new); in state_set()
275 mutex_unlock(&epc->mutex); in state_set()
281 struct c4iw_ep_common *epc; in alloc_ep() local
283 epc = kzalloc(size, gfp); in alloc_ep()
284 if (epc) { in alloc_ep()
285 kref_init(&epc->kref); in alloc_ep()
286 mutex_init(&epc->mutex); in alloc_ep()
287 c4iw_init_wr_wait(&epc->wr_wait); in alloc_ep()
289 PDBG("%s alloc ep %p\n", __func__, epc); in alloc_ep()
290 return epc; in alloc_ep()