Lines Matching refs:udev

58 	int pipe = usb_rcvctrlpipe(dev->udev, 0);  in stk1160_read_reg()
66 ret = usb_control_msg(dev->udev, pipe, 0x00, in stk1160_read_reg()
84 int pipe = usb_sndctrlpipe(dev->udev, 0); in stk1160_write_reg()
86 ret = usb_control_msg(dev->udev, pipe, 0x01, in stk1160_write_reg()
174 static int stk1160_scan_usb(struct usb_interface *intf, struct usb_device *udev, in stk1160_scan_usb() argument
195 if (udev->speed == USB_SPEED_HIGH) in stk1160_scan_usb()
215 dev_err(&udev->dev, "no audio or video endpoints found\n"); in stk1160_scan_usb()
219 switch (udev->speed) { in stk1160_scan_usb()
233 dev_info(&udev->dev, "New device %s %s @ %s Mbps (%04x:%04x, interface %d, class %d)\n", in stk1160_scan_usb()
234 udev->manufacturer ? udev->manufacturer : "", in stk1160_scan_usb()
235 udev->product ? udev->product : "", in stk1160_scan_usb()
237 le16_to_cpu(udev->descriptor.idVendor), in stk1160_scan_usb()
238 le16_to_cpu(udev->descriptor.idProduct), in stk1160_scan_usb()
244 dev_warn(&udev->dev, "audio interface %d found.\n\ in stk1160_scan_usb()
249 dev_info(&udev->dev, "video interface %d found\n", in stk1160_scan_usb()
257 if (udev->speed != USB_SPEED_HIGH) in stk1160_scan_usb()
258 dev_warn(&udev->dev, "must be connected to a high-speed USB 2.0 port\n\ in stk1160_scan_usb()
270 struct usb_device *udev; in stk1160_probe() local
273 udev = interface_to_usbdev(interface); in stk1160_probe()
293 rc = stk1160_scan_usb(interface, udev, alt_max_pkt_size); in stk1160_probe()
306 dev->udev = udev; in stk1160_probe()
412 dev->udev = NULL; in stk1160_disconnect()