Home
last modified time | relevance | path

Searched refs:ifp (Results 1 – 25 of 102) sorted by relevance

12345

/linux-6.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcore.c69 if (!ifp) in brcmf_ifname()
88 ifp = NULL; in brcmf_get_ifp()
245 eth_hw_addr_set(ifp->ndev, ifp->mac_addr); in brcmf_netdev_set_mac_address()
384 if (!ifp || !ifp->ndev) in brcmf_txflowblock_if()
486 if (ret || !(*ifp) || !(*ifp)->ndev) { in brcmf_rx_hdrpull()
487 if (ret != -ENODATA && *ifp && (*ifp)->ndev) in brcmf_rx_hdrpull()
842 ifp->drvr->iflist[ifp->bsscfgidx] = NULL; in brcmf_net_p2p_attach()
877 ifp = kzalloc(sizeof(*ifp), GFP_KERNEL); in brcmf_add_if()
963 if (!ifp || WARN_ON(ifp->drvr->iflist[ifp->bsscfgidx] != ifp)) in brcmf_remove_interface()
967 brcmf_proto_del_if(ifp->drvr, ifp); in brcmf_remove_interface()
[all …]
H A Dfeature.c191 ifp->fwil_fwerr = true; in brcmf_feat_iovar_int_get()
196 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_get()
202 ifp->fwil_fwerr = false; in brcmf_feat_iovar_int_get()
212 ifp->fwil_fwerr = true; in brcmf_feat_iovar_data_set()
217 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_data_set()
223 ifp->fwil_fwerr = false; in brcmf_feat_iovar_data_set()
229 struct brcmf_pub *drvr = ifp->drvr; in brcmf_feat_firmware_capabilities()
313 ifp->drvr->feat_flags |= in brcmf_feat_attach()
316 ifp->drvr->feat_flags |= in brcmf_feat_attach()
346 brcmf_fwvid_feat_attach(ifp); in brcmf_feat_attach()
[all …]
H A Dfwil.h87 s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data) in brcmf_fil_cmd_int_set() argument
93 err = brcmf_fil_cmd_data_set(ifp, cmd, &data_le, sizeof(data_le)); in brcmf_fil_cmd_int_set()
98 s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data) in brcmf_fil_cmd_int_get() argument
102 err = brcmf_fil_cmd_data_get(ifp, cmd, data, sizeof(*data)); in brcmf_fil_cmd_int_get()
115 return brcmf_fil_cmd_int_get(ifp, cmd, data); in brcmf_fil_cmd_int_query()
134 err = brcmf_fil_iovar_data_get(ifp, name, data, sizeof(*data)); in brcmf_fil_iovar_int_get()
145 return brcmf_fil_iovar_int_get(ifp, name, data); in brcmf_fil_iovar_int_query()
158 return brcmf_fil_bsscfg_data_set(ifp, name, &data_le, in brcmf_fil_bsscfg_int_set()
166 err = brcmf_fil_bsscfg_data_get(ifp, name, data, sizeof(*data)); in brcmf_fil_bsscfg_int_get()
177 return brcmf_fil_bsscfg_int_get(ifp, name, data); in brcmf_fil_bsscfg_int_query()
[all …]
H A Dbtcoex.c112 return brcmf_fil_iovar_data_set(ifp, "btc_params", in brcmf_btcoex_params_write()
151 brcmf_btcoex_params_read(ifp, 50, &btci->reg50); in brcmf_btcoex_boost_wifi()
152 brcmf_btcoex_params_read(ifp, 51, &btci->reg51); in brcmf_btcoex_boost_wifi()
153 brcmf_btcoex_params_read(ifp, 64, &btci->reg64); in brcmf_btcoex_boost_wifi()
154 brcmf_btcoex_params_read(ifp, 65, &btci->reg65); in brcmf_btcoex_boost_wifi()
155 brcmf_btcoex_params_read(ifp, 71, &btci->reg71); in brcmf_btcoex_boost_wifi()
235 struct brcmf_if *ifp = btci->vif->ifp; in btcmf_btcoex_save_part1() local
255 struct brcmf_if *ifp; in brcmf_btcoex_restore_part1() local
259 ifp = btci->vif->ifp; in brcmf_btcoex_restore_part1()
411 struct brcmf_if *ifp = btci->vif->ifp; in brcmf_btcoex_dhcp_start() local
[all …]
H A Dfwil.c99 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_cmd_data()
123 if (ifp->fwil_fwerr) in brcmf_fil_cmd_data()
134 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
152 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
191 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_iovar_data_set()
220 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_iovar_data_get()
297 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_bsscfg_data_set()
304 ifp->bsscfgidx, name, len); in brcmf_fil_bsscfg_data_set()
327 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_bsscfg_data_get()
345 ifp->ifidx, ifp->bsscfgidx, name, len, err); in brcmf_fil_bsscfg_data_get()
[all …]
H A Dcommon.c82 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_set_joinpref_default()
280 err = brcmf_c_set_cur_etheraddr(ifp, ifp->mac_addr); in brcmf_c_preinit_dcmds()
285 err = brcmf_fil_iovar_data_get(ifp, "cur_etheraddr", ifp->mac_addr, in brcmf_c_preinit_dcmds()
294 eth_random_addr(ifp->mac_addr); in brcmf_c_preinit_dcmds()
296 err = brcmf_c_set_cur_etheraddr(ifp, ifp->mac_addr); in brcmf_c_preinit_dcmds()
302 memcpy(ifp->drvr->mac, ifp->mac_addr, sizeof(ifp->drvr->mac)); in brcmf_c_preinit_dcmds()
303 memcpy(ifp->drvr->wiphy->perm_addr, ifp->drvr->mac, ETH_ALEN); in brcmf_c_preinit_dcmds()
305 bus = ifp->drvr->bus_if; in brcmf_c_preinit_dcmds()
306 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds()
384 strscpy(ifp->drvr->fwver, ptr + 1, sizeof(ifp->drvr->fwver)); in brcmf_c_preinit_dcmds()
[all …]
H A Dcfg80211.c573 ifp = vif->ifp; in brcmf_cfg80211_update_proto_addr_mode()
578 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
581 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
865 ifp = vif->ifp; in brcmf_apsta_add_vif()
866 if (!ifp) { in brcmf_apsta_add_vif()
872 strscpy(ifp->ndev->name, name, sizeof(ifp->ndev->name)); in brcmf_apsta_add_vif()
944 vif->ifp = ifp; in brcmf_mon_add_vif()
1499 escan->ifp = ifp; in brcmf_do_escan()
4862 ifp = vif->ifp; in brcmf_vif_set_mgmt_ie()
6689 vif->ifp = ifp; in brcmf_notify_vif_event()
[all …]
H A Dproto.h36 void (*add_if)(struct brcmf_if *ifp);
37 void (*del_if)(struct brcmf_if *ifp);
38 void (*reset_if)(struct brcmf_if *ifp);
50 struct brcmf_if **ifp) in brcmf_proto_hdrpull() argument
57 if (ifp) in brcmf_proto_hdrpull()
58 *ifp = NULL; in brcmf_proto_hdrpull()
60 ifp = &tmp; in brcmf_proto_hdrpull()
114 ifp->drvr->proto->rxreorder(ifp, skb); in brcmf_proto_rxreorder()
122 drvr->proto->add_if(ifp); in brcmf_proto_add_if()
130 drvr->proto->del_if(ifp); in brcmf_proto_del_if()
[all …]
H A Dpno.c105 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_config()
157 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_set_random()
200 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_add_ssid()
223 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_add_bssid()
258 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_clean()
402 pi = ifp_to_pno(ifp); in brcmf_pno_config_sched_scans()
416 err = brcmf_pno_clean(ifp); in brcmf_pno_config_sched_scans()
459 brcmf_pno_clean(ifp); in brcmf_pno_config_sched_scans()
475 pi = ifp_to_pno(ifp); in brcmf_pno_start_sched_scan()
497 pi = ifp_to_pno(ifp); in brcmf_pno_stop_sched_scan()
[all …]
H A Dfwvid.h15 void (*feat_attach)(struct brcmf_if *ifp);
16 int (*set_sae_password)(struct brcmf_if *ifp, struct cfg80211_crypto_settings *crypto);
30 static inline void brcmf_fwvid_feat_attach(struct brcmf_if *ifp) in brcmf_fwvid_feat_attach() argument
32 const struct brcmf_fwvid_ops *vops = ifp->drvr->vops; in brcmf_fwvid_feat_attach()
37 vops->feat_attach(ifp); in brcmf_fwvid_feat_attach()
40 static inline int brcmf_fwvid_set_sae_password(struct brcmf_if *ifp, in brcmf_fwvid_set_sae_password() argument
43 const struct brcmf_fwvid_ops *vops = ifp->drvr->vops; in brcmf_fwvid_set_sae_password()
48 return vops->set_sae_password(ifp, crypto); in brcmf_fwvid_set_sae_password()
H A Dp2p.c1046 if (!ifp) in brcmf_p2p_cancel_remain_on_channel()
1302 struct brcmf_if *ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; in brcmf_p2p_stop_wait_next_action_frame() local
1340 struct brcmf_if *ifp; in brcmf_p2p_gon_req_collision() local
1354 ifp = p2p->bss_idx[P2PAPI_BSSCFG_DEVICE].vif->ifp; in brcmf_p2p_gon_req_collision()
2009 struct brcmf_if *ifp; in brcmf_p2p_get_current_chanspec() local
2015 ifp = p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif->ifp; in brcmf_p2p_get_current_chanspec()
2237 if (!ifp) in brcmf_p2p_get_conn_idx()
2330 ifp = vif->ifp; in brcmf_p2p_add_vif()
2331 if (!ifp) { in brcmf_p2p_add_vif()
2337 strscpy(ifp->ndev->name, name, sizeof(ifp->ndev->name)); in brcmf_p2p_add_vif()
[all …]
H A Dfweh.c97 struct brcmf_if *ifp, in brcmf_fweh_call_event_handler() argument
105 if (ifp) { in brcmf_fweh_call_event_handler()
106 fweh = ifp->drvr->fweh; in brcmf_fweh_call_event_handler()
131 struct brcmf_if *ifp; in brcmf_fweh_handle_if_event() local
163 if (IS_ERR(ifp)) in brcmf_fweh_handle_if_event()
166 brcmf_proto_add_if(drvr, ifp); in brcmf_fweh_handle_if_event()
173 brcmf_proto_reset_if(drvr, ifp); in brcmf_fweh_handle_if_event()
183 brcmf_remove_interface(ifp, false); in brcmf_fweh_handle_if_event()
256 struct brcmf_if *ifp; in brcmf_fweh_event_worker() local
307 ifp = drvr->iflist[0]; in brcmf_fweh_event_worker()
[all …]
H A Dcore.h207 int brcmf_netdev_wait_pend8021x(struct brcmf_if *ifp);
210 char *brcmf_ifname(struct brcmf_if *ifp);
212 void brcmf_configure_arp_nd_offload(struct brcmf_if *ifp, bool enable);
213 int brcmf_net_attach(struct brcmf_if *ifp, bool locked);
216 void brcmf_remove_interface(struct brcmf_if *ifp, bool locked);
217 void brcmf_txflowblock_if(struct brcmf_if *ifp,
219 void brcmf_txfinalize(struct brcmf_if *ifp, struct sk_buff *txp, bool success);
220 void brcmf_netif_rx(struct brcmf_if *ifp, struct sk_buff *skb);
221 void brcmf_netif_mon_rx(struct brcmf_if *ifp, struct sk_buff *skb);
223 int brcmf_net_mon_attach(struct brcmf_if *ifp);
[all …]
H A Dfwsignal.h37 void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb);
38 int brcmf_fws_process_skb(struct brcmf_if *ifp, struct sk_buff *skb);
40 void brcmf_fws_reset_interface(struct brcmf_if *ifp);
41 void brcmf_fws_add_interface(struct brcmf_if *ifp);
42 void brcmf_fws_del_interface(struct brcmf_if *ifp);
46 void brcmf_fws_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb);
H A Dbcdc.c328 if (ifp != NULL) in brcmf_proto_bcdc_hdrpull()
329 *ifp = tmp_if; in brcmf_proto_bcdc_hdrpull()
342 return brcmf_fws_process_skb(ifp, skb); in brcmf_proto_bcdc_tx_queue_data()
369 struct brcmf_if *ifp; in brcmf_proto_bcdc_txcomplete() local
378 brcmf_txfinalize(ifp, txp, success); in brcmf_proto_bcdc_txcomplete()
403 brcmf_fws_rxreorder(ifp, skb); in brcmf_proto_bcdc_rxreorder()
407 brcmf_proto_bcdc_add_if(struct brcmf_if *ifp) in brcmf_proto_bcdc_add_if() argument
409 brcmf_fws_add_interface(ifp); in brcmf_proto_bcdc_add_if()
413 brcmf_proto_bcdc_del_if(struct brcmf_if *ifp) in brcmf_proto_bcdc_del_if() argument
415 brcmf_fws_del_interface(ifp); in brcmf_proto_bcdc_del_if()
[all …]
H A Dvendor.c24 struct brcmf_if *ifp; in brcmf_cfg80211_vndr_cmds_dcmd_handler() local
38 ifp = vif->ifp; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
40 brcmf_dbg(TRACE, "ifidx=%d, cmd=%d\n", ifp->ifidx, cmdhdr->cmd); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
68 ret = brcmf_fil_cmd_data_set(ifp, cmdhdr->cmd, dcmd_buf, in brcmf_cfg80211_vndr_cmds_dcmd_handler()
71 ret = brcmf_fil_cmd_data_get(ifp, cmdhdr->cmd, dcmd_buf, in brcmf_cfg80211_vndr_cmds_dcmd_handler()
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_inode_fork.c137 ifp->if_bytes = 0; in xfs_iformat_extents()
139 ifp->if_height = 0; in xfs_iformat_extents()
224 ifp->if_bytes = 0; in xfs_iformat_btree()
417 if (ifp->if_broot_bytes > 0 && ifp->if_broot_bytes > new_size) { in xfs_broot_realloc()
431 ifp->if_broot = krealloc(ifp->if_broot, new_size, in xfs_broot_realloc()
465 ifp->if_data = krealloc(ifp->if_data, new_size, in xfs_idata_realloc()
571 if (!ifp) { in xfs_iflush_fork()
583 memcpy(cp, ifp->if_data, ifp->if_bytes); in xfs_iflush_fork()
602 xfs_bmbt_to_bmdr(mp, ifp->if_broot, ifp->if_broot_bytes, in xfs_iflush_fork()
718 fa = xfs_attr_shortform_verify(ifp->if_data, ifp->if_bytes); in xfs_ifork_verify_local_attr()
[all …]
H A Dxfs_iext_tree.c164 if (!ifp->if_height) in xfs_iext_find_first_leaf()
182 if (!ifp->if_height) in xfs_iext_find_last_leaf()
240 if (ifp->if_height > 1 && !xfs_iext_valid(ifp, cur) && in xfs_iext_next()
429 ifp->if_height++; in xfs_iext_grow()
594 ifp->if_height = 1; in xfs_iext_alloc_root()
615 memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); in xfs_iext_realloc_root()
629 WRITE_ONCE(ifp->if_seq, READ_ONCE(ifp->if_seq) + 1); in xfs_iext_inc_seq()
799 ifp->if_height--; in xfs_iext_remove_node()
873 ifp->if_height--; in xfs_iext_free_last_leaf()
1062 xfs_iext_destroy_node(ifp->if_data, ifp->if_height); in xfs_iext_destroy()
[all …]
H A Dxfs_inode_fork.h85 ifp->if_format == XFS_DINODE_FMT_BTREE; in xfs_ifork_has_extents()
90 if (!ifp) in xfs_ifork_nextents()
92 return ifp->if_nextents; in xfs_ifork_nextents()
97 if (!ifp) in xfs_ifork_format()
99 return ifp->if_format; in xfs_ifork_format()
217 xfs_iext_next(ifp, cur); in xfs_iext_next_extent()
224 xfs_iext_prev(ifp, cur); in xfs_iext_prev_extent()
236 xfs_iext_next(ifp, &ncur); in xfs_iext_peek_next_extent()
248 xfs_iext_prev(ifp, &ncur); in xfs_iext_peek_prev_extent()
253 for (xfs_iext_first((ifp), (ext)); \
[all …]
H A Dxfs_rtrefcount_btree.c318 return ifp->if_broot; in xfs_rtrefcountbt_broot_realloc()
349 return xfs_broot_realloc(ifp, 0); in xfs_rtrefcountbt_broot_realloc()
359 broot = xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc()
434 struct xfs_ifork *ifp; in xfs_rtrefcountbt_commit_staged_btree() local
446 xfs_idestroy_fork(ifp); in xfs_rtrefcountbt_commit_staged_btree()
722 ASSERT(ifp->if_broot != NULL); in xfs_iflush_rtrefcount()
723 ASSERT(ifp->if_broot_bytes > 0); in xfs_iflush_rtrefcount()
727 ifp->if_broot_bytes, dfp, in xfs_iflush_rtrefcount()
746 ASSERT(ifp->if_broot_bytes == 0); in xfs_rtrefcountbt_create()
747 ASSERT(ifp->if_bytes == 0); in xfs_rtrefcountbt_create()
[all …]
H A Dxfs_bmap.c368 block = ifp->if_broot; in xfs_bmap_check_leaf_extents()
774 ifp->if_data = NULL; in xfs_bmap_local_to_extents_empty()
775 ifp->if_height = 0; in xfs_bmap_local_to_extents_empty()
810 if (!ifp->if_bytes) { in xfs_bmap_local_to_extents()
860 ifp->if_data = NULL; in xfs_bmap_local_to_extents()
861 ifp->if_height = 0; in xfs_bmap_local_to_extents()
1559 ifp->if_nextents--; in xfs_bmap_add_extent_delay_real()
1671 ifp->if_nextents++; in xfs_bmap_add_extent_delay_real()
1742 ifp->if_nextents++; in xfs_bmap_add_extent_delay_real()
1833 ifp->if_nextents++; in xfs_bmap_add_extent_delay_real()
[all …]
/linux-6.15/drivers/infiniband/hw/qib/
H A Dqib_eeprom.c116 u8 *ip = (u8 *) ifp; in flash_csum()
124 len = ifp->if_length; in flash_csum()
129 csum -= ifp->if_csum; in flash_csum()
132 ifp->if_csum = csum; in flash_csum()
147 struct qib_flash *ifp; in qib_get_eeprom_info() local
199 csum = flash_csum(ifp, 0); in qib_get_eeprom_info()
203 csum, ifp->if_csum); in qib_get_eeprom_info()
221 bguid = ifp->if_guid; in qib_get_eeprom_info()
242 if ((ifp->if_fversion > 1) && ifp->if_sprefix[0] && in qib_get_eeprom_info()
250 memcpy(snp, ifp->if_sprefix, sizeof(ifp->if_sprefix)); in qib_get_eeprom_info()
[all …]
/linux-6.15/net/ipv6/
H A Daddrconf.c988 ifp); in inet6_ifa_finish_destroy()
3584 if (!ifp->rt || !ifp->rt->fib6_node) { in fixup_permanent_addr()
4241 if (!ifp->dad_probes && addrconf_dad_end(ifp)) in addrconf_dad_work()
4646 !ifp->regen_count && ifp->ifpub) { in addrconf_verify_rtnl()
4696 next = ifp->tstamp + ifp->valid_lft * HZ; in addrconf_verify_rtnl()
4833 ifp->rt_priority, ifp->idev->dev, in modify_prefix_route()
4912 ifp->rt_priority, ifp->idev->dev, in inet6_addr_modify()
4921 ifp->rt_priority, ifp->idev->dev, in inet6_addr_modify()
4940 delete_tempaddrs(ifp->idev, ifp); in inet6_addr_modify()
6289 &ifp->addr, ifp->idev->dev->name); in __ipv6_ifa_notify()
[all …]
/linux-6.15/fs/xfs/scrub/
H A Dsymlink_repair.c170 struct xfs_ifork *ifp; in xrep_symlink_salvage_inline() local
174 if (!ifp->if_data) in xrep_symlink_salvage_inline()
182 old_target = ifp->if_data; in xrep_symlink_salvage_inline()
251 struct xfs_ifork *ifp, in xrep_symlink_local_to_remote() argument
307 struct xfs_ifork *ifp; in xrep_symlink_swap_prep() local
310 xfs_idestroy_fork(ifp); in xrep_symlink_swap_prep()
312 ifp->if_nextents = 0; in xrep_symlink_swap_prep()
313 ifp->if_bytes = 0; in xrep_symlink_swap_prep()
314 ifp->if_data = NULL; in xrep_symlink_swap_prep()
315 ifp->if_height = 0; in xrep_symlink_swap_prep()
[all …]
/linux-6.15/drivers/block/aoe/
H A Daoenet.c57 struct net_device *ifp; in tx() local
61 ifp = skb->dev; in tx()
64 ifp ? ifp->name : "netif", in tx()
66 dev_put(ifp); in tx()
73 is_aoe_netif(struct net_device *ifp) in is_aoe_netif() argument
89 if (strlen(ifp->name) == len && !strncmp(ifp->name, p, len)) in is_aoe_netif()
131 aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct net_device *… in aoenet_rcv() argument
138 if (dev_net(ifp) != &init_net) in aoenet_rcv()
144 if (!is_aoe_netif(ifp)) in aoenet_rcv()

12345