Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dproto.h27 int (*hdrpull)(struct brcmf_pub *drvr, bool do_fws, u8 *ifidx,
29 int (*query_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd,
31 int (*set_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf,
33 int (*txdata)(struct brcmf_pub *drvr, int ifidx, u8 offset,
35 void (*configure_addr_mode)(struct brcmf_pub *drvr, int ifidx,
37 void (*delete_peer)(struct brcmf_pub *drvr, int ifidx,
39 void (*add_tdls_peer)(struct brcmf_pub *drvr, int ifidx,
45 int brcmf_proto_attach(struct brcmf_pub *drvr);
46 void brcmf_proto_detach(struct brcmf_pub *drvr);
48 static inline int brcmf_proto_hdrpull(struct brcmf_pub *drvr, bool do_fws, in brcmf_proto_hdrpull() argument
[all …]
Dcore.c68 char *brcmf_ifname(struct brcmf_pub *drvr, int ifidx) in brcmf_ifname() argument
75 if (drvr->iflist[ifidx] == NULL) { in brcmf_ifname()
80 if (drvr->iflist[ifidx]->ndev) in brcmf_ifname()
81 return drvr->iflist[ifidx]->ndev->name; in brcmf_ifname()
194 struct brcmf_pub *drvr = ifp->drvr; in brcmf_netdev_start_xmit() local
200 if (drvr->bus_if->state != BRCMF_BUS_UP) { in brcmf_netdev_start_xmit()
201 brcmf_err("xmit rejected state=%d\n", drvr->bus_if->state); in brcmf_netdev_start_xmit()
208 if (!drvr->iflist[ifp->bssidx]) { in brcmf_netdev_start_xmit()
217 if (skb_headroom(skb) < drvr->hdrlen) { in brcmf_netdev_start_xmit()
221 brcmf_ifname(drvr, ifp->bssidx)); 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()
65 drvr->proto = NULL; in brcmf_proto_attach()
69 void brcmf_proto_detach(struct brcmf_pub *drvr) in brcmf_proto_detach() argument
73 if (drvr->proto) { in brcmf_proto_detach()
[all …]
Dbcdc.c110 brcmf_proto_bcdc_msg(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf, in brcmf_proto_bcdc_msg() argument
113 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
138 return brcmf_bus_txctl(drvr->bus_if, (unsigned char *)&bcdc->msg, len); in brcmf_proto_bcdc_msg()
141 static int brcmf_proto_bcdc_cmplt(struct brcmf_pub *drvr, u32 id, u32 len) in brcmf_proto_bcdc_cmplt() argument
144 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
149 ret = brcmf_bus_rxctl(drvr->bus_if, (unsigned char *)&bcdc->msg, in brcmf_proto_bcdc_cmplt()
159 brcmf_proto_bcdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_query_dcmd() argument
162 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd()
170 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, false); in brcmf_proto_bcdc_query_dcmd()
179 ret = brcmf_proto_bcdc_cmplt(drvr, bcdc->reqid, len); in brcmf_proto_bcdc_query_dcmd()
[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, data, len); in brcmf_fil_cmd_data()
122 err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, data, len); in brcmf_fil_cmd_data()
137 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
144 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_set()
154 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
161 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_data_get()
173 mutex_lock(&ifp->drvr->proto_block); in brcmf_fil_cmd_int_set()
176 mutex_unlock(&ifp->drvr->proto_block); in brcmf_fil_cmd_int_set()
[all …]
Ddebug.c53 int brcmf_debugfs_attach(struct brcmf_pub *drvr) in brcmf_debugfs_attach() argument
55 struct device *dev = drvr->bus_if->dev; in brcmf_debugfs_attach()
60 drvr->dbgfs_dir = debugfs_create_dir(dev_name(dev), root_folder); in brcmf_debugfs_attach()
61 brcmf_debugfs_add_entry(drvr, "chipinfo", brcmf_debugfs_chipinfo_read); in brcmf_debugfs_attach()
63 return PTR_ERR_OR_ZERO(drvr->dbgfs_dir); in brcmf_debugfs_attach()
66 void brcmf_debugfs_detach(struct brcmf_pub *drvr) in brcmf_debugfs_detach() argument
68 if (!IS_ERR_OR_NULL(drvr->dbgfs_dir)) in brcmf_debugfs_detach()
69 debugfs_remove_recursive(drvr->dbgfs_dir); in brcmf_debugfs_detach()
72 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr) in brcmf_debugfs_get_devdir() argument
74 return drvr->dbgfs_dir; in brcmf_debugfs_get_devdir()
[all …]
Dfeature.c56 u32 feats = bus_if->drvr->feat_flags; in brcmf_feat_debugfs_read()
57 u32 quirks = bus_if->drvr->chip_quirks; in brcmf_feat_debugfs_read()
93 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_get()
115 ifp->drvr->feat_flags |= BIT(id); in brcmf_feat_iovar_int_set()
122 void brcmf_feat_attach(struct brcmf_pub *drvr) in brcmf_feat_attach() argument
124 struct brcmf_if *ifp = drvr->iflist[0]; in brcmf_feat_attach()
127 if (drvr->bus_if->wowl_supported) in brcmf_feat_attach()
129 if (drvr->bus_if->chip != BRCM_CC_43362_CHIP_ID) in brcmf_feat_attach()
133 switch (drvr->bus_if->chip) { in brcmf_feat_attach()
135 drvr->chip_quirks |= BIT(BRCMF_FEAT_QUIRK_AUTO_AUTH); in brcmf_feat_attach()
[all …]
Dfweh.c156 fweh = &ifp->drvr->fweh; in brcmf_fweh_call_event_handler()
176 static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr, in brcmf_fweh_handle_if_event() argument
204 ifp = drvr->iflist[ifevent->bssidx]; in brcmf_fweh_handle_if_event()
209 ifp = brcmf_add_if(drvr, ifevent->bssidx, ifevent->ifidx, in brcmf_fweh_handle_if_event()
214 if (!drvr->fweh.evt_handler[BRCMF_E_IF]) in brcmf_fweh_handle_if_event()
225 brcmf_remove_interface(drvr, ifevent->bssidx); in brcmf_fweh_handle_if_event()
257 struct brcmf_pub *drvr; in brcmf_fweh_event_worker() local
266 drvr = container_of(fweh, struct brcmf_pub, fweh); in brcmf_fweh_event_worker()
296 brcmf_fweh_handle_if_event(drvr, &emsg, event->data); in brcmf_fweh_event_worker()
302 ifp = drvr->iflist[0]; in brcmf_fweh_event_worker()
[all …]
Dmsgbuf.h36 void brcmf_msgbuf_delete_flowring(struct brcmf_pub *drvr, u8 flowid);
37 int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr);
38 void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr);
40 static inline int brcmf_proto_msgbuf_attach(struct brcmf_pub *drvr) in brcmf_proto_msgbuf_attach() argument
44 static inline void brcmf_proto_msgbuf_detach(struct brcmf_pub *drvr) {} in brcmf_proto_msgbuf_detach() argument
Dmsgbuf.c222 struct brcmf_pub *drvr; member
419 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids()
422 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids()
427 static int brcmf_msgbuf_tx_ioctl(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_tx_ioctl() argument
430 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_tx_ioctl()
490 static int brcmf_msgbuf_query_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_query_dcmd() argument
493 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_query_dcmd()
500 err = brcmf_msgbuf_tx_ioctl(drvr, ifidx, cmd, buf, len); in brcmf_msgbuf_query_dcmd()
510 skb = brcmf_msgbuf_get_pktid(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_query_dcmd()
526 static int brcmf_msgbuf_set_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_set_dcmd() argument
[all …]
Ddebug.h109 int brcmf_debugfs_attach(struct brcmf_pub *drvr);
110 void brcmf_debugfs_detach(struct brcmf_pub *drvr);
111 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr);
112 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn,
121 static inline int brcmf_debugfs_attach(struct brcmf_pub *drvr) in brcmf_debugfs_attach() argument
125 static inline void brcmf_debugfs_detach(struct brcmf_pub *drvr) in brcmf_debugfs_detach() argument
129 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, in brcmf_debugfs_add_entry() argument
Dbcdc.h20 int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr);
21 void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr);
23 static inline int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) { return 0; } in brcmf_proto_bcdc_attach() argument
24 static inline void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr) {} in brcmf_proto_bcdc_detach() argument
Dfwsignal.h21 int brcmf_fws_init(struct brcmf_pub *drvr);
22 void brcmf_fws_deinit(struct brcmf_pub *drvr);
24 int brcmf_fws_hdrpull(struct brcmf_pub *drvr, int ifidx, s16 signal_len,
32 void brcmf_fws_bus_blocked(struct brcmf_pub *drvr, bool flow_blocked);
Dcore.h178 struct brcmf_pub *drvr; member
201 char *brcmf_ifname(struct brcmf_pub *drvr, int idx);
204 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bssidx, s32 ifidx,
206 void brcmf_remove_interface(struct brcmf_pub *drvr, u32 bssidx);
207 int brcmf_get_next_free_bsscfgidx(struct brcmf_pub *drvr);
210 void brcmf_txfinalize(struct brcmf_pub *drvr, struct sk_buff *txp, u8 ifidx,
Dfwsignal.c486 struct brcmf_pub *drvr; member
829 txq = brcmf_bus_gettxq(fws->drvr->bus_if); in brcmf_fws_bus_txq_cleanup()
949 4 + fws->drvr->hdrlen; in brcmf_fws_tim_update()
962 err = brcmf_proto_txdata(fws->drvr, ifidx, data_offset, skb); in brcmf_fws_tim_update()
975 struct brcmf_if *ifp = fws->drvr->iflist[!if_id ? 0 : if_id + 1]; in brcmf_fws_flow_control_check()
1500 if (brcmf_proto_hdrpull(fws->drvr, false, &ifidx, skb)) { in brcmf_fws_txs_process()
1508 brcmf_txfinalize(fws->drvr, skb, ifidx, true); in brcmf_fws_txs_process()
1578 struct brcmf_fws_info *fws = ifp->drvr->fws; in brcmf_fws_notify_credit_map()
1609 struct brcmf_fws_info *fws = ifp->drvr->fws; in brcmf_fws_notify_bcmc_credit_support()
1618 int brcmf_fws_hdrpull(struct brcmf_pub *drvr, int ifidx, s16 signal_len, in brcmf_fws_hdrpull() argument
[all …]
Dfweh.h245 void brcmf_fweh_attach(struct brcmf_pub *drvr);
246 void brcmf_fweh_detach(struct brcmf_pub *drvr);
247 int brcmf_fweh_register(struct brcmf_pub *drvr, enum brcmf_fweh_event_code code,
251 void brcmf_fweh_unregister(struct brcmf_pub *drvr,
254 void brcmf_fweh_process_event(struct brcmf_pub *drvr,
257 static inline void brcmf_fweh_process_skb(struct brcmf_pub *drvr, in brcmf_fweh_process_skb() argument
281 brcmf_fweh_process_event(drvr, event_packet); in brcmf_fweh_process_skb()
Dcommon.c56 memcpy(ifp->drvr->mac, ifp->mac_addr, sizeof(ifp->drvr->mac)); in brcmf_c_preinit_dcmds()
60 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds()
101 strlcpy(ifp->drvr->fwver, ptr, sizeof(ifp->drvr->fwver)); in brcmf_c_preinit_dcmds()
178 err = brcmf_bus_preinit(ifp->drvr->bus_if); in brcmf_c_preinit_dcmds()
Dflowring.c187 struct brcmf_pub *drvr; in brcmf_flowring_block() local
219 drvr = bus_if->drvr; in brcmf_flowring_block()
220 ifp = drvr->iflist[ifidx]; in brcmf_flowring_block()
379 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_detach() local
386 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_detach()
404 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_configure_addr_mode() local
415 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_configure_addr_mode()
427 struct brcmf_pub *drvr = bus_if->drvr; in brcmf_flowring_delete_peer() local
455 brcmf_msgbuf_delete_flowring(drvr, flowid); in brcmf_flowring_delete_peer()
Dfeature.h65 void brcmf_feat_attach(struct brcmf_pub *drvr);
Dp2p.c1011 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_listen_complete()
1354 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_frame_rx()
1456 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_action_tx_complete()
1851 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1921 struct brcmf_pub *drvr; in brcmf_p2p_attach() local
1928 drvr = cfg->pub; in brcmf_p2p_attach()
1930 pri_ifp = drvr->iflist[0]; in brcmf_p2p_attach()
1931 p2p_ifp = drvr->iflist[1]; in brcmf_p2p_attach()
Dbus.h127 struct brcmf_pub *drvr; member
Dcfg80211.c517 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
520 brcmf_proto_configure_addr_mode(ifp->drvr, ifp->ifidx, in brcmf_cfg80211_update_proto_addr_mode()
531 bsscfgidx = brcmf_get_next_free_bsscfgidx(ifp->drvr); in brcmf_cfg80211_request_ap_if()
2826 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_cfg80211_escan_handler()
3230 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_notify_sched_scan_results()
4499 brcmf_proto_add_tdls_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); in brcmf_notify_tdls_peer_event()
4503 brcmf_proto_delete_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); in brcmf_notify_tdls_peer_event()
4886 brcmf_remove_interface(ifp->drvr, ifp->bssidx); in brcmf_notify_connect_status_ap()
4914 struct brcmf_cfg80211_info *cfg = ifp->drvr->config; in brcmf_notify_connect_status()
4924 brcmf_proto_delete_peer(ifp->drvr, ifp->ifidx, (u8 *)e->addr); in brcmf_notify_connect_status()
[all …]
Dcfg80211.h471 struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr,
Dsdio.c3201 struct brcmf_pub *drvr = bus->sdiodev->bus_if->drvr; in brcmf_sdio_debugfs_create() local
3202 struct dentry *dentry = brcmf_debugfs_get_devdir(drvr); in brcmf_sdio_debugfs_create()
3207 brcmf_debugfs_add_entry(drvr, "forensics", brcmf_sdio_forensic_read); in brcmf_sdio_debugfs_create()
3208 brcmf_debugfs_add_entry(drvr, "counters", in brcmf_sdio_debugfs_create()
4003 if (!bus_if->drvr) in brcmf_sdio_firmware_callback()
/linux-4.1.27/drivers/net/wireless/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-4.1.27/include/linux/
Dntb.h62 int ntb_register_client(struct ntb_client *drvr);
63 void ntb_unregister_client(struct ntb_client *drvr);
/linux-4.1.27/Documentation/isdn/
DINTERFACE.CAPI250 void register_capi_driver(struct capi_driver *drvr)
251 void unregister_capi_driver(struct capi_driver *drvr)
/linux-4.1.27/Documentation/scsi/
DChangeLog.lpfc1862 * Removed module locks except for drvr, mem, and clock.