Home
last modified time | relevance | path

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

12

/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dproto.h19 int (*hdrpull)(struct brcmf_pub *drvr, bool do_fws,
21 int (*query_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd,
23 int (*set_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf,
25 int (*tx_queue_data)(struct brcmf_pub *drvr, int ifidx,
27 int (*txdata)(struct brcmf_pub *drvr, int ifidx, u8 offset,
29 void (*configure_addr_mode)(struct brcmf_pub *drvr, int ifidx,
31 void (*delete_peer)(struct brcmf_pub *drvr, int ifidx,
33 void (*add_tdls_peer)(struct brcmf_pub *drvr, int ifidx,
39 int (*init_done)(struct brcmf_pub *drvr);
40 void (*debugfs_create)(struct brcmf_pub *drvr);
[all …]
Dcore.c77 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx) in brcmf_get_ifp() argument
83 bphy_err(drvr, "ifidx %d out of range\n", ifidx); in brcmf_get_ifp()
88 bsscfgidx = drvr->if2bss[ifidx]; in brcmf_get_ifp()
90 ifp = drvr->iflist[bsscfgidx]; in brcmf_get_ifp()
136 struct brcmf_pub *drvr = ifp->drvr; in _brcmf_set_multicast_list() local
174 bphy_err(drvr, "Setting mcast_list failed, %d\n", err); in _brcmf_set_multicast_list()
187 bphy_err(drvr, "Setting allmulti failed, %d\n", err); in _brcmf_set_multicast_list()
195 bphy_info_once(drvr, "BRCMF_C_SET_PROMISC unsupported\n"); in _brcmf_set_multicast_list()
197 bphy_err(drvr, "Setting BRCMF_C_SET_PROMISC failed, err=%d\n", in _brcmf_set_multicast_list()
208 struct brcmf_pub *drvr = ifp->drvr; in _brcmf_update_ndtable() local
[all …]
Dbcdc.c101 struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr) in drvr_to_fws() argument
103 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws()
109 brcmf_proto_bcdc_msg(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf, in brcmf_proto_bcdc_msg() argument
112 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
137 return brcmf_bus_txctl(drvr->bus_if, (unsigned char *)&bcdc->msg, len); in brcmf_proto_bcdc_msg()
140 static int brcmf_proto_bcdc_cmplt(struct brcmf_pub *drvr, u32 id, u32 len) in brcmf_proto_bcdc_cmplt() argument
143 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
148 ret = brcmf_bus_rxctl(drvr->bus_if, (unsigned char *)&bcdc->msg, in brcmf_proto_bcdc_cmplt()
158 brcmf_proto_bcdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_query_dcmd() argument
161 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd()
[all …]
Dfwil.c99 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_cmd_data() local
102 if (drvr->bus_if->state != BRCMF_BUS_UP) { in brcmf_fil_cmd_data()
103 bphy_err(drvr, "bus is down. we have nothing to do.\n"); in brcmf_fil_cmd_data()
110 err = brcmf_proto_set_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data()
113 err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data()
134 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
141 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
151 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
159 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
171 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_int_set()
[all …]
Dfeature.c68 u32 feats = bus_if->drvr->feat_flags; in brcmf_feat_debugfs_read()
69 u32 quirks = bus_if->drvr->chip_quirks; in brcmf_feat_debugfs_read()
148 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_get()
169 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_data_set()
181 struct brcmf_pub *drvr = ifp->drvr; in brcmf_feat_firmware_capabilities() local
188 bphy_err(drvr, "could not get firmware cap (%d)\n", err); in brcmf_feat_firmware_capabilities()
199 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_firmware_capabilities()
213 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_feat_fwcap_debugfs_read() local
214 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_feat_fwcap_debugfs_read()
221 bphy_err(drvr, "could not get firmware cap (%d)\n", err); in brcmf_feat_fwcap_debugfs_read()
[all …]
Dproto.c20 int brcmf_proto_attach(struct brcmf_pub *drvr) in brcmf_proto_attach() argument
30 drvr->proto = proto; in brcmf_proto_attach()
32 if (drvr->bus_if->proto_type == BRCMF_PROTO_BCDC) { in brcmf_proto_attach()
33 if (brcmf_proto_bcdc_attach(drvr)) in brcmf_proto_attach()
35 } else if (drvr->bus_if->proto_type == BRCMF_PROTO_MSGBUF) { in brcmf_proto_attach()
36 if (brcmf_proto_msgbuf_attach(drvr)) in brcmf_proto_attach()
39 bphy_err(drvr, "Unsupported proto type %d\n", in brcmf_proto_attach()
40 drvr->bus_if->proto_type); in brcmf_proto_attach()
48 bphy_err(drvr, "Not all proto handlers have been installed\n"); in brcmf_proto_attach()
55 drvr->proto = NULL; in brcmf_proto_attach()
[all …]
Dfweh.c95 static int brcmf_fweh_call_event_handler(struct brcmf_pub *drvr, in brcmf_fweh_call_event_handler() argument
105 fweh = &ifp->drvr->fweh; in brcmf_fweh_call_event_handler()
111 bphy_err(drvr, "unhandled event %d ignored\n", code); in brcmf_fweh_call_event_handler()
113 bphy_err(drvr, "no interface object\n"); in brcmf_fweh_call_event_handler()
125 static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr, in brcmf_fweh_handle_if_event() argument
145 (drvr->fweh.p2pdev_setup_ongoing)))); in brcmf_fweh_handle_if_event()
151 bphy_err(drvr, "invalid interface index: %u\n", ifevent->ifidx); in brcmf_fweh_handle_if_event()
155 ifp = drvr->iflist[ifevent->bsscfgidx]; in brcmf_fweh_handle_if_event()
160 ifp = brcmf_add_if(drvr, ifevent->bsscfgidx, ifevent->ifidx, in brcmf_fweh_handle_if_event()
165 brcmf_proto_add_if(drvr, ifp); in brcmf_fweh_handle_if_event()
[all …]
Dmsgbuf.c230 struct brcmf_pub *drvr; member
423 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids()
426 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids()
431 static int brcmf_msgbuf_tx_ioctl(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_tx_ioctl() argument
434 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_tx_ioctl()
445 bphy_err(drvr, "Failed to reserve space in commonring\n"); in brcmf_msgbuf_tx_ioctl()
492 static int brcmf_msgbuf_query_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_query_dcmd() argument
495 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_query_dcmd()
503 err = brcmf_msgbuf_tx_ioctl(drvr, ifidx, cmd, buf, len); in brcmf_msgbuf_query_dcmd()
509 bphy_err(drvr, "Timeout on response for query command\n"); in brcmf_msgbuf_query_dcmd()
[all …]
Dcommon.c82 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_set_joinpref_default() local
99 bphy_err(drvr, "Set join_pref error (%d)\n", err); in brcmf_c_set_joinpref_default()
122 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_process_clm_blob() local
123 struct brcmf_bus *bus = drvr->bus_if; in brcmf_c_process_clm_blob()
168 bphy_err(drvr, "clmload (%zu byte file) failed (%d)\n", in brcmf_c_process_clm_blob()
173 bphy_err(drvr, "get clmload_status failed (%d)\n", err); in brcmf_c_process_clm_blob()
191 bphy_err(ifp->drvr, "Setting cur_etheraddr failed, %d\n", err); in brcmf_c_set_cur_etheraddr()
212 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_preinit_dcmds() local
232 bphy_err(drvr, "Retrieving cur_etheraddr failed, %d\n", err); in brcmf_c_preinit_dcmds()
237 bphy_err(drvr, "Default MAC is used, replacing with random MAC to avoid conflicts\n"); in brcmf_c_preinit_dcmds()
[all …]
Dcfg80211.c477 struct brcmf_pub *drvr = ifp->drvr; in send_key_to_dongle() local
489 bphy_err(drvr, "wsec_key error (%d)\n", err); in send_key_to_dongle()
505 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
508 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
512 static int brcmf_get_first_free_bsscfgidx(struct brcmf_pub *drvr) in brcmf_get_first_free_bsscfgidx() argument
520 if (!drvr->iflist[bsscfgidx]) in brcmf_get_first_free_bsscfgidx()
529 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_request_ap_if() local
535 bsscfgidx = brcmf_get_first_free_bsscfgidx(ifp->drvr); in brcmf_cfg80211_request_ap_if()
546 bphy_err(drvr, "setting ssid failed %d\n", err); in brcmf_cfg80211_request_ap_if()
564 struct brcmf_pub *drvr = cfg->pub; in brcmf_ap_add_vif() local
[all …]
Ddebug.h54 #define bphy_err(drvr, fmt, ...) \ argument
59 wiphy_err((drvr)->wiphy, "%s: " fmt, __func__, \
63 #define bphy_info_once(drvr, fmt, ...) \ argument
64 wiphy_info_once((drvr)->wiphy, "%s: " fmt, __func__, \
121 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr);
122 void brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn,
127 static inline struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr) in brcmf_debugfs_get_devdir() argument
132 void brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, in brcmf_debugfs_add_entry() argument
Dpno.c38 #define ifp_to_pno(_ifp) ((_ifp)->drvr->config->pno)
105 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_config() local
129 bphy_err(drvr, "failed to set pfnmem\n"); in brcmf_pno_config()
135 bphy_err(drvr, "failed to get pfnmem\n"); in brcmf_pno_config()
149 bphy_err(drvr, "pfn_set failed, err=%d\n", err); in brcmf_pno_config()
157 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_set_random() local
192 bphy_err(drvr, "pfn_macaddr failed, err=%d\n", err); in brcmf_pno_set_random()
200 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_add_ssid() local
217 bphy_err(drvr, "adding failed: err=%d\n", err); in brcmf_pno_add_ssid()
223 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_add_bssid() local
[all …]
Ddebug.c45 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr) in brcmf_debugfs_get_devdir() argument
47 return drvr->wiphy->debugfsdir; in brcmf_debugfs_get_devdir()
50 void brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, in brcmf_debugfs_add_entry() argument
53 WARN(!drvr->wiphy->debugfsdir, "wiphy not (yet) registered\n"); in brcmf_debugfs_add_entry()
54 debugfs_create_devm_seqfile(drvr->bus_if->dev, fn, in brcmf_debugfs_add_entry()
55 drvr->wiphy->debugfsdir, read_fn); in brcmf_debugfs_add_entry()
Dfwsignal.c481 struct brcmf_pub *drvr; member
816 txq = brcmf_bus_gettxq(fws->drvr->bus_if); in brcmf_fws_bus_txq_cleanup()
936 4 + fws->drvr->hdrlen; in brcmf_fws_tim_update()
949 err = brcmf_proto_txdata(fws->drvr, ifidx, data_offset, skb); in brcmf_fws_tim_update()
962 struct brcmf_if *ifp = brcmf_get_ifp(fws->drvr, if_id); in brcmf_fws_flow_control_check()
1236 struct brcmf_pub *drvr = fws->drvr; in brcmf_fws_enq() local
1249 bphy_err(drvr, "no mac descriptor found for skb %p\n", p); in brcmf_fws_enq()
1439 struct brcmf_pub *drvr = fws->drvr; in brcmf_fws_txs_process() local
1468 bphy_err(drvr, "unexpected txstatus\n"); in brcmf_fws_txs_process()
1474 bphy_err(drvr, "no packet in hanger slot: hslot=%d\n", in brcmf_fws_txs_process()
[all …]
Dbcdc.h9 int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr);
10 void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr);
14 struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr);
16 static inline int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) { return 0; } in brcmf_proto_bcdc_attach() argument
17 static inline void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr) {} in brcmf_proto_bcdc_detach() argument
Dp2p.c431 struct brcmf_pub *drvr = ifp->drvr; in brcmf_p2p_set_firmware() local
448 bphy_err(drvr, "failed to update device address ret %d\n", ret); in brcmf_p2p_set_firmware()
586 struct brcmf_pub *drvr = p2p->cfg->pub; in brcmf_p2p_enable_discovery() local
593 bphy_err(drvr, "P2P config device not available\n"); in brcmf_p2p_enable_discovery()
607 bphy_err(drvr, "set p2p_disc error\n"); in brcmf_p2p_enable_discovery()
613 bphy_err(drvr, "unable to set WL_P2P_DISC_ST_SCAN\n"); in brcmf_p2p_enable_discovery()
625 bphy_err(drvr, "wsec error %d\n", ret); in brcmf_p2p_enable_discovery()
647 struct brcmf_pub *drvr = p2p->cfg->pub; in brcmf_p2p_escan() local
666 bphy_err(drvr, "no vif for bss type %d\n", bss_type); in brcmf_p2p_escan()
694 bphy_err(drvr, " invalid search state %d\n", search_state); in brcmf_p2p_escan()
[all …]
Dmsgbuf.h32 void brcmf_msgbuf_delete_flowring(struct brcmf_pub *drvr, u16 flowid);
33 int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr);
34 void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr);
36 static inline int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr) in brcmf_proto_msgbuf_attach() argument
40 static inline void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr) {} in brcmf_proto_msgbuf_detach() argument
Dflowring.c183 struct brcmf_pub *drvr; in brcmf_flowring_block() local
219 drvr = bus_if->drvr; in brcmf_flowring_block()
220 ifp = brcmf_get_ifp(drvr, ifidx); in brcmf_flowring_block()
241 ifp = brcmf_get_ifp(bus_if->drvr, ifidx); in brcmf_flowring_delete()
387 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_detach() local
394 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_detach()
412 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_configure_addr_mode() local
422 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_configure_addr_mode()
434 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_delete_peer() local
461 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_delete_peer()
Dfweh.h311 void brcmf_fweh_attach(struct brcmf_pub *drvr);
312 void brcmf_fweh_detach(struct brcmf_pub *drvr);
313 int brcmf_fweh_register(struct brcmf_pub *drvr, enum brcmf_fweh_event_code code,
317 void brcmf_fweh_unregister(struct brcmf_pub *drvr,
320 void brcmf_fweh_process_event(struct brcmf_pub *drvr,
325 static inline void brcmf_fweh_process_skb(struct brcmf_pub *drvr, in brcmf_fweh_process_skb() argument
358 brcmf_fweh_process_event(drvr, event_packet, skb->len + ETH_HLEN, gfp); in brcmf_fweh_process_skb()
Dfwsignal.h32 struct brcmf_fws_info *brcmf_fws_attach(struct brcmf_pub *drvr);
34 void brcmf_fws_debugfs_create(struct brcmf_pub *drvr);
45 void brcmf_fws_bus_blocked(struct brcmf_pub *drvr, bool flow_blocked);
Dcore.h180 struct brcmf_pub *drvr; member
202 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx);
205 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx,
Dfeature.h93 void brcmf_feat_attach(struct brcmf_pub *drvr);
100 void brcmf_feat_debugfs_create(struct brcmf_pub *drvr);
Dcfg80211.h396 struct brcmf_pub *drvr = wiphy_priv(w); in wiphy_to_cfg() local
397 return drvr->config; in wiphy_to_cfg()
439 struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr,
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddebug.c48 void brcms_debugfs_attach(struct brcms_pub *drvr) in brcms_debugfs_attach() argument
50 drvr->dbgfs_dir = debugfs_create_dir( in brcms_debugfs_attach()
51 dev_name(&drvr->wlc->hw->d11core->dev), root_folder); in brcms_debugfs_attach()
54 void brcms_debugfs_detach(struct brcms_pub *drvr) in brcms_debugfs_detach() argument
56 debugfs_remove_recursive(drvr->dbgfs_dir); in brcms_debugfs_detach()
59 struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr) in brcms_debugfs_get_devdir() argument
61 return drvr->dbgfs_dir; in brcms_debugfs_get_devdir()
67 struct brcms_pub *drvr = s->private; in brcms_debugfs_hardware_read() local
68 struct brcms_hardware *hw = drvr->wlc->hw; in brcms_debugfs_hardware_read()
91 drvr->wlc->hw->boardflags, drvr->wlc->hw->boardflags2, in brcms_debugfs_hardware_read()
[all …]
Ddebug.h71 void 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);

12