Lines Matching refs:ifp
96 struct brcmf_if *ifp, in brcmf_fweh_call_event_handler() argument
104 if (ifp) { in brcmf_fweh_call_event_handler()
105 fweh = &ifp->drvr->fweh; in brcmf_fweh_call_event_handler()
109 err = fweh->evt_handler[code](ifp, emsg, data); in brcmf_fweh_call_event_handler()
130 struct brcmf_if *ifp; in brcmf_fweh_handle_if_event() local
155 ifp = drvr->iflist[ifevent->bsscfgidx]; in brcmf_fweh_handle_if_event()
160 ifp = brcmf_add_if(drvr, ifevent->bsscfgidx, ifevent->ifidx, in brcmf_fweh_handle_if_event()
162 if (IS_ERR(ifp)) in brcmf_fweh_handle_if_event()
165 brcmf_proto_add_if(drvr, ifp); in brcmf_fweh_handle_if_event()
167 if (brcmf_net_attach(ifp, false) < 0) in brcmf_fweh_handle_if_event()
171 if (ifp && ifevent->action == BRCMF_E_IF_CHANGE) in brcmf_fweh_handle_if_event()
172 brcmf_proto_reset_if(drvr, ifp); in brcmf_fweh_handle_if_event()
174 brcmf_fweh_call_event_handler(drvr, ifp, emsg->event_code, emsg, in brcmf_fweh_handle_if_event()
177 if (ifp && ifevent->action == BRCMF_E_IF_DEL) { in brcmf_fweh_handle_if_event()
182 brcmf_remove_interface(ifp, false); in brcmf_fweh_handle_if_event()
216 struct brcmf_if *ifp; in brcmf_fweh_event_worker() local
263 ifp = drvr->iflist[0]; in brcmf_fweh_event_worker()
265 ifp = drvr->iflist[emsg.bsscfgidx]; in brcmf_fweh_event_worker()
266 err = brcmf_fweh_call_event_handler(drvr, ifp, event->code, in brcmf_fweh_event_worker()
284 void brcmf_fweh_p2pdev_setup(struct brcmf_if *ifp, bool ongoing) in brcmf_fweh_p2pdev_setup() argument
286 ifp->drvr->fweh.p2pdev_setup_ongoing = ongoing; in brcmf_fweh_p2pdev_setup()
358 int brcmf_fweh_activate_events(struct brcmf_if *ifp) in brcmf_fweh_activate_events() argument
360 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fweh_activate_events()
366 if (ifp->drvr->fweh.evt_handler[i]) { in brcmf_fweh_activate_events()
377 err = brcmf_fil_iovar_data_set(ifp, "event_msgs", in brcmf_fweh_activate_events()