Lines Matching full:usb
2 /* ZD1211 USB-WLAN driver for Linux
16 #include <linux/usb.h>
93 MODULE_DESCRIPTION("USB driver for devices with the ZD1211 chip.");
97 MODULE_DEVICE_TABLE(usb, usb_ids);
102 static bool check_read_regs(struct zd_usb *usb, struct usb_req_read_regs *req,
105 /* USB device initialization */
141 /* USB request blocks need "kmalloced" buffers. in upload_code()
163 "USB control request for firmware upload" in upload_code()
215 static char *get_fw_name(struct zd_usb *usb, char *buffer, size_t size, in get_fw_name() argument
219 usb->is_zd1211b ? in get_fw_name()
225 static int handle_version_mismatch(struct zd_usb *usb, in handle_version_mismatch() argument
228 struct usb_device *udev = zd_usb_to_usbdev(usb); in handle_version_mismatch()
235 get_fw_name(usb, fw_name, sizeof(fw_name), "ur"), in handle_version_mismatch()
258 static int upload_firmware(struct zd_usb *usb) in upload_firmware() argument
263 struct usb_device *udev = zd_usb_to_usbdev(usb); in upload_firmware()
271 get_fw_name(usb, fw_name, sizeof(fw_name), "ub"), in upload_firmware()
286 r = handle_version_mismatch(usb, ub_fw); in upload_firmware()
297 get_fw_name(usb, fw_name, sizeof(fw_name), "uphr"), in upload_firmware()
325 int zd_usb_read_fw(struct zd_usb *usb, zd_addr_t addr, u8 *data, u16 len) in zd_usb_read_fw() argument
328 struct usb_device *udev = zd_usb_to_usbdev(usb); in zd_usb_read_fw()
360 struct zd_usb *usb = urb->context; in handle_regs_int_override() local
361 struct zd_usb_interrupt *intr = &usb->intr; in handle_regs_int_override()
375 struct zd_usb *usb = urb->context; in handle_regs_int() local
376 struct zd_usb_interrupt *intr = &usb->intr; in handle_regs_int()
405 if (!check_read_regs(usb, intr->read_regs.req, in handle_regs_int()
428 struct zd_usb *usb; in int_urb_complete() local
461 usb = urb->context; in int_urb_complete()
462 intr = &usb->intr; in int_urb_complete()
502 static inline int usb_int_enabled(struct zd_usb *usb) in usb_int_enabled() argument
505 struct zd_usb_interrupt *intr = &usb->intr; in usb_int_enabled()
514 int zd_usb_enable_int(struct zd_usb *usb) in zd_usb_enable_int() argument
517 struct usb_device *udev = zd_usb_to_usbdev(usb); in zd_usb_enable_int()
518 struct zd_usb_interrupt *intr = &usb->intr; in zd_usb_enable_int()
521 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_usb_enable_int()
543 dev_dbg_f(zd_usb_dev(usb), in zd_usb_enable_int()
550 int_urb_complete, usb, in zd_usb_enable_int()
555 dev_dbg_f(zd_usb_dev(usb), "submit urb %p\n", intr->urb); in zd_usb_enable_int()
558 dev_dbg_f(zd_usb_dev(usb), in zd_usb_enable_int()
577 void zd_usb_disable_int(struct zd_usb *usb) in zd_usb_disable_int() argument
580 struct usb_device *udev = zd_usb_to_usbdev(usb); in zd_usb_disable_int()
581 struct zd_usb_interrupt *intr = &usb->intr; in zd_usb_disable_int()
599 dev_dbg_f(zd_usb_dev(usb), "urb %p killed\n", urb); in zd_usb_disable_int()
605 static void handle_rx_packet(struct zd_usb *usb, const u8 *buffer, in handle_rx_packet() argument
613 dev_dbg_f(zd_usb_dev(usb), "invalid, small RX packet : %d\n", in handle_rx_packet()
624 * because if USB transactions are merged, the last packet will not in handle_rx_packet()
638 zd_mac_rx(zd_usb_to_hw(usb), buffer+l, k); in handle_rx_packet()
644 zd_mac_rx(zd_usb_to_hw(usb), buffer, length); in handle_rx_packet()
651 struct zd_usb *usb; in rx_urb_complete() local
675 usb = urb->context; in rx_urb_complete()
676 rx = &usb->rx; in rx_urb_complete()
698 handle_rx_packet(usb, rx->fragment, in rx_urb_complete()
704 handle_rx_packet(usb, buffer, length); in rx_urb_complete()
713 static struct urb *alloc_rx_urb(struct zd_usb *usb) in alloc_rx_urb() argument
715 struct usb_device *udev = zd_usb_to_usbdev(usb); in alloc_rx_urb()
731 rx_urb_complete, usb); in alloc_rx_urb()
746 static int __zd_usb_enable_rx(struct zd_usb *usb) in __zd_usb_enable_rx() argument
749 struct zd_usb_rx *rx = &usb->rx; in __zd_usb_enable_rx()
752 dev_dbg_f(zd_usb_dev(usb), "\n"); in __zd_usb_enable_rx()
759 urbs[i] = alloc_rx_urb(usb); in __zd_usb_enable_rx()
798 int zd_usb_enable_rx(struct zd_usb *usb) in zd_usb_enable_rx() argument
801 struct zd_usb_rx *rx = &usb->rx; in zd_usb_enable_rx()
804 r = __zd_usb_enable_rx(usb); in zd_usb_enable_rx()
807 zd_usb_reset_rx_idle_timer(usb); in zd_usb_enable_rx()
812 static void __zd_usb_disable_rx(struct zd_usb *usb) in __zd_usb_disable_rx() argument
818 struct zd_usb_rx *rx = &usb->rx; in __zd_usb_disable_rx()
839 void zd_usb_disable_rx(struct zd_usb *usb) in zd_usb_disable_rx() argument
841 struct zd_usb_rx *rx = &usb->rx; in zd_usb_disable_rx()
844 __zd_usb_disable_rx(usb); in zd_usb_disable_rx()
851 static void zd_usb_reset_rx(struct zd_usb *usb) in zd_usb_reset_rx() argument
854 struct zd_usb_rx *rx = &usb->rx; in zd_usb_reset_rx()
864 __zd_usb_disable_rx(usb); in zd_usb_reset_rx()
865 __zd_usb_enable_rx(usb); in zd_usb_reset_rx()
871 zd_usb_reset_rx_idle_timer(usb); in zd_usb_reset_rx()
876 * @usb: the zd1211rw-private USB structure
880 void zd_usb_disable_tx(struct zd_usb *usb) in zd_usb_disable_tx() argument
882 struct zd_usb_tx *tx = &usb->tx; in zd_usb_disable_tx()
903 * @usb: a &struct zd_usb pointer
908 void zd_usb_enable_tx(struct zd_usb *usb) in zd_usb_enable_tx() argument
911 struct zd_usb_tx *tx = &usb->tx; in zd_usb_enable_tx()
916 ieee80211_wake_queues(zd_usb_to_hw(usb)); in zd_usb_enable_tx()
921 static void tx_dec_submitted_urbs(struct zd_usb *usb) in tx_dec_submitted_urbs() argument
923 struct zd_usb_tx *tx = &usb->tx; in tx_dec_submitted_urbs()
929 ieee80211_wake_queues(zd_usb_to_hw(usb)); in tx_dec_submitted_urbs()
935 static void tx_inc_submitted_urbs(struct zd_usb *usb) in tx_inc_submitted_urbs() argument
937 struct zd_usb_tx *tx = &usb->tx; in tx_inc_submitted_urbs()
943 ieee80211_stop_queues(zd_usb_to_hw(usb)); in tx_inc_submitted_urbs()
961 struct zd_usb *usb; in tx_urb_complete() local
967 * grab 'usb' pointer before handing off the skb (since in tx_urb_complete()
970 usb = &zd_hw_mac(info->rate_driver_data[0])->chip.usb; in tx_urb_complete()
971 tx = &usb->tx; in tx_urb_complete()
989 skb_unlink(skb, &usb->tx.submitted_skbs); in tx_urb_complete()
992 tx_dec_submitted_urbs(usb); in tx_urb_complete()
1007 * @usb: the zd1211rw-private USB structure
1016 int zd_usb_tx(struct zd_usb *usb, struct sk_buff *skb) in zd_usb_tx() argument
1020 struct usb_device *udev = zd_usb_to_usbdev(usb); in zd_usb_tx()
1022 struct zd_usb_tx *tx = &usb->tx; in zd_usb_tx()
1044 dev_dbg_f(zd_usb_dev(usb), "error submit urb %p %d\n", urb, r); in zd_usb_tx()
1049 tx_inc_submitted_urbs(usb); in zd_usb_tx()
1057 static bool zd_tx_timeout(struct zd_usb *usb) in zd_tx_timeout() argument
1059 struct zd_usb_tx *tx = &usb->tx; in zd_tx_timeout()
1083 struct zd_usb *usb = in zd_tx_watchdog_handler() local
1085 struct zd_usb_tx *tx = &usb->tx; in zd_tx_watchdog_handler()
1089 if (!zd_tx_timeout(usb)) in zd_tx_watchdog_handler()
1093 dev_warn(zd_usb_dev(usb), "TX-stall detected, resetting device..."); in zd_tx_watchdog_handler()
1095 usb_queue_reset_device(usb->intf); in zd_tx_watchdog_handler()
1104 void zd_tx_watchdog_enable(struct zd_usb *usb) in zd_tx_watchdog_enable() argument
1106 struct zd_usb_tx *tx = &usb->tx; in zd_tx_watchdog_enable()
1109 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_tx_watchdog_enable()
1116 void zd_tx_watchdog_disable(struct zd_usb *usb) in zd_tx_watchdog_disable() argument
1118 struct zd_usb_tx *tx = &usb->tx; in zd_tx_watchdog_disable()
1121 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_tx_watchdog_disable()
1129 struct zd_usb *usb = in zd_rx_idle_timer_handler() local
1131 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_rx_idle_timer_handler()
1136 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_rx_idle_timer_handler()
1139 zd_usb_reset_rx(usb); in zd_rx_idle_timer_handler()
1144 struct zd_usb *usb = from_tasklet(usb, t, rx.reset_timer_tasklet); in zd_usb_reset_rx_idle_timer_tasklet() local
1146 zd_usb_reset_rx_idle_timer(usb); in zd_usb_reset_rx_idle_timer_tasklet()
1149 void zd_usb_reset_rx_idle_timer(struct zd_usb *usb) in zd_usb_reset_rx_idle_timer() argument
1151 struct zd_usb_rx *rx = &usb->rx; in zd_usb_reset_rx_idle_timer()
1156 static inline void init_usb_interrupt(struct zd_usb *usb) in init_usb_interrupt() argument
1158 struct zd_usb_interrupt *intr = &usb->intr; in init_usb_interrupt()
1161 intr->interval = int_urb_interval(zd_usb_to_usbdev(usb)); in init_usb_interrupt()
1167 static inline void init_usb_rx(struct zd_usb *usb) in init_usb_rx() argument
1169 struct zd_usb_rx *rx = &usb->rx; in init_usb_rx()
1173 if (interface_to_usbdev(usb->intf)->speed == USB_SPEED_HIGH) { in init_usb_rx()
1185 static inline void init_usb_tx(struct zd_usb *usb) in init_usb_tx() argument
1187 struct zd_usb_tx *tx = &usb->tx; in init_usb_tx()
1199 void zd_usb_init(struct zd_usb *usb, struct ieee80211_hw *hw, in zd_usb_init() argument
1202 memset(usb, 0, sizeof(*usb)); in zd_usb_init()
1203 usb->intf = usb_get_intf(intf); in zd_usb_init()
1204 usb_set_intfdata(usb->intf, hw); in zd_usb_init()
1205 init_usb_anchor(&usb->submitted_cmds); in zd_usb_init()
1206 init_usb_interrupt(usb); in zd_usb_init()
1207 init_usb_tx(usb); in zd_usb_init()
1208 init_usb_rx(usb); in zd_usb_init()
1211 void zd_usb_clear(struct zd_usb *usb) in zd_usb_clear() argument
1213 usb_set_intfdata(usb->intf, NULL); in zd_usb_clear()
1214 usb_put_intf(usb->intf); in zd_usb_clear()
1215 ZD_MEMCLEAR(usb, sizeof(*usb)); in zd_usb_clear()
1242 int zd_usb_scnprint_id(struct zd_usb *usb, char *buffer, size_t size) in zd_usb_scnprint_id() argument
1244 struct usb_device *udev = interface_to_usbdev(usb->intf); in zd_usb_scnprint_id()
1292 /* USB bulk command block */ in eject_installer()
1316 int zd_usb_init_hw(struct zd_usb *usb) in zd_usb_init_hw() argument
1319 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_usb_init_hw()
1321 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_usb_init_hw()
1323 r = upload_firmware(usb); in zd_usb_init_hw()
1325 dev_err(zd_usb_dev(usb), in zd_usb_init_hw()
1330 r = usb_reset_configuration(zd_usb_to_usbdev(usb)); in zd_usb_init_hw()
1332 dev_dbg_f(zd_usb_dev(usb), in zd_usb_init_hw()
1339 dev_dbg_f(zd_usb_dev(usb), in zd_usb_init_hw()
1344 usb->initialized = 1; in zd_usb_init_hw()
1352 struct zd_usb *usb; in probe() local
1366 dev_dbg_f(&intf->dev, "Unknown USB speed\n"); in probe()
1374 "couldn't reset usb device. Error number %d\n", r); in probe()
1384 usb = &zd_hw_mac(hw)->chip.usb; in probe()
1385 usb->is_zd1211b = (id->driver_info == DEVICE_ZD1211B) != 0; in probe()
1417 struct zd_usb *usb; in disconnect() local
1425 usb = &mac->chip.usb; in disconnect()
1427 dev_dbg_f(zd_usb_dev(usb), "\n"); in disconnect()
1432 zd_usb_disable_tx(usb); in disconnect()
1433 zd_usb_disable_rx(usb); in disconnect()
1434 zd_usb_disable_int(usb); in disconnect()
1448 static void zd_usb_resume(struct zd_usb *usb) in zd_usb_resume() argument
1450 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_usb_resume()
1453 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_usb_resume()
1455 r = zd_op_start(zd_usb_to_hw(usb)); in zd_usb_resume()
1457 dev_warn(zd_usb_dev(usb), "Device resume failed " in zd_usb_resume()
1459 if (usb->was_running) in zd_usb_resume()
1461 usb_queue_reset_device(usb->intf); in zd_usb_resume()
1468 dev_dbg(zd_usb_dev(usb), in zd_usb_resume()
1475 static void zd_usb_stop(struct zd_usb *usb) in zd_usb_stop() argument
1477 dev_dbg_f(zd_usb_dev(usb), "\n"); in zd_usb_stop()
1479 zd_op_stop(zd_usb_to_hw(usb)); in zd_usb_stop()
1481 zd_usb_disable_tx(usb); in zd_usb_stop()
1482 zd_usb_disable_rx(usb); in zd_usb_stop()
1483 zd_usb_disable_int(usb); in zd_usb_stop()
1485 usb->initialized = 0; in zd_usb_stop()
1492 struct zd_usb *usb; in pre_reset() local
1498 usb = &mac->chip.usb; in pre_reset()
1500 usb->was_running = test_bit(ZD_DEVICE_RUNNING, &mac->flags); in pre_reset()
1502 zd_usb_stop(usb); in pre_reset()
1512 struct zd_usb *usb; in post_reset() local
1518 usb = &mac->chip.usb; in post_reset()
1522 if (usb->was_running) in post_reset()
1523 zd_usb_resume(usb); in post_reset()
1576 /* In USB 2.0 mode EP_REGS_OUT endpoint is interrupt type. However in in zd_ep_regs_out_msg()
1577 * USB 1.1 mode endpoint is bulk. Select correct type URB by endpoint in zd_ep_regs_out_msg()
1598 static void prepare_read_regs_int(struct zd_usb *usb, in prepare_read_regs_int() argument
1602 struct zd_usb_interrupt *intr = &usb->intr; in prepare_read_regs_int()
1612 static void disable_read_regs_int(struct zd_usb *usb) in disable_read_regs_int() argument
1614 struct zd_usb_interrupt *intr = &usb->intr; in disable_read_regs_int()
1621 static bool check_read_regs(struct zd_usb *usb, struct usb_req_read_regs *req, in check_read_regs() argument
1625 struct zd_usb_interrupt *intr = &usb->intr; in check_read_regs()
1633 dev_dbg_f(zd_usb_dev(usb), in check_read_regs()
1640 dev_dbg_f(zd_usb_dev(usb), in check_read_regs()
1649 dev_dbg_f(zd_usb_dev(usb), in check_read_regs()
1660 static int get_results(struct zd_usb *usb, u16 *values, in get_results() argument
1666 struct zd_usb_interrupt *intr = &usb->intr; in get_results()
1679 if (!check_read_regs(usb, req, count)) { in get_results()
1680 dev_dbg_f(zd_usb_dev(usb), "error: invalid read regs\n"); in get_results()
1695 int zd_usb_ioread16v(struct zd_usb *usb, u16 *values, in zd_usb_ioread16v() argument
1705 dev_dbg_f(zd_usb_dev(usb), "error: count is zero\n"); in zd_usb_ioread16v()
1709 dev_dbg_f(zd_usb_dev(usb), in zd_usb_ioread16v()
1715 dev_dbg_f(zd_usb_dev(usb), in zd_usb_ioread16v()
1719 if (!usb_int_enabled(usb)) { in zd_usb_ioread16v()
1720 dev_dbg_f(zd_usb_dev(usb), in zd_usb_ioread16v()
1721 "error: usb interrupt not enabled\n"); in zd_usb_ioread16v()
1725 ZD_ASSERT(mutex_is_locked(&zd_usb_to_chip(usb)->mutex)); in zd_usb_ioread16v()
1727 sizeof(__le16) > sizeof(usb->req_buf)); in zd_usb_ioread16v()
1729 sizeof(usb->req_buf)); in zd_usb_ioread16v()
1732 req = (void *)usb->req_buf; in zd_usb_ioread16v()
1740 udev = zd_usb_to_usbdev(usb); in zd_usb_ioread16v()
1741 prepare_read_regs_int(usb, req, count); in zd_usb_ioread16v()
1744 dev_dbg_f(zd_usb_dev(usb), in zd_usb_ioread16v()
1749 dev_dbg_f(zd_usb_dev(usb), "error in zd_ep_regs_out_msg()\n" in zd_usb_ioread16v()
1756 timeout = wait_for_completion_timeout(&usb->intr.read_regs.completion, in zd_usb_ioread16v()
1759 disable_read_regs_int(usb); in zd_usb_ioread16v()
1760 dev_dbg_f(zd_usb_dev(usb), "read timed out\n"); in zd_usb_ioread16v()
1765 r = get_results(usb, values, req, count, &retry); in zd_usb_ioread16v()
1767 dev_dbg_f(zd_usb_dev(usb), "read retry, tries so far: %d\n", in zd_usb_ioread16v()
1777 struct zd_usb *usb = urb->context; in iowrite16v_urb_complete() local
1779 if (urb->status && !usb->cmd_error) in iowrite16v_urb_complete()
1780 usb->cmd_error = urb->status; in iowrite16v_urb_complete()
1782 if (!usb->cmd_error && in iowrite16v_urb_complete()
1784 usb->cmd_error = -EIO; in iowrite16v_urb_complete()
1787 static int zd_submit_waiting_urb(struct zd_usb *usb, bool last) in zd_submit_waiting_urb() argument
1790 struct urb *urb = usb->urb_async_waiting; in zd_submit_waiting_urb()
1795 usb->urb_async_waiting = NULL; in zd_submit_waiting_urb()
1800 usb_anchor_urb(urb, &usb->submitted_cmds); in zd_submit_waiting_urb()
1804 dev_dbg_f(zd_usb_dev(usb), in zd_submit_waiting_urb()
1815 void zd_usb_iowrite16v_async_start(struct zd_usb *usb) in zd_usb_iowrite16v_async_start() argument
1817 ZD_ASSERT(usb_anchor_empty(&usb->submitted_cmds)); in zd_usb_iowrite16v_async_start()
1818 ZD_ASSERT(usb->urb_async_waiting == NULL); in zd_usb_iowrite16v_async_start()
1819 ZD_ASSERT(!usb->in_async); in zd_usb_iowrite16v_async_start()
1821 ZD_ASSERT(mutex_is_locked(&zd_usb_to_chip(usb)->mutex)); in zd_usb_iowrite16v_async_start()
1823 usb->in_async = 1; in zd_usb_iowrite16v_async_start()
1824 usb->cmd_error = 0; in zd_usb_iowrite16v_async_start()
1825 usb->urb_async_waiting = NULL; in zd_usb_iowrite16v_async_start()
1828 int zd_usb_iowrite16v_async_end(struct zd_usb *usb, unsigned int timeout) in zd_usb_iowrite16v_async_end() argument
1832 ZD_ASSERT(mutex_is_locked(&zd_usb_to_chip(usb)->mutex)); in zd_usb_iowrite16v_async_end()
1833 ZD_ASSERT(usb->in_async); in zd_usb_iowrite16v_async_end()
1836 r = zd_submit_waiting_urb(usb, true); in zd_usb_iowrite16v_async_end()
1838 dev_dbg_f(zd_usb_dev(usb), in zd_usb_iowrite16v_async_end()
1842 usb_kill_anchored_urbs(&usb->submitted_cmds); in zd_usb_iowrite16v_async_end()
1847 timeout = usb_wait_anchor_empty_timeout(&usb->submitted_cmds, in zd_usb_iowrite16v_async_end()
1850 usb_kill_anchored_urbs(&usb->submitted_cmds); in zd_usb_iowrite16v_async_end()
1851 if (usb->cmd_error == -ENOENT) { in zd_usb_iowrite16v_async_end()
1852 dev_dbg_f(zd_usb_dev(usb), "timed out"); in zd_usb_iowrite16v_async_end()
1858 r = usb->cmd_error; in zd_usb_iowrite16v_async_end()
1860 usb->in_async = 0; in zd_usb_iowrite16v_async_end()
1864 int zd_usb_iowrite16v_async(struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, in zd_usb_iowrite16v_async() argument
1874 ZD_ASSERT(mutex_is_locked(&zd_usb_to_chip(usb)->mutex)); in zd_usb_iowrite16v_async()
1875 ZD_ASSERT(usb->in_async); in zd_usb_iowrite16v_async()
1880 dev_dbg_f(zd_usb_dev(usb), in zd_usb_iowrite16v_async()
1886 dev_dbg_f(zd_usb_dev(usb), in zd_usb_iowrite16v_async()
1891 udev = zd_usb_to_usbdev(usb); in zd_usb_iowrite16v_async()
1915 /* In USB 2.0 mode endpoint is interrupt type. However in USB 1.1 mode in zd_usb_iowrite16v_async()
1920 req, req_len, iowrite16v_urb_complete, usb, in zd_usb_iowrite16v_async()
1924 req, req_len, iowrite16v_urb_complete, usb); in zd_usb_iowrite16v_async()
1929 r = zd_submit_waiting_urb(usb, false); in zd_usb_iowrite16v_async()
1931 dev_dbg_f(zd_usb_dev(usb), in zd_usb_iowrite16v_async()
1940 usb->urb_async_waiting = urb; in zd_usb_iowrite16v_async()
1947 int zd_usb_iowrite16v(struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, in zd_usb_iowrite16v() argument
1952 zd_usb_iowrite16v_async_start(usb); in zd_usb_iowrite16v()
1953 r = zd_usb_iowrite16v_async(usb, ioreqs, count); in zd_usb_iowrite16v()
1955 zd_usb_iowrite16v_async_end(usb, 0); in zd_usb_iowrite16v()
1958 return zd_usb_iowrite16v_async_end(usb, 50 /* ms */); in zd_usb_iowrite16v()
1961 int zd_usb_rfwrite(struct zd_usb *usb, u32 value, u8 bits) in zd_usb_rfwrite() argument
1970 dev_dbg_f(zd_usb_dev(usb), in zd_usb_rfwrite()
1975 dev_dbg_f(zd_usb_dev(usb), in zd_usb_rfwrite()
1982 dev_dbg_f(zd_usb_dev(usb), in zd_usb_rfwrite()
1989 dev_dbg_f(zd_usb_dev(usb), in zd_usb_rfwrite()
1996 dev_dbg_f(zd_usb_dev(usb), "value %#09x bits %d\n", value, bits); in zd_usb_rfwrite()
1998 r = zd_usb_ioread16(usb, &bit_value_template, ZD_CR203); in zd_usb_rfwrite()
2000 dev_dbg_f(zd_usb_dev(usb), in zd_usb_rfwrite()
2006 ZD_ASSERT(mutex_is_locked(&zd_usb_to_chip(usb)->mutex)); in zd_usb_rfwrite()
2009 sizeof(usb->req_buf)); in zd_usb_rfwrite()
2011 sizeof(usb->req_buf)); in zd_usb_rfwrite()
2014 req = (void *)usb->req_buf; in zd_usb_rfwrite()
2028 udev = zd_usb_to_usbdev(usb); in zd_usb_rfwrite()
2031 dev_dbg_f(zd_usb_dev(usb), in zd_usb_rfwrite()
2036 dev_dbg_f(zd_usb_dev(usb), "error in zd_ep_regs_out_msg()" in zd_usb_rfwrite()