Lines Matching refs:usb_dev
43 static int kovaplus_send_control(struct usb_device *usb_dev, uint value,
58 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL,
64 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number,
67 return kovaplus_send_control(usb_dev, number, request);
70 static int kovaplus_get_profile_settings(struct usb_device *usb_dev,
75 retval = kovaplus_select_profile(usb_dev, number,
80 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS,
84 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev,
89 retval = kovaplus_select_profile(usb_dev, number,
94 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS,
99 static int kovaplus_get_actual_profile(struct usb_device *usb_dev)
104 retval = roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_ACTUAL_PROFILE,
110 static int kovaplus_set_actual_profile(struct usb_device *usb_dev,
119 return roccat_common2_send_with_status(usb_dev,
130 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
140 retval = roccat_common2_receive(usb_dev, command, buf, real_size);
155 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
162 retval = roccat_common2_send_with_status(usb_dev, command,
220 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
223 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private),
238 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev));
241 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private),
282 struct usb_device *usb_dev;
289 usb_dev = interface_to_usbdev(to_usb_interface(dev));
299 retval = kovaplus_set_actual_profile(usb_dev, profile);
356 struct usb_device *usb_dev;
361 usb_dev = interface_to_usbdev(to_usb_interface(dev));
364 roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_INFO,
415 static int kovaplus_init_kovaplus_device_struct(struct usb_device *usb_dev,
425 retval = kovaplus_get_profile_settings(usb_dev,
431 retval = kovaplus_get_profile_buttons(usb_dev,
438 retval = kovaplus_get_actual_profile(usb_dev);
449 struct usb_device *usb_dev = interface_to_usbdev(intf);
463 retval = kovaplus_init_kovaplus_device_struct(usb_dev, kovaplus);