Lines Matching refs:cfg
696 if (p2p->cfg->active_scan) in brcmf_p2p_escan()
715 else if (brcmf_get_vif_state_any(p2p->cfg, BRCMF_VIF_STATUS_CONNECTED)) in brcmf_p2p_escan()
750 set_bit(BRCMF_SCAN_STATUS_BUSY, &p2p->cfg->scan_status); in brcmf_p2p_escan()
767 static s32 brcmf_p2p_run_escan(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_run_escan() argument
772 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_run_escan()
823 chanspecs[i] = channel_to_chanspec(&p2p->cfg->d11inf, in brcmf_p2p_run_escan()
890 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_scan_prep() local
891 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_scan_prep()
913 cfg->escan_info.run = brcmf_p2p_run_escan; in brcmf_p2p_scan_prep()
951 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_discover_listen()
975 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_remain_on_channel() local
976 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_remain_on_channel()
1012 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_listen_complete() local
1013 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_listen_complete()
1083 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1089 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1092 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1095 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_act_frm_search()
1220 bool brcmf_p2p_scan_finding_common_channel(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_scan_finding_common_channel() argument
1224 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_scan_finding_common_channel()
1254 cfg->d11inf.decchspec(&ch); in brcmf_p2p_scan_finding_common_channel()
1272 brcmf_p2p_stop_wait_next_action_frame(struct brcmf_cfg80211_info *cfg) in brcmf_p2p_stop_wait_next_action_frame() argument
1274 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_stop_wait_next_action_frame()
1275 struct brcmf_if *ifp = cfg->escan_info.ifp; in brcmf_p2p_stop_wait_next_action_frame()
1285 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_stop_wait_next_action_frame()
1290 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_stop_wait_next_action_frame()
1305 struct brcmf_cfg80211_info *cfg = p2p->cfg; in brcmf_p2p_gon_req_collision() local
1332 brcmf_p2p_stop_wait_next_action_frame(cfg); in brcmf_p2p_gon_req_collision()
1355 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_frame_rx() local
1356 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_action_frame_rx()
1371 cfg->d11inf.decchspec(&ch); in brcmf_p2p_notify_action_frame_rx()
1415 brcmf_p2p_stop_wait_next_action_frame(cfg); in brcmf_p2p_notify_action_frame_rx()
1457 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_tx_complete() local
1458 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_action_tx_complete()
1477 brcmf_p2p_stop_wait_next_action_frame(cfg); in brcmf_p2p_notify_action_tx_complete()
1550 static s32 brcmf_p2p_pub_af_tx(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_pub_af_tx() argument
1554 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_pub_af_tx()
1647 bool brcmf_p2p_send_action_frame(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_send_action_frame() argument
1651 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_send_action_frame()
1688 if (brcmf_p2p_pub_af_tx(cfg, af_params, &config_af_params)) { in brcmf_p2p_send_action_frame()
1734 if (test_bit(BRCMF_SCAN_STATUS_BUSY, &cfg->scan_status)) in brcmf_p2p_send_action_frame()
1735 brcmf_abort_scanning(cfg); in brcmf_p2p_send_action_frame()
1769 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_send_action_frame()
1852 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_rx_mgmt_p2p_probereq() local
1853 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1868 cfg->d11inf.decchspec(&ch); in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1946 p2p->cfg->d11inf.encchspec(&ch); in brcmf_p2p_get_current_chanspec()
1956 int brcmf_p2p_ifchange(struct brcmf_cfg80211_info *cfg, in brcmf_p2p_ifchange() argument
1959 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_ifchange()
1972 brcmf_notify_escan_complete(cfg, vif->ifp, true, true); in brcmf_p2p_ifchange()
1989 brcmf_cfg80211_arm_vif_event(cfg, vif); in brcmf_p2p_ifchange()
1994 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_ifchange()
1997 err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_CHANGE, in brcmf_p2p_ifchange()
1999 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_ifchange()
2037 struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev); in brcmf_p2p_disable_p2p_if() local
2038 struct net_device *pri_ndev = cfg_to_ndev(cfg); in brcmf_p2p_disable_p2p_if()
2047 struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev); in brcmf_p2p_release_p2p_if() local
2048 struct net_device *pri_ndev = cfg_to_ndev(cfg); in brcmf_p2p_release_p2p_if()
2075 p2p_vif = brcmf_alloc_vif(p2p->cfg, NL80211_IFTYPE_P2P_DEVICE, in brcmf_p2p_create_p2pdev()
2086 brcmf_cfg80211_arm_vif_event(p2p->cfg, p2p_vif); in brcmf_p2p_create_p2pdev()
2094 brcmf_cfg80211_arm_vif_event(p2p->cfg, NULL); in brcmf_p2p_create_p2pdev()
2099 err = brcmf_cfg80211_wait_vif_event_timeout(p2p->cfg, BRCMF_E_IF_ADD, in brcmf_p2p_create_p2pdev()
2101 brcmf_cfg80211_arm_vif_event(p2p->cfg, NULL); in brcmf_p2p_create_p2pdev()
2151 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_add_vif() local
2152 struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); in brcmf_p2p_add_vif()
2157 if (brcmf_cfg80211_vif_event_armed(cfg)) in brcmf_p2p_add_vif()
2170 return brcmf_p2p_create_p2pdev(&cfg->p2p, wiphy, in brcmf_p2p_add_vif()
2176 vif = brcmf_alloc_vif(cfg, type, false); in brcmf_p2p_add_vif()
2179 brcmf_cfg80211_arm_vif_event(cfg, vif); in brcmf_p2p_add_vif()
2181 err = brcmf_p2p_request_p2p_if(&cfg->p2p, ifp, cfg->p2p.int_addr, in brcmf_p2p_add_vif()
2184 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_add_vif()
2189 err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_ADD, in brcmf_p2p_add_vif()
2191 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_add_vif()
2214 cfg->p2p.bss_idx[P2PAPI_BSSCFG_CONNECTION].vif = vif; in brcmf_p2p_add_vif()
2237 struct brcmf_cfg80211_info *cfg = wiphy_priv(wiphy); in brcmf_p2p_del_vif() local
2238 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_del_vif()
2247 brcmf_cfg80211_arm_vif_event(cfg, vif); in brcmf_p2p_del_vif()
2272 wait_for_completion_timeout(&cfg->vif_disabled, in brcmf_p2p_del_vif()
2282 err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_DEL, in brcmf_p2p_del_vif()
2292 brcmf_cfg80211_arm_vif_event(cfg, NULL); in brcmf_p2p_del_vif()
2301 struct brcmf_cfg80211_info *cfg; in brcmf_p2p_ifp_removed() local
2306 cfg = wdev_to_cfg(&vif->wdev); in brcmf_p2p_ifp_removed()
2307 cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE].vif = NULL; in brcmf_p2p_ifp_removed()
2316 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_start_device() local
2317 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_start_device()
2322 mutex_lock(&cfg->usr_sync); in brcmf_p2p_start_device()
2326 mutex_unlock(&cfg->usr_sync); in brcmf_p2p_start_device()
2332 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_stop_device() local
2333 struct brcmf_p2p_info *p2p = &cfg->p2p; in brcmf_p2p_stop_device()
2342 mutex_lock(&cfg->usr_sync); in brcmf_p2p_stop_device()
2346 brcmf_abort_scanning(cfg); in brcmf_p2p_stop_device()
2348 mutex_unlock(&cfg->usr_sync); in brcmf_p2p_stop_device()
2358 s32 brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg, bool p2pdev_forced) in brcmf_p2p_attach() argument
2365 p2p = &cfg->p2p; in brcmf_p2p_attach()
2366 p2p->cfg = cfg; in brcmf_p2p_attach()
2368 pri_ifp = brcmf_get_ifp(cfg->pub, 0); in brcmf_p2p_attach()