Lines Matching refs:usb_dev
46 static int kovaplus_send_control(struct usb_device *usb_dev, uint value, in kovaplus_send_control() argument
61 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control()
67 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number, in kovaplus_select_profile() argument
70 return kovaplus_send_control(usb_dev, number, request); in kovaplus_select_profile()
73 static int kovaplus_get_profile_settings(struct usb_device *usb_dev, in kovaplus_get_profile_settings() argument
78 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings()
83 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS, in kovaplus_get_profile_settings()
87 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev, in kovaplus_get_profile_buttons() argument
92 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons()
97 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS, in kovaplus_get_profile_buttons()
102 static int kovaplus_get_actual_profile(struct usb_device *usb_dev) in kovaplus_get_actual_profile() argument
107 retval = roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_ACTUAL_PROFILE, in kovaplus_get_actual_profile()
113 static int kovaplus_set_actual_profile(struct usb_device *usb_dev, in kovaplus_set_actual_profile() argument
122 return roccat_common2_send_with_status(usb_dev, in kovaplus_set_actual_profile()
134 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read() local
144 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in kovaplus_sysfs_read()
160 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_write() local
167 retval = roccat_common2_send_with_status(usb_dev, command, in kovaplus_sysfs_write()
226 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read_profilex_settings() local
229 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), in kovaplus_sysfs_read_profilex_settings()
245 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read_profilex_buttons() local
248 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), in kovaplus_sysfs_read_profilex_buttons()
289 struct usb_device *usb_dev; in kovaplus_sysfs_set_actual_profile() local
296 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_set_actual_profile()
306 retval = kovaplus_set_actual_profile(usb_dev, profile); in kovaplus_sysfs_set_actual_profile()
363 struct usb_device *usb_dev; in kovaplus_sysfs_show_firmware_version() local
368 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_show_firmware_version()
371 roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_INFO, in kovaplus_sysfs_show_firmware_version()
417 static int kovaplus_init_kovaplus_device_struct(struct usb_device *usb_dev, in kovaplus_init_kovaplus_device_struct() argument
427 retval = kovaplus_get_profile_settings(usb_dev, in kovaplus_init_kovaplus_device_struct()
433 retval = kovaplus_get_profile_buttons(usb_dev, in kovaplus_init_kovaplus_device_struct()
440 retval = kovaplus_get_actual_profile(usb_dev); in kovaplus_init_kovaplus_device_struct()
451 struct usb_device *usb_dev = interface_to_usbdev(intf); in kovaplus_init_specials() local
465 retval = kovaplus_init_kovaplus_device_struct(usb_dev, kovaplus); in kovaplus_init_specials()