Lines Matching refs:usb_dev

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