Lines Matching refs:usb_dev

48 static int kovaplus_send_control(struct usb_device *usb_dev, uint value,  in kovaplus_send_control()  argument
63 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control()
69 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number, in kovaplus_select_profile() argument
72 return kovaplus_send_control(usb_dev, number, request); in kovaplus_select_profile()
75 static int kovaplus_get_profile_settings(struct usb_device *usb_dev, in kovaplus_get_profile_settings() argument
80 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings()
85 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS, in kovaplus_get_profile_settings()
89 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev, in kovaplus_get_profile_buttons() argument
94 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons()
99 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS, in kovaplus_get_profile_buttons()
104 static int kovaplus_get_actual_profile(struct usb_device *usb_dev) in kovaplus_get_actual_profile() argument
109 retval = roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_ACTUAL_PROFILE, in kovaplus_get_actual_profile()
115 static int kovaplus_set_actual_profile(struct usb_device *usb_dev, in kovaplus_set_actual_profile() argument
124 return roccat_common2_send_with_status(usb_dev, in kovaplus_set_actual_profile()
135 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read() local
145 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()
225 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read_profilex_settings() local
228 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), in kovaplus_sysfs_read_profilex_settings()
243 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read_profilex_buttons() local
246 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), in kovaplus_sysfs_read_profilex_buttons()
287 struct usb_device *usb_dev; in kovaplus_sysfs_set_actual_profile() local
294 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_set_actual_profile()
304 retval = kovaplus_set_actual_profile(usb_dev, profile); in kovaplus_sysfs_set_actual_profile()
361 struct usb_device *usb_dev; in kovaplus_sysfs_show_firmware_version() local
366 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_show_firmware_version()
369 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()