Lines Matching full:ifp

426  * @ifp: ifp to use for iovars (primary).
429 static int brcmf_p2p_set_firmware(struct brcmf_if *ifp, u8 *p2p_mac) in brcmf_p2p_set_firmware() argument
431 struct brcmf_pub *drvr = ifp->drvr; in brcmf_p2p_set_firmware()
434 brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1); in brcmf_p2p_set_firmware()
435 brcmf_fil_iovar_int_set(ifp, "apsta", 1); in brcmf_p2p_set_firmware()
436 brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1); in brcmf_p2p_set_firmware()
443 brcmf_fil_iovar_int_set(ifp, "p2p_disc", 0); in brcmf_p2p_set_firmware()
445 ret = brcmf_fil_iovar_data_set(ifp, "p2p_da_override", p2p_mac, in brcmf_p2p_set_firmware()
465 struct brcmf_if *pri_ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; in brcmf_p2p_generate_bss_mac()
533 * @ifp: low-level interface object.
538 static s32 brcmf_p2p_set_discover_state(struct brcmf_if *ifp, u8 state, in brcmf_p2p_set_discover_state() argument
548 ret = brcmf_fil_bsscfg_data_set(ifp, "p2p_state", &discover_state, in brcmf_p2p_set_discover_state()
568 (void)brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_SCAN, 0, 0); in brcmf_p2p_deinit_discovery()
572 (void)brcmf_fil_iovar_int_set(vif->ifp, "p2p_disc", 0); in brcmf_p2p_deinit_discovery()
605 ret = brcmf_fil_iovar_int_set(vif->ifp, "p2p_disc", 1); in brcmf_p2p_enable_discovery()
611 ret = brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_SCAN, 0, 0); in brcmf_p2p_enable_discovery()
623 ret = brcmf_fil_bsscfg_int_set(vif->ifp, "wsec", AES_ENABLED); in brcmf_p2p_enable_discovery()
699 brcmf_p2p_set_discover_state(vif->ifp, search_state, 0, 0); in brcmf_p2p_escan()
754 ret = brcmf_fil_bsscfg_data_set(vif->ifp, "p2p_scan", memblk, memsize); in brcmf_p2p_escan()
766 * @ifp: interface control.
773 struct brcmf_if *ifp, in brcmf_p2p_run_escan() argument
954 err = brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_LISTEN, in brcmf_p2p_discover_listen()
1006 * @ifp: interfac control.
1011 int brcmf_p2p_notify_listen_complete(struct brcmf_if *ifp, in brcmf_p2p_notify_listen_complete() argument
1015 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_listen_complete()
1029 cfg80211_remain_on_channel_expired(&ifp->vif->wdev, in brcmf_p2p_notify_listen_complete()
1041 * @ifp: interfac control.
1044 void brcmf_p2p_cancel_remain_on_channel(struct brcmf_if *ifp) in brcmf_p2p_cancel_remain_on_channel() argument
1046 if (!ifp) in brcmf_p2p_cancel_remain_on_channel()
1048 brcmf_p2p_set_discover_state(ifp, WL_P2P_DISC_ST_SCAN, 0, 0); in brcmf_p2p_cancel_remain_on_channel()
1049 brcmf_p2p_notify_listen_complete(ifp, NULL, NULL); in brcmf_p2p_cancel_remain_on_channel()
1284 err = brcmf_fil_bsscfg_data_set(vif->ifp, "actframe_abort", &int_val, in brcmf_p2p_abort_action_frame()
1302 struct brcmf_if *ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; in brcmf_p2p_stop_wait_next_action_frame() local
1316 brcmf_notify_escan_complete(cfg, ifp, true, in brcmf_p2p_stop_wait_next_action_frame()
1323 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_stop_wait_next_action_frame()
1340 struct brcmf_if *ifp; in brcmf_p2p_gon_req_collision() local
1354 ifp = p2p->bss_idx[P2PAPI_BSSCFG_DEVICE].vif->ifp; in brcmf_p2p_gon_req_collision()
1355 if (memcmp(mac, ifp->mac_addr, ETH_ALEN) < 0) { in brcmf_p2p_gon_req_collision()
1380 * @ifp: interfac control.
1385 int brcmf_p2p_notify_action_frame_rx(struct brcmf_if *ifp, in brcmf_p2p_notify_action_frame_rx() argument
1389 struct brcmf_pub *drvr = ifp->drvr; in brcmf_p2p_notify_action_frame_rx()
1413 brcmf_dbg(INFO, "ifp->vif->mgmt_rx_reg %04x\n", ifp->vif->mgmt_rx_reg); in brcmf_p2p_notify_action_frame_rx()
1415 if ((ifp->vif->mgmt_rx_reg & BIT(mgmt_type)) == 0) in brcmf_p2p_notify_action_frame_rx()
1439 brcmf_set_mpc(ifp, 1); in brcmf_p2p_notify_action_frame_rx()
1464 memcpy(mgmt_frame->da, ifp->mac_addr, ETH_ALEN); in brcmf_p2p_notify_action_frame_rx()
1465 brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSSID, mgmt_frame->bssid, in brcmf_p2p_notify_action_frame_rx()
1477 wdev = &ifp->vif->wdev; in brcmf_p2p_notify_action_frame_rx()
1488 * @ifp: interfac control.
1493 int brcmf_p2p_notify_action_tx_complete(struct brcmf_if *ifp, in brcmf_p2p_notify_action_tx_complete() argument
1497 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_tx_complete()
1562 err = brcmf_fil_bsscfg_data_set(vif->ifp, "actframe", af_params, in brcmf_p2p_tx_action_frame()
1723 struct brcmf_if *ifp = netdev_priv(ndev); in brcmf_p2p_send_action_frame() local
1816 brcmf_set_mpc(ifp, 0); in brcmf_p2p_send_action_frame()
1844 brcmf_notify_escan_complete(cfg, ifp, true, true); in brcmf_p2p_send_action_frame()
1921 brcmf_set_mpc(ifp, 1); in brcmf_p2p_send_action_frame()
1929 * @ifp: interface pointer for which event was received.
1933 s32 brcmf_p2p_notify_rx_mgmt_p2p_probereq(struct brcmf_if *ifp, in brcmf_p2p_notify_rx_mgmt_p2p_probereq() argument
1937 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1940 struct brcmf_cfg80211_vif *vif = ifp->vif; in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
2009 struct brcmf_if *ifp; in brcmf_p2p_get_current_chanspec() local
2015 ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; in brcmf_p2p_get_current_chanspec()
2017 if (brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSSID, mac_addr, in brcmf_p2p_get_current_chanspec()
2022 if (brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSS_INFO, in brcmf_p2p_get_current_chanspec()
2062 brcmf_notify_escan_complete(cfg, vif->ifp, true, true); in brcmf_p2p_ifchange()
2068 brcmf_set_mpc(vif->ifp, 0); in brcmf_p2p_ifchange()
2080 err = brcmf_fil_iovar_data_set(vif->ifp, "p2p_ifupd", &if_request, in brcmf_p2p_ifchange()
2095 err = brcmf_fil_cmd_int_set(vif->ifp, BRCMF_C_SET_SCB_TIMEOUT, in brcmf_p2p_ifchange()
2102 struct brcmf_if *ifp, u8 ea[ETH_ALEN], in brcmf_p2p_request_p2p_if() argument
2117 err = brcmf_fil_iovar_data_set(ifp, "p2p_ifadd", &if_request, in brcmf_p2p_request_p2p_if()
2127 struct brcmf_if *ifp = netdev_priv(pri_ndev); in brcmf_p2p_disable_p2p_if() local
2130 return brcmf_fil_iovar_data_set(ifp, "p2p_ifdis", addr, ETH_ALEN); in brcmf_p2p_disable_p2p_if()
2137 struct brcmf_if *ifp = netdev_priv(pri_ndev); in brcmf_p2p_release_p2p_if() local
2140 return brcmf_fil_iovar_data_set(ifp, "p2p_ifdel", addr, ETH_ALEN); in brcmf_p2p_release_p2p_if()
2170 pri_ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; in brcmf_p2p_create_p2pdev()
2206 p2p_ifp = p2p_vif->ifp; in brcmf_p2p_create_p2pdev()
2235 struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); in brcmf_p2p_get_conn_idx() local
2237 if (!ifp) in brcmf_p2p_get_conn_idx()
2243 !(brcmf_feat_is_enabled(ifp, BRCMF_FEAT_RSDB))) { in brcmf_p2p_get_conn_idx()
2268 struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); in brcmf_p2p_add_vif() local
2310 err = brcmf_p2p_request_p2p_if(&cfg->p2p, ifp, in brcmf_p2p_add_vif()
2330 ifp = vif->ifp; in brcmf_p2p_add_vif()
2331 if (!ifp) { in brcmf_p2p_add_vif()
2337 strscpy(ifp->ndev->name, name, sizeof(ifp->ndev->name)); in brcmf_p2p_add_vif()
2338 ifp->ndev->name_assign_type = name_assign_type; in brcmf_p2p_add_vif()
2339 err = brcmf_net_attach(ifp, true); in brcmf_p2p_add_vif()
2342 free_netdev(ifp->ndev); in brcmf_p2p_add_vif()
2348 brcmf_fil_iovar_int_set(ifp, "roam_off", 1); in brcmf_p2p_add_vif()
2351 brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCB_TIMEOUT, in brcmf_p2p_add_vif()
2354 return &ifp->vif->wdev; in brcmf_p2p_add_vif()
2395 brcmf_p2p_cancel_remain_on_channel(vif->ifp); in brcmf_p2p_del_vif()
2424 brcmf_remove_interface(vif->ifp, true); in brcmf_p2p_del_vif()
2437 void brcmf_p2p_ifp_removed(struct brcmf_if *ifp, bool locked) in brcmf_p2p_ifp_removed() argument
2443 vif = ifp->vif; in brcmf_p2p_ifp_removed()
2488 (void)brcmf_p2p_set_discover_state(vif->ifp, in brcmf_p2p_stop_device()
2539 brcmf_p2p_cancel_remain_on_channel(vif->ifp); in brcmf_p2p_detach()
2541 brcmf_remove_interface(vif->ifp, false); in brcmf_p2p_detach()