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