Lines Matching refs:code
31 enum brcmf_fweh_event_code code; member
43 enum brcmf_fweh_event_code code; member
62 const char *brcmf_fweh_event_name(enum brcmf_fweh_event_code code) in brcmf_fweh_event_name() argument
66 if (fweh_event_names[i].code == code) in brcmf_fweh_event_name()
72 const char *brcmf_fweh_event_name(enum brcmf_fweh_event_code code) in brcmf_fweh_event_name() argument
97 enum brcmf_fweh_event_code code, in brcmf_fweh_call_event_handler() argument
108 if (fweh->evt_handler[code]) in brcmf_fweh_call_event_handler()
109 err = fweh->evt_handler[code](ifp, emsg, data); in brcmf_fweh_call_event_handler()
111 bphy_err(drvr, "unhandled event %d ignored\n", code); in brcmf_fweh_call_event_handler()
228 brcmf_fweh_event_name(event->code), event->code, in brcmf_fweh_event_worker()
236 emsg.event_code = event->code; in brcmf_fweh_event_worker()
253 if (event->code == BRCMF_E_IF) { in brcmf_fweh_event_worker()
258 if (event->code == BRCMF_E_TDLS_PEER_EVENT) in brcmf_fweh_event_worker()
262 err = brcmf_fweh_call_event_handler(drvr, ifp, event->code, in brcmf_fweh_event_worker()
266 event->code); in brcmf_fweh_event_worker()
322 int brcmf_fweh_register(struct brcmf_pub *drvr, enum brcmf_fweh_event_code code, in brcmf_fweh_register() argument
325 if (drvr->fweh.evt_handler[code]) { in brcmf_fweh_register()
326 bphy_err(drvr, "event code %d already registered\n", code); in brcmf_fweh_register()
329 drvr->fweh.evt_handler[code] = handler; in brcmf_fweh_register()
331 brcmf_fweh_event_name(code)); in brcmf_fweh_register()
342 enum brcmf_fweh_event_code code) in brcmf_fweh_unregister() argument
345 brcmf_fweh_event_name(code)); in brcmf_fweh_unregister()
346 drvr->fweh.evt_handler[code] = NULL; in brcmf_fweh_unregister()
396 enum brcmf_fweh_event_code code; in brcmf_fweh_process_event() local
403 code = get_unaligned_be32(&event_packet->msg.event_type); in brcmf_fweh_process_event()
407 if (code >= BRCMF_E_LAST) in brcmf_fweh_process_event()
410 if (code != BRCMF_E_IF && !fweh->evt_handler[code]) in brcmf_fweh_process_event()
421 event->code = code; in brcmf_fweh_process_event()