Lines Matching refs:cfg
695 if (p2p->cfg->active_scan) in brcmf_p2p_escan()
714 else if (brcmf_get_vif_state_any(p2p->cfg, BRCMF_VIF_STATUS_CONNECTED)) in brcmf_p2p_escan()
749 set_bit(BRCMF_SCAN_STATUS_BUSY, &p2p->cfg->scan_status); in brcmf_p2p_escan()
766 static s32 brcmf_p2p_run_escan(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_run_escan() argument
771 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_run_escan()
822 chanspecs[i] = channel_to_chanspec(&p2p->cfg->d11inf, in brcmf_p2p_run_escan()
889 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_scan_prep() local
890 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_scan_prep()
912 cfg->escan_info.run = brcmf_p2p_run_escan; in brcmf_p2p_scan_prep()
950 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_discover_listen()
974 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_remain_on_channel() local
975 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_remain_on_channel()
1011 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_listen_complete() local
1012 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_listen_complete()
1082 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1088 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1091 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1094 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1219 bool brcmf_p2p_scan_finding_common_channel(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_scan_finding_common_channel() argument
1223 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_scan_finding_common_channel()
1253 cfg->d11inf.decchspec(&ch); in brcmf_p2p_scan_finding_common_channel()
1271 brcmf_p2p_stop_wait_next_action_frame(struct brcmf_cfg80211_info *cfg) in brcmf_p2p_stop_wait_next_action_frame() argument
1273 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_stop_wait_next_action_frame()
1274 struct brcmf_if *ifp = cfg->escan_info.ifp; in brcmf_p2p_stop_wait_next_action_frame()
1284 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_stop_wait_next_action_frame()
1289 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_stop_wait_next_action_frame()
1304 struct brcmf_cfg80211_info *cfg = p2p->cfg; in brcmf_p2p_gon_req_collision() local
1331 brcmf_p2p_stop_wait_next_action_frame(cfg); in brcmf_p2p_gon_req_collision()
1354 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_frame_rx() local
1355 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_action_frame_rx()
1370 cfg->d11inf.decchspec(&ch); in brcmf_p2p_notify_action_frame_rx()
1414 brcmf_p2p_stop_wait_next_action_frame(cfg); in brcmf_p2p_notify_action_frame_rx()
1456 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_tx_complete() local
1457 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_action_tx_complete()
1476 brcmf_p2p_stop_wait_next_action_frame(cfg); in brcmf_p2p_notify_action_tx_complete()
1549 static s32 brcmf_p2p_pub_af_tx(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_pub_af_tx() argument
1553 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_pub_af_tx()
1646 bool brcmf_p2p_send_action_frame(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_send_action_frame() argument
1650 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_send_action_frame()
1687 if (brcmf_p2p_pub_af_tx(cfg, af_params, &config_af_params)) { in brcmf_p2p_send_action_frame()
1733 if (test_bit(BRCMF_SCAN_STATUS_BUSY, &cfg->scan_status)) in brcmf_p2p_send_action_frame()
1734 brcmf_abort_scanning(cfg); in brcmf_p2p_send_action_frame()
1768 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_send_action_frame()
1851 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_rx_mgmt_p2p_probereq() local
1852 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1867 cfg->d11inf.decchspec(&ch); in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1915 s32 brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg) in brcmf_p2p_attach() argument
1925 p2p = &cfg->p2p; in brcmf_p2p_attach()
1926 p2p->cfg = cfg; in brcmf_p2p_attach()
1928 drvr = cfg->pub; in brcmf_p2p_attach()
1936 p2p_vif = brcmf_alloc_vif(cfg, NL80211_IFTYPE_P2P_DEVICE, in brcmf_p2p_attach()
1948 SET_NETDEV_DEV(p2p_ifp->ndev, wiphy_dev(cfg->wiphy)); in brcmf_p2p_attach()
2044 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_get_current_chanspec()
2054 int brcmf_p2p_ifchange(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_ifchange() argument
2057 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_ifchange()
2070 brcmf_notify_escan_complete(cfg, vif->ifp, true, true); in brcmf_p2p_ifchange()
2087 brcmf_cfg80211_arm_vif_event(cfg, vif); in brcmf_p2p_ifchange()
2092 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_ifchange()
2095 err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_CHANGE, in brcmf_p2p_ifchange()
2097 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_ifchange()
2135 struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev); in brcmf_p2p_disable_p2p_if() local
2136 struct net_device *pri_ndev = cfg_to_ndev(cfg); in brcmf_p2p_disable_p2p_if()
2145 struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev); in brcmf_p2p_release_p2p_if() local
2146 struct net_device *pri_ndev = cfg_to_ndev(cfg); in brcmf_p2p_release_p2p_if()
2173 p2p_vif = brcmf_alloc_vif(p2p->cfg, NL80211_IFTYPE_P2P_DEVICE, in brcmf_p2p_create_p2pdev()
2184 brcmf_cfg80211_arm_vif_event(p2p->cfg, p2p_vif); in brcmf_p2p_create_p2pdev()
2190 brcmf_cfg80211_arm_vif_event(p2p->cfg, NULL); in brcmf_p2p_create_p2pdev()
2195 err = brcmf_cfg80211_wait_vif_event_timeout(p2p->cfg, BRCMF_E_IF_ADD, in brcmf_p2p_create_p2pdev()
2197 brcmf_cfg80211_arm_vif_event(p2p->cfg, NULL); in brcmf_p2p_create_p2pdev()
2259 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_add_vif() local
2260 struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); in brcmf_p2p_add_vif()
2265 if (brcmf_cfg80211_vif_event_armed(cfg)) in brcmf_p2p_add_vif()
2278 return brcmf_p2p_create_p2pdev(&cfg->p2p, wiphy, in brcmf_p2p_add_vif()
2284 vif = brcmf_alloc_vif(cfg, type, false); in brcmf_p2p_add_vif()
2287 brcmf_cfg80211_arm_vif_event(cfg, vif); in brcmf_p2p_add_vif()
2289 err = brcmf_p2p_request_p2p_if(&cfg->p2p, ifp, cfg->p2p.int_addr, in brcmf_p2p_add_vif()
2292 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_add_vif()
2297 err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_ADD, in brcmf_p2p_add_vif()
2299 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_add_vif()
2322 cfg->p2p.bss_idx[P2PAPI_BSSCFG_CONNECTION].vif = vif; in brcmf_p2p_add_vif()
2345 struct brcmf_cfg80211_info *cfg = wiphy_priv(wiphy); in brcmf_p2p_del_vif() local
2346 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_del_vif()
2377 wait_for_completion_timeout(&cfg->vif_disabled, in brcmf_p2p_del_vif()
2382 brcmf_cfg80211_arm_vif_event(cfg, vif); in brcmf_p2p_del_vif()
2386 err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_DEL, in brcmf_p2p_del_vif()
2393 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_del_vif()
2401 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_start_device() local
2402 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_start_device()
2407 mutex_lock(&cfg->usr_sync); in brcmf_p2p_start_device()
2411 mutex_unlock(&cfg->usr_sync); in brcmf_p2p_start_device()
2417 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_stop_device() local
2418 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_stop_device()
2422 mutex_lock(&cfg->usr_sync); in brcmf_p2p_stop_device()
2424 brcmf_abort_scanning(cfg); in brcmf_p2p_stop_device()
2426 mutex_unlock(&cfg->usr_sync); in brcmf_p2p_stop_device()