Lines Matching refs:usb_dev
21 int roccat_common2_receive(struct usb_device *usb_dev, uint report_id,
31 len = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0),
43 int roccat_common2_send(struct usb_device *usb_dev, uint report_id,
53 len = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0),
72 static int roccat_common2_receive_control_status(struct usb_device *usb_dev)
79 retval = roccat_common2_receive(usb_dev,
97 dev_err(&usb_dev->dev,
107 int roccat_common2_send_with_status(struct usb_device *usb_dev,
112 retval = roccat_common2_send(usb_dev, command, buf, size);
118 return roccat_common2_receive_control_status(usb_dev);
122 int roccat_common2_device_init_struct(struct usb_device *usb_dev,
136 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
146 retval = roccat_common2_receive(usb_dev, command, buf, real_size);
159 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
166 retval = roccat_common2_send_with_status(usb_dev, command, buf, real_size);