Lines Matching refs:bus_pub

121 	struct brcmf_usbdev bus_pub; /* MUST BE FIRST */  member
198 devinfo->bus_pub.stats.rx_ctlpkts++; in brcmf_usb_ctl_complete()
200 devinfo->bus_pub.stats.rx_ctlerrs++; in brcmf_usb_ctl_complete()
203 devinfo->bus_pub.stats.tx_ctlpkts++; in brcmf_usb_ctl_complete()
205 devinfo->bus_pub.stats.tx_ctlerrs++; in brcmf_usb_ctl_complete()
315 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_tx_ctlpkt()
360 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_rx_ctlpkt()
525 if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_UP || in brcmf_usb_rx_complete()
526 devinfo->bus_pub.state == BRCMFMAC_USB_STATE_SLEEP) { in brcmf_usb_rx_complete()
548 skb = dev_alloc_skb(devinfo->bus_pub.bus_mtu); in brcmf_usb_rx_refill()
575 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_rx_fill_all()
576 brcmf_err("bus is not up=%d\n", devinfo->bus_pub.state); in brcmf_usb_rx_fill_all()
586 struct brcmf_bus *bcmf_bus = devinfo->bus_pub.bus; in brcmf_usb_state_change()
589 devinfo->bus_pub.state, state); in brcmf_usb_state_change()
591 if (devinfo->bus_pub.state == state) in brcmf_usb_state_change()
594 devinfo->bus_pub.state = state; in brcmf_usb_state_change()
621 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_tx()
670 if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_UP) in brcmf_usb_up()
707 for (i = 0; i < devinfo->bus_pub.ntxq; i++) in brcmf_cancel_all_urbs()
710 for (i = 0; i < devinfo->bus_pub.nrxq; i++) in brcmf_cancel_all_urbs()
722 if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_DOWN) in brcmf_usb_down()
815 devinfo->bus_pub.devid = chipid; in brcmf_usb_dlneeded()
816 devinfo->bus_pub.chiprev = chiprev; in brcmf_usb_dlneeded()
977 if (devinfo->bus_pub.devid == 0xDEAD) in brcmf_usb_dlstart()
982 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DL_DONE; in brcmf_usb_dlstart()
984 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DL_FAIL; in brcmf_usb_dlstart()
998 if (devinfo->bus_pub.devid == 0xDEAD) in brcmf_usb_dlrun()
1100 devinfo->bus_pub.nrxq = nrxq; in brcmf_usb_attach()
1102 devinfo->bus_pub.devinfo = devinfo; in brcmf_usb_attach()
1103 devinfo->bus_pub.ntxq = ntxq; in brcmf_usb_attach()
1104 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DOWN; in brcmf_usb_attach()
1109 devinfo->bus_pub.bus_mtu = BRCMF_USB_MAX_PKT_SIZE; in brcmf_usb_attach()
1142 return &devinfo->bus_pub; in brcmf_usb_attach()
1223 fwreq = brcmf_fw_alloc_request(devinfo->bus_pub.devid, in brcmf_usb_prepare_fw_request()
1224 devinfo->bus_pub.chiprev, in brcmf_usb_prepare_fw_request()
1240 struct brcmf_usbdev *bus_pub; in brcmf_usb_probe_cb() local
1246 bus_pub = brcmf_usb_attach(devinfo, BRCMF_USB_NRXQ, BRCMF_USB_NTXQ); in brcmf_usb_probe_cb()
1247 if (!bus_pub) in brcmf_usb_probe_cb()
1257 bus_pub->bus = bus; in brcmf_usb_probe_cb()
1258 bus->bus_priv.usb = bus_pub; in brcmf_usb_probe_cb()
1269 bus_pub->devid, in brcmf_usb_probe_cb()
1270 bus_pub->chiprev); in brcmf_usb_probe_cb()
1287 bus->chip = bus_pub->devid; in brcmf_usb_probe_cb()
1288 bus->chiprev = bus_pub->chiprev; in brcmf_usb_probe_cb()
1323 kfree(devinfo->bus_pub.bus); in brcmf_usb_disconnect_cb()
1478 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_SLEEP; in brcmf_usb_suspend()
1494 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_UP; in brcmf_usb_resume()