/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | proto.h | 19 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 …]
|
D | core.c | 78 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() 137 struct brcmf_pub *drvr = ifp->drvr; in _brcmf_set_multicast_list() local 175 bphy_err(drvr, "Setting mcast_list failed, %d\n", err); in _brcmf_set_multicast_list() 188 bphy_err(drvr, "Setting allmulti failed, %d\n", err); in _brcmf_set_multicast_list() 196 bphy_info_once(drvr, "BRCMF_C_SET_PROMISC unsupported\n"); in _brcmf_set_multicast_list() 198 bphy_err(drvr, "Setting BRCMF_C_SET_PROMISC failed, err=%d\n", in _brcmf_set_multicast_list() 209 struct brcmf_pub *drvr = ifp->drvr; in _brcmf_update_ndtable() local [all …]
|
D | bcdc.c | 101 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 …]
|
D | fwil.c | 99 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 …]
|
D | proto.c | 20 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 …]
|
D | feature.c | 68 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() 195 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_get() 216 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_data_set() 228 struct brcmf_pub *drvr = ifp->drvr; in brcmf_feat_firmware_capabilities() local 235 bphy_err(drvr, "could not get firmware cap (%d)\n", err); in brcmf_feat_firmware_capabilities() 246 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_firmware_capabilities() 260 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_feat_fwcap_debugfs_read() local 261 struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0); in brcmf_feat_fwcap_debugfs_read() 268 bphy_err(drvr, "could not get firmware cap (%d)\n", err); in brcmf_feat_fwcap_debugfs_read() [all …]
|
D | fwvid.h | 13 int (*attach)(struct brcmf_pub *drvr); 14 void (*detach)(struct brcmf_pub *drvr); 23 int brcmf_fwvid_attach_ops(struct brcmf_pub *drvr); 24 void brcmf_fwvid_detach_ops(struct brcmf_pub *drvr); 25 const char *brcmf_fwvid_vendor_name(struct brcmf_pub *drvr); 27 static inline int brcmf_fwvid_attach(struct brcmf_pub *drvr) in brcmf_fwvid_attach() argument 31 ret = brcmf_fwvid_attach_ops(drvr); in brcmf_fwvid_attach() 35 return drvr->vops->attach(drvr); in brcmf_fwvid_attach() 38 static inline void brcmf_fwvid_detach(struct brcmf_pub *drvr) in brcmf_fwvid_detach() argument 40 if (!drvr->vops) in brcmf_fwvid_detach() [all …]
|
D | fweh.c | 95 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 …]
|
D | msgbuf.c | 230 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 …]
|
D | common.c | 82 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 …]
|
D | cfg80211.c | 549 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 …]
|
D | fwvid.c | 153 int brcmf_fwvid_attach_ops(struct brcmf_pub *drvr) in brcmf_fwvid_attach_ops() argument 155 enum brcmf_fwvendor fwvid = drvr->bus_if->fwvid; in brcmf_fwvid_attach_ops() 162 dev_name(drvr->bus_if->dev)); in brcmf_fwvid_attach_ops() 170 drvr->vops = fwvid_list[fwvid].vops; in brcmf_fwvid_attach_ops() 171 list_add(&drvr->bus_if->list, &fwvid_list[fwvid].drvr_list); in brcmf_fwvid_attach_ops() 178 void brcmf_fwvid_detach_ops(struct brcmf_pub *drvr) in brcmf_fwvid_detach_ops() argument 180 enum brcmf_fwvendor fwvid = drvr->bus_if->fwvid; in brcmf_fwvid_detach_ops() 186 dev_name(drvr->bus_if->dev)); in brcmf_fwvid_detach_ops() 190 drvr->vops = NULL; in brcmf_fwvid_detach_ops() 191 list_del(&drvr->bus_if->list); in brcmf_fwvid_detach_ops() [all …]
|
D | debug.c | 45 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()
|
D | debug.h | 54 #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
|
D | bcdc.h | 9 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
|
D | msgbuf.h | 32 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
|
D | pno.c | 38 #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 …]
|
D | fwsignal.c | 481 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 …]
|
D | p2p.c | 431 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 …]
|
D | flowring.c | 183 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()
|
D | fweh.h | 311 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()
|
D | fwsignal.h | 32 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);
|
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | debug.c | 48 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 …]
|
D | debug.h | 71 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);
|
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bca/ |
D | core.c | 13 static int brcmf_bca_attach(struct brcmf_pub *drvr) in brcmf_bca_attach() argument 19 static void brcmf_bca_detach(struct brcmf_pub *drvr) in brcmf_bca_detach() argument
|