Lines Matching refs:usb_dev

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