Lines Matching refs:usb_dev

45 static int kovaplus_send_control(struct usb_device *usb_dev, uint value,
60 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL,
66 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number,
69 return kovaplus_send_control(usb_dev, number, request);
72 static int kovaplus_get_profile_settings(struct usb_device *usb_dev,
77 retval = kovaplus_select_profile(usb_dev, number,
82 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS,
86 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev,
91 retval = kovaplus_select_profile(usb_dev, number,
96 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS,
101 static int kovaplus_get_actual_profile(struct usb_device *usb_dev)
106 retval = roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_ACTUAL_PROFILE,
112 static int kovaplus_set_actual_profile(struct usb_device *usb_dev,
121 return roccat_common2_send_with_status(usb_dev,
132 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
142 retval = roccat_common2_receive(usb_dev, command, buf, real_size);
157 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
164 retval = roccat_common2_send_with_status(usb_dev, command,
222 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
225 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private),
240 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
243 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private),
284 struct usb_device *usb_dev;
291 usb_dev = interface_to_usbdev(to_usb_interface(dev));
301 retval = kovaplus_set_actual_profile(usb_dev, profile);
358 struct usb_device *usb_dev;
363 usb_dev = interface_to_usbdev(to_usb_interface(dev));
366 roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_INFO,
412 static int kovaplus_init_kovaplus_device_struct(struct usb_device *usb_dev,
422 retval = kovaplus_get_profile_settings(usb_dev,
428 retval = kovaplus_get_profile_buttons(usb_dev,
435 retval = kovaplus_get_actual_profile(usb_dev);
446 struct usb_device *usb_dev = interface_to_usbdev(intf);
460 retval = kovaplus_init_kovaplus_device_struct(usb_dev, kovaplus);