Home
last modified time | relevance | path

Searched refs:drvr (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dproto.h30 int (*hdrpull)(struct brcmf_pub *drvr, bool do_fws,
32 int (*query_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd,
34 int (*set_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf,
36 int (*tx_queue_data)(struct brcmf_pub *drvr, int ifidx,
38 int (*txdata)(struct brcmf_pub *drvr, int ifidx, u8 offset,
40 void (*configure_addr_mode)(struct brcmf_pub *drvr, int ifidx,
42 void (*delete_peer)(struct brcmf_pub *drvr, int ifidx,
44 void (*add_tdls_peer)(struct brcmf_pub *drvr, int ifidx,
50 int (*init_done)(struct brcmf_pub *drvr);
51 void (*debugfs_create)(struct brcmf_pub *drvr);
[all …]
Dbcdc.c110 struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr) in drvr_to_fws() argument
112 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws()
118 brcmf_proto_bcdc_msg(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf, in brcmf_proto_bcdc_msg() argument
121 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
146 return brcmf_bus_txctl(drvr->bus_if, (unsigned char *)&bcdc->msg, len); in brcmf_proto_bcdc_msg()
149 static int brcmf_proto_bcdc_cmplt(struct brcmf_pub *drvr, u32 id, u32 len) in brcmf_proto_bcdc_cmplt() argument
152 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
157 ret = brcmf_bus_rxctl(drvr->bus_if, (unsigned char *)&bcdc->msg, in brcmf_proto_bcdc_cmplt()
167 brcmf_proto_bcdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_query_dcmd() argument
170 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd()
[all …]
Dcore.c57 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx) in brcmf_get_ifp() argument
68 bsscfgidx = drvr->if2bss[ifidx]; in brcmf_get_ifp()
70 ifp = drvr->iflist[bsscfgidx]; in brcmf_get_ifp()
270 struct brcmf_pub *drvr = ifp->drvr; in brcmf_netdev_start_xmit() local
277 if (drvr->bus_if->state != BRCMF_BUS_UP) { in brcmf_netdev_start_xmit()
278 brcmf_err("xmit rejected state=%d\n", drvr->bus_if->state); in brcmf_netdev_start_xmit()
296 if (!drvr->settings->iapp && brcmf_skb_is_iapp(skb)) { in brcmf_netdev_start_xmit()
303 if (skb_headroom(skb) < drvr->hdrlen || skb_header_cloned(skb)) { in brcmf_netdev_start_xmit()
304 head_delta = max_t(int, drvr->hdrlen - skb_headroom(skb), 0); in brcmf_netdev_start_xmit()
308 atomic_inc(&drvr->bus_if->stats.pktcowed); in brcmf_netdev_start_xmit()
[all …]
Dproto.c31 int brcmf_proto_attach(struct brcmf_pub *drvr) in brcmf_proto_attach() argument
41 drvr->proto = proto; in brcmf_proto_attach()
43 if (drvr->bus_if->proto_type == BRCMF_PROTO_BCDC) { in brcmf_proto_attach()
44 if (brcmf_proto_bcdc_attach(drvr)) in brcmf_proto_attach()
46 } else if (drvr->bus_if->proto_type == BRCMF_PROTO_MSGBUF) { in brcmf_proto_attach()
47 if (brcmf_proto_msgbuf_attach(drvr)) in brcmf_proto_attach()
51 drvr->bus_if->proto_type); in brcmf_proto_attach()
66 drvr->proto = NULL; in brcmf_proto_attach()
70 void brcmf_proto_detach(struct brcmf_pub *drvr) in brcmf_proto_detach() argument
74 if (drvr->proto) { in brcmf_proto_detach()
[all …]
Dfwil.c109 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_cmd_data() local
112 if (drvr->bus_if->state != BRCMF_BUS_UP) { in brcmf_fil_cmd_data()
120 err = brcmf_proto_set_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data()
123 err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data()
144 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
151 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
161 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
168 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
180 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_int_set()
183 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_int_set()
[all …]
Dfeature.c75 u32 feats = bus_if->drvr->feat_flags; in brcmf_feat_debugfs_read()
76 u32 quirks = bus_if->drvr->chip_quirks; in brcmf_feat_debugfs_read()
151 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_get()
172 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_data_set()
201 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_firmware_capabilities()
215 struct brcmf_if *ifp = brcmf_get_ifp(bus_if->drvr, 0); in brcmf_feat_fwcap_debugfs_read()
241 void brcmf_feat_attach(struct brcmf_pub *drvr) in brcmf_feat_attach() argument
243 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_feat_attach()
251 if (drvr->bus_if->chip != BRCM_CC_43430_CHIP_ID && in brcmf_feat_attach()
252 drvr->bus_if->chip != BRCM_CC_4345_CHIP_ID) in brcmf_feat_attach()
[all …]
Dfweh.c114 fweh = &ifp->drvr->fweh; in brcmf_fweh_call_event_handler()
134 static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr, in brcmf_fweh_handle_if_event() argument
155 (drvr->fweh.p2pdev_setup_ongoing)))); in brcmf_fweh_handle_if_event()
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()
175 brcmf_proto_add_if(drvr, ifp); in brcmf_fweh_handle_if_event()
176 if (!drvr->fweh.evt_handler[BRCMF_E_IF]) in brcmf_fweh_handle_if_event()
182 brcmf_proto_reset_if(drvr, ifp); in brcmf_fweh_handle_if_event()
187 bool armed = brcmf_cfg80211_vif_event_armed(drvr->config); in brcmf_fweh_handle_if_event()
224 struct brcmf_pub *drvr; in brcmf_fweh_event_worker() local
[all …]
Dmsgbuf.c222 struct brcmf_pub *drvr; member
412 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids()
415 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids()
420 static int brcmf_msgbuf_tx_ioctl(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_tx_ioctl() argument
423 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_tx_ioctl()
481 static int brcmf_msgbuf_query_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_query_dcmd() argument
484 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_query_dcmd()
492 err = brcmf_msgbuf_tx_ioctl(drvr, ifidx, cmd, buf, len); in brcmf_msgbuf_query_dcmd()
502 skb = brcmf_msgbuf_get_pktid(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_query_dcmd()
519 static int brcmf_msgbuf_set_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_set_dcmd() argument
[all …]
Ddebug.c56 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr) in brcmf_debugfs_get_devdir() argument
58 return drvr->wiphy->debugfsdir; in brcmf_debugfs_get_devdir()
61 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, in brcmf_debugfs_add_entry() argument
66 WARN(!drvr->wiphy->debugfsdir, "wiphy not (yet) registered\n"); in brcmf_debugfs_add_entry()
67 e = debugfs_create_devm_seqfile(drvr->bus_if->dev, fn, in brcmf_debugfs_add_entry()
68 drvr->wiphy->debugfsdir, read_fn); in brcmf_debugfs_add_entry()
Dbcdc.h20 int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr);
21 void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr);
25 struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr);
27 static inline int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) { return 0; } in brcmf_proto_bcdc_attach() argument
28 static inline void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr) {} in brcmf_proto_bcdc_detach() argument
Dmsgbuf.h42 void brcmf_msgbuf_delete_flowring(struct brcmf_pub *drvr, u16 flowid);
43 int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr);
44 void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr);
46 static inline int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr) in brcmf_proto_msgbuf_attach() argument
50 static inline void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr) {} in brcmf_proto_msgbuf_detach() argument
Dflowring.c193 struct brcmf_pub *drvr; in brcmf_flowring_block() local
229 drvr = bus_if->drvr; in brcmf_flowring_block()
230 ifp = brcmf_get_ifp(drvr, ifidx); in brcmf_flowring_block()
251 ifp = brcmf_get_ifp(bus_if->drvr, ifidx); in brcmf_flowring_delete()
397 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_detach() local
404 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_detach()
422 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_configure_addr_mode() local
433 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_configure_addr_mode()
445 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_delete_peer() local
473 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_delete_peer()
Dcommon.c132 struct brcmf_bus *bus = ifp->drvr->bus_if; in brcmf_c_process_clm_blob()
220 memcpy(ifp->drvr->wiphy->perm_addr, ifp->drvr->mac, ETH_ALEN); in brcmf_c_preinit_dcmds()
221 memcpy(ifp->drvr->mac, ifp->mac_addr, sizeof(ifp->drvr->mac)); in brcmf_c_preinit_dcmds()
223 bus = ifp->drvr->bus_if; in brcmf_c_preinit_dcmds()
224 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds()
284 strlcpy(ifp->drvr->fwver, ptr, sizeof(ifp->drvr->fwver)); in brcmf_c_preinit_dcmds()
294 memcpy(ifp->drvr->clmver, clmver, sizeof(ifp->drvr->clmver)); in brcmf_c_preinit_dcmds()
Dfwsignal.h21 struct brcmf_fws_info *brcmf_fws_attach(struct brcmf_pub *drvr);
23 void brcmf_fws_debugfs_create(struct brcmf_pub *drvr);
33 void brcmf_fws_bus_blocked(struct brcmf_pub *drvr, bool flow_blocked);
Dfweh.h322 void brcmf_fweh_attach(struct brcmf_pub *drvr);
323 void brcmf_fweh_detach(struct brcmf_pub *drvr);
324 int brcmf_fweh_register(struct brcmf_pub *drvr, enum brcmf_fweh_event_code code,
328 void brcmf_fweh_unregister(struct brcmf_pub *drvr,
331 void brcmf_fweh_process_event(struct brcmf_pub *drvr,
336 static inline void brcmf_fweh_process_skb(struct brcmf_pub *drvr, in brcmf_fweh_process_skb() argument
360 brcmf_fweh_process_event(drvr, event_packet, skb->len + ETH_HLEN); in brcmf_fweh_process_skb()
Dfwsignal.c501 struct brcmf_pub *drvr; member
840 txq = brcmf_bus_gettxq(fws->drvr->bus_if); in brcmf_fws_bus_txq_cleanup()
960 4 + fws->drvr->hdrlen; in brcmf_fws_tim_update()
973 err = brcmf_proto_txdata(fws->drvr, ifidx, data_offset, skb); in brcmf_fws_tim_update()
986 struct brcmf_if *ifp = brcmf_get_ifp(fws->drvr, if_id); in brcmf_fws_flow_control_check()
1511 ret = brcmf_proto_hdrpull(fws->drvr, false, skb, &ifp); in brcmf_fws_txs_process()
1590 struct brcmf_fws_info *fws = drvr_to_fws(ifp->drvr); in brcmf_fws_notify_credit_map()
1621 struct brcmf_fws_info *fws = drvr_to_fws(ifp->drvr); in brcmf_fws_notify_bcmc_credit_support()
1676 rfi = ifp->drvr->reorder_flows[flow_id]; in brcmf_fws_rxreorder()
1693 ifp->drvr->reorder_flows[flow_id] = NULL; in brcmf_fws_rxreorder()
[all …]
Ddebug.h116 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr);
117 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn,
123 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, in brcmf_debugfs_add_entry() argument
Dfeature.h94 void brcmf_feat_attach(struct brcmf_pub *drvr);
101 void brcmf_feat_debugfs_create(struct brcmf_pub *drvr);
Dcore.h188 struct brcmf_pub *drvr; member
210 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx);
213 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx,
Dcfg80211.h358 struct brcmf_pub *drvr = wiphy_priv(w); in wiphy_to_cfg() local
359 return drvr->config; in wiphy_to_cfg()
401 struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr,
Dcfg80211.c487 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
490 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
494 static int brcmf_get_first_free_bsscfgidx(struct brcmf_pub *drvr) in brcmf_get_first_free_bsscfgidx() argument
502 if (!drvr->iflist[bsscfgidx]) in brcmf_get_first_free_bsscfgidx()
516 bsscfgidx = brcmf_get_first_free_bsscfgidx(ifp->drvr); in brcmf_cfg80211_request_ap_if()
1044 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_do_escan()
3038 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_cfg80211_escan_handler()
3216 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_start_internal_escan()
3271 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_notify_sched_scan_results()
3444 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_wowl_nd_results()
[all …]
Dbus.h153 struct brcmf_pub *drvr; member
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddebug.c53 int brcms_debugfs_attach(struct brcms_pub *drvr) in brcms_debugfs_attach() argument
58 drvr->dbgfs_dir = debugfs_create_dir( in brcms_debugfs_attach()
59 dev_name(&drvr->wlc->hw->d11core->dev), root_folder); in brcms_debugfs_attach()
60 return PTR_ERR_OR_ZERO(drvr->dbgfs_dir); in brcms_debugfs_attach()
63 void brcms_debugfs_detach(struct brcms_pub *drvr) in brcms_debugfs_detach() argument
65 if (!IS_ERR_OR_NULL(drvr->dbgfs_dir)) in brcms_debugfs_detach()
66 debugfs_remove_recursive(drvr->dbgfs_dir); in brcms_debugfs_detach()
69 struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr) in brcms_debugfs_get_devdir() argument
71 return drvr->dbgfs_dir; in brcms_debugfs_get_devdir()
77 struct brcms_pub *drvr = s->private; in brcms_debugfs_hardware_read() local
[all …]
Ddebug.h71 int brcms_debugfs_attach(struct brcms_pub *drvr);
72 void brcms_debugfs_detach(struct brcms_pub *drvr);
73 struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr);
74 void brcms_debugfs_create_files(struct brcms_pub *drvr);
/Linux-v4.19/include/linux/
Dntb_transport.h59 int ntb_transport_register_client(struct ntb_transport_client *drvr);
60 void ntb_transport_unregister_client(struct ntb_transport_client *drvr);

12