ifp 144 drivers/block/aoe/aoe.h struct aoeif *ifp; /* current aoeif in use */ ifp 245 drivers/block/aoe/aoe.h int is_aoe_netif(struct net_device *ifp); ifp 65 drivers/block/aoe/aoeblk.c struct aoeif *ifp, *e; ifp 74 drivers/block/aoe/aoeblk.c ifp = (*t)->ifs; ifp 75 drivers/block/aoe/aoeblk.c e = ifp + NAOEIFS; ifp 76 drivers/block/aoe/aoeblk.c for (; ifp < e && ifp->nd; ifp++) { ifp 78 drivers/block/aoe/aoeblk.c if (*nnd == ifp->nd) ifp 81 drivers/block/aoe/aoeblk.c *nd++ = ifp->nd; ifp 117 drivers/block/aoe/aoeblk.c struct aoeif *ifp, *ife; ifp 144 drivers/block/aoe/aoeblk.c ifp = (*t)->ifs; ifp 145 drivers/block/aoe/aoeblk.c ife = ifp + ARRAY_SIZE((*t)->ifs); ifp 146 drivers/block/aoe/aoeblk.c for (; ifp->nd && ifp < ife; ifp++) { ifp 147 drivers/block/aoe/aoeblk.c seq_printf(s, "%c%s", c, ifp->nd->name); ifp 133 drivers/block/aoe/aoecmd.c memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); ifp 159 drivers/block/aoe/aoecmd.c struct aoeif *ifp; ifp 161 drivers/block/aoe/aoecmd.c ifp = t->ifp; ifp 162 drivers/block/aoe/aoecmd.c ifp++; ifp 163 drivers/block/aoe/aoecmd.c if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) ifp 164 drivers/block/aoe/aoecmd.c ifp = t->ifs; ifp 165 drivers/block/aoe/aoecmd.c if (ifp->nd == NULL) ifp 167 drivers/block/aoe/aoecmd.c return t->ifp = ifp; ifp 274 drivers/block/aoe/aoecmd.c && t->ifp->nd) { ifp 365 drivers/block/aoe/aoecmd.c skb->dev = t->ifp->nd; ifp 418 drivers/block/aoe/aoecmd.c struct net_device *ifp; ifp 421 drivers/block/aoe/aoecmd.c for_each_netdev_rcu(&init_net, ifp) { ifp 422 drivers/block/aoe/aoecmd.c dev_hold(ifp); ifp 423 drivers/block/aoe/aoecmd.c if (!is_aoe_netif(ifp)) ifp 432 drivers/block/aoe/aoecmd.c skb->dev = ifp; ifp 438 drivers/block/aoe/aoecmd.c memcpy(h->src, ifp->dev_addr, sizeof h->src); ifp 446 drivers/block/aoe/aoecmd.c dev_put(ifp); ifp 485 drivers/block/aoe/aoecmd.c memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); ifp 487 drivers/block/aoe/aoecmd.c skb->dev = t->ifp->nd; ifp 539 drivers/block/aoe/aoecmd.c ejectif(struct aoetgt *t, struct aoeif *ifp) ifp 545 drivers/block/aoe/aoecmd.c nd = ifp->nd; ifp 547 drivers/block/aoe/aoecmd.c n = (e - ifp) * sizeof *ifp; ifp 548 drivers/block/aoe/aoecmd.c memmove(ifp, ifp+1, n); ifp 731 drivers/block/aoe/aoecmd.c struct aoeif *ifp; ifp 801 drivers/block/aoe/aoecmd.c ifp = getif(t, f->skb->dev); ifp 802 drivers/block/aoe/aoecmd.c if (ifp && ++ifp->lost > (t->nframes << 1) ifp 803 drivers/block/aoe/aoecmd.c && (ifp != t->ifs || t->ifs[1].nd)) { ifp 804 drivers/block/aoe/aoecmd.c ejectif(t, ifp); ifp 805 drivers/block/aoe/aoecmd.c ifp = NULL; ifp 1084 drivers/block/aoe/aoecmd.c struct aoeif *ifp; ifp 1142 drivers/block/aoe/aoecmd.c ifp = getif(t, skb->dev); ifp 1143 drivers/block/aoe/aoecmd.c if (ifp) ifp 1144 drivers/block/aoe/aoecmd.c ifp->lost = 0; ifp 1408 drivers/block/aoe/aoecmd.c skb->dev = t->ifp->nd; ifp 1462 drivers/block/aoe/aoecmd.c t->ifp = t->ifs; ifp 503 drivers/block/aoe/aoedev.c struct aoeif *ifp; ifp 505 drivers/block/aoe/aoedev.c for (ifp = t->ifs; ifp < &t->ifs[NAOEIFS]; ++ifp) { ifp 506 drivers/block/aoe/aoedev.c if (!ifp->nd) ifp 508 drivers/block/aoe/aoedev.c dev_put(ifp->nd); ifp 58 drivers/block/aoe/aoenet.c struct net_device *ifp; ifp 62 drivers/block/aoe/aoenet.c ifp = skb->dev; ifp 65 drivers/block/aoe/aoenet.c ifp ? ifp->name : "netif", ifp 73 drivers/block/aoe/aoenet.c is_aoe_netif(struct net_device *ifp) ifp 89 drivers/block/aoe/aoenet.c if (strlen(ifp->name) == len && !strncmp(ifp->name, p, len)) ifp 131 drivers/block/aoe/aoenet.c aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct net_device *orig_dev) ifp 138 drivers/block/aoe/aoenet.c if (dev_net(ifp) != &init_net) ifp 144 drivers/block/aoe/aoenet.c if (!is_aoe_netif(ifp)) ifp 377 drivers/infiniband/core/roce_gid_mgmt.c struct inet6_ifaddr *ifp; ifp 396 drivers/infiniband/core/roce_gid_mgmt.c list_for_each_entry(ifp, &in6_dev->addr_list, if_list) { ifp 403 drivers/infiniband/core/roce_gid_mgmt.c entry->sin6.sin6_addr = ifp->addr; ifp 3266 drivers/infiniband/hw/cxgb4/cm.c struct inet6_ifaddr *ifp; ifp 3269 drivers/infiniband/hw/cxgb4/cm.c list_for_each_entry(ifp, &idev->addr_list, if_list) { ifp 3270 drivers/infiniband/hw/cxgb4/cm.c if (ifp->scope == IFA_LINK && ifp 3271 drivers/infiniband/hw/cxgb4/cm.c !(ifp->flags & banned_flags)) { ifp 3272 drivers/infiniband/hw/cxgb4/cm.c memcpy(addr, &ifp->addr, 16); ifp 1686 drivers/infiniband/hw/i40iw/i40iw_cm.c struct inet6_ifaddr *ifp, *tmp; ifp 1701 drivers/infiniband/hw/i40iw/i40iw_cm.c list_for_each_entry_safe(ifp, tmp, &idev->addr_list, if_list) { ifp 1705 drivers/infiniband/hw/i40iw/i40iw_cm.c &ifp->addr, ifp 1725 drivers/infiniband/hw/i40iw/i40iw_cm.c ifp->addr.in6_u.u6_addr32); ifp 1178 drivers/infiniband/hw/i40iw/i40iw_main.c struct inet6_ifaddr *ifp, *tmp; ifp 1191 drivers/infiniband/hw/i40iw/i40iw_main.c list_for_each_entry_safe(ifp, tmp, &idev->addr_list, if_list) { ifp 1192 drivers/infiniband/hw/i40iw/i40iw_main.c i40iw_pr_info("IP=%pI6, vlan_id=%d, MAC=%pM\n", &ifp->addr, ifp 1195 drivers/infiniband/hw/i40iw/i40iw_main.c ifp->addr.in6_u.u6_addr32); ifp 114 drivers/infiniband/hw/qib/qib_eeprom.c static u8 flash_csum(struct qib_flash *ifp, int adjust) ifp 116 drivers/infiniband/hw/qib/qib_eeprom.c u8 *ip = (u8 *) ifp; ifp 124 drivers/infiniband/hw/qib/qib_eeprom.c len = ifp->if_length; ifp 129 drivers/infiniband/hw/qib/qib_eeprom.c csum -= ifp->if_csum; ifp 132 drivers/infiniband/hw/qib/qib_eeprom.c ifp->if_csum = csum; ifp 147 drivers/infiniband/hw/qib/qib_eeprom.c struct qib_flash *ifp; ifp 197 drivers/infiniband/hw/qib/qib_eeprom.c ifp = (struct qib_flash *)buf; ifp 199 drivers/infiniband/hw/qib/qib_eeprom.c csum = flash_csum(ifp, 0); ifp 200 drivers/infiniband/hw/qib/qib_eeprom.c if (csum != ifp->if_csum) { ifp 203 drivers/infiniband/hw/qib/qib_eeprom.c csum, ifp->if_csum); ifp 206 drivers/infiniband/hw/qib/qib_eeprom.c if (*(__be64 *) ifp->if_guid == cpu_to_be64(0) || ifp 207 drivers/infiniband/hw/qib/qib_eeprom.c *(__be64 *) ifp->if_guid == ~cpu_to_be64(0)) { ifp 210 drivers/infiniband/hw/qib/qib_eeprom.c *(unsigned long long *) ifp->if_guid); ifp 216 drivers/infiniband/hw/qib/qib_eeprom.c if (*(u64 *) ifp->if_guid == 0x100007511000000ULL) ifp 219 drivers/infiniband/hw/qib/qib_eeprom.c *(unsigned long long *) ifp->if_guid); ifp 221 drivers/infiniband/hw/qib/qib_eeprom.c bguid = ifp->if_guid; ifp 232 drivers/infiniband/hw/qib/qib_eeprom.c guid = *(__be64 *) ifp->if_guid; ifp 234 drivers/infiniband/hw/qib/qib_eeprom.c guid = *(__be64 *) ifp->if_guid; ifp 236 drivers/infiniband/hw/qib/qib_eeprom.c dd->nguid = ifp->if_numguid; ifp 242 drivers/infiniband/hw/qib/qib_eeprom.c if ((ifp->if_fversion > 1) && ifp->if_sprefix[0] && ifp 243 drivers/infiniband/hw/qib/qib_eeprom.c ((u8 *) ifp->if_sprefix)[0] != 0xFF) { ifp 250 drivers/infiniband/hw/qib/qib_eeprom.c memcpy(snp, ifp->if_sprefix, sizeof(ifp->if_sprefix)); ifp 251 drivers/infiniband/hw/qib/qib_eeprom.c snp[sizeof(ifp->if_sprefix)] = '\0'; ifp 255 drivers/infiniband/hw/qib/qib_eeprom.c if (len > sizeof(ifp->if_serial)) ifp 256 drivers/infiniband/hw/qib/qib_eeprom.c len = sizeof(ifp->if_serial); ifp 257 drivers/infiniband/hw/qib/qib_eeprom.c memcpy(snp, ifp->if_serial, len); ifp 259 drivers/infiniband/hw/qib/qib_eeprom.c memcpy(dd->serial, ifp->if_serial, sizeof(ifp->if_serial)); ifp 261 drivers/infiniband/hw/qib/qib_eeprom.c if (!strstr(ifp->if_comment, "Tested successfully")) ifp 264 drivers/infiniband/hw/qib/qib_eeprom.c dd->serial, ifp->if_comment); ifp 280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct sk_buff *pktbuf, struct brcmf_if **ifp) ifp 326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c if (ifp != NULL) ifp 327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c *ifp = tmp_if; ifp 334 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct brcmf_if *ifp = brcmf_get_ifp(drvr, ifidx); ifp 340 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c return brcmf_fws_process_skb(ifp, skb); ifp 367 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct brcmf_if *ifp; ifp 374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c if (brcmf_proto_bcdc_hdrpull(bus_if->drvr, false, txp, &ifp)) ifp 377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_txfinalize(ifp, txp, success); ifp 399 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c static void brcmf_proto_bcdc_rxreorder(struct brcmf_if *ifp, ifp 402 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_fws_rxreorder(ifp, skb); ifp 406 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_proto_bcdc_add_if(struct brcmf_if *ifp) ifp 408 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_fws_add_interface(ifp); ifp 412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_proto_bcdc_del_if(struct brcmf_if *ifp) ifp 414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_fws_del_interface(ifp); ifp 418 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_proto_bcdc_reset_if(struct brcmf_if *ifp) ifp 420 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c brcmf_fws_reset_interface(ifp); ifp 102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c static s32 brcmf_btcoex_params_write(struct brcmf_if *ifp, u32 addr, u32 data) ifp 111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c return brcmf_fil_iovar_data_set(ifp, "btc_params", ifp 121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c static s32 brcmf_btcoex_params_read(struct brcmf_if *ifp, u32 addr, u32 *data) ifp 125 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c return brcmf_fil_iovar_int_get(ifp, "btc_params", data); ifp 141 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c struct brcmf_if *ifp = brcmf_get_ifp(btci->cfg->pub, 0); ifp 150 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 50, &btci->reg50); ifp 151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 51, &btci->reg51); ifp 152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 64, &btci->reg64); ifp 153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 65, &btci->reg65); ifp 154 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 71, &btci->reg71); ifp 163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 50, BRCMF_BT_DHCP_REG50); ifp 164 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 51, BRCMF_BT_DHCP_REG51); ifp 165 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 64, BRCMF_BT_DHCP_REG64); ifp 166 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 65, BRCMF_BT_DHCP_REG65); ifp 167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 71, BRCMF_BT_DHCP_REG71); ifp 172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 50, btci->reg50); ifp 173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 51, btci->reg51); ifp 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 64, btci->reg64); ifp 175 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 65, btci->reg65); ifp 176 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 71, btci->reg71); ifp 195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c static bool brcmf_btcoex_is_sco_active(struct brcmf_if *ifp) ifp 204 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c ioc_res = brcmf_btcoex_params_read(ifp, 27, ¶m27); ifp 234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c struct brcmf_if *ifp = btci->vif->ifp; ifp 238 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 66, &btci->reg66); ifp 239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 41, &btci->reg41); ifp 240 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_read(ifp, 68, &btci->reg68); ifp 254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c struct brcmf_if *ifp; ifp 258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c ifp = btci->vif->ifp; ifp 259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 66, btci->reg66); ifp 260 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 41, btci->reg41); ifp 261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 68, btci->reg68); ifp 410 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c struct brcmf_if *ifp = btci->vif->ifp; ifp 414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 66, BRCMF_BT_DHCP_REG66); ifp 415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 41, BRCMF_BT_DHCP_REG41); ifp 416 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c brcmf_btcoex_params_write(ifp, 68, BRCMF_BT_DHCP_REG68); ifp 456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c struct brcmf_if *ifp = brcmf_get_ifp(cfg->pub, 0); ifp 464 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c if (brcmf_btcoex_is_sco_active(ifp)) { ifp 466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c send_key_to_dongle(struct brcmf_if *ifp, struct brcmf_wsec_key *key) ifp 468 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 474 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_netdev_wait_pend8021x(ifp); ifp 476 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "wsec_key", &key_le, ifp 488 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 491 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = vif->ifp; ifp 496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, ifp 499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, ifp 518 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static int brcmf_cfg80211_request_ap_if(struct brcmf_if *ifp) ifp 520 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 526 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c bsscfgidx = brcmf_get_first_free_bsscfgidx(ifp->drvr); ifp 534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "bsscfg:ssid", &mbss_ssid_le, ifp 554 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); ifp 570 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_cfg80211_request_ap_if(ifp); ifp 587 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = vif->ifp; ifp 588 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!ifp) { ifp 594 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); ifp 595 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_net_attach(ifp, true); ifp 598 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c free_netdev(ifp->ndev); ifp 602 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return &ifp->vif->wdev; ifp 669 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_scan_config_mpc(struct brcmf_if *ifp, int mpc) ifp 671 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_quirk_enabled(ifp, BRCMF_FEAT_QUIRK_NEED_MPC)) ifp 672 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_mpc(ifp, mpc); ifp 675 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c void brcmf_set_mpc(struct brcmf_if *ifp, int mpc) ifp 677 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (check_vif_up(ifp->vif)) { ifp 681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "mpc", mpc); ifp 691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp, bool aborted, ifp 726 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SCAN, ifp 732 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_scan_config_mpc(ifp, 1); ifp 773 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 778 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_arm_vif_event(cfg, ifp->vif); ifp 780 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "interface_remove", NULL, 0); ifp 795 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_remove_interface(ifp, true); ifp 817 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg->escan_info.ifp == netdev_priv(ndev)) ifp 851 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 852 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_vif *vif = ifp->vif; ifp 858 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d, type=%d\n", ifp->bsscfgidx, ifp 926 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_INFRA, infra); ifp 1016 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_run_escan(struct brcmf_cfg80211_info *cfg, struct brcmf_if *ifp, ifp 1046 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "escan", params, params_size); ifp 1060 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_do_escan(struct brcmf_if *ifp, struct cfg80211_scan_request *request) ifp 1062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 1068 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c escan->ifp = ifp; ifp 1072 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_scan_config_mpc(ifp, 0); ifp 1078 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = escan->run(cfg, ifp, request); ifp 1080 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_scan_config_mpc(ifp, 1); ifp 1136 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_do_escan(vif->ifp, request); ifp 1155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1159 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "rtsthresh", rts_threshold); ifp 1168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "fragthresh", ifp 1182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, cmd, retry); ifp 1199 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1203 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 1263 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static int brcmf_set_pmk(struct brcmf_if *ifp, const u8 *pmk_data, u16 pmk_len) ifp 1265 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1276 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_WSEC_PMK, ifp 1297 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(vif->ifp, ifp 1314 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_pmk(vif->ifp, NULL, 0); ifp 1325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 1337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 1347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c set_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state); ifp 1390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "wsec", wsec); ifp 1402 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_BCNPRD, bcnprd); ifp 1446 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_CHANNEL, ifp 1458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SSID, ifp 1467 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c clear_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state); ifp 1475 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) { ifp 1486 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_link_down(ifp->vif, WLAN_REASON_DEAUTH_LEAVING); ifp 1487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_net_setcarrier(ifp, false); ifp 1497 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1511 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wpa_auth", val); ifp 1524 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1526 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1546 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "auth", val); ifp 1560 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1562 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1620 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wsec", wsec); ifp 1636 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1637 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 1638 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MFP)) ifp 1759 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1760 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1808 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, &key); ifp 1815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "auth", val); ifp 1823 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c enum nl80211_auth_type brcmf_war_auth_type(struct brcmf_if *ifp, ifp 1827 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_feat_is_quirk_enabled(ifp, BRCMF_FEAT_QUIRK_AUTO_AUTH)) { ifp 1834 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_set_join_pref(struct brcmf_if *ifp, ifp 1837 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1846 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_ASSOC_PREFER, WLC_BAND_AUTO); ifp 1850 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_c_set_joinpref_default(ifp); ifp 1873 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "join_pref", join_pref_params, ifp 1884 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1885 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 1887 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 1900 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 1908 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY].vif) { ifp 1927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_data_set(ifp, "wpaie", ie, ie_len); ifp 1930 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_vif_set_mgmt_ie(ifp->vif, BRCMF_VNDR_IE_ASSOCREQ_FLAG, ifp 1937 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c set_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state); ifp 1958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c sme->auth_type = brcmf_war_auth_type(ifp, sme->auth_type); ifp 1994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "sup_wpa", 1); ifp 2002 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_pmk(ifp, sme->crypto.psk, ifp 2062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_join_pref(ifp, &sme->bss_select); ifp 2064 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "join", ext_join_params, ifp 2088 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SSID, ifp 2095 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c clear_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state); ifp 2105 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 2112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c clear_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state); ifp 2116 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c clear_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state); ifp 2121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_DISASSOC, ifp 2136 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_RADIO, disable); ifp 2172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "qtxpower", qdbm); ifp 2195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(vif->ifp, "qtxpower", &qdbm); ifp 2211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 2219 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_get(ifp, "wsec", &wsec); ifp 2231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, ifp 2245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2260 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key = &ifp->vif->profile.key[key_idx]; ifp 2272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, key); ifp 2284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2295 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key = &ifp->vif->profile.key[key_idx]; ifp 2342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!brcmf_is_apmode(ifp->vif)) { ifp 2368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, key); ifp 2372 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_get(ifp, "wsec", &wsec); ifp 2378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wsec", wsec); ifp 2397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 2406 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2411 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_get(ifp, "wsec", &wsec); ifp 2449 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2453 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MFP)) ifp 2462 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_reconfigure_wep(struct brcmf_if *ifp) ifp 2464 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 2471 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key = &ifp->vif->profile.key[key_idx]; ifp 2479 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, key); ifp 2484 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_get(ifp, "wsec", &wsec); ifp 2490 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wsec", wsec); ifp 2516 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_fill_bss_param(struct brcmf_if *ifp, struct station_info *si) ifp 2518 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 2531 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSS_INFO, buf, ifp 2553 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_get_station_ibss(struct brcmf_if *ifp, ifp 2556 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 2564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_get(ifp, BRCMF_C_GET_RATE, &rate); ifp 2573 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_RSSI, &scbval, ifp 2583 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_GET_PKTCNTS, &pktcnt, ifp 2606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2619 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 2622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_is_ibssmode(ifp->vif)) ifp 2623 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_cfg80211_get_station_ibss(ifp, sinfo); ifp 2627 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "tdls_sta_info", ifp 2632 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "sta_info", ifp 2653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fill_bss_param(ifp, sinfo); ifp 2700 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state)) { ifp 2702 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_RSSI, ifp 2726 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2734 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_ASSOCLIST, ifp 2758 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 2771 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) { ifp 2779 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->vif->wdev.iftype == NL80211_IFTYPE_P2P_CLIENT) { ifp 2785 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PM, pm); ifp 2980 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp) ifp 2990 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_is_ibssmode(ifp->vif)) ifp 2994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSS_INFO, ifp 3017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "dtim_assoc", &var); ifp 3036 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_escan_complete(cfg, escan->ifp, true, true); ifp 3049 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_escan_complete(cfg, cfg->escan_info.ifp, true, true); ifp 3104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_escan_handler(struct brcmf_if *ifp, ifp 3107 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 3126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->bsscfgidx); ifp 3207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_escan_complete(cfg, ifp, aborted, false); ifp 3284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static int brcmf_start_internal_escan(struct brcmf_if *ifp, u32 fwmap, ifp 3287 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 3301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_do_escan(ifp, request); ifp 3339 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_sched_scan_results(struct brcmf_if *ifp, ifp 3342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 3414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_start_internal_escan(ifp, bucket_map, request); ifp 3431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3449 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_pno_start_sched_scan(ifp, req); ifp 3456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3459 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_pno_stop_sched_scan(ifp, reqid); ifp 3461 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_escan_complete(cfg, ifp, true, true); ifp 3475 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_config_wowl_pattern(struct brcmf_if *ifp, u8 cmd[4], ifp 3507 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ret = brcmf_fil_iovar_data_set(ifp, "wowl_pattern", buf, bufsize); ifp 3514 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_wowl_nd_results(struct brcmf_if *ifp, const struct brcmf_event_msg *e, ifp 3517 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 3564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_report_wowl_wakeind(struct wiphy *wiphy, struct brcmf_if *ifp) ifp 3575 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "wowl_wakeind", &wake_ind_le, ifp 3630 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_report_wowlan_wakeup(&ifp->vif->wdev, wakeup, GFP_KERNEL); ifp 3635 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_report_wowl_wakeind(struct wiphy *wiphy, struct brcmf_if *ifp) ifp 3645 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3650 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_report_wowl_wakeind(wiphy, ifp); ifp 3651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "wowl_clear", 0); ifp 3652 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_config_wowl_pattern(ifp, "clr", NULL, 0, NULL, 0); ifp 3653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL_ARP_ND)) ifp 3654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_arp_nd_offload(ifp, true); ifp 3655 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PM, ifp 3659 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_sched_scan_stop(cfg->wiphy, ifp->ndev, 0); ifp 3670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp, ifp 3679 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL_ARP_ND)) ifp 3680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_arp_nd_offload(ifp, false); ifp 3681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_get(ifp, BRCMF_C_GET_PM, &cfg->wowl.pre_pmmode); ifp 3682 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PM, PM_MAX); ifp 3692 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_config_wowl_pattern(ifp, "add", ifp 3700 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_sched_scan_start(cfg->wiphy, ifp->ndev, ifp 3713 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!test_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state)) ifp 3717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_data_set(ifp, "wowl_wakeind", &wowl_wakeind, ifp 3719 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "wowl", wowl_config); ifp 3720 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "wowl_activate", 1); ifp 3730 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3738 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 3742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_PNO)) ifp 3766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_mpc(ifp, 1); ifp 3770 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_wowl(cfg, ifp, wowl); ifp 3781 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_update_pmklist(struct brcmf_cfg80211_info *cfg, struct brcmf_if *ifp) ifp 3795 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "pmkid_info", pmk_list, ifp 3806 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3813 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 3838 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_update_pmklist(cfg, ifp); ifp 3849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3856 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 3879 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_update_pmklist(cfg, ifp); ifp 3890 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 3894 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 3898 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_update_pmklist(cfg, ifp); ifp 3905 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_configure_opensecurity(struct brcmf_if *ifp) ifp 3907 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 3912 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "auth", 0); ifp 3918 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wsec", 0); ifp 3924 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_is_ibssmode(ifp->vif)) ifp 3928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wpa_auth", wpa_val); ifp 3946 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_wpaie(struct brcmf_if *ifp, ifp 3950 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 4127 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wme_bss_disable", ifp 4138 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MFP) && ifp 4140 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "bip", ifp 4153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "auth", auth); ifp 4159 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wsec", wsec); ifp 4167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MFP)) { ifp 4168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "mfp", mfp); ifp 4175 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(ifp, "wpa_auth", wpa_auth); ifp 4260 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 4280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = vif->ifp; ifp 4281 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c drvr = ifp->drvr; ifp 4284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dbg(TRACE, "bsscfgidx %d, pktflag : 0x%02X\n", ifp->bsscfgidx, ifp 4405 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "vndr_ie", iovar_ie_buf, ifp 4436 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = vif->ifp->drvr; ifp 4466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 4489 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c dev_role = ifp->vif->wdev.iftype; ifp 4490 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c mbss = ifp->vif->mbss; ifp 4493 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_fil_cmd_int_get(ifp, BRCMF_C_GET_REGULATORY, ifp 4494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->is_11d)) { ifp 4523 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_mpc(ifp, 0); ifp 4524 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_arp_nd_offload(ifp, false); ifp 4539 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_configure_wpaie(ifp, wpa_ie, false); ifp 4548 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_configure_wpaie(ifp, tmp_ie, true); ifp 4554 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_opensecurity(ifp); ifp 4559 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if ((supports_11d) && (is_11d != ifp->vif->is_11d)) { ifp 4560 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_REGULATORY, ifp 4569 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_BCNPRD, ifp 4578 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_DTIMPRD, ifp 4588 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ((ifp->ifidx == 0) || ifp 4589 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c !brcmf_feat_is_enabled(ifp, BRCMF_FEAT_RSDB))) { ifp 4590 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1); ifp 4596 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "apsta", 0); ifp 4599 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_INFRA, 1); ifp 4604 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c } else if (WARN_ON(supports_11d && (is_11d != ifp->vif->is_11d))) { ifp 4612 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if ((brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS)) && (!mbss)) ifp 4613 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "mbss", 1); ifp 4615 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_AP, 1); ifp 4625 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "chanspec", chanspec); ifp 4632 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1); ifp 4640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_reconfigure_wep(ifp); ifp 4646 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SSID, ifp 4654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "closednet", 1); ifp 4663 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "chanspec", chanspec); ifp 4669 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_data_set(ifp, "ssid", &ssid_le, ifp 4675 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c bss_enable.bsscfgidx = cpu_to_le32(ifp->bsscfgidx); ifp 4677 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "bss", &bss_enable, ifp 4689 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_config_ap_mgmt_ie(ifp->vif, &settings->beacon); ifp 4690 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c set_bit(BRCMF_VIF_STATUS_AP_CREATED, &ifp->vif->sme_state); ifp 4691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_net_setcarrier(ifp, true); ifp 4695 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_mpc(ifp, 1); ifp 4696 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_arp_nd_offload(ifp, true); ifp 4704 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 4712 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->vif->wdev.iftype == NL80211_IFTYPE_AP) { ifp 4717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->vif->mbss) { ifp 4718 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1); ifp 4723 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->bsscfgidx == 0) ifp 4724 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "closednet", 0); ifp 4727 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SSID, ifp 4731 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1); ifp 4734 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_AP, 0); ifp 4737 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS)) ifp 4738 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(ifp, "mbss", 0); ifp 4739 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_REGULATORY, ifp 4740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->vif->is_11d); ifp 4742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1); ifp 4746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_vif_clear_mgmt_ies(ifp->vif); ifp 4748 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c bss_enable.bsscfgidx = cpu_to_le32(ifp->bsscfgidx); ifp 4750 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "bss", &bss_enable, ifp 4755 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_mpc(ifp, 1); ifp 4756 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_arp_nd_offload(ifp, true); ifp 4757 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c clear_bit(BRCMF_VIF_STATUS_AP_CREATED, &ifp->vif->sme_state); ifp 4758 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_net_setcarrier(ifp, false); ifp 4767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 4772 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_config_ap_mgmt_ie(ifp->vif, info); ifp 4784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 4792 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE].vif) ifp 4793 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; ifp 4794 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!check_vif_up(ifp->vif)) ifp 4799 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON, ifp 4815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 4829 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SCB_AUTHORIZE, ifp 4832 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SCB_DEAUTHORIZE, ifp 4941 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_get(vif->ifp, BRCMF_C_GET_CHANNEL, ifp 4986 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_p2p_cancel_remain_on_channel(vif->ifp); ifp 5086 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_tdls_peer_event(struct brcmf_if *ifp, ifp 5095 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_proto_add_tdls_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); ifp 5099 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_proto_delete_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); ifp 5133 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 5141 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ifp 5147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ret = brcmf_fil_iovar_data_set(ifp, "tdls_endpoint", ifp 5163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 5169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ifp 5170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_vif_set_mgmt_ie(ifp->vif, BRCMF_VNDR_IE_ASSOCREQ_FLAG, ifp 5187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 5191 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dbg(TRACE, "Enter, bssidx=%d\n", ifp->bsscfgidx); ifp 5198 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ret = brcmf_fil_iovar_data_set(ifp, "gtk_key_info", >k_le, ifp 5210 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 5215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(dev); ifp 5216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (WARN_ON(ifp->vif->profile.use_fwsup != BRCMF_PROFILE_FWSUP_1X)) ifp 5222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_set_pmk(ifp, conf->pmk, conf->pmk_len); ifp 5228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 5231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(dev); ifp 5232 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (WARN_ON(ifp->vif->profile.use_fwsup != BRCMF_PROFILE_FWSUP_1X)) ifp 5235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_set_pmk(ifp, NULL, 0); ifp 5340 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 5342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ifp 5343 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c vif = ifp->vif; ifp 5431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp) ifp 5442 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "assoc_info", ifp 5453 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "assoc_req_ies", ifp 5471 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "assoc_resp_ies", ifp 5499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 5500 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 5514 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_get_assoc_ies(cfg, ifp); ifp 5516 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_update_bss_info(cfg, ifp); ifp 5526 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSS_INFO, ifp 5557 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c set_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state); ifp 5567 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 5568 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 5575 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state)) { ifp 5578 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_get_assoc_ies(cfg, ifp); ifp 5579 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_update_bss_info(cfg, ifp); ifp 5581 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state); ifp 5646 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_connect_status(struct brcmf_if *ifp, ifp 5649 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 5650 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = ifp->ndev; ifp 5651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; ifp 5659 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_proto_delete_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); ifp 5662 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_is_apmode(ifp->vif)) { ifp 5664 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c } else if (brcmf_is_linkup(ifp->vif, e)) { ifp 5666 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_is_ibssmode(ifp->vif)) { ifp 5672 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state); ifp 5674 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state); ifp 5677 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_net_setcarrier(ifp, true); ifp 5680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!brcmf_is_ibssmode(ifp->vif)) { ifp 5682 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_link_down(ifp->vif, ifp 5687 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_net_setcarrier(ifp, false); ifp 5690 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_is_ibssmode(ifp->vif)) ifp 5692 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state); ifp 5701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_roaming_status(struct brcmf_if *ifp, ifp 5704 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 5710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c &ifp->vif->sme_state)) { ifp 5711 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_roaming_done(cfg, ifp->ndev, e); ifp 5713 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_connect_done(cfg, ifp->ndev, e, true); ifp 5714 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_net_setcarrier(ifp, true); ifp 5722 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_mic_status(struct brcmf_if *ifp, ifp 5733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_michael_mic_failure(ifp->ndev, (u8 *)&e->addr, key_type, -1, ifp 5739 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_notify_vif_event(struct brcmf_if *ifp, ifp 5742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 5763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->vif = vif; ifp 5764 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c vif->ifp = ifp; ifp 5765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->ndev) { ifp 5766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c vif->wdev.netdev = ifp->ndev; ifp 5767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->ndev->ieee80211_ptr = &vif->wdev; ifp 5768 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c SET_NETDEV_DEV(ifp->ndev, wiphy_dev(cfg->wiphy)); ifp 5912 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_dongle_roam(struct brcmf_if *ifp) ifp 5914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 5921 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->drvr->settings->roamoff) ifp 5925 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "bcn_timeout", bcn_timeout); ifp 5935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->drvr->settings->roamoff ? "Off" : "On"); ifp 5936 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "roam_off", ifp 5937 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->drvr->settings->roamoff); ifp 5945 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_ROAM_TRIGGER, ifp 5954 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_ROAM_DELTA, ifp 5966 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dongle_scantime(struct brcmf_if *ifp) ifp 5968 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 5971 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCAN_CHANNEL_TIME, ifp 5977 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCAN_UNASSOC_TIME, ifp 5984 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCAN_PASSIVE_TIME, ifp 6021 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); ifp 6039 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "chanspecs", pbuf, ifp 6125 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_get(ifp, "per_chan_info", ifp 6147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); ifp 6160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "bw_cap", &val); ifp 6166 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "bw_cap", &band_bwcap, ifp 6171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "mimo_bw_cap", val); ifp 6190 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "chanspecs", pbuf, ifp 6222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_get_bwcap(struct brcmf_if *ifp, u32 bw_cap[]) ifp 6224 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 6229 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "bw_cap", &band); ifp 6233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "bw_cap", &band); ifp 6243 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "mimo_bw_cap", &mimo_bwcap); ifp 6336 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); ifp 6350 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c (void)brcmf_fil_iovar_int_get(ifp, "vhtmode", &vhtmode); ifp 6351 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "nmode", &nmode); ifp 6355 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_get_bwcap(ifp, bw_cap); ifp 6361 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(ifp, "rxchain", &rxchain); ifp 6378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c (void)brcmf_fil_iovar_int_get(ifp, "txstreams", &txstreams); ifp 6379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c (void)brcmf_fil_iovar_int_get(ifp, "txbf_bfe_cap", ifp 6381 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c (void)brcmf_fil_iovar_int_get(ifp, "txbf_bfr_cap", ifp 6469 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static int brcmf_setup_ifmodes(struct wiphy *wiphy, struct brcmf_if *ifp) ifp 6478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c mbss = brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS); ifp 6479 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c p2p = brcmf_feat_is_enabled(ifp, BRCMF_FEAT_P2P); ifp 6498 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MCHAN)) ifp 6576 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void brcmf_wiphy_wowl_params(struct wiphy *wiphy, struct brcmf_if *ifp) ifp 6591 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_PNO)) { ifp 6592 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL_ND)) { ifp 6598 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL_GTK)) { ifp 6607 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp) ifp 6609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_pub *drvr = ifp->drvr; ifp 6622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_setup_ifmodes(wiphy, ifp); ifp 6647 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MFP)) ifp 6658 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_TDLS)) ifp 6660 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!ifp->drvr->settings->roamoff) ifp 6662 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_FWSUP)) { ifp 6670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_PNO)) { ifp 6671 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c gscan = brcmf_feat_is_enabled(ifp, BRCMF_FEAT_GSCAN); ifp 6678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL)) ifp 6679 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_wiphy_wowl_params(wiphy, ifp); ifp 6680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BANDLIST, &bandlist, ifp 6726 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_feat_is_enabled(ifp, BRCMF_FEAT_DOT11H)) ifp 6740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 6749 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ifp 6752 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 0); ifp 6754 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dongle_scantime(ifp); ifp 6757 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PM, power_mode); ifp 6763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_dongle_roam(ifp); ifp 6771 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_configure_arp_nd_offload(ifp, true); ifp 6773 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_FAKEFRAG, 1); ifp 6786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 __brcmf_cfg80211_up(struct brcmf_if *ifp) ifp 6788 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c set_bit(BRCMF_VIF_STATUS_READY, &ifp->vif->sme_state); ifp 6790 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_config_dongle(ifp->drvr->config); ifp 6793 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 __brcmf_cfg80211_down(struct brcmf_if *ifp) ifp 6795 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 6801 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (check_vif_up(ifp->vif)) { ifp 6802 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_link_down(ifp->vif, WLAN_REASON_UNSPECIFIED); ifp 6812 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c clear_bit(BRCMF_VIF_STATUS_READY, &ifp->vif->sme_state); ifp 6819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 6820 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 6824 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = __brcmf_cfg80211_up(ifp); ifp 6832 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 6833 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 6837 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = __brcmf_cfg80211_down(ifp); ifp 6843 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c enum nl80211_iftype brcmf_cfg80211_get_iftype(struct brcmf_if *ifp) ifp 6845 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct wireless_dev *wdev = &ifp->vif->wdev; ifp 6955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = brcmf_get_ifp(cfg->pub, 0); ifp 6976 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_get(ifp, "country", &ccreq, sizeof(ccreq)); ifp 6982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_translate_country_code(ifp->drvr, req->alpha2, &ccreq); ifp 6986 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_data_set(ifp, "country", &ccreq, sizeof(ccreq)); ifp 7028 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp; ifp 7053 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ifp 7054 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c vif->ifp = ifp; ifp 7065 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->vif = vif; ifp 7068 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_int_get(ifp, BRCMF_C_GET_VERSION, &io_type); ifp 7081 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_setup_wiphy(wiphy, ifp); ifp 7099 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL_GTK)) ifp 7120 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "obss_coex", ifp 7126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fweh_activate_events(ifp); ifp 7151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_TDLS)) { ifp 7152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_set(ifp, "tdls_enable", 1); ifp 7163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fweh_activate_events(ifp); ifp 7170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_SCAN_RANDOM_MAC)) { ifp 7190 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->vif = NULL; ifp 181 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_if *ifp; ifp 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_if *ifp; ifp 217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h s32 (*run)(struct brcmf_cfg80211_info *cfg, struct brcmf_if *ifp, ifp 373 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_if *ifp = netdev_priv(nd); ifp 374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h return &ifp->vif->profile; ifp 379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_if *ifp = netdev_priv(ndev); ifp 380 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h return ifp->vif; ifp 396 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h enum nl80211_iftype brcmf_cfg80211_get_iftype(struct brcmf_if *ifp); ifp 415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_if *ifp, bool aborted, ifp 80 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c void brcmf_c_set_joinpref_default(struct brcmf_if *ifp) ifp 82 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c struct brcmf_pub *drvr = ifp->drvr; ifp 96 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_set(ifp, "join_pref", join_pref_params, ifp 102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c static int brcmf_c_download(struct brcmf_if *ifp, u16 flag, ifp 115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_set(ifp, "clmload", dload_buf, len); ifp 120 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c static int brcmf_c_process_clm_blob(struct brcmf_if *ifp) ifp 122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c struct brcmf_pub *drvr = ifp->drvr; ifp 167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_c_download(ifp, dl_flag, chunk_buf, chunk_len); ifp 179 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_int_get(ifp, "clmload_status", &status); ifp 193 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c int brcmf_c_preinit_dcmds(struct brcmf_if *ifp) ifp 195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c struct brcmf_pub *drvr = ifp->drvr; ifp 206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_get(ifp, "cur_etheraddr", ifp->mac_addr, ifp 207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c sizeof(ifp->mac_addr)); ifp 212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c memcpy(ifp->drvr->wiphy->perm_addr, ifp->drvr->mac, ETH_ALEN); ifp 213 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c memcpy(ifp->drvr->mac, ifp->mac_addr, sizeof(ifp->drvr->mac)); ifp 215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c bus = ifp->drvr->bus_if; ifp 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri = &ifp->drvr->revinfo; ifp 218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_REVINFO, ifp 253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_c_process_clm_blob(ifp); ifp 261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_get(ifp, "ver", buf, sizeof(buf)); ifp 275 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c strlcpy(ifp->drvr->fwver, ptr, sizeof(ifp->drvr->fwver)); ifp 279 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_get(ifp, "clmver", buf, sizeof(buf)); ifp 285 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c memcpy(ifp->drvr->clmver, clmver, sizeof(ifp->drvr->clmver)); ifp 296 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_int_set(ifp, "mpc", 1); ifp 302 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c brcmf_c_set_joinpref_default(ifp); ifp 305 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_get(ifp, "event_msgs", eventmask, ifp 312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_iovar_data_set(ifp, "event_msgs", eventmask, ifp 320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCAN_CHANNEL_TIME, ifp 329 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCAN_UNASSOC_TIME, ifp 338 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c (void)brcmf_fil_iovar_int_set(ifp, "txbf", 1); ifp 58 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h void brcmf_c_set_joinpref_default(struct brcmf_if *ifp); ifp 66 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h int brcmf_c_preinit_dcmds(struct brcmf_if *ifp); ifp 65 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c char *brcmf_ifname(struct brcmf_if *ifp) ifp 67 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp) ifp 70 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev) ifp 71 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return ifp->ndev->name; ifp 78 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 86 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = NULL; ifp 89 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = drvr->iflist[bsscfgidx]; ifp 91 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return ifp; ifp 94 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_configure_arp_nd_offload(struct brcmf_if *ifp, bool enable) ifp 106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_int_set(ifp, "arp_ol", mode); ifp 111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_int_set(ifp, "arpoe", enable); ifp 121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_int_set(ifp, "ndoe", enable); ifp 133 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = container_of(work, struct brcmf_if, ifp 135 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 144 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx); ifp 146 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ifp 171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_data_set(ifp, "mcast_list", buf, buflen); ifp 184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_int_set(ifp, "allmulti", cmd_value); ifp 190 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PROMISC, cmd_value); ifp 194 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_configure_arp_nd_offload(ifp, !cmd_value); ifp 200 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = container_of(work, struct brcmf_if, ifp 202 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_data_set(ifp, "nd_hostip_clear", NULL, 0); ifp 212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c for (i = 0; i < ifp->ipv6addr_idx; i++) { ifp 213 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_data_set(ifp, "nd_hostip", ifp 214 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c &ifp->ipv6_addr_tbl[i], ifp 228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx); ifp 235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_data_set(ifp, "cur_etheraddr", sa->sa_data, ifp 241 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ifp->mac_addr, sa->sa_data, ETH_ALEN); ifp 242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ifp->ndev->dev_addr, ifp->mac_addr, ETH_ALEN); ifp 249 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 251 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c schedule_work(&ifp->multicast_work); ifp 289 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 294 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(DATA, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx); ifp 327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_ifname(ifp), head_delta); ifp 333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_ifname(ifp)); ifp 349 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c atomic_inc(&ifp->pend_8021x_cnt); ifp 355 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_proto_tx_queue_data(drvr, ifp->ifidx, skb); ifp 357 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_txfinalize(ifp, skb, false); ifp 371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_txflowblock_if(struct brcmf_if *ifp, ifp 376 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp || !ifp->ndev) ifp 380 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->bsscfgidx, ifp->netif_stop, reason, state); ifp 382 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c spin_lock_irqsave(&ifp->netif_stop_lock, flags); ifp 384 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp->netif_stop) ifp 385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ifp->ndev); ifp 386 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->netif_stop |= reason; ifp 388 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->netif_stop &= ~reason; ifp 389 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp->netif_stop) ifp 390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_wake_queue(ifp->ndev); ifp 392 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c spin_unlock_irqrestore(&ifp->netif_stop_lock, flags); ifp 395 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_netif_rx(struct brcmf_if *ifp, struct sk_buff *skb) ifp 401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp->drvr->settings->iapp && brcmf_skb_is_iapp(skb)) { ifp 407 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.multicast++; ifp 409 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!(ifp->ndev->flags & IFF_UP)) { ifp 414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.rx_bytes += skb->len; ifp 415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.rx_packets++; ifp 428 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_netif_mon_rx(struct brcmf_if *ifp, struct sk_buff *skb) ifp 430 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MONITOR_FMT_RADIOTAP)) { ifp 432 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c } else if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MONITOR_FMT_HW_RX_HDR)) { ifp 469 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c skb->dev = ifp->ndev; ifp 474 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_netif_rx(ifp, skb); ifp 478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if **ifp) ifp 483 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_proto_hdrpull(drvr, true, skb, ifp); ifp 485 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ret || !(*ifp) || !(*ifp)->ndev) { ifp 486 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ret != -ENODATA && *ifp) ifp 487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c (*ifp)->ndev->stats.rx_errors++; ifp 492 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c skb->protocol = eth_type_trans(skb, (*ifp)->ndev); ifp 498 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 504 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (brcmf_rx_hdrpull(drvr, skb, &ifp)) ifp 508 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_proto_rxreorder(ifp, skb); ifp 512 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_fweh_process_skb(ifp->drvr, skb, ifp 515 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_netif_rx(ifp, skb); ifp 521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 527 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (brcmf_rx_hdrpull(drvr, skb, &ifp)) ifp 530 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_fweh_process_skb(ifp->drvr, skb, 0); ifp 534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_txfinalize(struct brcmf_if *ifp, struct sk_buff *txp, bool success) ifp 543 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c atomic_dec(&ifp->pend_8021x_cnt); ifp 544 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (waitqueue_active(&ifp->pend_8021x_wait)) ifp 545 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c wake_up(&ifp->pend_8021x_wait); ifp 549 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.tx_errors++; ifp 557 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 558 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 576 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 578 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx); ifp 582 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->drvr->bus_if->state == BRCMF_BUS_UP) ifp 583 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_fil_iovar_data_set(ifp, "arp_hostip_clear", NULL, 0); ifp 585 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_setcarrier(ifp, false); ifp 592 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 593 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 597 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx); ifp 605 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c atomic_set(&ifp->pend_8021x_cnt, 0); ifp 608 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (brcmf_fil_iovar_int_get(ifp, "toe_ol", &toe_ol) >= 0 ifp 632 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked) ifp 634 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 638 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d mac=%pM\n", ifp->bsscfgidx, ifp 639 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->mac_addr); ifp 640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ifp 649 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN); ifp 652 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c INIT_WORK(&ifp->multicast_work, _brcmf_set_multicast_list); ifp 653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c INIT_WORK(&ifp->ndoffload_work, _brcmf_update_ndtable); ifp 669 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c drvr->iflist[ifp->bsscfgidx] = NULL; ifp 687 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_net_setcarrier(struct brcmf_if *ifp, bool on) ifp 691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d carrier=%d\n", ifp->bsscfgidx, ifp 694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ifp 695 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_txflowblock_if(ifp, BRCMF_NETIF_STOP_REASON_DISCONNECTED, !on); ifp 735 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_net_p2p_attach(struct brcmf_if *ifp) ifp 737 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d mac=%pM\n", ifp->bsscfgidx, ifp 741 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->mac_addr); ifp 742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ifp 747 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN); ifp 759 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->drvr->iflist[ifp->bsscfgidx] = NULL; ifp 767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 772 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = drvr->iflist[bsscfgidx]; ifp 777 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp) { ifp 780 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->name); ifp 781 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ifp->ndev); ifp 782 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(ifp->ndev, false); ifp 786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->name); ifp 794 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = kzalloc(sizeof(*ifp), GFP_KERNEL); ifp 795 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp) ifp 800 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = alloc_netdev(sizeof(*ifp), is_p2pdev ? "p2p%d" : name, ifp 806 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = netdev_priv(ndev); ifp 807 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev = ndev; ifp 813 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->drvr = drvr; ifp 814 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c drvr->iflist[bsscfgidx] = ifp; ifp 815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ifidx = ifidx; ifp 816 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->bsscfgidx = bsscfgidx; ifp 818 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c init_waitqueue_head(&ifp->pend_8021x_wait); ifp 819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c spin_lock_init(&ifp->netif_stop_lock); ifp 822 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ifp->mac_addr, mac_addr, ETH_ALEN); ifp 825 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c current->pid, name, ifp->mac_addr); ifp 827 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return ifp; ifp 833 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 836 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = drvr->iflist[bsscfgidx]; ifp 837 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp) { ifp 842 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ifidx); ifp 843 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifidx = ifp->ifidx; ifp 845 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev) { ifp 847 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev->netdev_ops == &brcmf_netdev_ops_pri) { ifp 849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_netdev_stop(ifp->ndev); ifp 853 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ifp->ndev); ifp 856 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev->netdev_ops == &brcmf_netdev_ops_pri) { ifp 857 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c cancel_work_sync(&ifp->multicast_work); ifp 858 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c cancel_work_sync(&ifp->ndoffload_work); ifp 860 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(ifp->ndev, rtnl_locked); ifp 869 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_p2p_ifp_removed(ifp, rtnl_locked); ifp 870 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c kfree(ifp); ifp 878 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_remove_interface(struct brcmf_if *ifp, bool rtnl_locked) ifp 880 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp || WARN_ON(ifp->drvr->iflist[ifp->bsscfgidx] != ifp)) ifp 882 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "Enter, bsscfgidx=%d, ifidx=%d\n", ifp->bsscfgidx, ifp 883 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ifidx); ifp 884 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_proto_del_if(ifp->drvr, ifp); ifp 885 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_del_if(ifp->drvr, ifp->bsscfgidx, rtnl_locked); ifp 888 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_psm_watchdog_notify(struct brcmf_if *ifp, ifp 892 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 895 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "enter: bsscfgidx=%d\n", ifp->bsscfgidx); ifp 899 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_debug_create_memdump(ifp->drvr->bus_if, data, ifp 916 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 923 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = drvr->iflist[idx]; ifp 924 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp && ifp->ndev == ndev) ifp 931 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_int_get(ifp, "arpoe", &val); ifp 936 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_int_get(ifp, "arp_version", &val); ifp 940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = drvr->iflist[0]; ifp 943 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_data_get(ifp, "arp_hostip", addr_table, ifp 960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_data_set(ifp, "arp_hostip", ifp 972 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_data_set(ifp, "arp_hostip_clear", ifp 982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_fil_iovar_data_set(ifp, "arp_hostip", ifp 1006 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 1011 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = drvr->iflist[0]; ifp 1012 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp) ifp 1014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev != ifa->idev->dev) ifp 1017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c table = ifp->ipv6_addr_tbl; ifp 1025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ipv6addr_idx < NDOL_MAX_ENTRIES) { ifp 1026 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c table[ifp->ipv6addr_idx++] = ifa->addr; ifp 1036 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c for (; i < ifp->ipv6addr_idx - 1; i++) ifp 1039 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ipv6addr_idx--; ifp 1046 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c schedule_work(&ifp->ndoffload_work); ifp 1116 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp; ifp 1122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = brcmf_add_if(drvr, 0, 0, false, "wlan%d", NULL); ifp 1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (IS_ERR(ifp)) ifp 1124 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return PTR_ERR(ifp); ifp 1137 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_c_preinit_dcmds(ifp); ifp 1147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_proto_add_if(drvr, ifp); ifp 1156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ret = brcmf_net_attach(ifp, false); ifp 1201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(ifp->ndev, false); ifp 1389 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = bus_if->drvr->iflist[0]; ifp 1391 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return brcmf_fil_iovar_data_set(ifp, name, data, len); ifp 1394 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_get_pend_8021x_cnt(struct brcmf_if *ifp) ifp 1396 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return atomic_read(&ifp->pend_8021x_cnt); ifp 1399 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c int brcmf_netdev_wait_pend8021x(struct brcmf_if *ifp) ifp 1401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = ifp->drvr; ifp 1404 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = wait_event_timeout(ifp->pend_8021x_wait, ifp 1405 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c !brcmf_get_pend_8021x_cnt(ifp), ifp 198 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h int brcmf_netdev_wait_pend8021x(struct brcmf_if *ifp); ifp 201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h char *brcmf_ifname(struct brcmf_if *ifp); ifp 203 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_configure_arp_nd_offload(struct brcmf_if *ifp, bool enable); ifp 204 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked); ifp 207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_remove_interface(struct brcmf_if *ifp, bool rtnl_locked); ifp 208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_txflowblock_if(struct brcmf_if *ifp, ifp 210 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_txfinalize(struct brcmf_if *ifp, struct sk_buff *txp, bool success); ifp 211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_netif_rx(struct brcmf_if *ifp, struct sk_buff *skb); ifp 212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_netif_mon_rx(struct brcmf_if *ifp, struct sk_buff *skb); ifp 213 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h void brcmf_net_setcarrier(struct brcmf_if *ifp, bool on); ifp 133 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c static void brcmf_feat_iovar_int_get(struct brcmf_if *ifp, ifp 140 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->fwil_fwerr = true; ifp 142 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c err = brcmf_fil_iovar_int_get(ifp, name, &data); ifp 145 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= BIT(id); ifp 151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->fwil_fwerr = false; ifp 154 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c static void brcmf_feat_iovar_data_set(struct brcmf_if *ifp, ifp 161 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->fwil_fwerr = true; ifp 163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c err = brcmf_fil_iovar_data_set(ifp, name, data, len); ifp 166 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= BIT(id); ifp 172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->fwil_fwerr = false; ifp 176 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c static void brcmf_feat_firmware_capabilities(struct brcmf_if *ifp) ifp 178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c struct brcmf_pub *drvr = ifp->drvr; ifp 183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c err = brcmf_fil_iovar_data_get(ifp, "cap", caps, sizeof(caps)); ifp 196 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= BIT(id); ifp 211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); ifp 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c err = brcmf_fil_iovar_data_get(ifp, "cap", caps, sizeof(caps)); ifp 239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); ifp 245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_firmware_capabilities(ifp); ifp 249 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_data_set(ifp, BRCMF_FEAT_GSCAN, ifp 252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_PNO, "pfn"); ifp 254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_WOWL, "wowl"); ifp 255 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL)) { ifp 256 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c err = brcmf_fil_iovar_int_get(ifp, "wowl_cap", &wowl_cap); ifp 258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= BIT(BRCMF_FEAT_WOWL_ARP_ND); ifp 260 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= ifp 263 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= ifp 271 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags &= ~BIT(BRCMF_FEAT_MBSS); ifp 276 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_RSDB, "rsdb_mode"); ifp 277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_TDLS, "tdls_enable"); ifp 278 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_MFP, "mfp"); ifp 281 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c err = brcmf_fil_iovar_data_get(ifp, "pfn_macaddr", &pfn_mac, ifp 284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags |= BIT(BRCMF_FEAT_SCAN_RANDOM_MAC); ifp 288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags, ifp 290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c ifp->drvr->feat_flags &= ~drvr->settings->feature_disable; ifp 292 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_FWSUP, "sup_wpa"); ifp 316 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c bool brcmf_feat_is_enabled(struct brcmf_if *ifp, enum brcmf_feat_id id) ifp 318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c return (ifp->drvr->feat_flags & BIT(id)); ifp 321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c bool brcmf_feat_is_quirk_enabled(struct brcmf_if *ifp, ifp 324 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c return (ifp->drvr->chip_quirks & BIT(quirk)); ifp 104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.h bool brcmf_feat_is_enabled(struct brcmf_if *ifp, enum brcmf_feat_id id); ifp 114 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.h bool brcmf_feat_is_quirk_enabled(struct brcmf_if *ifp, ifp 184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c struct brcmf_if *ifp; ifp 220 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c ifp = brcmf_get_ifp(drvr, ifidx); ifp 221 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c brcmf_txflowblock_if(ifp, BRCMF_NETIF_STOP_REASON_FLOW, blocked); ifp 231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c struct brcmf_if *ifp; ifp 241 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c ifp = brcmf_get_ifp(bus_if->drvr, ifidx); ifp 251 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c brcmf_txfinalize(ifp, skb, false); ifp 95 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c struct brcmf_if *ifp, ifp 103 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c if (ifp) { ifp 104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c fweh = &ifp->drvr->fweh; ifp 108 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c err = fweh->evt_handler[code](ifp, emsg, data); ifp 129 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c struct brcmf_if *ifp; ifp 155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ifp = drvr->iflist[ifevent->bsscfgidx]; ifp 160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ifp = brcmf_add_if(drvr, ifevent->bsscfgidx, ifevent->ifidx, ifp 162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c if (IS_ERR(ifp)) ifp 165 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c brcmf_proto_add_if(drvr, ifp); ifp 167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c if (brcmf_net_attach(ifp, false) < 0) ifp 171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c if (ifp && ifevent->action == BRCMF_E_IF_CHANGE) ifp 172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c brcmf_proto_reset_if(drvr, ifp); ifp 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c err = brcmf_fweh_call_event_handler(drvr, ifp, emsg->event_code, emsg, ifp 177 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c if (ifp && ifevent->action == BRCMF_E_IF_DEL) { ifp 182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c brcmf_remove_interface(ifp, false); ifp 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c struct brcmf_if *ifp; ifp 259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ifp = drvr->iflist[0]; ifp 261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ifp = drvr->iflist[emsg.bsscfgidx]; ifp 262 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c err = brcmf_fweh_call_event_handler(drvr, ifp, event->code, ifp 280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c void brcmf_fweh_p2pdev_setup(struct brcmf_if *ifp, bool ongoing) ifp 282 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ifp->drvr->fweh.p2pdev_setup_ongoing = ongoing; ifp 352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c int brcmf_fweh_activate_events(struct brcmf_if *ifp) ifp 354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c struct brcmf_pub *drvr = ifp->drvr; ifp 360 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c if (ifp->drvr->fweh.evt_handler[i]) { ifp 371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c err = brcmf_fil_iovar_data_set(ifp, "event_msgs", ifp 286 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h typedef int (*brcmf_fweh_handler_t)(struct brcmf_if *ifp, ifp 304 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h int (*evt_handler[BRCMF_E_LAST])(struct brcmf_if *ifp, ifp 314 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h int (*handler)(struct brcmf_if *ifp, ifp 319 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h int brcmf_fweh_activate_events(struct brcmf_if *ifp); ifp 323 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h void brcmf_fweh_p2pdev_setup(struct brcmf_if *ifp, bool ongoing); ifp 96 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_cmd_data(struct brcmf_if *ifp, u32 cmd, void *data, u32 len, bool set) ifp 98 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c struct brcmf_pub *drvr = ifp->drvr; ifp 109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_proto_set_dcmd(drvr, ifp->ifidx, cmd, ifp 112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, ifp 122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c if (ifp->fwil_fwerr) ifp 129 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) ifp 133 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_lock(&ifp->drvr->proto_block); ifp 135 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); ifp 139 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, cmd, data, len, true); ifp 140 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_unlock(&ifp->drvr->proto_block); ifp 146 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) ifp 150 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_lock(&ifp->drvr->proto_block); ifp 151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, cmd, data, len, false); ifp 153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); ifp 157 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_unlock(&ifp->drvr->proto_block); ifp 164 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data) ifp 169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_lock(&ifp->drvr->proto_block); ifp 170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, data); ifp 171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, cmd, &data_le, sizeof(data_le), true); ifp 172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_unlock(&ifp->drvr->proto_block); ifp 178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data) ifp 183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_lock(&ifp->drvr->proto_block); ifp 184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, cmd, &data_le, sizeof(data_le), false); ifp 185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c mutex_unlock(&ifp->drvr->proto_block); ifp 187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, *data); ifp 214 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, const void *data, ifp 217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c struct brcmf_pub *drvr = ifp->drvr; ifp 223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d\n", ifp->ifidx, name, len); ifp 230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, BRCMF_C_SET_VAR, drvr->proto_buf, ifp 242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data, ifp 245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c struct brcmf_pub *drvr = ifp->drvr; ifp 254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, BRCMF_C_GET_VAR, drvr->proto_buf, ifp 263 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d\n", ifp->ifidx, name, len); ifp 272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data) ifp 276 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c return brcmf_fil_iovar_data_set(ifp, name, &data_le, sizeof(data_le)); ifp 280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data) ifp 285 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_iovar_data_get(ifp, name, &data_le, sizeof(data_le)); ifp 337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, ifp 340 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c struct brcmf_pub *drvr = ifp->drvr; ifp 346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d\n", ifp->ifidx, ifp 347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c ifp->bsscfgidx, name, len); ifp 351 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c buflen = brcmf_create_bsscfg(ifp->bsscfgidx, name, data, len, ifp 354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, BRCMF_C_SET_VAR, drvr->proto_buf, ifp 366 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, ifp 369 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c struct brcmf_pub *drvr = ifp->drvr; ifp 375 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c buflen = brcmf_create_bsscfg(ifp->bsscfgidx, name, data, len, ifp 378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_cmd_data(ifp, BRCMF_C_GET_VAR, drvr->proto_buf, ifp 386 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d\n", ifp->ifidx, ifp 387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c ifp->bsscfgidx, name, len); ifp 397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, char *name, u32 data) ifp 401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c return brcmf_fil_bsscfg_data_set(ifp, name, &data_le, ifp 406 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, char *name, u32 *data) ifp 411 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c err = brcmf_fil_bsscfg_data_get(ifp, name, &data_le, ifp 80 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); ifp 81 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); ifp 82 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data); ifp 83 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data); ifp 85 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, const void *data, ifp 87 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data, ifp 89 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data); ifp 90 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data); ifp 92 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data, ifp 94 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data, ifp 96 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, char *name, u32 data); ifp 97 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h s32 brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, char *name, u32 *data); ifp 765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_macdesc_find(struct brcmf_fws_info *fws, struct brcmf_if *ifp, u8 *da) ifp 776 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (multicast && ifp->fws_desc) { ifp 777 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c entry = ifp->fws_desc; ifp 783 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c entry = ifp->fws_desc; ifp 980 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_if *ifp = brcmf_get_ifp(fws->drvr, if_id); ifp 982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (WARN_ON(!ifp)) ifp 985 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if ((ifp->netif_stop & BRCMF_NETIF_STOP_REASON_FWS_FC) && ifp 987 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_txflowblock_if(ifp, ifp 989 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!(ifp->netif_stop & BRCMF_NETIF_STOP_REASON_FWS_FC) && ifp 992 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_txflowblock_if(ifp, BRCMF_NETIF_STOP_REASON_FWS_FC, true); ifp 1462 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_if *ifp; ifp 1513 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ret = brcmf_proto_hdrpull(fws->drvr, false, skb, &ifp); ifp 1522 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_txfinalize(ifp, skb, true); ifp 1606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c static int brcmf_fws_notify_credit_map(struct brcmf_if *ifp, ifp 1610 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_pub *drvr = ifp->drvr; ifp 1640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c static int brcmf_fws_notify_bcmc_credit_support(struct brcmf_if *ifp, ifp 1644 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_fws_info *fws = drvr_to_fws(ifp->drvr); ifp 1678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c void brcmf_fws_rxreorder(struct brcmf_if *ifp, struct sk_buff *pkt) ifp 1680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_pub *drvr = ifp->drvr; ifp 1696 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_netif_rx(ifp, pkt); ifp 1700 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c rfi = ifp->drvr->reorder_flows[flow_id]; ifp 1708 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_netif_rx(ifp, pkt); ifp 1717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp->drvr->reorder_flows[flow_id] = NULL; ifp 1733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_netif_rx(ifp, pkt); ifp 1737 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp->drvr->reorder_flows[flow_id] = rfi; ifp 1847 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_netif_rx(ifp, pkt); ifp 1851 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb) ifp 1854 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_fws_info *fws = drvr_to_fws(ifp->drvr); ifp 1864 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp->ifidx, skb->len, siglen); ifp 2117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int brcmf_fws_process_skb(struct brcmf_if *ifp, struct sk_buff *skb) ifp 2119 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_pub *drvr = ifp->drvr; ifp 2132 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_skb_if_flags_set_field(skb, INDEX, ifp->ifidx); ifp 2141 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c skcb->mac = brcmf_fws_macdesc_find(fws, ifp, eh->h_dest); ifp 2149 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_txfinalize(ifp, skb, false); ifp 2157 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c void brcmf_fws_reset_interface(struct brcmf_if *ifp) ifp 2159 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_fws_mac_descriptor *entry = ifp->fws_desc; ifp 2161 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_dbg(TRACE, "enter: bsscfgidx=%d\n", ifp->bsscfgidx); ifp 2165 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_macdesc_init(entry, ifp->mac_addr, ifp->ifidx); ifp 2168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c void brcmf_fws_add_interface(struct brcmf_if *ifp) ifp 2170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_fws_info *fws = drvr_to_fws(ifp->drvr); ifp 2173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!ifp->ndev || !brcmf_fws_queue_skbs(fws)) ifp 2176 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c entry = &fws->desc.iface[ifp->ifidx]; ifp 2177 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp->fws_desc = entry; ifp 2178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_macdesc_init(entry, ifp->mac_addr, ifp->ifidx); ifp 2185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c void brcmf_fws_del_interface(struct brcmf_if *ifp) ifp 2187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_fws_mac_descriptor *entry = ifp->fws_desc; ifp 2188 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_fws_info *fws = drvr_to_fws(ifp->drvr); ifp 2194 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp->fws_desc = NULL; ifp 2196 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_macdesc_cleanup(fws, &fws->desc.iface[ifp->ifidx], ifp 2197 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp->ifidx); ifp 2199 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_cleanup(fws, ifp->ifidx); ifp 2343 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_if *ifp; ifp 2401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp = brcmf_get_ifp(drvr, 0); ifp 2402 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fil_iovar_int_set(ifp, "tlv", tlv)) { ifp 2408 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fil_iovar_int_set(ifp, "ampdu_hostreorder", 1)) ifp 2412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fil_iovar_int_get(ifp, "wlfc_mode", &mode) == 0) { ifp 2416 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fil_iovar_int_set(ifp, ifp 2494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct brcmf_if *ifp; ifp 2499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ifp = drvr->iflist[i]; ifp 2500 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!ifp || !ifp->ndev) ifp 2502 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_txflowblock_if(ifp, BRCMF_NETIF_STOP_REASON_FLOW, ifp 14 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb); ifp 15 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h int brcmf_fws_process_skb(struct brcmf_if *ifp, struct sk_buff *skb); ifp 17 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h void brcmf_fws_reset_interface(struct brcmf_if *ifp); ifp 18 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h void brcmf_fws_add_interface(struct brcmf_if *ifp); ifp 19 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h void brcmf_fws_del_interface(struct brcmf_if *ifp); ifp 22 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h void brcmf_fws_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb); ifp 533 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct sk_buff *skb, struct brcmf_if **ifp) ifp 538 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c static void brcmf_msgbuf_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb) ifp 1101 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_if *ifp; ifp 1121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ifp = brcmf_get_ifp(msgbuf->drvr, event->msg.ifidx); ifp 1122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (!ifp || !ifp->ndev) { ifp 1128 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c skb->protocol = eth_type_trans(skb, ifp->ndev); ifp 1130 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_fweh_process_skb(ifp->drvr, skb, 0); ifp 1147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_if *ifp; ifp 1171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ifp = msgbuf->drvr->mon_if; ifp 1173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (!ifp) { ifp 1179 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_netif_mon_rx(ifp, skb); ifp 1183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ifp = brcmf_get_ifp(msgbuf->drvr, rx_complete->msg.ifidx); ifp 1184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (!ifp || !ifp->ndev) { ifp 1191 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c skb->protocol = eth_type_trans(skb, ifp->ndev); ifp 1192 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_netif_rx(ifp, skb); ifp 424 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c static int brcmf_p2p_set_firmware(struct brcmf_if *ifp, u8 *p2p_mac) ifp 426 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_pub *drvr = ifp->drvr; ifp 429 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1); ifp 430 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_iovar_int_set(ifp, "apsta", 1); ifp 431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1); ifp 438 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_iovar_int_set(ifp, "p2p_disc", 0); ifp 440 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ret = brcmf_fil_iovar_data_set(ifp, "p2p_da_override", p2p_mac, ifp 515 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c static s32 brcmf_p2p_set_discover_state(struct brcmf_if *ifp, u8 state, ifp 525 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ret = brcmf_fil_bsscfg_data_set(ifp, "p2p_state", &discover_state, ifp 545 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c (void)brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_SCAN, 0, 0); ifp 549 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c (void)brcmf_fil_iovar_int_set(vif->ifp, "p2p_disc", 0); ifp 582 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ret = brcmf_fil_iovar_int_set(vif->ifp, "p2p_disc", 1); ifp 588 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ret = brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_SCAN, 0, 0); ifp 600 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ret = brcmf_fil_bsscfg_int_set(vif->ifp, "wsec", AES_ENABLED); ifp 676 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_p2p_set_discover_state(vif->ifp, search_state, 0, 0); ifp 731 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ret = brcmf_fil_bsscfg_data_set(vif->ifp, "p2p_scan", memblk, memsize); ifp 751 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp, ifp 934 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_LISTEN, ifp 990 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c int brcmf_p2p_notify_listen_complete(struct brcmf_if *ifp, ifp 994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 1008 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c cfg80211_remain_on_channel_expired(&ifp->vif->wdev, ifp 1023 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c void brcmf_p2p_cancel_remain_on_channel(struct brcmf_if *ifp) ifp 1025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if (!ifp) ifp 1027 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_p2p_set_discover_state(ifp, WL_P2P_DISC_ST_SCAN, 0, 0); ifp 1028 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_p2p_notify_listen_complete(ifp, NULL, NULL); ifp 1257 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; ifp 1267 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_notify_escan_complete(cfg, ifp, true, true); ifp 1272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_notify_escan_complete(cfg, ifp, true, true); ifp 1288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp; ifp 1302 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ifp = p2p->bss_idx[P2PAPI_BSSCFG_DEVICE].vif->ifp; ifp 1303 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if (memcmp(mac, ifp->mac_addr, ETH_ALEN) < 0) { ifp 1333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c int brcmf_p2p_notify_action_frame_rx(struct brcmf_if *ifp, ifp 1337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_pub *drvr = ifp->drvr; ifp 1361 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_dbg(INFO, "ifp->vif->mgmt_rx_reg %04x\n", ifp->vif->mgmt_rx_reg); ifp 1363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if ((ifp->vif->mgmt_rx_reg & BIT(mgmt_type)) == 0) ifp 1387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_set_mpc(ifp, 1); ifp 1412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c memcpy(mgmt_frame->da, ifp->mac_addr, ETH_ALEN); ifp 1413 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSSID, mgmt_frame->bssid, ifp 1425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c wdev = &ifp->vif->wdev; ifp 1441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c int brcmf_p2p_notify_action_tx_complete(struct brcmf_if *ifp, ifp 1445 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 1504 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_fil_bsscfg_data_set(vif->ifp, "actframe", af_params, ifp 1655 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp = netdev_priv(ndev); ifp 1745 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_set_mpc(ifp, 0); ifp 1773 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_notify_escan_complete(cfg, ifp, true, true); ifp 1841 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_set_mpc(ifp, 1); ifp 1853 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c s32 brcmf_p2p_notify_rx_mgmt_p2p_probereq(struct brcmf_if *ifp, ifp 1857 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_cfg80211_info *cfg = ifp->drvr->config; ifp 1860 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_cfg80211_vif *vif = ifp->vif; ifp 1929 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp; ifp 1935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; ifp 1937 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if (brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSSID, mac_addr, ifp 1942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if (brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_BSS_INFO, ifp 1982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_notify_escan_complete(cfg, vif->ifp, true, true); ifp 1988 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_set_mpc(vif->ifp, 0); ifp 2000 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_fil_iovar_data_set(vif->ifp, "p2p_ifupd", &if_request, ifp 2015 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_fil_cmd_int_set(vif->ifp, BRCMF_C_SET_SCB_TIMEOUT, ifp 2022 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp, u8 ea[ETH_ALEN], ifp 2037 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_fil_iovar_data_set(ifp, "p2p_ifadd", &if_request, ifp 2047 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp = netdev_priv(pri_ndev); ifp 2050 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c return brcmf_fil_iovar_data_set(ifp, "p2p_ifdis", addr, ETH_ALEN); ifp 2057 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp = netdev_priv(pri_ndev); ifp 2060 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c return brcmf_fil_iovar_data_set(ifp, "p2p_ifdel", addr, ETH_ALEN); ifp 2090 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c pri_ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; ifp 2126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c p2p_ifp = p2p_vif->ifp; ifp 2167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); ifp 2197 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_p2p_request_p2p_if(&cfg->p2p, ifp, cfg->p2p.int_addr, ifp 2215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ifp = vif->ifp; ifp 2216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c if (!ifp) { ifp 2222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); ifp 2223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ifp->ndev->name_assign_type = name_assign_type; ifp 2224 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c err = brcmf_net_attach(ifp, true); ifp 2227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c free_netdev(ifp->ndev); ifp 2233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_iovar_int_set(ifp, "roam_off", 1); ifp 2236 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_SCB_TIMEOUT, ifp 2239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c return &ifp->vif->wdev; ifp 2280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_p2p_cancel_remain_on_channel(vif->ifp); ifp 2309 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_remove_interface(vif->ifp, true); ifp 2318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c void brcmf_p2p_ifp_removed(struct brcmf_if *ifp, bool rtnl_locked) ifp 2324 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c vif = ifp->vif; ifp 2365 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c (void)brcmf_p2p_set_discover_state(vif->ifp, ifp 2416 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_p2p_cancel_remain_on_channel(vif->ifp); ifp 2418 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_remove_interface(vif->ifp, false); ifp 149 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h void brcmf_p2p_ifp_removed(struct brcmf_if *ifp, bool rtnl_locked); ifp 158 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h int brcmf_p2p_notify_listen_complete(struct brcmf_if *ifp, ifp 161 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h void brcmf_p2p_cancel_remain_on_channel(struct brcmf_if *ifp); ifp 162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h int brcmf_p2p_notify_action_frame_rx(struct brcmf_if *ifp, ifp 165 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h int brcmf_p2p_notify_action_tx_complete(struct brcmf_if *ifp, ifp 173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h s32 brcmf_p2p_notify_rx_mgmt_p2p_probereq(struct brcmf_if *ifp, ifp 89 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_channel_config(struct brcmf_if *ifp, ifp 95 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c return brcmf_fil_iovar_data_set(ifp, "pfn_cfg", cfg, sizeof(*cfg)); ifp 98 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_config(struct brcmf_if *ifp, u32 scan_freq, ifp 101 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pub *drvr = ifp->drvr; ifp 123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_int_set(ifp, "pfnmem", pfnmem); ifp 129 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_int_get(ifp, "pfnmem", &pfnmem); ifp 142 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_data_set(ifp, "pfn_set", &pfn_param, ifp 151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_set_random(struct brcmf_if *ifp, struct brcmf_pno_info *pi) ifp 153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pub *drvr = ifp->drvr; ifp 185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_data_set(ifp, "pfn_macaddr", &pfn_mac, ifp 193 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_add_ssid(struct brcmf_if *ifp, struct cfg80211_ssid *ssid, ifp 196 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pub *drvr = ifp->drvr; ifp 211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_data_set(ifp, "pfn_add", &pfn, sizeof(pfn)); ifp 217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_add_bssid(struct brcmf_if *ifp, const u8 *bssid) ifp 219 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pub *drvr = ifp->drvr; ifp 227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_data_set(ifp, "pfn_add_bssid", &bssid_cfg, ifp 252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_clean(struct brcmf_if *ifp) ifp 254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pub *drvr = ifp->drvr; ifp 258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c ret = brcmf_fil_iovar_int_set(ifp, "pfn", 0); ifp 261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c ret = brcmf_fil_iovar_data_set(ifp, "pfnclear", NULL, 0); ifp 359 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_config_networks(struct brcmf_if *ifp, ifp 374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_add_ssid(ifp, &ms->ssid, ifp 378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_add_bssid(ifp, ms->bssid); ifp 387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_config_sched_scans(struct brcmf_if *ifp) ifp 389 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pub *drvr = ifp->drvr; ifp 398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = ifp_to_pno(ifp); ifp 412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_clean(ifp); ifp 419 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_config(ifp, scan_freq, 0, 0); ifp 423 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_channel_config(ifp, &pno_cfg); ifp 436 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_data_set(ifp, "pfn_gscan_cfg", gscan_cfg, gsz); ifp 442 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_set_random(ifp, pi); ifp 446 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_config_networks(ifp, pi); ifp 451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_fil_iovar_int_set(ifp, "pfn", 1); ifp 455 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c brcmf_pno_clean(ifp); ifp 463 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c int brcmf_pno_start_sched_scan(struct brcmf_if *ifp, ifp 471 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = ifp_to_pno(ifp); ifp 476 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c ret = brcmf_pno_config_sched_scans(ifp); ifp 480 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c (void)brcmf_pno_config_sched_scans(ifp); ifp 486 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c int brcmf_pno_stop_sched_scan(struct brcmf_if *ifp, u64 reqid) ifp 493 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = ifp_to_pno(ifp); ifp 503 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c brcmf_pno_clean(ifp); ifp 506 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c (void)brcmf_pno_config_sched_scans(ifp); ifp 22 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.h int brcmf_pno_start_sched_scan(struct brcmf_if *ifp, ifp 31 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.h int brcmf_pno_stop_sched_scan(struct brcmf_if *ifp, u64 reqid); ifp 20 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h struct sk_buff *skb, struct brcmf_if **ifp); ifp 35 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h void (*rxreorder)(struct brcmf_if *ifp, struct sk_buff *skb); ifp 36 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h void (*add_if)(struct brcmf_if *ifp); ifp 37 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h void (*del_if)(struct brcmf_if *ifp); ifp 38 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h void (*reset_if)(struct brcmf_if *ifp); ifp 50 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h struct brcmf_if **ifp) ifp 57 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h if (ifp) ifp 58 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h *ifp = NULL; ifp 60 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h ifp = &tmp; ifp 61 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h return drvr->proto->hdrpull(drvr, do_fws, skb, ifp); ifp 112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h brcmf_proto_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb) ifp 114 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h ifp->drvr->proto->rxreorder(ifp, skb); ifp 118 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h brcmf_proto_add_if(struct brcmf_pub *drvr, struct brcmf_if *ifp) ifp 122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h drvr->proto->add_if(ifp); ifp 126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h brcmf_proto_del_if(struct brcmf_pub *drvr, struct brcmf_if *ifp) ifp 130 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h drvr->proto->del_if(ifp); ifp 134 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h brcmf_proto_reset_if(struct brcmf_pub *drvr, struct brcmf_if *ifp) ifp 138 drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h drvr->proto->reset_if(ifp); ifp 24 drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c struct brcmf_if *ifp; ifp 38 drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c ifp = vif->ifp; ifp 40 drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c brcmf_dbg(TRACE, "ifidx=%d, cmd=%d\n", ifp->ifidx, cmdhdr->cmd); ifp 68 drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c ret = brcmf_fil_cmd_data_set(ifp, cmdhdr->cmd, dcmd_buf, ifp 71 drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c ret = brcmf_fil_cmd_data_get(ifp, cmdhdr->cmd, dcmd_buf, ifp 370 drivers/staging/most/cdev/cdev.c c = get_channel(mbo->ifp, mbo->hdm_channel_id); ifp 880 drivers/staging/most/core.c ret = enqueue(mbo->ifp, mbo->hdm_channel_id, mbo); ifp 971 drivers/staging/most/core.c mbo->ifp = c->iface; ifp 180 drivers/staging/most/core.h struct most_interface *ifp; ifp 667 drivers/staging/most/dim2/dim2.c struct device *dev = mbo->ifp->driver_dev; ifp 674 drivers/staging/most/dim2/dim2.c struct device *dev = mbo->ifp->driver_dev; ifp 439 drivers/staging/most/net/net.c nd = get_net_dev_hold(mbo->ifp); ifp 735 drivers/staging/most/sound/sound.c struct channel *channel = get_channel(mbo->ifp, mbo->hdm_channel_id); ifp 339 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); ifp 488 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); ifp 633 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); ifp 641 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); ifp 390 drivers/staging/most/video/video.c get_comp_dev(mbo->ifp, mbo->hdm_channel_id); ifp 256 drivers/usb/core/config.c struct usb_host_interface *ifp, int num_ep, ifp 291 drivers/usb/core/config.c if (ifp->desc.bNumEndpoints >= num_ep) ifp 303 drivers/usb/core/config.c if (usb_endpoint_is_blacklisted(udev, ifp, d)) { ifp 311 drivers/usb/core/config.c endpoint = &ifp->endpoint[ifp->desc.bNumEndpoints]; ifp 312 drivers/usb/core/config.c ++ifp->desc.bNumEndpoints; ifp 2228 fs/btrfs/backref.c struct inode_fs_paths *ifp; ifp 2235 fs/btrfs/backref.c ifp = kmalloc(sizeof(*ifp), GFP_KERNEL); ifp 2236 fs/btrfs/backref.c if (!ifp) { ifp 2241 fs/btrfs/backref.c ifp->btrfs_path = path; ifp 2242 fs/btrfs/backref.c ifp->fspath = fspath; ifp 2243 fs/btrfs/backref.c ifp->fs_root = fs_root; ifp 2245 fs/btrfs/backref.c return ifp; ifp 569 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_ifork *ifp; ifp 575 fs/xfs/libxfs/xfs_attr_leaf.c ifp = dp->i_afp; ifp 576 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ifp != NULL); ifp 577 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ifp->if_bytes == 0); ifp 579 fs/xfs/libxfs/xfs_attr_leaf.c ifp->if_flags &= ~XFS_IFEXTENTS; /* just in case */ ifp 581 fs/xfs/libxfs/xfs_attr_leaf.c ifp->if_flags |= XFS_IFINLINE; ifp 583 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ifp->if_flags & XFS_IFINLINE); ifp 586 fs/xfs/libxfs/xfs_attr_leaf.c hdr = (xfs_attr_sf_hdr_t *)ifp->if_u1.if_data; ifp 604 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_ifork *ifp; ifp 612 fs/xfs/libxfs/xfs_attr_leaf.c ifp = dp->i_afp; ifp 613 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ifp->if_flags & XFS_IFINLINE); ifp 614 fs/xfs/libxfs/xfs_attr_leaf.c sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; ifp 631 fs/xfs/libxfs/xfs_attr_leaf.c sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; ifp 745 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_ifork *ifp; ifp 749 fs/xfs/libxfs/xfs_attr_leaf.c ifp = args->dp->i_afp; ifp 750 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ifp->if_flags & XFS_IFINLINE); ifp 751 fs/xfs/libxfs/xfs_attr_leaf.c sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; ifp 815 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_ifork *ifp; ifp 820 fs/xfs/libxfs/xfs_attr_leaf.c ifp = dp->i_afp; ifp 821 fs/xfs/libxfs/xfs_attr_leaf.c sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; ifp 825 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(tmpbuffer, ifp->if_u1.if_data, size); ifp 925 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_ifork *ifp; ifp 930 fs/xfs/libxfs/xfs_attr_leaf.c ifp = XFS_IFORK_PTR(ip, XFS_ATTR_FORK); ifp 931 fs/xfs/libxfs/xfs_attr_leaf.c sfp = (struct xfs_attr_shortform *)ifp->if_u1.if_data; ifp 932 fs/xfs/libxfs/xfs_attr_leaf.c size = ifp->if_bytes; ifp 324 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* fork structure */ ifp 343 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 344 fs/xfs/libxfs/xfs_bmap.c block = ifp->if_broot; ifp 350 fs/xfs/libxfs/xfs_bmap.c xfs_check_block(block, mp, 1, ifp->if_broot_bytes); ifp 351 fs/xfs/libxfs/xfs_bmap.c pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, 1, ifp->if_broot_bytes); ifp 589 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 591 fs/xfs/libxfs/xfs_bmap.c struct xfs_btree_block *rblock = ifp->if_broot; ifp 605 fs/xfs/libxfs/xfs_bmap.c ASSERT(ifp->if_flags & XFS_IFEXTENTS); ifp 609 fs/xfs/libxfs/xfs_bmap.c ASSERT(xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, 0) == 1); ifp 611 fs/xfs/libxfs/xfs_bmap.c pp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, ifp->if_broot_bytes); ifp 632 fs/xfs/libxfs/xfs_bmap.c ASSERT(ifp->if_broot == NULL); ifp 633 fs/xfs/libxfs/xfs_bmap.c ASSERT((ifp->if_flags & XFS_IFBROOT) == 0); ifp 659 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 669 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 677 fs/xfs/libxfs/xfs_bmap.c ifp->if_flags |= XFS_IFBROOT; ifp 682 fs/xfs/libxfs/xfs_bmap.c block = ifp->if_broot; ifp 745 fs/xfs/libxfs/xfs_bmap.c for_each_xfs_iext(ifp, &icur, &rec) { ifp 781 fs/xfs/libxfs/xfs_bmap.c ASSERT(ifp->if_broot == NULL); ifp 799 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 803 fs/xfs/libxfs/xfs_bmap.c ASSERT(ifp->if_bytes == 0); ifp 807 fs/xfs/libxfs/xfs_bmap.c ifp->if_flags &= ~XFS_IFINLINE; ifp 808 fs/xfs/libxfs/xfs_bmap.c ifp->if_flags |= XFS_IFEXTENTS; ifp 809 fs/xfs/libxfs/xfs_bmap.c ifp->if_u1.if_root = NULL; ifp 810 fs/xfs/libxfs/xfs_bmap.c ifp->if_height = 0; ifp 826 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp)) ifp 830 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 841 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 844 fs/xfs/libxfs/xfs_bmap.c if (!ifp->if_bytes) { ifp 852 fs/xfs/libxfs/xfs_bmap.c ASSERT((ifp->if_flags & (XFS_IFINLINE|XFS_IFEXTENTS)) == XFS_IFINLINE); ifp 888 fs/xfs/libxfs/xfs_bmap.c init_fn(tp, bp, ip, ifp); ifp 891 fs/xfs/libxfs/xfs_bmap.c xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); ifp 895 fs/xfs/libxfs/xfs_bmap.c ifp->if_u1.if_root = NULL; ifp 896 fs/xfs/libxfs/xfs_bmap.c ifp->if_height = 0; ifp 902 fs/xfs/libxfs/xfs_bmap.c xfs_iext_first(ifp, &icur); ifp 1168 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 1170 fs/xfs/libxfs/xfs_bmap.c struct xfs_btree_block *block = ifp->if_broot; ifp 1195 fs/xfs/libxfs/xfs_bmap.c pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, 1, ifp->if_broot_bytes); ifp 1221 fs/xfs/libxfs/xfs_bmap.c xfs_iext_first(ifp, &icur); ifp 1267 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &icur); ifp 1287 fs/xfs/libxfs/xfs_bmap.c ASSERT(i == xfs_iext_count(ifp)); ifp 1289 fs/xfs/libxfs/xfs_bmap.c ifp->if_flags |= XFS_IFEXTENTS; ifp 1295 fs/xfs/libxfs/xfs_bmap.c xfs_iext_destroy(ifp); ifp 1313 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 1329 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 1336 fs/xfs/libxfs/xfs_bmap.c for_each_xfs_iext(ifp, &icur, &got) { ifp 1364 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 1380 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 1386 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent_before(ip, ifp, last_block, &icur, &got)) ifp 1399 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 1403 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 1409 fs/xfs/libxfs/xfs_bmap.c xfs_iext_last(ifp, &icur); ifp 1410 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_get_extent(ifp, &icur, rec)) ifp 1498 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 1511 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 1512 fs/xfs/libxfs/xfs_bmap.c ASSERT(ifp->if_flags & XFS_IFEXTENTS); ifp 1513 fs/xfs/libxfs/xfs_bmap.c xfs_iext_first(ifp, &icur); ifp 1514 fs/xfs/libxfs/xfs_bmap.c xfs_iext_get_extent(ifp, &icur, &s); ifp 1536 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 1551 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(bma->ip, whichfork); ifp 1569 fs/xfs/libxfs/xfs_bmap.c xfs_iext_get_extent(ifp, &bma->icur, &PREV); ifp 1591 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_prev_extent(ifp, &bma->icur, &LEFT)) { ifp 1609 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_next_extent(ifp, &bma->icur, &RIGHT)) { ifp 1644 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, &bma->icur); ifp 1679 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, &bma->icur); ifp 1707 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &bma->icur); ifp 1709 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, &bma->icur); ifp 1769 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, &bma->icur); ifp 1823 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &bma->icur); ifp 1825 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, &bma->icur); ifp 1859 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &bma->icur); ifp 1900 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &bma->icur); ifp 1945 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &bma->icur); ifp 2047 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 2059 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 2073 fs/xfs/libxfs/xfs_bmap.c xfs_iext_get_extent(ifp, icur, &PREV); ifp 2092 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_prev_extent(ifp, icur, &LEFT)) { ifp 2110 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_next_extent(ifp, icur, &RIGHT)) { ifp 2144 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2182 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2214 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 2216 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2277 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2345 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 2377 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 2420 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 2512 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 2520 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 2526 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_prev_extent(ifp, icur, &left)) { ifp 2536 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_get_extent(ifp, icur, &right)) { ifp 2581 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2600 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2656 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 2675 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_prev_extent(ifp, icur, &left)) { ifp 2685 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_get_extent(ifp, icur, &right)) { ifp 2726 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 2762 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 3803 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; ifp 3831 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 3832 fs/xfs/libxfs/xfs_bmap.c if (!ifp) { ifp 3856 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 3862 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) ifp 3894 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_next_extent(ifp, &icur, &got)) ifp 3926 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 3947 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_peek_prev_extent(ifp, icur, &prev)) ifp 4018 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); ifp 4031 fs/xfs/libxfs/xfs_bmap.c xfs_iext_peek_prev_extent(ifp, &bma->icur, &bma->prev); ifp 4076 fs/xfs/libxfs/xfs_bmap.c if ((ifp->if_flags & XFS_IFBROOT) && !bma->cur) ifp 4122 fs/xfs/libxfs/xfs_bmap.c xfs_iext_get_extent(ifp, &bma->icur, &bma->got); ifp 4140 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); ifp 4159 fs/xfs/libxfs/xfs_bmap.c if ((ifp->if_flags & XFS_IFBROOT) && !bma->cur) { ifp 4200 fs/xfs/libxfs/xfs_bmap.c xfs_iext_get_extent(ifp, &bma->icur, &bma->got); ifp 4272 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; ifp 4326 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 4330 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 4336 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent(ip, ifp, bno, &bma.icur, &bma.got)) ifp 4338 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) ifp 4427 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_next_extent(ifp, &bma.icur, &bma.got)) ifp 4463 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 4481 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent(ip, ifp, offset_fsb, &bma.icur, &bma.got) || ifp 4499 fs/xfs/libxfs/xfs_bmap.c *seq = READ_ONCE(ifp->if_seq); ifp 4513 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) ifp 4532 fs/xfs/libxfs/xfs_bmap.c *seq = READ_ONCE(ifp->if_seq); ifp 4565 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; ifp 4572 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 4592 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 4598 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { ifp 4607 fs/xfs/libxfs/xfs_bmap.c if (ifp->if_flags & XFS_IFBROOT) { ifp 4734 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 4785 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 4835 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 4862 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK); ifp 4888 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 4918 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 4948 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 4960 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 4962 fs/xfs/libxfs/xfs_bmap.c xfs_iext_get_extent(ifp, icur, &got); ifp 5030 fs/xfs/libxfs/xfs_bmap.c xfs_iext_prev(ifp, icur); ifp 5133 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, icur); ifp 5191 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; /* inode fork pointer */ ifp 5211 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 5237 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS) && ifp 5240 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_count(ifp) == 0) { ifp 5248 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent_before(ip, ifp, &end, &icur, &got)) { ifp 5255 fs/xfs/libxfs/xfs_bmap.c if (ifp->if_flags & XFS_IFBROOT) { ifp 5280 fs/xfs/libxfs/xfs_bmap.c !xfs_iext_prev_extent(ifp, &icur, &got)) { ifp 5348 fs/xfs/libxfs/xfs_bmap.c !xfs_iext_prev_extent(ifp, &icur, &got)) { ifp 5399 fs/xfs/libxfs/xfs_bmap.c !xfs_iext_prev_extent(ifp, &icur, &got)) { ifp 5413 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_prev_extent(ifp, &icur, &prev)) ifp 5465 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_get_extent(ifp, &icur, &got) || ifp 5467 fs/xfs/libxfs/xfs_bmap.c !xfs_iext_prev_extent(ifp, &icur, &got))) { ifp 5700 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 5721 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 5727 fs/xfs/libxfs/xfs_bmap.c if (ifp->if_flags & XFS_IFBROOT) { ifp 5732 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent(ip, ifp, *next_fsb, &icur, &got)) { ifp 5740 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_prev_extent(ifp, &icur, &prev)) { ifp 5767 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_next_extent(ifp, &icur, &got)) { ifp 5818 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 5839 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 5845 fs/xfs/libxfs/xfs_bmap.c if (ifp->if_flags & XFS_IFBROOT) { ifp 5851 fs/xfs/libxfs/xfs_bmap.c xfs_iext_last(ifp, &icur); ifp 5852 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_get_extent(ifp, &icur, &got) || ifp 5858 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent(ip, ifp, *next_fsb, &icur, &got)) { ifp 5872 fs/xfs/libxfs/xfs_bmap.c if (xfs_iext_peek_next_extent(ifp, &icur, &next)) { ifp 5893 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_prev_extent(ifp, &icur, &got) || ifp 5925 fs/xfs/libxfs/xfs_bmap.c struct xfs_ifork *ifp; ifp 5944 fs/xfs/libxfs/xfs_bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 5945 fs/xfs/libxfs/xfs_bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 5955 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_lookup_extent(ip, ifp, split_fsb, &icur, &got) || ifp 5965 fs/xfs/libxfs/xfs_bmap.c if (ifp->if_flags & XFS_IFBROOT) { ifp 5987 fs/xfs/libxfs/xfs_bmap.c xfs_iext_next(ifp, &icur); ifp 303 fs/xfs/libxfs/xfs_bmap_btree.c struct xfs_ifork *ifp; ifp 305 fs/xfs/libxfs/xfs_bmap_btree.c ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, ifp 309 fs/xfs/libxfs/xfs_bmap_btree.c ifp->if_broot_bytes, level == 0) / 2; ifp 321 fs/xfs/libxfs/xfs_bmap_btree.c struct xfs_ifork *ifp; ifp 323 fs/xfs/libxfs/xfs_bmap_btree.c ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, ifp 327 fs/xfs/libxfs/xfs_bmap_btree.c ifp->if_broot_bytes, level == 0); ifp 551 fs/xfs/libxfs/xfs_bmap_btree.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 559 fs/xfs/libxfs/xfs_bmap_btree.c cur->bc_nlevels = be16_to_cpu(ifp->if_broot->bb_level) + 1; ifp 657 fs/xfs/libxfs/xfs_btree.c struct xfs_ifork *ifp; ifp 659 fs/xfs/libxfs/xfs_btree.c ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur->bc_private.b.whichfork); ifp 660 fs/xfs/libxfs/xfs_btree.c return (struct xfs_btree_block *)ifp->if_broot; ifp 3509 fs/xfs/libxfs/xfs_btree.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 3568 fs/xfs/libxfs/xfs_btree.c block = ifp->if_broot; ifp 1067 fs/xfs/libxfs/xfs_dir2_block.c struct xfs_ifork *ifp; ifp 1074 fs/xfs/libxfs/xfs_dir2_block.c ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); ifp 1075 fs/xfs/libxfs/xfs_dir2_block.c ASSERT(ifp->if_flags & XFS_IFINLINE); ifp 1084 fs/xfs/libxfs/xfs_dir2_block.c oldsfp = (xfs_dir2_sf_hdr_t *)ifp->if_u1.if_data; ifp 1086 fs/xfs/libxfs/xfs_dir2_block.c ASSERT(ifp->if_bytes == dp->i_d.di_size); ifp 1087 fs/xfs/libxfs/xfs_dir2_block.c ASSERT(ifp->if_u1.if_data != NULL); ifp 1095 fs/xfs/libxfs/xfs_dir2_block.c sfp = kmem_alloc(ifp->if_bytes, 0); ifp 1096 fs/xfs/libxfs/xfs_dir2_block.c memcpy(sfp, oldsfp, ifp->if_bytes); ifp 1098 fs/xfs/libxfs/xfs_dir2_block.c xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); ifp 626 fs/xfs/libxfs/xfs_dir2_sf.c struct xfs_ifork *ifp; ifp 642 fs/xfs/libxfs/xfs_dir2_sf.c ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); ifp 643 fs/xfs/libxfs/xfs_dir2_sf.c sfp = (struct xfs_dir2_sf_hdr *)ifp->if_u1.if_data; ifp 644 fs/xfs/libxfs/xfs_dir2_sf.c size = ifp->if_bytes; ifp 128 fs/xfs/libxfs/xfs_iext_tree.c inline xfs_extnum_t xfs_iext_count(struct xfs_ifork *ifp) ifp 130 fs/xfs/libxfs/xfs_iext_tree.c return ifp->if_bytes / sizeof(struct xfs_iext_rec); ifp 133 fs/xfs/libxfs/xfs_iext_tree.c static inline int xfs_iext_max_recs(struct xfs_ifork *ifp) ifp 135 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height == 1) ifp 136 fs/xfs/libxfs/xfs_iext_tree.c return xfs_iext_count(ifp); ifp 145 fs/xfs/libxfs/xfs_iext_tree.c static inline bool xfs_iext_valid(struct xfs_ifork *ifp, ifp 150 fs/xfs/libxfs/xfs_iext_tree.c if (cur->pos < 0 || cur->pos >= xfs_iext_max_recs(ifp)) ifp 159 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp) ifp 161 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_node *node = ifp->if_u1.if_root; ifp 164 fs/xfs/libxfs/xfs_iext_tree.c if (!ifp->if_height) ifp 167 fs/xfs/libxfs/xfs_iext_tree.c for (height = ifp->if_height; height > 1; height--) { ifp 177 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp) ifp 179 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_node *node = ifp->if_u1.if_root; ifp 182 fs/xfs/libxfs/xfs_iext_tree.c if (!ifp->if_height) ifp 185 fs/xfs/libxfs/xfs_iext_tree.c for (height = ifp->if_height; height > 1; height--) { ifp 198 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 202 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = xfs_iext_find_first_leaf(ifp); ifp 207 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 212 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = xfs_iext_find_last_leaf(ifp); ifp 218 fs/xfs/libxfs/xfs_iext_tree.c for (i = 1; i < xfs_iext_max_recs(ifp); i++) { ifp 227 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 232 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_first(ifp, cur); ifp 237 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(cur->pos < xfs_iext_max_recs(ifp)); ifp 240 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height > 1 && !xfs_iext_valid(ifp, cur) && ifp 249 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 254 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_last(ifp, cur); ifp 264 fs/xfs/libxfs/xfs_iext_tree.c if (xfs_iext_valid(ifp, cur)) ifp 268 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height > 1 && cur->leaf->prev) { ifp 305 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 309 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_node *node = ifp->if_u1.if_root; ifp 312 fs/xfs/libxfs/xfs_iext_tree.c if (!ifp->if_height) ifp 315 fs/xfs/libxfs/xfs_iext_tree.c for (height = ifp->if_height; height > level; height--) { ifp 375 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 381 fs/xfs/libxfs/xfs_iext_tree.c for (i = start; i < xfs_iext_max_recs(ifp); i++) { ifp 399 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp) ifp 404 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height == 1) { ifp 405 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_leaf *prev = ifp->if_u1.if_root; ifp 410 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_node *prev = ifp->if_u1.if_root; ifp 412 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(ifp->if_height > 1); ifp 421 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_u1.if_root = node; ifp 422 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_height++; ifp 427 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 433 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_node *node = ifp->if_u1.if_root; ifp 436 fs/xfs/libxfs/xfs_iext_tree.c for (height = ifp->if_height; height > level; height--) { ifp 494 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 503 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height < level) ifp 504 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_grow(ifp); ifp 507 fs/xfs/libxfs/xfs_iext_tree.c node = xfs_iext_find_level(ifp, offset, level); ifp 522 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, node->keys[0], offset, level, node); ifp 581 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 584 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(ifp->if_bytes == 0); ifp 586 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_u1.if_root = kmem_zalloc(sizeof(struct xfs_iext_rec), KM_NOFS); ifp 587 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_height = 1; ifp 590 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = ifp->if_u1.if_root; ifp 596 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 599 fs/xfs/libxfs/xfs_iext_tree.c size_t new_size = ifp->if_bytes + sizeof(struct xfs_iext_rec); ifp 606 fs/xfs/libxfs/xfs_iext_tree.c new = kmem_realloc(ifp->if_u1.if_root, new_size, KM_NOFS); ifp 607 fs/xfs/libxfs/xfs_iext_tree.c memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); ifp 608 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_u1.if_root = new; ifp 619 fs/xfs/libxfs/xfs_iext_tree.c static inline void xfs_iext_inc_seq(struct xfs_ifork *ifp) ifp 621 fs/xfs/libxfs/xfs_iext_tree.c WRITE_ONCE(ifp->if_seq, READ_ONCE(ifp->if_seq) + 1); ifp 631 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp = xfs_iext_state_to_fork(ip, state); ifp 636 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_inc_seq(ifp); ifp 638 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height == 0) ifp 639 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_alloc_root(ifp, cur); ifp 640 fs/xfs/libxfs/xfs_iext_tree.c else if (ifp->if_height == 1) ifp 641 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_realloc_root(ifp, cur); ifp 643 fs/xfs/libxfs/xfs_iext_tree.c nr_entries = xfs_iext_leaf_nr_entries(ifp, cur->leaf, cur->pos); ifp 656 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, xfs_iext_leaf_key(cur->leaf, 0), ifp 663 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_bytes += sizeof(struct xfs_iext_rec); ifp 668 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_insert_node(ifp, xfs_iext_leaf_key(new, 0), new, 2); ifp 724 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 731 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(level <= ifp->if_height); ifp 732 fs/xfs/libxfs/xfs_iext_tree.c node = xfs_iext_find_level(ifp, offset, level); ifp 749 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, offset, node->keys[0], level, node); ifp 756 fs/xfs/libxfs/xfs_iext_tree.c if (level < ifp->if_height) { ifp 763 fs/xfs/libxfs/xfs_iext_tree.c parent = xfs_iext_find_level(ifp, offset, level); ifp 780 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(node == ifp->if_u1.if_root); ifp 781 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_u1.if_root = node->ptrs[0]; ifp 782 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_height--; ifp 789 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 804 fs/xfs/libxfs/xfs_iext_tree.c int nr_prev = xfs_iext_leaf_nr_entries(ifp, leaf->prev, 0), i; ifp 819 fs/xfs/libxfs/xfs_iext_tree.c int nr_next = xfs_iext_leaf_nr_entries(ifp, leaf->next, 0), i; ifp 849 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_remove_node(ifp, offset, leaf); ifp 854 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp) ifp 856 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_height--; ifp 857 fs/xfs/libxfs/xfs_iext_tree.c kmem_free(ifp->if_u1.if_root); ifp 858 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_u1.if_root = NULL; ifp 867 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp = xfs_iext_state_to_fork(ip, state); ifp 874 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(ifp->if_height > 0); ifp 875 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(ifp->if_u1.if_root != NULL); ifp 876 fs/xfs/libxfs/xfs_iext_tree.c ASSERT(xfs_iext_valid(ifp, cur)); ifp 878 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_inc_seq(ifp); ifp 880 fs/xfs/libxfs/xfs_iext_tree.c nr_entries = xfs_iext_leaf_nr_entries(ifp, leaf, cur->pos) - 1; ifp 884 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_bytes -= sizeof(struct xfs_iext_rec); ifp 887 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, offset, xfs_iext_leaf_key(leaf, 0), 1, ifp 891 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height > 1 && leaf->next) ifp 901 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height > 1) ifp 902 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_rebalance_leaf(ifp, cur, leaf, offset, nr_entries); ifp 904 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_free_last_leaf(ifp); ifp 921 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 928 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = xfs_iext_find_level(ifp, offset, 1); ifp 934 fs/xfs/libxfs/xfs_iext_tree.c for (cur->pos = 0; cur->pos < xfs_iext_max_recs(ifp); cur->pos++) { ifp 944 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height == 1 || !cur->leaf->next) ifp 948 fs/xfs/libxfs/xfs_iext_tree.c if (!xfs_iext_valid(ifp, cur)) ifp 962 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 968 fs/xfs/libxfs/xfs_iext_tree.c if (xfs_iext_lookup_extent(ip, ifp, *end - 1, cur, gotp) && ifp 971 fs/xfs/libxfs/xfs_iext_tree.c if (!xfs_iext_prev_extent(ifp, cur, gotp)) ifp 984 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp = xfs_iext_state_to_fork(ip, state); ifp 986 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_inc_seq(ifp); ifp 993 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, old.br_startoff, ifp 1009 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp, ifp 1013 fs/xfs/libxfs/xfs_iext_tree.c if (!xfs_iext_valid(ifp, cur)) ifp 1043 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_ifork *ifp) ifp 1045 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_destroy_node(ifp->if_u1.if_root, ifp->if_height); ifp 1047 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_bytes = 0; ifp 1048 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_height = 0; ifp 1049 fs/xfs/libxfs/xfs_iext_tree.c ifp->if_u1.if_root = NULL; ifp 134 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 150 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_data = kmem_alloc(real_size, KM_NOFS); ifp 151 fs/xfs/libxfs/xfs_inode_fork.c memcpy(ifp->if_u1.if_data, data, size); ifp 153 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_data[size] = '\0'; ifp 155 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_data = NULL; ifp 158 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_bytes = size; ifp 159 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_flags &= ~(XFS_IFEXTENTS | XFS_IFBROOT); ifp 160 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_flags |= XFS_IFINLINE; ifp 204 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 226 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_bytes = 0; ifp 227 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_root = NULL; ifp 228 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_height = 0; ifp 232 fs/xfs/libxfs/xfs_inode_fork.c xfs_iext_first(ifp, &icur); ifp 247 fs/xfs/libxfs/xfs_inode_fork.c xfs_iext_next(ifp, &icur); ifp 250 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_flags |= XFS_IFEXTENTS; ifp 270 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp; ifp 276 fs/xfs/libxfs/xfs_inode_fork.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 304 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot_bytes = size; ifp 305 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot = kmem_alloc(size, KM_NOFS); ifp 306 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(ifp->if_broot != NULL); ifp 312 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot, size); ifp 313 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_flags &= ~XFS_IFEXTENTS; ifp 314 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_flags |= XFS_IFBROOT; ifp 316 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_bytes = 0; ifp 317 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_root = NULL; ifp 318 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_height = 0; ifp 348 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp; ifp 362 fs/xfs/libxfs/xfs_inode_fork.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 368 fs/xfs/libxfs/xfs_inode_fork.c if (ifp->if_broot_bytes == 0) { ifp 370 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot = kmem_alloc(new_size, KM_NOFS); ifp 371 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot_bytes = (int)new_size; ifp 381 fs/xfs/libxfs/xfs_inode_fork.c cur_max = xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, 0); ifp 384 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot = kmem_realloc(ifp->if_broot, new_size, ifp 386 fs/xfs/libxfs/xfs_inode_fork.c op = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1, ifp 387 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot_bytes); ifp 388 fs/xfs/libxfs/xfs_inode_fork.c np = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1, ifp 390 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot_bytes = (int)new_size; ifp 391 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= ifp 402 fs/xfs/libxfs/xfs_inode_fork.c ASSERT((ifp->if_broot != NULL) && (ifp->if_broot_bytes > 0)); ifp 403 fs/xfs/libxfs/xfs_inode_fork.c cur_max = xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, 0); ifp 415 fs/xfs/libxfs/xfs_inode_fork.c memcpy(new_broot, ifp->if_broot, ifp 419 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_flags &= ~XFS_IFBROOT; ifp 429 fs/xfs/libxfs/xfs_inode_fork.c op = (char *)XFS_BMBT_REC_ADDR(mp, ifp->if_broot, 1); ifp 436 fs/xfs/libxfs/xfs_inode_fork.c op = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1, ifp 437 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot_bytes); ifp 442 fs/xfs/libxfs/xfs_inode_fork.c kmem_free(ifp->if_broot); ifp 443 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot = new_broot; ifp 444 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot_bytes = (int)new_size; ifp 445 fs/xfs/libxfs/xfs_inode_fork.c if (ifp->if_broot) ifp 446 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= ifp 473 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 474 fs/xfs/libxfs/xfs_inode_fork.c int new_size = (int)ifp->if_bytes + byte_diff; ifp 483 fs/xfs/libxfs/xfs_inode_fork.c kmem_free(ifp->if_u1.if_data); ifp 484 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_data = NULL; ifp 485 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_bytes = 0; ifp 494 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_data = kmem_realloc(ifp->if_u1.if_data, ifp 496 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_bytes = new_size; ifp 504 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp; ifp 506 fs/xfs/libxfs/xfs_inode_fork.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 507 fs/xfs/libxfs/xfs_inode_fork.c if (ifp->if_broot != NULL) { ifp 508 fs/xfs/libxfs/xfs_inode_fork.c kmem_free(ifp->if_broot); ifp 509 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_broot = NULL; ifp 519 fs/xfs/libxfs/xfs_inode_fork.c if (ifp->if_u1.if_data != NULL) { ifp 520 fs/xfs/libxfs/xfs_inode_fork.c kmem_free(ifp->if_u1.if_data); ifp 521 fs/xfs/libxfs/xfs_inode_fork.c ifp->if_u1.if_data = NULL; ifp 523 fs/xfs/libxfs/xfs_inode_fork.c } else if ((ifp->if_flags & XFS_IFEXTENTS) && ifp->if_height) { ifp 524 fs/xfs/libxfs/xfs_inode_fork.c xfs_iext_destroy(ifp); ifp 552 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 558 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(ifp->if_bytes > 0); ifp 560 fs/xfs/libxfs/xfs_inode_fork.c for_each_xfs_iext(ifp, &icur, &rec) { ifp 571 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(copied <= ifp->if_bytes); ifp 593 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_ifork *ifp; ifp 604 fs/xfs/libxfs/xfs_inode_fork.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 609 fs/xfs/libxfs/xfs_inode_fork.c if (!ifp) { ifp 618 fs/xfs/libxfs/xfs_inode_fork.c (ifp->if_bytes > 0)) { ifp 619 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(ifp->if_u1.if_data != NULL); ifp 620 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork)); ifp 621 fs/xfs/libxfs/xfs_inode_fork.c memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); ifp 626 fs/xfs/libxfs/xfs_inode_fork.c ASSERT((ifp->if_flags & XFS_IFEXTENTS) || ifp 629 fs/xfs/libxfs/xfs_inode_fork.c (ifp->if_bytes > 0)) { ifp 638 fs/xfs/libxfs/xfs_inode_fork.c (ifp->if_broot_bytes > 0)) { ifp 639 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(ifp->if_broot != NULL); ifp 640 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= ifp 642 fs/xfs/libxfs/xfs_inode_fork.c xfs_bmbt_to_bmdr(mp, ifp->if_broot, ifp->if_broot_bytes, ifp 103 fs/xfs/libxfs/xfs_inode_fork.h xfs_extnum_t xfs_iext_count(struct xfs_ifork *ifp); ifp 111 fs/xfs/libxfs/xfs_inode_fork.h struct xfs_ifork *ifp, xfs_fileoff_t bno, ifp 115 fs/xfs/libxfs/xfs_inode_fork.h struct xfs_ifork *ifp, xfs_fileoff_t *end, ifp 118 fs/xfs/libxfs/xfs_inode_fork.h bool xfs_iext_get_extent(struct xfs_ifork *ifp, ifp 130 fs/xfs/libxfs/xfs_inode_fork.h static inline bool xfs_iext_next_extent(struct xfs_ifork *ifp, ifp 133 fs/xfs/libxfs/xfs_inode_fork.h xfs_iext_next(ifp, cur); ifp 134 fs/xfs/libxfs/xfs_inode_fork.h return xfs_iext_get_extent(ifp, cur, gotp); ifp 137 fs/xfs/libxfs/xfs_inode_fork.h static inline bool xfs_iext_prev_extent(struct xfs_ifork *ifp, ifp 140 fs/xfs/libxfs/xfs_inode_fork.h xfs_iext_prev(ifp, cur); ifp 141 fs/xfs/libxfs/xfs_inode_fork.h return xfs_iext_get_extent(ifp, cur, gotp); ifp 147 fs/xfs/libxfs/xfs_inode_fork.h static inline bool xfs_iext_peek_next_extent(struct xfs_ifork *ifp, ifp 152 fs/xfs/libxfs/xfs_inode_fork.h xfs_iext_next(ifp, &ncur); ifp 153 fs/xfs/libxfs/xfs_inode_fork.h return xfs_iext_get_extent(ifp, &ncur, gotp); ifp 159 fs/xfs/libxfs/xfs_inode_fork.h static inline bool xfs_iext_peek_prev_extent(struct xfs_ifork *ifp, ifp 164 fs/xfs/libxfs/xfs_inode_fork.h xfs_iext_prev(ifp, &ncur); ifp 165 fs/xfs/libxfs/xfs_inode_fork.h return xfs_iext_get_extent(ifp, &ncur, gotp); ifp 168 fs/xfs/libxfs/xfs_inode_fork.h #define for_each_xfs_iext(ifp, ext, got) \ ifp 169 fs/xfs/libxfs/xfs_inode_fork.h for (xfs_iext_first((ifp), (ext)); \ ifp 170 fs/xfs/libxfs/xfs_inode_fork.h xfs_iext_get_extent((ifp), (ext), (got)); \ ifp 171 fs/xfs/libxfs/xfs_inode_fork.h xfs_iext_next((ifp), (ext))) ifp 135 fs/xfs/libxfs/xfs_shared.h struct xfs_inode *ip, struct xfs_ifork *ifp); ifp 169 fs/xfs/libxfs/xfs_symlink_remote.c struct xfs_ifork *ifp) ifp 178 fs/xfs/libxfs/xfs_symlink_remote.c memcpy(bp->b_addr, ifp->if_u1.if_data, ifp->if_bytes); ifp 179 fs/xfs/libxfs/xfs_symlink_remote.c xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); ifp 188 fs/xfs/libxfs/xfs_symlink_remote.c ifp->if_bytes + sizeof(struct xfs_dsymlink_hdr)); ifp 193 fs/xfs/libxfs/xfs_symlink_remote.c buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp); ifp 194 fs/xfs/libxfs/xfs_symlink_remote.c memcpy(buf, ifp->if_u1.if_data, ifp->if_bytes); ifp 196 fs/xfs/libxfs/xfs_symlink_remote.c ifp->if_bytes - 1); ifp 209 fs/xfs/libxfs/xfs_symlink_remote.c struct xfs_ifork *ifp; ifp 213 fs/xfs/libxfs/xfs_symlink_remote.c ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); ifp 214 fs/xfs/libxfs/xfs_symlink_remote.c sfp = (char *)ifp->if_u1.if_data; ifp 215 fs/xfs/libxfs/xfs_symlink_remote.c size = ifp->if_bytes; ifp 380 fs/xfs/scrub/bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, info->whichfork); ifp 410 fs/xfs/scrub/bmap.c if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, ifp 429 fs/xfs/scrub/bmap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(sc->ip, whichfork); ifp 436 fs/xfs/scrub/bmap.c info->was_loaded = ifp->if_flags & XFS_IFEXTENTS; ifp 467 fs/xfs/scrub/bmap.c struct xfs_ifork *ifp; ifp 481 fs/xfs/scrub/bmap.c ifp = XFS_IFORK_PTR(sc->ip, sbcri->whichfork); ifp 482 fs/xfs/scrub/bmap.c if (!ifp) { ifp 487 fs/xfs/scrub/bmap.c have_map = xfs_iext_lookup_extent(sc->ip, ifp, rec->rm_offset, ifp 517 fs/xfs/scrub/bmap.c have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); ifp 630 fs/xfs/scrub/bmap.c struct xfs_ifork *ifp; ifp 635 fs/xfs/scrub/bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 645 fs/xfs/scrub/bmap.c if (!ifp) ifp 654 fs/xfs/scrub/bmap.c if (!ifp) ifp 673 fs/xfs/scrub/bmap.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 703 fs/xfs/scrub/bmap.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 704 fs/xfs/scrub/bmap.c for_each_xfs_iext(ifp, &icur, &irec) { ifp 629 fs/xfs/scrub/dir.c struct xfs_ifork *ifp; ifp 645 fs/xfs/scrub/dir.c ifp = XFS_IFORK_PTR(sc->ip, XFS_DATA_FORK); ifp 659 fs/xfs/scrub/dir.c found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); ifp 696 fs/xfs/scrub/dir.c found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); ifp 703 fs/xfs/scrub/dir.c if (xfs_iext_lookup_extent(sc->ip, ifp, leaf_lblk, &icur, &got) && ifp 706 fs/xfs/scrub/dir.c !xfs_iext_next_extent(ifp, &icur, &got)) { ifp 722 fs/xfs/scrub/dir.c found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); ifp 760 fs/xfs/scrub/dir.c found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); ifp 192 fs/xfs/scrub/quota.c struct xfs_ifork *ifp; ifp 203 fs/xfs/scrub/quota.c ifp = XFS_IFORK_PTR(sc->ip, XFS_DATA_FORK); ifp 204 fs/xfs/scrub/quota.c for_each_xfs_iext(ifp, &icur, &irec) { ifp 39 fs/xfs/scrub/symlink.c struct xfs_ifork *ifp; ifp 45 fs/xfs/scrub/symlink.c ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); ifp 55 fs/xfs/scrub/symlink.c if (ifp->if_flags & XFS_IFINLINE) { ifp 57 fs/xfs/scrub/symlink.c len > strnlen(ifp->if_u1.if_data, XFS_IFORK_DSIZE(ip))) ifp 214 fs/xfs/xfs_bmap_util.c struct xfs_ifork *ifp, ifp 221 fs/xfs/xfs_bmap_util.c for_each_xfs_iext(ifp, &icur, &got) { ifp 259 fs/xfs/xfs_bmap_util.c struct xfs_ifork *ifp, ifp 299 fs/xfs/xfs_bmap_util.c error = xfs_bmap_count_tree(mp, tp, ifp, bno, level, nextents, ifp 346 fs/xfs/xfs_bmap_util.c struct xfs_ifork *ifp; /* fork structure */ ifp 355 fs/xfs/xfs_bmap_util.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 356 fs/xfs/xfs_bmap_util.c if (!ifp) ifp 361 fs/xfs/xfs_bmap_util.c *nextents = xfs_bmap_count_leaves(ifp, count); ifp 364 fs/xfs/xfs_bmap_util.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 373 fs/xfs/xfs_bmap_util.c block = ifp->if_broot; ifp 376 fs/xfs/xfs_bmap_util.c pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, 1, ifp->if_broot_bytes); ifp 382 fs/xfs/xfs_bmap_util.c error = xfs_bmap_count_tree(mp, tp, ifp, bno, level, ifp 512 fs/xfs/xfs_bmap_util.c struct xfs_ifork *ifp; ifp 539 fs/xfs/xfs_bmap_util.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 552 fs/xfs/xfs_bmap_util.c if (!ifp) ifp 613 fs/xfs/xfs_bmap_util.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 619 fs/xfs/xfs_bmap_util.c if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { ifp 658 fs/xfs/xfs_bmap_util.c if (!xfs_iext_next_extent(ifp, &icur, &got)) { ifp 694 fs/xfs/xfs_bmap_util.c struct xfs_ifork *ifp = &ip->i_df; ifp 700 fs/xfs/xfs_bmap_util.c ASSERT(ifp->if_flags & XFS_IFEXTENTS); ifp 703 fs/xfs/xfs_bmap_util.c if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) ifp 717 fs/xfs/xfs_bmap_util.c if (!xfs_iext_prev_extent(ifp, &icur, &got)) ifp 724 fs/xfs/xfs_bmap_util.c if (error || !xfs_iext_get_extent(ifp, &icur, &got)) ifp 78 fs/xfs/xfs_bmap_util.h xfs_extnum_t xfs_bmap_count_leaves(struct xfs_ifork *ifp, xfs_filblks_t *count); ifp 245 fs/xfs/xfs_dir2_readdir.c struct xfs_ifork *ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); ifp 256 fs/xfs/xfs_dir2_readdir.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 269 fs/xfs/xfs_dir2_readdir.c if (!xfs_iext_lookup_extent(dp, ifp, map_off, &icur, &map)) ifp 297 fs/xfs/xfs_dir2_readdir.c !xfs_iext_next_extent(ifp, &icur, &map)) ifp 320 fs/xfs/xfs_dir2_readdir.c if (!xfs_iext_next_extent(ifp, &icur, &map)) { ifp 2715 fs/xfs/xfs_inode.c struct xfs_ifork *ifp; ifp 2720 fs/xfs/xfs_inode.c ifp = XFS_IFORK_PTR(ip, whichfork); ifp 2721 fs/xfs/xfs_inode.c xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); ifp 3745 fs/xfs/xfs_inode.c struct xfs_ifork *ifp; ifp 3750 fs/xfs/xfs_inode.c ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); ifp 3752 fs/xfs/xfs_inode.c ifp->if_u1.if_data, ifp->if_bytes, fa); ifp 3758 fs/xfs/xfs_inode.c ifp = XFS_IFORK_PTR(ip, XFS_ATTR_FORK); ifp 3760 fs/xfs/xfs_inode.c ifp ? ifp->if_u1.if_data : NULL, ifp 3761 fs/xfs/xfs_inode.c ifp ? ifp->if_bytes : 0, fa); ifp 401 fs/xfs/xfs_iomap.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 423 fs/xfs/xfs_iomap.c !xfs_iext_peek_prev_extent(ifp, icur, &prev) || ifp 1149 fs/xfs/xfs_qm.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); ifp 1151 fs/xfs/xfs_qm.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 1157 fs/xfs/xfs_qm.c xfs_bmap_count_leaves(ifp, &rtblks); ifp 466 fs/xfs/xfs_reflink.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK); ifp 473 fs/xfs/xfs_reflink.c if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) ifp 483 fs/xfs/xfs_reflink.c xfs_iext_prev(ifp, &icur); ifp 520 fs/xfs/xfs_reflink.c xfs_iext_prev(ifp, &icur); ifp 523 fs/xfs/xfs_reflink.c if (!xfs_iext_get_extent(ifp, &icur, &got)) ifp 528 fs/xfs/xfs_reflink.c if (!ifp->if_bytes) ifp 608 fs/xfs/xfs_reflink.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK); ifp 614 fs/xfs/xfs_reflink.c if (ifp->if_bytes == 0) { ifp 638 fs/xfs/xfs_reflink.c if (!xfs_iext_lookup_extent_before(ip, ifp, end_fsb, &icur, &got) || ifp 1473 fs/xfs/xfs_reflink.c struct xfs_ifork *ifp; ifp 1483 fs/xfs/xfs_reflink.c ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); ifp 1484 fs/xfs/xfs_reflink.c if (!(ifp->if_flags & XFS_IFEXTENTS)) { ifp 1491 fs/xfs/xfs_reflink.c found = xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got); ifp 1510 fs/xfs/xfs_reflink.c found = xfs_iext_next_extent(ifp, &icur, &got); ifp 902 fs/xfs/xfs_super.c struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); ifp 906 fs/xfs/xfs_super.c if (!ifp || !xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got)) ifp 916 fs/xfs/xfs_super.c } while (xfs_iext_next_extent(ifp, &icur, &got)); ifp 231 fs/xfs/xfs_trace.h struct xfs_ifork *ifp; ifp 234 fs/xfs/xfs_trace.h ifp = xfs_iext_state_to_fork(ip, state); ifp 235 fs/xfs/xfs_trace.h xfs_iext_get_extent(ifp, cur, &r); ifp 234 include/net/addrconf.h void addrconf_dad_failure(struct sk_buff *skb, struct inet6_ifaddr *ifp); ifp 405 include/net/addrconf.h void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp); ifp 407 include/net/addrconf.h static inline void in6_ifa_put(struct inet6_ifaddr *ifp) ifp 409 include/net/addrconf.h if (refcount_dec_and_test(&ifp->refcnt)) ifp 410 include/net/addrconf.h inet6_ifa_finish_destroy(ifp); ifp 413 include/net/addrconf.h static inline void __in6_ifa_put(struct inet6_ifaddr *ifp) ifp 415 include/net/addrconf.h refcount_dec(&ifp->refcnt); ifp 418 include/net/addrconf.h static inline void in6_ifa_hold(struct inet6_ifaddr *ifp) ifp 420 include/net/addrconf.h refcount_inc(&ifp->refcnt); ifp 202 include/net/ip6_route.h void rt6_remove_prefsrc(struct inet6_ifaddr *ifp); ifp 723 net/core/netpoll.c struct inet6_ifaddr *ifp; ifp 726 net/core/netpoll.c list_for_each_entry(ifp, &idev->addr_list, if_list) { ifp 727 net/core/netpoll.c if (!!(ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL) != ifp 730 net/core/netpoll.c np->local_ip.in6 = ifp->addr; ifp 2087 net/core/pktgen.c struct inet6_ifaddr *ifp; ifp 2090 net/core/pktgen.c list_for_each_entry(ifp, &idev->addr_list, if_list) { ifp 2091 net/core/pktgen.c if ((ifp->scope & IFA_LINK) && ifp 2092 net/core/pktgen.c !(ifp->flags & IFA_F_TENTATIVE)) { ifp 2093 net/core/pktgen.c pkt_dev->cur_in6_saddr = ifp->addr; ifp 162 net/ipv6/addrconf.c static void addrconf_join_anycast(struct inet6_ifaddr *ifp); ifp 163 net/ipv6/addrconf.c static void addrconf_leave_anycast(struct inet6_ifaddr *ifp); ifp 175 net/ipv6/addrconf.c static void addrconf_dad_start(struct inet6_ifaddr *ifp); ifp 177 net/ipv6/addrconf.c static void addrconf_dad_completed(struct inet6_ifaddr *ifp, bool bump_id, ifp 307 net/ipv6/addrconf.c static void addrconf_del_dad_work(struct inet6_ifaddr *ifp) ifp 309 net/ipv6/addrconf.c if (cancel_delayed_work(&ifp->dad_work)) ifp 310 net/ipv6/addrconf.c __in6_ifa_put(ifp); ifp 321 net/ipv6/addrconf.c static void addrconf_mod_dad_work(struct inet6_ifaddr *ifp, ifp 324 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 325 net/ipv6/addrconf.c if (mod_delayed_work(addrconf_wq, &ifp->dad_work, delay)) ifp 326 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 949 net/ipv6/addrconf.c void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp) ifp 951 net/ipv6/addrconf.c WARN_ON(!hlist_unhashed(&ifp->addr_lst)); ifp 957 net/ipv6/addrconf.c in6_dev_put(ifp->idev); ifp 959 net/ipv6/addrconf.c if (cancel_delayed_work(&ifp->dad_work)) ifp 961 net/ipv6/addrconf.c ifp); ifp 963 net/ipv6/addrconf.c if (ifp->state != INET6_IFADDR_STATE_DEAD) { ifp 964 net/ipv6/addrconf.c pr_warn("Freeing alive inet6 address %p\n", ifp); ifp 968 net/ipv6/addrconf.c kfree_rcu(ifp, rcu); ifp 972 net/ipv6/addrconf.c ipv6_link_dev_addr(struct inet6_dev *idev, struct inet6_ifaddr *ifp) ifp 975 net/ipv6/addrconf.c int ifp_scope = ipv6_addr_src_scope(&ifp->addr); ifp 988 net/ipv6/addrconf.c list_add_tail_rcu(&ifp->if_list, p); ifp 1001 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 1003 net/ipv6/addrconf.c hlist_for_each_entry(ifp, &inet6_addr_lst[hash], addr_lst) { ifp 1004 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) ifp 1006 net/ipv6/addrconf.c if (ipv6_addr_equal(&ifp->addr, addr)) { ifp 1007 net/ipv6/addrconf.c if (!dev || ifp->idev->dev == dev) ifp 1191 net/ipv6/addrconf.c check_cleanup_prefix_route(struct inet6_ifaddr *ifp, unsigned long *expires) ifp 1194 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 1201 net/ipv6/addrconf.c if (ifa == ifp) ifp 1203 net/ipv6/addrconf.c if (ifa->prefix_len != ifp->prefix_len || ifp 1204 net/ipv6/addrconf.c !ipv6_prefix_equal(&ifa->addr, &ifp->addr, ifp 1205 net/ipv6/addrconf.c ifp->prefix_len)) ifp 1229 net/ipv6/addrconf.c cleanup_prefix_route(struct inet6_ifaddr *ifp, unsigned long expires, ifp 1234 net/ipv6/addrconf.c f6i = addrconf_get_prefix_route(del_peer ? &ifp->peer_addr : &ifp->addr, ifp 1235 net/ipv6/addrconf.c ifp->prefix_len, ifp 1236 net/ipv6/addrconf.c ifp->idev->dev, 0, RTF_DEFAULT, true); ifp 1239 net/ipv6/addrconf.c ip6_del_rt(dev_net(ifp->idev->dev), f6i); ifp 1251 net/ipv6/addrconf.c static void ipv6_del_addr(struct inet6_ifaddr *ifp) ifp 1259 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 1260 net/ipv6/addrconf.c state = ifp->state; ifp 1261 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_DEAD; ifp 1262 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 1268 net/ipv6/addrconf.c hlist_del_init_rcu(&ifp->addr_lst); ifp 1271 net/ipv6/addrconf.c write_lock_bh(&ifp->idev->lock); ifp 1273 net/ipv6/addrconf.c if (ifp->flags&IFA_F_TEMPORARY) { ifp 1274 net/ipv6/addrconf.c list_del(&ifp->tmp_list); ifp 1275 net/ipv6/addrconf.c if (ifp->ifpub) { ifp 1276 net/ipv6/addrconf.c in6_ifa_put(ifp->ifpub); ifp 1277 net/ipv6/addrconf.c ifp->ifpub = NULL; ifp 1279 net/ipv6/addrconf.c __in6_ifa_put(ifp); ifp 1282 net/ipv6/addrconf.c if (ifp->flags & IFA_F_PERMANENT && !(ifp->flags & IFA_F_NOPREFIXROUTE)) ifp 1283 net/ipv6/addrconf.c action = check_cleanup_prefix_route(ifp, &expires); ifp 1285 net/ipv6/addrconf.c list_del_rcu(&ifp->if_list); ifp 1286 net/ipv6/addrconf.c __in6_ifa_put(ifp); ifp 1288 net/ipv6/addrconf.c write_unlock_bh(&ifp->idev->lock); ifp 1290 net/ipv6/addrconf.c addrconf_del_dad_work(ifp); ifp 1292 net/ipv6/addrconf.c ipv6_ifa_notify(RTM_DELADDR, ifp); ifp 1294 net/ipv6/addrconf.c inet6addr_notifier_call_chain(NETDEV_DOWN, ifp); ifp 1297 net/ipv6/addrconf.c cleanup_prefix_route(ifp, expires, ifp 1302 net/ipv6/addrconf.c rt6_remove_prefsrc(ifp); ifp 1304 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 1307 net/ipv6/addrconf.c static int ipv6_create_tempaddr(struct inet6_ifaddr *ifp, ifp 1311 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 1339 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 1340 net/ipv6/addrconf.c if (ifp->regen_count++ >= idev->cnf.regen_max_retry) { ifp 1342 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 1350 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 1351 net/ipv6/addrconf.c memcpy(addr.s6_addr, ifp->addr.s6_addr, 8); ifp 1354 net/ipv6/addrconf.c age = (now - ifp->tstamp) / HZ; ifp 1379 net/ipv6/addrconf.c cfg.valid_lft = min_t(__u32, ifp->valid_lft, ifp 1382 net/ipv6/addrconf.c cfg.preferred_lft = min_t(__u32, ifp->prefered_lft, cfg.preferred_lft); ifp 1384 net/ipv6/addrconf.c cfg.plen = ifp->prefix_len; ifp 1385 net/ipv6/addrconf.c tmp_tstamp = ifp->tstamp; ifp 1386 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 1399 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 1407 net/ipv6/addrconf.c if (ifp->flags & IFA_F_OPTIMISTIC) ifp 1415 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 1424 net/ipv6/addrconf.c ift->ifpub = ifp; ifp 1843 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 1846 net/ipv6/addrconf.c list_for_each_entry_reverse(ifp, &idev->addr_list, if_list) { ifp 1847 net/ipv6/addrconf.c if (ifp->scope > IFA_LINK) ifp 1849 net/ipv6/addrconf.c if (ifp->scope == IFA_LINK && ifp 1850 net/ipv6/addrconf.c !(ifp->flags & banned_flags)) { ifp 1851 net/ipv6/addrconf.c *addr = ifp->addr; ifp 1878 net/ipv6/addrconf.c const struct inet6_ifaddr *ifp; ifp 1882 net/ipv6/addrconf.c list_for_each_entry_rcu(ifp, &idev->addr_list, if_list) ifp 1911 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 1920 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) { ifp 1921 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) ifp 1924 net/ipv6/addrconf.c if (l3mdev_master_dev_rcu(ifp->idev->dev) != l3mdev) ifp 1930 net/ipv6/addrconf.c ifp_flags = (ifp->flags&IFA_F_OPTIMISTIC) ifp 1931 net/ipv6/addrconf.c ? (ifp->flags&~IFA_F_TENTATIVE) ifp 1932 net/ipv6/addrconf.c : ifp->flags; ifp 1933 net/ipv6/addrconf.c if (ipv6_addr_equal(&ifp->addr, addr) && ifp 1935 net/ipv6/addrconf.c (!dev || ifp->idev->dev == dev || ifp 1936 net/ipv6/addrconf.c !(ifp->scope&(IFA_LINK|IFA_HOST) || strict))) { ifp 1999 net/ipv6/addrconf.c struct inet6_ifaddr *ifp, *result = NULL; ifp 2002 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) { ifp 2003 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) ifp 2005 net/ipv6/addrconf.c if (ipv6_addr_equal(&ifp->addr, addr)) { ifp 2006 net/ipv6/addrconf.c if (!dev || ifp->idev->dev == dev || ifp 2007 net/ipv6/addrconf.c !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) { ifp 2008 net/ipv6/addrconf.c result = ifp; ifp 2009 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 2021 net/ipv6/addrconf.c static void addrconf_dad_stop(struct inet6_ifaddr *ifp, int dad_failed) ifp 2024 net/ipv6/addrconf.c ifp->flags |= IFA_F_DADFAILED; ifp 2026 net/ipv6/addrconf.c if (ifp->flags&IFA_F_TEMPORARY) { ifp 2028 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2029 net/ipv6/addrconf.c ifpub = ifp->ifpub; ifp 2032 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2033 net/ipv6/addrconf.c ipv6_create_tempaddr(ifpub, ifp, true); ifp 2036 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2038 net/ipv6/addrconf.c ipv6_del_addr(ifp); ifp 2039 net/ipv6/addrconf.c } else if (ifp->flags&IFA_F_PERMANENT || !dad_failed) { ifp 2040 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2041 net/ipv6/addrconf.c addrconf_del_dad_work(ifp); ifp 2042 net/ipv6/addrconf.c ifp->flags |= IFA_F_TENTATIVE; ifp 2044 net/ipv6/addrconf.c ifp->flags &= ~IFA_F_OPTIMISTIC; ifp 2045 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2047 net/ipv6/addrconf.c ipv6_ifa_notify(0, ifp); ifp 2048 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 2050 net/ipv6/addrconf.c ipv6_del_addr(ifp); ifp 2054 net/ipv6/addrconf.c static int addrconf_dad_end(struct inet6_ifaddr *ifp) ifp 2058 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2059 net/ipv6/addrconf.c if (ifp->state == INET6_IFADDR_STATE_DAD) { ifp 2060 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_POSTDAD; ifp 2063 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2068 net/ipv6/addrconf.c void addrconf_dad_failure(struct sk_buff *skb, struct inet6_ifaddr *ifp) ifp 2070 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 2071 net/ipv6/addrconf.c struct net *net = dev_net(ifp->idev->dev); ifp 2073 net/ipv6/addrconf.c if (addrconf_dad_end(ifp)) { ifp 2074 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 2079 net/ipv6/addrconf.c ifp->idev->dev->name, &ifp->addr, eth_hdr(skb)->h_source); ifp 2081 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2083 net/ipv6/addrconf.c if (ifp->flags & IFA_F_STABLE_PRIVACY) { ifp 2086 net/ipv6/addrconf.c int retries = ifp->stable_privacy_retry + 1; ifp 2089 net/ipv6/addrconf.c .plen = ifp->prefix_len, ifp 2090 net/ipv6/addrconf.c .ifa_flags = ifp->flags, ifp 2091 net/ipv6/addrconf.c .valid_lft = ifp->valid_lft, ifp 2092 net/ipv6/addrconf.c .preferred_lft = ifp->prefered_lft, ifp 2093 net/ipv6/addrconf.c .scope = ifp->scope, ifp 2098 net/ipv6/addrconf.c ifp->idev->dev->name); ifp 2102 net/ipv6/addrconf.c new_addr = ifp->addr; ifp 2107 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2115 net/ipv6/addrconf.c ifp->idev->dev->name); ifp 2129 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2134 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_ERRDAD; ifp 2135 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2137 net/ipv6/addrconf.c addrconf_mod_dad_work(ifp, 0); ifp 2138 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 2167 net/ipv6/addrconf.c static void addrconf_join_anycast(struct inet6_ifaddr *ifp) ifp 2171 net/ipv6/addrconf.c if (ifp->prefix_len >= 127) /* RFC 6164 */ ifp 2173 net/ipv6/addrconf.c ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len); ifp 2176 net/ipv6/addrconf.c __ipv6_dev_ac_inc(ifp->idev, &addr); ifp 2180 net/ipv6/addrconf.c static void addrconf_leave_anycast(struct inet6_ifaddr *ifp) ifp 2184 net/ipv6/addrconf.c if (ifp->prefix_len >= 127) /* RFC 6164 */ ifp 2186 net/ipv6/addrconf.c ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len); ifp 2189 net/ipv6/addrconf.c __ipv6_dev_ac_dec(ifp->idev, &addr); ifp 2314 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 2317 net/ipv6/addrconf.c list_for_each_entry_reverse(ifp, &idev->addr_list, if_list) { ifp 2318 net/ipv6/addrconf.c if (ifp->scope > IFA_LINK) ifp 2320 net/ipv6/addrconf.c if (ifp->scope == IFA_LINK && !(ifp->flags&IFA_F_TENTATIVE)) { ifp 2321 net/ipv6/addrconf.c memcpy(eui, ifp->addr.s6_addr+8, 8); ifp 2485 net/ipv6/addrconf.c struct inet6_ifaddr *ifp, ifp 2497 net/ipv6/addrconf.c if (ifp != ift->ifpub) ifp 2545 net/ipv6/addrconf.c ipv6_create_tempaddr(ifp, NULL, false); ifp 2564 net/ipv6/addrconf.c struct inet6_ifaddr *ifp = ipv6_get_ifaddr(net, addr, dev, 1); ifp 2567 net/ipv6/addrconf.c if (!ifp && valid_lft) { ifp 2590 net/ipv6/addrconf.c ifp = ipv6_add_addr(in6_dev, &cfg, false, NULL); ifp 2592 net/ipv6/addrconf.c if (IS_ERR_OR_NULL(ifp)) ifp 2596 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2597 net/ipv6/addrconf.c ifp->flags |= IFA_F_MANAGETEMPADDR; ifp 2598 net/ipv6/addrconf.c ifp->cstamp = jiffies; ifp 2599 net/ipv6/addrconf.c ifp->tokenized = tokenized; ifp 2600 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2601 net/ipv6/addrconf.c addrconf_dad_start(ifp); ifp 2604 net/ipv6/addrconf.c if (ifp) { ifp 2610 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 2612 net/ipv6/addrconf.c if (ifp->valid_lft > (now - ifp->tstamp) / HZ) ifp 2613 net/ipv6/addrconf.c stored_lft = ifp->valid_lft - (now - ifp->tstamp) / HZ; ifp 2635 net/ipv6/addrconf.c ifp->valid_lft = valid_lft; ifp 2636 net/ipv6/addrconf.c ifp->prefered_lft = prefered_lft; ifp 2637 net/ipv6/addrconf.c ifp->tstamp = now; ifp 2638 net/ipv6/addrconf.c flags = ifp->flags; ifp 2639 net/ipv6/addrconf.c ifp->flags &= ~IFA_F_DEPRECATED; ifp 2640 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2643 net/ipv6/addrconf.c ipv6_ifa_notify(0, ifp); ifp 2645 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 2647 net/ipv6/addrconf.c manage_tempaddrs(in6_dev, ifp, valid_lft, prefered_lft, ifp 2650 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 2900 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 2955 net/ipv6/addrconf.c ifp = ipv6_add_addr(idev, cfg, true, extack); ifp 2956 net/ipv6/addrconf.c if (!IS_ERR(ifp)) { ifp 2958 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, ifp 2959 net/ipv6/addrconf.c ifp->rt_priority, dev, expires, ifp 2966 net/ipv6/addrconf.c if (!(ifp->flags & (IFA_F_OPTIMISTIC | IFA_F_NODAD))) ifp 2967 net/ipv6/addrconf.c ipv6_ifa_notify(0, ifp); ifp 2973 net/ipv6/addrconf.c addrconf_dad_start(ifp); ifp 2975 net/ipv6/addrconf.c manage_tempaddrs(idev, ifp, cfg->valid_lft, ifp 2977 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 2985 net/ipv6/addrconf.c return PTR_ERR(ifp); ifp 2991 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 3007 net/ipv6/addrconf.c list_for_each_entry(ifp, &idev->addr_list, if_list) { ifp 3008 net/ipv6/addrconf.c if (ifp->prefix_len == plen && ifp 3009 net/ipv6/addrconf.c ipv6_addr_equal(pfx, &ifp->addr)) { ifp 3010 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 3013 net/ipv6/addrconf.c if (!(ifp->flags & IFA_F_TEMPORARY) && ifp 3015 net/ipv6/addrconf.c manage_tempaddrs(idev, ifp, 0, 0, false, ifp 3017 net/ipv6/addrconf.c ipv6_del_addr(ifp); ifp 3077 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 3087 net/ipv6/addrconf.c ifp = ipv6_add_addr(idev, &cfg, true, NULL); ifp 3088 net/ipv6/addrconf.c if (!IS_ERR(ifp)) { ifp 3089 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 3090 net/ipv6/addrconf.c ifp->flags &= ~IFA_F_TENTATIVE; ifp 3091 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 3093 net/ipv6/addrconf.c ipv6_ifa_notify(RTM_NEWADDR, ifp); ifp 3094 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 3183 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 3192 net/ipv6/addrconf.c ifp = ipv6_add_addr(idev, &cfg, true, NULL); ifp 3193 net/ipv6/addrconf.c if (!IS_ERR(ifp)) { ifp 3194 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, 0, idev->dev, ifp 3196 net/ipv6/addrconf.c addrconf_dad_start(ifp); ifp 3197 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 3425 net/ipv6/addrconf.c struct inet6_ifaddr *ifp) ifp 3431 net/ipv6/addrconf.c if (!ifp->rt || !ifp->rt->fib6_node) { ifp 3434 net/ipv6/addrconf.c f6i = addrconf_f6i_alloc(net, idev, &ifp->addr, false, ifp 3440 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 3441 net/ipv6/addrconf.c prev = ifp->rt; ifp 3442 net/ipv6/addrconf.c ifp->rt = f6i; ifp 3443 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 3448 net/ipv6/addrconf.c if (!(ifp->flags & IFA_F_NOPREFIXROUTE)) { ifp 3449 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, ifp 3450 net/ipv6/addrconf.c ifp->rt_priority, idev->dev, 0, 0, ifp 3454 net/ipv6/addrconf.c if (ifp->state == INET6_IFADDR_STATE_PREDAD) ifp 3455 net/ipv6/addrconf.c addrconf_dad_start(ifp); ifp 3462 net/ipv6/addrconf.c struct inet6_ifaddr *ifp, *tmp; ifp 3471 net/ipv6/addrconf.c list_for_each_entry_safe(ifp, tmp, &idev->addr_list, if_list) { ifp 3472 net/ipv6/addrconf.c if ((ifp->flags & IFA_F_PERMANENT) && ifp 3473 net/ipv6/addrconf.c fixup_permanent_addr(net, idev, ifp) < 0) { ifp 3475 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 3476 net/ipv6/addrconf.c ipv6_del_addr(ifp); ifp 3480 net/ipv6/addrconf.c idev->dev->name, &ifp->addr); ifp 3919 net/ipv6/addrconf.c static void addrconf_dad_kick(struct inet6_ifaddr *ifp) ifp 3922 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 3925 net/ipv6/addrconf.c if (ifp->flags & IFA_F_OPTIMISTIC) ifp 3937 net/ipv6/addrconf.c ifp->dad_nonce = nonce; ifp 3938 net/ipv6/addrconf.c ifp->dad_probes = idev->cnf.dad_transmits; ifp 3939 net/ipv6/addrconf.c addrconf_mod_dad_work(ifp, rand_num); ifp 3942 net/ipv6/addrconf.c static void addrconf_dad_begin(struct inet6_ifaddr *ifp) ifp 3944 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 3949 net/ipv6/addrconf.c addrconf_join_solict(dev, &ifp->addr); ifp 3951 net/ipv6/addrconf.c prandom_seed((__force u32) ifp->addr.s6_addr32[3]); ifp 3954 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 3955 net/ipv6/addrconf.c if (ifp->state == INET6_IFADDR_STATE_DEAD) ifp 3962 net/ipv6/addrconf.c !(ifp->flags&IFA_F_TENTATIVE) || ifp 3963 net/ipv6/addrconf.c ifp->flags & IFA_F_NODAD) { ifp 3966 net/ipv6/addrconf.c if (ifp->flags & IFA_F_TENTATIVE && ifp 3967 net/ipv6/addrconf.c !(ifp->flags & IFA_F_OPTIMISTIC)) ifp 3969 net/ipv6/addrconf.c bump_id = ifp->flags & IFA_F_TENTATIVE; ifp 3970 net/ipv6/addrconf.c ifp->flags &= ~(IFA_F_TENTATIVE|IFA_F_OPTIMISTIC|IFA_F_DADFAILED); ifp 3971 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 3974 net/ipv6/addrconf.c addrconf_dad_completed(ifp, bump_id, send_na); ifp 3979 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 3986 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 3987 net/ipv6/addrconf.c addrconf_dad_stop(ifp, 0); ifp 3995 net/ipv6/addrconf.c if (ifp->flags & IFA_F_OPTIMISTIC) { ifp 3996 net/ipv6/addrconf.c ip6_ins_rt(net, ifp->rt); ifp 4005 net/ipv6/addrconf.c addrconf_dad_kick(ifp); ifp 4007 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4010 net/ipv6/addrconf.c ipv6_ifa_notify(RTM_NEWADDR, ifp); ifp 4013 net/ipv6/addrconf.c static void addrconf_dad_start(struct inet6_ifaddr *ifp) ifp 4017 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 4018 net/ipv6/addrconf.c if (ifp->state != INET6_IFADDR_STATE_DEAD) { ifp 4019 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_PREDAD; ifp 4022 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 4025 net/ipv6/addrconf.c addrconf_mod_dad_work(ifp, 0); ifp 4030 net/ipv6/addrconf.c struct inet6_ifaddr *ifp = container_of(to_delayed_work(w), ifp 4033 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 4045 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 4046 net/ipv6/addrconf.c if (ifp->state == INET6_IFADDR_STATE_PREDAD) { ifp 4048 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_DAD; ifp 4049 net/ipv6/addrconf.c } else if (ifp->state == INET6_IFADDR_STATE_ERRDAD) { ifp 4051 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_POSTDAD; ifp 4056 net/ipv6/addrconf.c !(ifp->flags & IFA_F_STABLE_PRIVACY)) { ifp 4063 net/ipv6/addrconf.c ipv6_addr_equal(&ifp->addr, &addr)) { ifp 4068 net/ipv6/addrconf.c ifp->idev->dev->name); ifp 4073 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 4076 net/ipv6/addrconf.c addrconf_dad_begin(ifp); ifp 4079 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 4080 net/ipv6/addrconf.c addrconf_dad_stop(ifp, 1); ifp 4086 net/ipv6/addrconf.c if (!ifp->dad_probes && addrconf_dad_end(ifp)) ifp 4095 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 4096 net/ipv6/addrconf.c if (ifp->state == INET6_IFADDR_STATE_DEAD) { ifp 4097 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4102 net/ipv6/addrconf.c if (ifp->dad_probes == 0) { ifp 4109 net/ipv6/addrconf.c if (ifp->flags & IFA_F_TENTATIVE && ifp 4110 net/ipv6/addrconf.c !(ifp->flags & IFA_F_OPTIMISTIC)) ifp 4112 net/ipv6/addrconf.c bump_id = ifp->flags & IFA_F_TENTATIVE; ifp 4113 net/ipv6/addrconf.c ifp->flags &= ~(IFA_F_TENTATIVE|IFA_F_OPTIMISTIC|IFA_F_DADFAILED); ifp 4114 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4117 net/ipv6/addrconf.c addrconf_dad_completed(ifp, bump_id, send_na); ifp 4122 net/ipv6/addrconf.c ifp->dad_probes--; ifp 4123 net/ipv6/addrconf.c addrconf_mod_dad_work(ifp, ifp 4124 net/ipv6/addrconf.c NEIGH_VAR(ifp->idev->nd_parms, RETRANS_TIME)); ifp 4125 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4129 net/ipv6/addrconf.c addrconf_addr_solict_mult(&ifp->addr, &mcaddr); ifp 4130 net/ipv6/addrconf.c ndisc_send_ns(ifp->idev->dev, &ifp->addr, &mcaddr, &in6addr_any, ifp 4131 net/ipv6/addrconf.c ifp->dad_nonce); ifp 4133 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 4138 net/ipv6/addrconf.c static bool ipv6_lonely_lladdr(struct inet6_ifaddr *ifp) ifp 4141 net/ipv6/addrconf.c struct inet6_dev *idev = ifp->idev; ifp 4146 net/ipv6/addrconf.c if (ifp != ifpiter && ifpiter->scope == IFA_LINK && ifp 4155 net/ipv6/addrconf.c static void addrconf_dad_completed(struct inet6_ifaddr *ifp, bool bump_id, ifp 4158 net/ipv6/addrconf.c struct net_device *dev = ifp->idev->dev; ifp 4162 net/ipv6/addrconf.c addrconf_del_dad_work(ifp); ifp 4168 net/ipv6/addrconf.c ipv6_ifa_notify(RTM_NEWADDR, ifp); ifp 4174 net/ipv6/addrconf.c read_lock_bh(&ifp->idev->lock); ifp 4175 net/ipv6/addrconf.c send_mld = ifp->scope == IFA_LINK && ipv6_lonely_lladdr(ifp); ifp 4177 net/ipv6/addrconf.c ipv6_accept_ra(ifp->idev) && ifp 4178 net/ipv6/addrconf.c ifp->idev->cnf.rtr_solicits != 0 && ifp 4180 net/ipv6/addrconf.c read_unlock_bh(&ifp->idev->lock); ifp 4186 net/ipv6/addrconf.c ipv6_mc_dad_complete(ifp->idev); ifp 4190 net/ipv6/addrconf.c (ifp->idev->cnf.ndisc_notify || ifp 4192 net/ipv6/addrconf.c ndisc_send_na(dev, &in6addr_linklocal_allnodes, &ifp->addr, ifp 4193 net/ipv6/addrconf.c /*router=*/ !!ifp->idev->cnf.forwarding, ifp 4208 net/ipv6/addrconf.c write_lock_bh(&ifp->idev->lock); ifp 4209 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 4210 net/ipv6/addrconf.c ifp->idev->rs_interval = rfc3315_s14_backoff_init( ifp 4211 net/ipv6/addrconf.c ifp->idev->cnf.rtr_solicit_interval); ifp 4212 net/ipv6/addrconf.c ifp->idev->rs_probes = 1; ifp 4213 net/ipv6/addrconf.c ifp->idev->if_flags |= IF_RS_SENT; ifp 4214 net/ipv6/addrconf.c addrconf_mod_rs_timer(ifp->idev, ifp->idev->rs_interval); ifp 4215 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4216 net/ipv6/addrconf.c write_unlock_bh(&ifp->idev->lock); ifp 4225 net/ipv6/addrconf.c if (ifp->flags & IFA_F_TEMPORARY) ifp 4231 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 4234 net/ipv6/addrconf.c list_for_each_entry(ifp, &idev->addr_list, if_list) { ifp 4235 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 4236 net/ipv6/addrconf.c if ((ifp->flags & IFA_F_TENTATIVE && ifp 4237 net/ipv6/addrconf.c ifp->state == INET6_IFADDR_STATE_DAD) || restart) { ifp 4239 net/ipv6/addrconf.c ifp->state = INET6_IFADDR_STATE_PREDAD; ifp 4240 net/ipv6/addrconf.c addrconf_dad_kick(ifp); ifp 4242 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4337 net/ipv6/addrconf.c struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v; ifp 4339 net/ipv6/addrconf.c &ifp->addr, ifp 4340 net/ipv6/addrconf.c ifp->idev->dev->ifindex, ifp 4341 net/ipv6/addrconf.c ifp->prefix_len, ifp 4342 net/ipv6/addrconf.c ifp->scope, ifp 4343 net/ipv6/addrconf.c (u8) ifp->flags, ifp 4344 net/ipv6/addrconf.c ifp->idev->dev->name); ifp 4389 net/ipv6/addrconf.c struct inet6_ifaddr *ifp = NULL; ifp 4393 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) { ifp 4394 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) ifp 4396 net/ipv6/addrconf.c if (ipv6_addr_equal(&ifp->addr, addr) && ifp 4397 net/ipv6/addrconf.c (ifp->flags & IFA_F_HOMEADDRESS)) { ifp 4414 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 4427 net/ipv6/addrconf.c hlist_for_each_entry_rcu_bh(ifp, &inet6_addr_lst[i], addr_lst) { ifp 4434 net/ipv6/addrconf.c if ((ifp->flags & IFA_F_PERMANENT) && ifp 4435 net/ipv6/addrconf.c (ifp->prefered_lft == INFINITY_LIFE_TIME)) ifp 4438 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 4440 net/ipv6/addrconf.c age = (now - ifp->tstamp + ADDRCONF_TIMER_FUZZ_MINUS) / HZ; ifp 4442 net/ipv6/addrconf.c if (ifp->valid_lft != INFINITY_LIFE_TIME && ifp 4443 net/ipv6/addrconf.c age >= ifp->valid_lft) { ifp 4444 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4445 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 4446 net/ipv6/addrconf.c ipv6_del_addr(ifp); ifp 4448 net/ipv6/addrconf.c } else if (ifp->prefered_lft == INFINITY_LIFE_TIME) { ifp 4449 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4451 net/ipv6/addrconf.c } else if (age >= ifp->prefered_lft) { ifp 4455 net/ipv6/addrconf.c if (!(ifp->flags&IFA_F_DEPRECATED)) { ifp 4457 net/ipv6/addrconf.c ifp->flags |= IFA_F_DEPRECATED; ifp 4460 net/ipv6/addrconf.c if ((ifp->valid_lft != INFINITY_LIFE_TIME) && ifp 4461 net/ipv6/addrconf.c (time_before(ifp->tstamp + ifp->valid_lft * HZ, next))) ifp 4462 net/ipv6/addrconf.c next = ifp->tstamp + ifp->valid_lft * HZ; ifp 4464 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4467 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 4469 net/ipv6/addrconf.c ipv6_ifa_notify(0, ifp); ifp 4470 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 4473 net/ipv6/addrconf.c } else if ((ifp->flags&IFA_F_TEMPORARY) && ifp 4474 net/ipv6/addrconf.c !(ifp->flags&IFA_F_TENTATIVE)) { ifp 4475 net/ipv6/addrconf.c unsigned long regen_advance = ifp->idev->cnf.regen_max_retry * ifp 4476 net/ipv6/addrconf.c ifp->idev->cnf.dad_transmits * ifp 4477 net/ipv6/addrconf.c NEIGH_VAR(ifp->idev->nd_parms, RETRANS_TIME) / HZ; ifp 4479 net/ipv6/addrconf.c if (age >= ifp->prefered_lft - regen_advance) { ifp 4480 net/ipv6/addrconf.c struct inet6_ifaddr *ifpub = ifp->ifpub; ifp 4481 net/ipv6/addrconf.c if (time_before(ifp->tstamp + ifp->prefered_lft * HZ, next)) ifp 4482 net/ipv6/addrconf.c next = ifp->tstamp + ifp->prefered_lft * HZ; ifp 4483 net/ipv6/addrconf.c if (!ifp->regen_count && ifpub) { ifp 4484 net/ipv6/addrconf.c ifp->regen_count++; ifp 4485 net/ipv6/addrconf.c in6_ifa_hold(ifp); ifp 4487 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4493 net/ipv6/addrconf.c ipv6_create_tempaddr(ifpub, ifp, true); ifp 4495 net/ipv6/addrconf.c in6_ifa_put(ifp); ifp 4499 net/ipv6/addrconf.c } else if (time_before(ifp->tstamp + ifp->prefered_lft * HZ - regen_advance * HZ, next)) ifp 4500 net/ipv6/addrconf.c next = ifp->tstamp + ifp->prefered_lft * HZ - regen_advance * HZ; ifp 4501 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4504 net/ipv6/addrconf.c if (time_before(ifp->tstamp + ifp->prefered_lft * HZ, next)) ifp 4505 net/ipv6/addrconf.c next = ifp->tstamp + ifp->prefered_lft * HZ; ifp 4506 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 4598 net/ipv6/addrconf.c static int modify_prefix_route(struct inet6_ifaddr *ifp, ifp 4605 net/ipv6/addrconf.c f6i = addrconf_get_prefix_route(modify_peer ? &ifp->peer_addr : &ifp->addr, ifp 4606 net/ipv6/addrconf.c ifp->prefix_len, ifp 4607 net/ipv6/addrconf.c ifp->idev->dev, 0, RTF_DEFAULT, true); ifp 4611 net/ipv6/addrconf.c prio = ifp->rt_priority ? : IP6_RT_PRIO_ADDRCONF; ifp 4614 net/ipv6/addrconf.c ip6_del_rt(dev_net(ifp->idev->dev), f6i); ifp 4617 net/ipv6/addrconf.c addrconf_prefix_route(modify_peer ? &ifp->peer_addr : &ifp->addr, ifp 4618 net/ipv6/addrconf.c ifp->prefix_len, ifp 4619 net/ipv6/addrconf.c ifp->rt_priority, ifp->idev->dev, ifp 4633 net/ipv6/addrconf.c static int inet6_addr_modify(struct inet6_ifaddr *ifp, struct ifa6_config *cfg) ifp 4648 net/ipv6/addrconf.c (ifp->flags & IFA_F_TEMPORARY || ifp->prefix_len != 64)) ifp 4651 net/ipv6/addrconf.c if (!(ifp->flags & IFA_F_TENTATIVE) || ifp->flags & IFA_F_DADFAILED) ifp 4673 net/ipv6/addrconf.c memcmp(&ifp->peer_addr, cfg->peer_pfx, sizeof(struct in6_addr))) { ifp 4674 net/ipv6/addrconf.c if (!ipv6_addr_any(&ifp->peer_addr)) ifp 4675 net/ipv6/addrconf.c cleanup_prefix_route(ifp, expires, true, true); ifp 4679 net/ipv6/addrconf.c spin_lock_bh(&ifp->lock); ifp 4680 net/ipv6/addrconf.c was_managetempaddr = ifp->flags & IFA_F_MANAGETEMPADDR; ifp 4681 net/ipv6/addrconf.c had_prefixroute = ifp->flags & IFA_F_PERMANENT && ifp 4682 net/ipv6/addrconf.c !(ifp->flags & IFA_F_NOPREFIXROUTE); ifp 4683 net/ipv6/addrconf.c ifp->flags &= ~(IFA_F_DEPRECATED | IFA_F_PERMANENT | IFA_F_NODAD | ifp 4686 net/ipv6/addrconf.c ifp->flags |= cfg->ifa_flags; ifp 4687 net/ipv6/addrconf.c ifp->tstamp = jiffies; ifp 4688 net/ipv6/addrconf.c ifp->valid_lft = cfg->valid_lft; ifp 4689 net/ipv6/addrconf.c ifp->prefered_lft = cfg->preferred_lft; ifp 4691 net/ipv6/addrconf.c if (cfg->rt_priority && cfg->rt_priority != ifp->rt_priority) ifp 4692 net/ipv6/addrconf.c ifp->rt_priority = cfg->rt_priority; ifp 4695 net/ipv6/addrconf.c ifp->peer_addr = *cfg->peer_pfx; ifp 4697 net/ipv6/addrconf.c spin_unlock_bh(&ifp->lock); ifp 4698 net/ipv6/addrconf.c if (!(ifp->flags&IFA_F_TENTATIVE)) ifp 4699 net/ipv6/addrconf.c ipv6_ifa_notify(0, ifp); ifp 4705 net/ipv6/addrconf.c rc = modify_prefix_route(ifp, expires, flags, false); ifp 4709 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, ifp 4710 net/ipv6/addrconf.c ifp->rt_priority, ifp->idev->dev, ifp 4714 net/ipv6/addrconf.c if (had_prefixroute && !ipv6_addr_any(&ifp->peer_addr)) ifp 4715 net/ipv6/addrconf.c rc = modify_prefix_route(ifp, expires, flags, true); ifp 4717 net/ipv6/addrconf.c if (rc == -ENOENT && !ipv6_addr_any(&ifp->peer_addr)) { ifp 4718 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->peer_addr, ifp->prefix_len, ifp 4719 net/ipv6/addrconf.c ifp->rt_priority, ifp->idev->dev, ifp 4726 net/ipv6/addrconf.c write_lock_bh(&ifp->idev->lock); ifp 4727 net/ipv6/addrconf.c action = check_cleanup_prefix_route(ifp, &rt_expires); ifp 4728 net/ipv6/addrconf.c write_unlock_bh(&ifp->idev->lock); ifp 4731 net/ipv6/addrconf.c cleanup_prefix_route(ifp, rt_expires, ifp 4736 net/ipv6/addrconf.c if (was_managetempaddr || ifp->flags & IFA_F_MANAGETEMPADDR) { ifp 4738 net/ipv6/addrconf.c !(ifp->flags & IFA_F_MANAGETEMPADDR)) { ifp 4742 net/ipv6/addrconf.c manage_tempaddrs(ifp->idev, ifp, cfg->valid_lft, ifp 5627 net/ipv6/addrconf.c struct inet6_ifaddr *ifp; ifp 5676 net/ipv6/addrconf.c list_for_each_entry(ifp, &idev->addr_list, if_list) { ifp 5677 net/ipv6/addrconf.c spin_lock(&ifp->lock); ifp 5678 net/ipv6/addrconf.c if (ifp->tokenized) { ifp 5679 net/ipv6/addrconf.c ifp->valid_lft = 0; ifp 5680 net/ipv6/addrconf.c ifp->prefered_lft = 0; ifp 5682 net/ipv6/addrconf.c spin_unlock(&ifp->lock); ifp 5991 net/ipv6/addrconf.c static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) ifp 5993 net/ipv6/addrconf.c struct net *net = dev_net(ifp->idev->dev); ifp 5998 net/ipv6/addrconf.c inet6_ifa_notify(event ? : RTM_NEWADDR, ifp); ifp 6010 net/ipv6/addrconf.c if (ifp->rt && !rcu_access_pointer(ifp->rt->fib6_node)) { ifp 6011 net/ipv6/addrconf.c ip6_ins_rt(net, ifp->rt); ifp 6012 net/ipv6/addrconf.c } else if (!ifp->rt && (ifp->idev->dev->flags & IFF_UP)) { ifp 6014 net/ipv6/addrconf.c &ifp->addr, ifp->idev->dev->name); ifp 6017 net/ipv6/addrconf.c if (ifp->idev->cnf.forwarding) ifp 6018 net/ipv6/addrconf.c addrconf_join_anycast(ifp); ifp 6019 net/ipv6/addrconf.c if (!ipv6_addr_any(&ifp->peer_addr)) ifp 6020 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->peer_addr, 128, ifp 6021 net/ipv6/addrconf.c ifp->rt_priority, ifp->idev->dev, ifp 6025 net/ipv6/addrconf.c if (ifp->idev->cnf.forwarding) ifp 6026 net/ipv6/addrconf.c addrconf_leave_anycast(ifp); ifp 6027 net/ipv6/addrconf.c addrconf_leave_solict(ifp->idev, &ifp->addr); ifp 6028 net/ipv6/addrconf.c if (!ipv6_addr_any(&ifp->peer_addr)) { ifp 6031 net/ipv6/addrconf.c rt = addrconf_get_prefix_route(&ifp->peer_addr, 128, ifp 6032 net/ipv6/addrconf.c ifp->idev->dev, 0, 0, ifp 6037 net/ipv6/addrconf.c if (ifp->rt) { ifp 6038 net/ipv6/addrconf.c ip6_del_rt(net, ifp->rt); ifp 6039 net/ipv6/addrconf.c ifp->rt = NULL; ifp 6047 net/ipv6/addrconf.c static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) ifp 6050 net/ipv6/addrconf.c if (likely(ifp->idev->dead == 0)) ifp 6051 net/ipv6/addrconf.c __ipv6_ifa_notify(event, ifp); ifp 1075 net/ipv6/ip6_output.c struct inet6_ifaddr *ifp; ifp 1079 net/ipv6/ip6_output.c ifp = ipv6_get_ifaddr(net, &fl6->saddr, ifp 1082 net/ipv6/ip6_output.c redirect = (ifp && ifp->flags & IFA_F_OPTIMISTIC); ifp 1083 net/ipv6/ip6_output.c if (ifp) ifp 1084 net/ipv6/ip6_output.c in6_ifa_put(ifp); ifp 522 net/ipv6/ndisc.c struct inet6_ifaddr *ifp; ifp 528 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), solicited_addr, dev, 1); ifp 529 net/ipv6/ndisc.c if (ifp) { ifp 531 net/ipv6/ndisc.c if (ifp->flags & IFA_F_OPTIMISTIC) ifp 533 net/ipv6/ndisc.c inc_opt |= ifp->idev->cnf.force_tllao; ifp 534 net/ipv6/ndisc.c in6_ifa_put(ifp); ifp 668 net/ipv6/ndisc.c struct inet6_ifaddr *ifp = ipv6_get_ifaddr(dev_net(dev), saddr, ifp 670 net/ipv6/ndisc.c if (ifp) { ifp 671 net/ipv6/ndisc.c if (ifp->flags & IFA_F_OPTIMISTIC) { ifp 674 net/ipv6/ndisc.c in6_ifa_put(ifp); ifp 777 net/ipv6/ndisc.c struct inet6_ifaddr *ifp; ifp 833 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); ifp 834 net/ipv6/ndisc.c if (ifp) { ifp 836 net/ipv6/ndisc.c if (ifp->flags & (IFA_F_TENTATIVE|IFA_F_OPTIMISTIC)) { ifp 838 net/ipv6/ndisc.c if (nonce != 0 && ifp->dad_nonce == nonce) { ifp 843 net/ipv6/ndisc.c ifp->idev->dev->name, ifp 844 net/ipv6/ndisc.c &ifp->addr, np); ifp 852 net/ipv6/ndisc.c addrconf_dad_failure(skb, ifp); ifp 861 net/ipv6/ndisc.c if (!(ifp->flags & IFA_F_OPTIMISTIC)) ifp 866 net/ipv6/ndisc.c idev = ifp->idev; ifp 876 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(net, &msg->target, mdev, 1); ifp 877 net/ipv6/ndisc.c if (ifp) ifp 917 net/ipv6/ndisc.c !!is_router, false, (ifp != NULL), true); ifp 939 net/ipv6/ndisc.c true, (ifp != NULL && inc), inc); ifp 945 net/ipv6/ndisc.c if (ifp) ifp 946 net/ipv6/ndisc.c in6_ifa_put(ifp); ifp 962 net/ipv6/ndisc.c struct inet6_ifaddr *ifp; ifp 1001 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); ifp 1002 net/ipv6/ndisc.c if (ifp) { ifp 1004 net/ipv6/ndisc.c && (ifp->flags & IFA_F_TENTATIVE)) { ifp 1005 net/ipv6/ndisc.c addrconf_dad_failure(skb, ifp); ifp 1020 net/ipv6/ndisc.c eth_hdr(skb)->h_source, &ifp->addr, ifp->idev->dev->name); ifp 1021 net/ipv6/ndisc.c in6_ifa_put(ifp); ifp 4479 net/ipv6/route.c void rt6_remove_prefsrc(struct inet6_ifaddr *ifp) ifp 4481 net/ipv6/route.c struct net *net = dev_net(ifp->idev->dev); ifp 4483 net/ipv6/route.c .dev = ifp->idev->dev, ifp 4485 net/ipv6/route.c .addr = &ifp->addr, ifp 414 net/sctp/ipv6.c struct inet6_ifaddr *ifp; ifp 424 net/sctp/ipv6.c list_for_each_entry(ifp, &in6_dev->addr_list, if_list) { ifp 429 net/sctp/ipv6.c addr->a.v6.sin6_addr = ifp->addr;