Lines Matching refs:emsg
34 struct brcmf_event_msg_be emsg; member
98 struct brcmf_event_msg *emsg, in brcmf_fweh_call_event_handler() argument
109 err = fweh->evt_handler[code](ifp, emsg, data); in brcmf_fweh_call_event_handler()
126 struct brcmf_event_msg *emsg, in brcmf_fweh_handle_if_event() argument
158 brcmf_dbg(EVENT, "adding %s (%pM)\n", emsg->ifname, in brcmf_fweh_handle_if_event()
159 emsg->addr); in brcmf_fweh_handle_if_event()
161 is_p2pdev, emsg->ifname, emsg->addr); in brcmf_fweh_handle_if_event()
174 brcmf_fweh_call_event_handler(drvr, ifp, emsg->event_code, emsg, in brcmf_fweh_handle_if_event()
221 struct brcmf_event_msg emsg; in brcmf_fweh_event_worker() local
229 event->emsg.ifidx, event->emsg.bsscfgidx, in brcmf_fweh_event_worker()
230 event->emsg.addr); in brcmf_fweh_event_worker()
231 if (event->emsg.bsscfgidx >= BRCMF_MAX_IFS) { in brcmf_fweh_event_worker()
232 bphy_err(drvr, "invalid bsscfg index: %u\n", event->emsg.bsscfgidx); in brcmf_fweh_event_worker()
237 emsg_be = &event->emsg; in brcmf_fweh_event_worker()
238 emsg.version = be16_to_cpu(emsg_be->version); in brcmf_fweh_event_worker()
239 emsg.flags = be16_to_cpu(emsg_be->flags); in brcmf_fweh_event_worker()
240 emsg.event_code = event->code; in brcmf_fweh_event_worker()
241 emsg.status = be32_to_cpu(emsg_be->status); in brcmf_fweh_event_worker()
242 emsg.reason = be32_to_cpu(emsg_be->reason); in brcmf_fweh_event_worker()
243 emsg.auth_type = be32_to_cpu(emsg_be->auth_type); in brcmf_fweh_event_worker()
244 emsg.datalen = be32_to_cpu(emsg_be->datalen); in brcmf_fweh_event_worker()
245 memcpy(emsg.addr, emsg_be->addr, ETH_ALEN); in brcmf_fweh_event_worker()
246 memcpy(emsg.ifname, emsg_be->ifname, sizeof(emsg.ifname)); in brcmf_fweh_event_worker()
247 emsg.ifidx = emsg_be->ifidx; in brcmf_fweh_event_worker()
248 emsg.bsscfgidx = emsg_be->bsscfgidx; in brcmf_fweh_event_worker()
251 emsg.version, emsg.flags, emsg.status, emsg.reason); in brcmf_fweh_event_worker()
253 min_t(u32, emsg.datalen, 64), in brcmf_fweh_event_worker()
254 "event payload, len=%d\n", emsg.datalen); in brcmf_fweh_event_worker()
258 brcmf_fweh_handle_if_event(drvr, &emsg, event->data); in brcmf_fweh_event_worker()
265 ifp = drvr->iflist[emsg.bsscfgidx]; in brcmf_fweh_event_worker()
267 &emsg, event->data); in brcmf_fweh_event_worker()
429 memcpy(&event->emsg, &event_packet->msg, sizeof(event->emsg)); in brcmf_fweh_process_event()