Lines Matching refs:bus_pub

128 	struct brcmf_usbdev bus_pub; /* MUST BE FIRST */  member
205 devinfo->bus_pub.stats.rx_ctlpkts++; in brcmf_usb_ctl_complete()
207 devinfo->bus_pub.stats.rx_ctlerrs++; in brcmf_usb_ctl_complete()
210 devinfo->bus_pub.stats.tx_ctlpkts++; in brcmf_usb_ctl_complete()
212 devinfo->bus_pub.stats.tx_ctlerrs++; in brcmf_usb_ctl_complete()
322 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_tx_ctlpkt()
367 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_rx_ctlpkt()
532 if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_UP || in brcmf_usb_rx_complete()
533 devinfo->bus_pub.state == BRCMFMAC_USB_STATE_SLEEP) { in brcmf_usb_rx_complete()
555 skb = dev_alloc_skb(devinfo->bus_pub.bus_mtu); in brcmf_usb_rx_refill()
582 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_rx_fill_all()
583 brcmf_err("bus is not up=%d\n", devinfo->bus_pub.state); in brcmf_usb_rx_fill_all()
593 struct brcmf_bus *bcmf_bus = devinfo->bus_pub.bus; in brcmf_usb_state_change()
596 devinfo->bus_pub.state, state); in brcmf_usb_state_change()
598 if (devinfo->bus_pub.state == state) in brcmf_usb_state_change()
601 devinfo->bus_pub.state = state; in brcmf_usb_state_change()
628 if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { in brcmf_usb_tx()
677 if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_UP) in brcmf_usb_up()
714 for (i = 0; i < devinfo->bus_pub.ntxq; i++) in brcmf_cancel_all_urbs()
717 for (i = 0; i < devinfo->bus_pub.nrxq; i++) in brcmf_cancel_all_urbs()
729 if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_DOWN) in brcmf_usb_down()
822 devinfo->bus_pub.devid = chipid; in brcmf_usb_dlneeded()
823 devinfo->bus_pub.chiprev = chiprev; in brcmf_usb_dlneeded()
984 if (devinfo->bus_pub.devid == 0xDEAD) in brcmf_usb_dlstart()
989 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DL_DONE; in brcmf_usb_dlstart()
991 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DL_FAIL; in brcmf_usb_dlstart()
1005 if (devinfo->bus_pub.devid == 0xDEAD) in brcmf_usb_dlrun()
1107 devinfo->bus_pub.nrxq = nrxq; in brcmf_usb_attach()
1109 devinfo->bus_pub.devinfo = devinfo; in brcmf_usb_attach()
1110 devinfo->bus_pub.ntxq = ntxq; in brcmf_usb_attach()
1111 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DOWN; in brcmf_usb_attach()
1116 devinfo->bus_pub.bus_mtu = BRCMF_USB_MAX_PKT_SIZE; in brcmf_usb_attach()
1149 return &devinfo->bus_pub; in brcmf_usb_attach()
1230 fwreq = brcmf_fw_alloc_request(devinfo->bus_pub.devid, in brcmf_usb_prepare_fw_request()
1231 devinfo->bus_pub.chiprev, in brcmf_usb_prepare_fw_request()
1247 struct brcmf_usbdev *bus_pub = NULL; in brcmf_usb_probe_cb() local
1253 bus_pub = brcmf_usb_attach(devinfo, BRCMF_USB_NRXQ, BRCMF_USB_NTXQ); in brcmf_usb_probe_cb()
1254 if (!bus_pub) in brcmf_usb_probe_cb()
1264 bus_pub->bus = bus; in brcmf_usb_probe_cb()
1265 bus->bus_priv.usb = bus_pub; in brcmf_usb_probe_cb()
1276 bus_pub->devid, in brcmf_usb_probe_cb()
1277 bus_pub->chiprev); in brcmf_usb_probe_cb()
1294 bus->chip = bus_pub->devid; in brcmf_usb_probe_cb()
1295 bus->chiprev = bus_pub->chiprev; in brcmf_usb_probe_cb()
1330 kfree(devinfo->bus_pub.bus); in brcmf_usb_disconnect_cb()
1485 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_SLEEP; in brcmf_usb_suspend()
1501 devinfo->bus_pub.state = BRCMFMAC_USB_STATE_UP; in brcmf_usb_resume()