Lines Matching refs:udev
794 struct usb_device *udev;
1315 usb_mark_last_busy(data->udev);
1357 pipe = usb_rcvintpipe(data->udev, data->intr_ep->bEndpointAddress);
1359 usb_fill_int_urb(urb, data->udev, pipe, buf, size,
1432 usb_mark_last_busy(data->udev);
1469 pipe = usb_rcvbulkpipe(data->udev, data->bulk_rx_ep->bEndpointAddress);
1471 usb_fill_bulk_urb(urb, data->udev, pipe, buf, size,
1476 usb_mark_last_busy(data->udev);
1632 pipe = usb_rcvisocpipe(data->udev, data->isoc_rx_ep->bEndpointAddress);
1634 usb_fill_int_urb(urb, data->udev, pipe, buf, size, btusb_isoc_complete,
1684 usb_mark_last_busy(data->udev);
1721 pipe = usb_rcvbulkpipe(data->udev, data->diag_rx_ep->bEndpointAddress);
1723 usb_fill_bulk_urb(urb, data->udev, pipe, buf, size,
1728 usb_mark_last_busy(data->udev);
1937 pipe = usb_sndctrlpipe(data->udev, 0x00);
1939 usb_fill_control_urb(urb, data->udev, pipe, (void *)dr,
1960 pipe = usb_sndbulkpipe(data->udev, data->bulk_tx_ep->bEndpointAddress);
1962 usb_fill_bulk_urb(urb, data->udev, pipe,
1983 pipe = usb_sndisocpipe(data->udev, data->isoc_tx_ep->bEndpointAddress);
1985 usb_fill_int_urb(urb, data->udev, pipe,
2018 usb_mark_last_busy(data->udev);
2115 err = usb_set_interface(data->udev, data->isoc_ifnum, altsetting);
2309 u16 bcdDevice = le16_to_cpu(data->udev->descriptor.bcdDevice);
2437 pm_runtime_allow(&data->udev->dev);
2439 ret = pm_runtime_suspend(&data->udev->dev);
2445 pm_runtime_forbid(&data->udev->dev);
2447 device_set_wakeup_capable(&data->udev->dev, false);
2451 usb_enable_autosuspend(data->udev);
2668 usb_mark_last_busy(data->udev);
2725 pipe = usb_rcvctrlpipe(data->udev, 0);
2727 usb_fill_control_urb(urb, data->udev, pipe, (void *)dr,
2908 pipe = usb_sndctrlpipe(data->udev, 0);
2909 err = usb_control_msg(data->udev, pipe, 0x02,
2934 pipe = usb_rcvctrlpipe(data->udev, 0);
2935 err = usb_control_msg(data->udev, pipe, 0x01,
2962 pipe = usb_rcvctrlpipe(data->udev, 0);
2963 err = usb_control_msg(data->udev, pipe, 0x63,
3276 usb_disable_autosuspend(data->udev);
3304 struct device *dev = &data->udev->dev;
3487 struct usb_device *udev = btdata->udev;
3540 usb_disable_autosuspend(udev);
3581 usb_enable_autosuspend(udev);
3657 static int btusb_qca_send_vendor_req(struct usb_device *udev, u8 request,
3670 pipe = usb_rcvctrlpipe(udev, 0);
3671 err = usb_control_msg(udev, pipe, request, USB_TYPE_VENDOR | USB_DIR_IN,
3674 dev_err(&udev->dev, "Failed to access otp area (%d)", err);
3691 struct usb_device *udev = btdata->udev;
3710 pipe = usb_sndctrlpipe(udev, 0);
3711 err = usb_control_msg(udev, pipe, QCA_DFU_DOWNLOAD, USB_TYPE_VENDOR,
3731 pipe = usb_sndbulkpipe(udev, 0x02);
3732 err = usb_bulk_msg(udev, pipe, buf, size, &len,
3880 static bool btusb_qca_need_patch(struct usb_device *udev)
3884 if (btusb_qca_send_vendor_req(udev, QCA_GET_TARGET_VERSION, &ver,
3894 struct usb_device *udev = btdata->udev;
3901 err = btusb_qca_send_vendor_req(udev, QCA_GET_TARGET_VERSION, &ver,
3924 err = btusb_qca_send_vendor_req(udev, QCA_CHECK_STATUS, &status,
3935 err = btusb_qca_send_vendor_req(udev, QCA_GET_TARGET_VERSION, &ver,
4023 pipe = usb_sndbulkpipe(data->udev, data->diag_tx_ep->bEndpointAddress);
4025 usb_fill_bulk_urb(urb, data->udev, pipe,
4056 pm_wakeup_event(&data->udev->dev, 0);
4079 struct device *dev = &data->udev->dev;
4124 return device_may_wakeup(&data->udev->dev);
4215 struct usb_device *udev = interface_to_usbdev(intf);
4220 if (le16_to_cpu(udev->descriptor.bcdDevice) <= 0x0001 &&
4221 !btusb_qca_need_patch(udev))
4259 data->udev = interface_to_usbdev(intf);
4319 reset_gpio = gpiod_get_optional(&data->udev->dev, "reset",
4364 data->diag = usb_ifnum_to_if(data->udev, ifnum_base + 2);
4374 data->diag = usb_ifnum_to_if(data->udev, ifnum_base + 2);
4457 data->isoc = usb_ifnum_to_if(data->udev, ifnum_base + 1);
4505 struct usb_device *udev = data->udev;
4506 u16 bcdDevice = le16_to_cpu(udev->descriptor.bcdDevice);
4516 if (le16_to_cpu(udev->descriptor.idVendor) == 0x0a12 &&
4517 le16_to_cpu(udev->descriptor.idProduct) == 0x0001)
4522 struct usb_device *udev = data->udev;
4525 if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x997)
4533 err = usb_set_interface(data->udev, 0, 0);
4556 usb_enable_autosuspend(data->udev);
4615 device_init_wakeup(&data->udev->dev, false);
4648 if (data->oob_wake_irq && device_may_wakeup(&data->udev->dev)) {
4661 device_can_wakeup(&data->udev->dev))
4662 data->udev->do_remote_wakeup = 1;
4664 !device_may_wakeup(&data->udev->dev)) {
4665 data->udev->do_remote_wakeup = 0;
4666 data->udev->reset_resume = 1;