Home
last modified time | relevance | path

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

12

/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcore.c45 char *brcmf_ifname(struct brcmf_if *ifp) in brcmf_ifname() argument
47 if (!ifp) in brcmf_ifname()
50 if (ifp->ndev) in brcmf_ifname()
51 return ifp->ndev->name; in brcmf_ifname()
58 struct brcmf_if *ifp; in brcmf_get_ifp() local
66 ifp = NULL; in brcmf_get_ifp()
69 ifp = drvr->iflist[bsscfgidx]; in brcmf_get_ifp()
71 return ifp; in brcmf_get_ifp()
76 struct brcmf_if *ifp; in _brcmf_set_multicast_list() local
85 ifp = container_of(work, struct brcmf_if, multicast_work); in _brcmf_set_multicast_list()
[all …]
Dfwil.c107 brcmf_fil_cmd_data(struct brcmf_if *ifp, u32 cmd, void *data, u32 len, bool set) in brcmf_fil_cmd_data() argument
109 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_cmd_data()
120 err = brcmf_proto_set_dcmd(drvr, ifp->ifidx, cmd, data, len); in brcmf_fil_cmd_data()
122 err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, data, len); in brcmf_fil_cmd_data()
134 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) in brcmf_fil_cmd_data_set() argument
138 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
140 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); in brcmf_fil_cmd_data_set()
144 err = brcmf_fil_cmd_data(ifp, cmd, data, len, true); in brcmf_fil_cmd_data_set()
145 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
151 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) in brcmf_fil_cmd_data_get() argument
[all …]
Dfeature.c101 static void brcmf_feat_iovar_int_get(struct brcmf_if *ifp, in brcmf_feat_iovar_int_get() argument
107 err = brcmf_fil_iovar_int_get(ifp, name, &data); in brcmf_feat_iovar_int_get()
110 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_get()
117 static void brcmf_feat_iovar_data_set(struct brcmf_if *ifp, in brcmf_feat_iovar_data_set() argument
123 err = brcmf_fil_iovar_data_set(ifp, name, data, len); in brcmf_feat_iovar_data_set()
126 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_data_set()
133 static void brcmf_feat_firmware_capabilities(struct brcmf_if *ifp) in brcmf_feat_firmware_capabilities() argument
139 brcmf_fil_iovar_data_get(ifp, "cap", caps, sizeof(caps)); in brcmf_feat_firmware_capabilities()
147 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_firmware_capabilities()
154 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_feat_attach() local
[all …]
Dbtcoex.c113 static s32 brcmf_btcoex_params_write(struct brcmf_if *ifp, u32 addr, u32 data) in brcmf_btcoex_params_write() argument
122 return brcmf_fil_iovar_data_set(ifp, "btc_params", in brcmf_btcoex_params_write()
132 static s32 brcmf_btcoex_params_read(struct brcmf_if *ifp, u32 addr, u32 *data) in brcmf_btcoex_params_read() argument
136 return brcmf_fil_iovar_int_get(ifp, "btc_params", data); in brcmf_btcoex_params_read()
152 struct brcmf_if *ifp = brcmf_get_ifp(btci->cfg->pub, 0); in brcmf_btcoex_boost_wifi() local
161 brcmf_btcoex_params_read(ifp, 50, &btci->reg50); in brcmf_btcoex_boost_wifi()
162 brcmf_btcoex_params_read(ifp, 51, &btci->reg51); in brcmf_btcoex_boost_wifi()
163 brcmf_btcoex_params_read(ifp, 64, &btci->reg64); in brcmf_btcoex_boost_wifi()
164 brcmf_btcoex_params_read(ifp, 65, &btci->reg65); in brcmf_btcoex_boost_wifi()
165 brcmf_btcoex_params_read(ifp, 71, &btci->reg71); in brcmf_btcoex_boost_wifi()
[all …]
Dcfg80211.c458 send_key_to_dongle(struct brcmf_if *ifp, struct brcmf_wsec_key *key) in send_key_to_dongle() argument
465 brcmf_netdev_wait_pend8021x(ifp); in send_key_to_dongle()
467 err = brcmf_fil_bsscfg_data_set(ifp, "wsec_key", &key_le, in send_key_to_dongle()
476 brcmf_configure_arp_nd_offload(struct brcmf_if *ifp, bool enable) in brcmf_configure_arp_nd_offload() argument
488 err = brcmf_fil_iovar_int_set(ifp, "arp_ol", mode); in brcmf_configure_arp_nd_offload()
494 err = brcmf_fil_iovar_int_set(ifp, "arpoe", enable); in brcmf_configure_arp_nd_offload()
504 err = brcmf_fil_iovar_int_set(ifp, "ndoe", enable); in brcmf_configure_arp_nd_offload()
520 struct brcmf_if *ifp; in brcmf_cfg80211_update_proto_addr_mode() local
523 ifp = vif->ifp; in brcmf_cfg80211_update_proto_addr_mode()
528 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
[all …]
Dproto.h31 struct sk_buff *skb, struct brcmf_if **ifp);
46 void (*rxreorder)(struct brcmf_if *ifp, struct sk_buff *skb);
47 void (*add_if)(struct brcmf_if *ifp);
48 void (*del_if)(struct brcmf_if *ifp);
49 void (*reset_if)(struct brcmf_if *ifp);
60 struct brcmf_if **ifp) in brcmf_proto_hdrpull() argument
67 if (ifp) in brcmf_proto_hdrpull()
68 *ifp = NULL; in brcmf_proto_hdrpull()
70 ifp = &tmp; in brcmf_proto_hdrpull()
71 return drvr->proto->hdrpull(drvr, do_fws, skb, ifp); in brcmf_proto_hdrpull()
[all …]
Dfweh.c105 static int brcmf_fweh_call_event_handler(struct brcmf_if *ifp, in brcmf_fweh_call_event_handler() argument
113 if (ifp) { in brcmf_fweh_call_event_handler()
114 fweh = &ifp->drvr->fweh; in brcmf_fweh_call_event_handler()
118 err = fweh->evt_handler[code](ifp, emsg, data); in brcmf_fweh_call_event_handler()
139 struct brcmf_if *ifp; in brcmf_fweh_handle_if_event() local
165 ifp = drvr->iflist[ifevent->bsscfgidx]; in brcmf_fweh_handle_if_event()
170 ifp = brcmf_add_if(drvr, ifevent->bsscfgidx, ifevent->ifidx, in brcmf_fweh_handle_if_event()
172 if (IS_ERR(ifp)) in brcmf_fweh_handle_if_event()
175 brcmf_proto_add_if(drvr, ifp); in brcmf_fweh_handle_if_event()
177 if (brcmf_net_attach(ifp, false) < 0) in brcmf_fweh_handle_if_event()
[all …]
Dpno.c100 static int brcmf_pno_channel_config(struct brcmf_if *ifp, in brcmf_pno_channel_config() argument
106 return brcmf_fil_iovar_data_set(ifp, "pfn_cfg", cfg, sizeof(*cfg)); in brcmf_pno_channel_config()
109 static int brcmf_pno_config(struct brcmf_if *ifp, u32 scan_freq, in brcmf_pno_config() argument
133 err = brcmf_fil_iovar_int_set(ifp, "pfnmem", pfnmem); in brcmf_pno_config()
139 err = brcmf_fil_iovar_int_get(ifp, "pfnmem", &pfnmem); in brcmf_pno_config()
152 err = brcmf_fil_iovar_data_set(ifp, "pfn_set", &pfn_param, in brcmf_pno_config()
161 static int brcmf_pno_set_random(struct brcmf_if *ifp, struct brcmf_pno_info *pi) in brcmf_pno_set_random() argument
194 err = brcmf_fil_iovar_data_set(ifp, "pfn_macaddr", &pfn_mac, in brcmf_pno_set_random()
202 static int brcmf_pno_add_ssid(struct brcmf_if *ifp, struct cfg80211_ssid *ssid, in brcmf_pno_add_ssid() argument
219 err = brcmf_fil_iovar_data_set(ifp, "pfn_add", &pfn, sizeof(pfn)); in brcmf_pno_add_ssid()
[all …]
Dfwil.h90 s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
91 s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
92 s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data);
93 s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data);
95 s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, const void *data,
97 s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data,
99 s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data);
100 s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data);
102 s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data,
104 s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data,
[all …]
Dcommon.c86 void brcmf_c_set_joinpref_default(struct brcmf_if *ifp) in brcmf_c_set_joinpref_default() argument
101 err = brcmf_fil_iovar_data_set(ifp, "join_pref", join_pref_params, in brcmf_c_set_joinpref_default()
107 int brcmf_c_preinit_dcmds(struct brcmf_if *ifp) in brcmf_c_preinit_dcmds() argument
117 err = brcmf_fil_iovar_data_get(ifp, "cur_etheraddr", ifp->mac_addr, in brcmf_c_preinit_dcmds()
118 sizeof(ifp->mac_addr)); in brcmf_c_preinit_dcmds()
123 memcpy(ifp->drvr->mac, ifp->mac_addr, sizeof(ifp->drvr->mac)); in brcmf_c_preinit_dcmds()
125 err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_REVINFO, in brcmf_c_preinit_dcmds()
127 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds()
154 err = brcmf_fil_iovar_data_get(ifp, "ver", buf, sizeof(buf)); in brcmf_c_preinit_dcmds()
168 strlcpy(ifp->drvr->fwver, ptr, sizeof(ifp->drvr->fwver)); in brcmf_c_preinit_dcmds()
[all …]
Dp2p.c435 static int brcmf_p2p_set_firmware(struct brcmf_if *ifp, u8 *p2p_mac) in brcmf_p2p_set_firmware() argument
439 brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1); in brcmf_p2p_set_firmware()
440 brcmf_fil_iovar_int_set(ifp, "apsta", 1); in brcmf_p2p_set_firmware()
441 brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1); in brcmf_p2p_set_firmware()
448 brcmf_fil_iovar_int_set(ifp, "p2p_disc", 0); in brcmf_p2p_set_firmware()
450 ret = brcmf_fil_iovar_data_set(ifp, "p2p_da_override", p2p_mac, in brcmf_p2p_set_firmware()
525 static s32 brcmf_p2p_set_discover_state(struct brcmf_if *ifp, u8 state, in brcmf_p2p_set_discover_state() argument
535 ret = brcmf_fil_bsscfg_data_set(ifp, "p2p_state", &discover_state, in brcmf_p2p_set_discover_state()
555 (void)brcmf_p2p_set_discover_state(vif->ifp, WL_P2P_DISC_ST_SCAN, 0, 0); in brcmf_p2p_deinit_discovery()
559 (void)brcmf_fil_iovar_int_set(vif->ifp, "p2p_disc", 0); in brcmf_p2p_deinit_discovery()
[all …]
Dfwsignal.h25 void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb);
26 int brcmf_fws_process_skb(struct brcmf_if *ifp, struct sk_buff *skb);
28 void brcmf_fws_reset_interface(struct brcmf_if *ifp);
29 void brcmf_fws_add_interface(struct brcmf_if *ifp);
30 void brcmf_fws_del_interface(struct brcmf_if *ifp);
33 void brcmf_fws_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb);
Dcore.h201 int brcmf_netdev_wait_pend8021x(struct brcmf_if *ifp);
204 char *brcmf_ifname(struct brcmf_if *ifp);
206 int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked);
209 void brcmf_remove_interface(struct brcmf_if *ifp, bool rtnl_locked);
210 void brcmf_txflowblock_if(struct brcmf_if *ifp,
212 void brcmf_txfinalize(struct brcmf_if *ifp, struct sk_buff *txp, bool success);
213 void brcmf_netif_rx(struct brcmf_if *ifp, struct sk_buff *skb);
214 void brcmf_net_setcarrier(struct brcmf_if *ifp, bool on);
Dbcdc.c286 struct sk_buff *pktbuf, struct brcmf_if **ifp) in brcmf_proto_bcdc_hdrpull() argument
332 if (ifp != NULL) in brcmf_proto_bcdc_hdrpull()
333 *ifp = tmp_if; in brcmf_proto_bcdc_hdrpull()
340 struct brcmf_if *ifp = brcmf_get_ifp(drvr, ifidx); in brcmf_proto_bcdc_tx_queue_data() local
346 return brcmf_fws_process_skb(ifp, skb); in brcmf_proto_bcdc_tx_queue_data()
373 struct brcmf_if *ifp; in brcmf_proto_bcdc_txcomplete() local
380 if (brcmf_proto_bcdc_hdrpull(bus_if->drvr, false, txp, &ifp)) in brcmf_proto_bcdc_txcomplete()
383 brcmf_txfinalize(ifp, txp, success); in brcmf_proto_bcdc_txcomplete()
405 static void brcmf_proto_bcdc_rxreorder(struct brcmf_if *ifp, in brcmf_proto_bcdc_rxreorder() argument
408 brcmf_fws_rxreorder(ifp, skb); in brcmf_proto_bcdc_rxreorder()
[all …]
Dfwsignal.c775 brcmf_fws_macdesc_find(struct brcmf_fws_info *fws, struct brcmf_if *ifp, u8 *da) in brcmf_fws_macdesc_find() argument
786 if (multicast && ifp->fws_desc) { in brcmf_fws_macdesc_find()
787 entry = ifp->fws_desc; in brcmf_fws_macdesc_find()
793 entry = ifp->fws_desc; in brcmf_fws_macdesc_find()
990 struct brcmf_if *ifp = brcmf_get_ifp(fws->drvr, if_id); in brcmf_fws_flow_control_check() local
992 if (WARN_ON(!ifp)) in brcmf_fws_flow_control_check()
995 if ((ifp->netif_stop & BRCMF_NETIF_STOP_REASON_FWS_FC) && in brcmf_fws_flow_control_check()
997 brcmf_txflowblock_if(ifp, in brcmf_fws_flow_control_check()
999 if (!(ifp->netif_stop & BRCMF_NETIF_STOP_REASON_FWS_FC) && in brcmf_fws_flow_control_check()
1002 brcmf_txflowblock_if(ifp, BRCMF_NETIF_STOP_REASON_FWS_FC, true); in brcmf_fws_flow_control_check()
[all …]
Dvendor.c35 struct brcmf_if *ifp; in brcmf_cfg80211_vndr_cmds_dcmd_handler() local
49 ifp = vif->ifp; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
51 brcmf_dbg(TRACE, "ifidx=%d, cmd=%d\n", ifp->ifidx, cmdhdr->cmd); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
79 ret = brcmf_fil_cmd_data_set(ifp, cmdhdr->cmd, dcmd_buf, in brcmf_cfg80211_vndr_cmds_dcmd_handler()
82 ret = brcmf_fil_cmd_data_get(ifp, cmdhdr->cmd, dcmd_buf, in brcmf_cfg80211_vndr_cmds_dcmd_handler()
Dcfg80211.h192 struct brcmf_if *ifp; member
227 struct brcmf_if *ifp; member
228 s32 (*run)(struct brcmf_cfg80211_info *cfg, struct brcmf_if *ifp,
383 struct brcmf_if *ifp = netdev_priv(nd); in ndev_to_prof() local
384 return &ifp->vif->profile; in ndev_to_prof()
389 struct brcmf_if *ifp = netdev_priv(ndev); in ndev_to_vif() local
390 return ifp->vif; in ndev_to_vif()
405 enum nl80211_iftype brcmf_cfg80211_get_iftype(struct brcmf_if *ifp);
424 struct brcmf_if *ifp, bool aborted,
Dp2p.h160 void brcmf_p2p_ifp_removed(struct brcmf_if *ifp, bool rtnl_locked);
169 int brcmf_p2p_notify_listen_complete(struct brcmf_if *ifp,
172 void brcmf_p2p_cancel_remain_on_channel(struct brcmf_if *ifp);
173 int brcmf_p2p_notify_action_frame_rx(struct brcmf_if *ifp,
176 int brcmf_p2p_notify_action_tx_complete(struct brcmf_if *ifp,
184 s32 brcmf_p2p_notify_rx_mgmt_p2p_probereq(struct brcmf_if *ifp,
Dfweh.h297 typedef int (*brcmf_fweh_handler_t)(struct brcmf_if *ifp,
315 int (*evt_handler[BRCMF_E_LAST])(struct brcmf_if *ifp,
325 int (*handler)(struct brcmf_if *ifp,
330 int brcmf_fweh_activate_events(struct brcmf_if *ifp);
334 void brcmf_fweh_p2pdev_setup(struct brcmf_if *ifp, bool ongoing);
Dpno.h33 int brcmf_pno_start_sched_scan(struct brcmf_if *ifp,
42 int brcmf_pno_stop_sched_scan(struct brcmf_if *ifp, u64 reqid);
Dcommon.h68 void brcmf_c_set_joinpref_default(struct brcmf_if *ifp);
76 int brcmf_c_preinit_dcmds(struct brcmf_if *ifp);
/drivers/infiniband/hw/qib/
Dqib_eeprom.c114 static u8 flash_csum(struct qib_flash *ifp, int adjust) in flash_csum() argument
116 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
198 ifp = (struct qib_flash *)buf; in qib_get_eeprom_info()
200 csum = flash_csum(ifp, 0); in qib_get_eeprom_info()
201 if (csum != ifp->if_csum) { in qib_get_eeprom_info()
204 csum, ifp->if_csum); in qib_get_eeprom_info()
[all …]
/drivers/block/aoe/
Daoenet.c58 struct net_device *ifp; in tx() local
62 ifp = skb->dev; in tx()
65 ifp ? ifp->name : "netif", 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()
Daoeblk.c65 struct aoeif *ifp, *e; in aoedisk_show_netif() local
74 ifp = (*t)->ifs; in aoedisk_show_netif()
75 e = ifp + NAOEIFS; in aoedisk_show_netif()
76 for (; ifp < e && ifp->nd; ifp++) { in aoedisk_show_netif()
78 if (*nnd == ifp->nd) in aoedisk_show_netif()
81 *nd++ = ifp->nd; in aoedisk_show_netif()
117 struct aoeif *ifp, *ife; in aoedisk_debugfs_show() local
144 ifp = (*t)->ifs; in aoedisk_debugfs_show()
145 ife = ifp + ARRAY_SIZE((*t)->ifs); in aoedisk_debugfs_show()
146 for (; ifp->nd && ifp < ife; ifp++) { in aoedisk_debugfs_show()
[all …]
Daoecmd.c133 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit()
159 struct aoeif *ifp; in ifrotate() local
161 ifp = t->ifp; in ifrotate()
162 ifp++; in ifrotate()
163 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate()
164 ifp = t->ifs; in ifrotate()
165 if (ifp->nd == NULL) in ifrotate()
167 return t->ifp = ifp; in ifrotate()
274 && t->ifp->nd) { in newframe()
365 skb->dev = t->ifp->nd; in ata_rw_frameinit()
[all …]

12