Lines Matching refs:prot
33 struct rt_wlan_prot *prot; member
44 struct rt_wlan_prot *prot; in rt_wlan_prot_event_handle() local
50 wlan_prot = wlan->prot; in rt_wlan_prot_event_handle()
52 prot = RT_NULL; in rt_wlan_prot_event_handle()
105 (prot_event_tab[prot_event][i].prot->id == wlan_prot->id)) in rt_wlan_prot_event_handle()
108 prot = prot_event_tab[prot_event][i].prot; in rt_wlan_prot_event_handle()
115 handler(prot, wlan, prot_event); in rt_wlan_prot_event_handle()
164 struct rt_wlan_prot *prot = wlan->prot; in rt_wlan_prot_attach_dev() local
173 if (prot != RT_NULL && in rt_wlan_prot_attach_dev()
174 (rt_strcmp(prot->name, prot_name) == 0)) in rt_wlan_prot_attach_dev()
181 if (prot != RT_NULL) in rt_wlan_prot_attach_dev()
196 wlan->prot = _prot[i]->ops->dev_reg_callback(_prot[i], wlan); in rt_wlan_prot_attach_dev()
219 struct rt_wlan_prot *prot = wlan->prot; in rt_wlan_prot_detach_dev() local
222 if (prot == RT_NULL) in rt_wlan_prot_detach_dev()
231 prot->ops->dev_unreg_callback(prot, wlan); in rt_wlan_prot_detach_dev()
232 wlan->prot = RT_NULL; in rt_wlan_prot_detach_dev()
237 rt_err_t rt_wlan_prot_regisetr(struct rt_wlan_prot *prot) in rt_wlan_prot_regisetr() argument
244 if ((prot == RT_NULL) || in rt_wlan_prot_regisetr()
245 (prot->ops->prot_recv == RT_NULL) || in rt_wlan_prot_regisetr()
246 (prot->ops->dev_reg_callback == RT_NULL)) in rt_wlan_prot_regisetr()
258 prot->id = id; in rt_wlan_prot_regisetr()
259 _prot[i] = prot; in rt_wlan_prot_regisetr()
263 else if (rt_strcmp(_prot[i]->name, prot->name) == 0) in rt_wlan_prot_regisetr()
279 rt_err_t rt_wlan_prot_event_register(struct rt_wlan_prot *prot, rt_wlan_prot_event_t event, rt_wlan… in rt_wlan_prot_event_register() argument
283 if ((prot == RT_NULL) || (handler == RT_NULL)) in rt_wlan_prot_event_register()
293 prot_event_tab[event][i].prot = prot; in rt_wlan_prot_event_register()
301 rt_err_t rt_wlan_prot_event_unregister(struct rt_wlan_prot *prot, rt_wlan_prot_event_t event) in rt_wlan_prot_event_unregister() argument
305 if (prot == RT_NULL) in rt_wlan_prot_event_unregister()
313 (prot_event_tab[event][i].prot == prot)) in rt_wlan_prot_event_unregister()
334 struct rt_wlan_prot *prot = wlan->prot; in rt_wlan_dev_transfer_prot() local
336 if (prot != RT_NULL) in rt_wlan_dev_transfer_prot()
338 return prot->ops->prot_recv(wlan, buff, len); in rt_wlan_dev_transfer_prot()