Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A 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 …]
H A Dcore.c78 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx) in brcmf_get_ifp() argument
84 bphy_err(drvr, "ifidx %d out of range\n", ifidx); in brcmf_get_ifp()
89 bsscfgidx = drvr->if2bss[ifidx]; in brcmf_get_ifp()
91 ifp = drvr->iflist[bsscfgidx]; in brcmf_get_ifp()
101 if (enable && brcmf_is_apmode_operating(ifp->drvr->wiphy)) { in brcmf_configure_arp_nd_offload()
142 struct brcmf_pub *drvr = ifp->drvr; in _brcmf_set_multicast_list() local
180 bphy_err(drvr, "Setting mcast_list failed, %d\n", err); in _brcmf_set_multicast_list()
193 bphy_err(drvr, "Setting allmulti failed, %d\n", err); in _brcmf_set_multicast_list()
201 bphy_info_once(drvr, "BRCMF_C_SET_PROMISC unsupported\n"); in _brcmf_set_multicast_list()
203 bphy_err(drvr, "Setting BRCMF_C_SET_PROMISC failed, err=%d\n", in _brcmf_set_multicast_list()
[all …]
H A 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 …]
H A 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()
152 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
160 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
191 struct brcmf_pub *drvr = ifp->drvr; in brcmf_fil_iovar_data_set() local
[all …]
H A 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 …]
H A 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 …]
H A 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()
124 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_download_blob() local
163 bphy_err(drvr, "%s (%zu byte file) failed (%d)\n", in brcmf_c_download_blob()
168 bphy_err(drvr, "get %s failed (%d)\n", statvar, err); in brcmf_c_download_blob()
180 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_process_clm_blob() local
181 struct brcmf_bus *bus = drvr->bus_if; in brcmf_c_process_clm_blob()
203 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_process_txcap_blob() local
204 struct brcmf_bus *bus = drvr->bus_if; in brcmf_c_process_txcap_blob()
230 bphy_err(ifp->drvr, "Setting cur_etheraddr failed, %d\n", err); in brcmf_c_set_cur_etheraddr()
[all …]
H A Dfwvid.c153 int brcmf_fwvid_attach(struct brcmf_pub *drvr) in brcmf_fwvid_attach() argument
155 enum brcmf_fwvendor fwvid = drvr->bus_if->fwvid; in brcmf_fwvid_attach()
162 dev_name(drvr->bus_if->dev)); in brcmf_fwvid_attach()
170 drvr->vops = fwvid_list[fwvid].vops; in brcmf_fwvid_attach()
171 list_add(&drvr->bus_if->list, &fwvid_list[fwvid].drvr_list); in brcmf_fwvid_attach()
178 void brcmf_fwvid_detach(struct brcmf_pub *drvr) in brcmf_fwvid_detach() argument
180 enum brcmf_fwvendor fwvid = drvr->bus_if->fwvid; in brcmf_fwvid_detach()
186 dev_name(drvr->bus_if->dev)); in brcmf_fwvid_detach()
190 if (drvr->vops) { in brcmf_fwvid_detach()
191 drvr->vops = NULL; in brcmf_fwvid_detach()
[all …]
H A Dcfg80211.c549 struct brcmf_pub *drvr = ifp->drvr; in send_key_to_dongle() local
561 bphy_err(drvr, "wsec_key error (%d)\n", err); in send_key_to_dongle()
577 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
580 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
584 static int brcmf_get_first_free_bsscfgidx(struct brcmf_pub *drvr) in brcmf_get_first_free_bsscfgidx() argument
592 if (!drvr->iflist[bsscfgidx]) in brcmf_get_first_free_bsscfgidx()
601 u8 mac_idx = ifp->drvr->sta_mac_idx; in brcmf_set_vif_sta_macaddr()
609 ifp->drvr->sta_mac_idx = mac_idx; in brcmf_set_vif_sta_macaddr()
712 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cfg80211_request_ap_if() local
791 bsscfgidx = brcmf_get_first_free_bsscfgidx(ifp->drvr); in brcmf_cfg80211_request_ap_if()
[all …]
H A 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()
H A 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
H A 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
H A 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 …]
H A 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
H A 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 …]
H A 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()
H A 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);
H A Dcore.h189 struct brcmf_pub *drvr; member
211 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx);
214 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx,
H A Dcfg80211.h419 struct brcmf_pub *drvr = wiphy_priv(w); in wiphy_to_cfg() local
420 return drvr->config; in wiphy_to_cfg()
462 struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr,
H A Dbus.h173 struct brcmf_pub *drvr; member
H A Dpcie.c2381 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_pcie_debugfs_create() local
2384 struct dentry *dentry = brcmf_debugfs_get_devdir(drvr); in brcmf_pcie_debugfs_create()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cyw/
H A Dcore.c29 struct brcmf_pub *drvr = ifp->drvr; in brcmf_cyw_set_sae_pwd() local
35 bphy_err(drvr, "sae_password must be less than %d\n", in brcmf_cyw_set_sae_pwd()
46 bphy_err(drvr, "failed to set SAE password in firmware (len=%u)\n", in brcmf_cyw_set_sae_pwd()
65 static int brcmf_cyw_alloc_fweh_info(struct brcmf_pub *drvr) in brcmf_cyw_alloc_fweh_info() argument
76 drvr->fweh = fweh; in brcmf_cyw_alloc_fweh_info()
82 struct brcmf_fweh_info *fweh = ifp->drvr->fweh; in brcmf_cyw_activate_events()
108 struct brcmf_pub *drvr = cfg->pub; in brcmf_cyw_mgmt_tx() local
151 bphy_err(drvr, "unable to get current hw channel\n"); in brcmf_cyw_mgmt_tx()
175 bphy_err(drvr, "Failed to send Auth frame: err=%d\n", in brcmf_cyw_mgmt_tx()
186 bphy_err(drvr, "TX Auth frame operation is %s: status=%ld)\n", in brcmf_cyw_mgmt_tx()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bca/
H A Dcore.c19 ifp->drvr->feat_flags &= ~BIT(BRCMF_FEAT_SAE); in brcmf_bca_feat_attach()
22 static int brcmf_bca_alloc_fweh_info(struct brcmf_pub *drvr) in brcmf_bca_alloc_fweh_info() argument
32 drvr->fweh = fweh; in brcmf_bca_alloc_fweh_info()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/wcc/
H A Dcore.c23 static int brcmf_wcc_alloc_fweh_info(struct brcmf_pub *drvr) in brcmf_wcc_alloc_fweh_info() argument
33 drvr->fweh = fweh; in brcmf_wcc_alloc_fweh_info()
/linux/include/linux/
H A 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