Lines Matching refs:usb_dev
37 static int koneplus_send_control(struct usb_device *usb_dev, uint value, in koneplus_send_control() argument
51 return roccat_common2_send_with_status(usb_dev, in koneplus_send_control()
58 static int koneplus_get_actual_profile(struct usb_device *usb_dev) in koneplus_get_actual_profile() argument
63 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile()
69 static int koneplus_set_actual_profile(struct usb_device *usb_dev, in koneplus_set_actual_profile() argument
78 return roccat_common2_send_with_status(usb_dev, in koneplus_set_actual_profile()
89 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_read() local
99 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read()
114 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_write() local
121 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write()
192 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_read_profilex_settings() local
195 retval = koneplus_send_control(usb_dev, *(uint *)(attr->private), in koneplus_sysfs_read_profilex_settings()
210 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_read_profilex_buttons() local
213 retval = koneplus_send_control(usb_dev, *(uint *)(attr->private), in koneplus_sysfs_read_profilex_buttons()
254 struct usb_device *usb_dev; in koneplus_sysfs_set_actual_profile() local
261 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_set_actual_profile()
272 retval = koneplus_set_actual_profile(usb_dev, profile); in koneplus_sysfs_set_actual_profile()
302 struct usb_device *usb_dev; in koneplus_sysfs_show_firmware_version() local
307 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_show_firmware_version()
310 roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_INFO, in koneplus_sysfs_show_firmware_version()
359 static int koneplus_init_koneplus_device_struct(struct usb_device *usb_dev, in koneplus_init_koneplus_device_struct() argument
366 retval = koneplus_get_actual_profile(usb_dev); in koneplus_init_koneplus_device_struct()
377 struct usb_device *usb_dev = interface_to_usbdev(intf); in koneplus_init_specials() local
391 retval = koneplus_init_koneplus_device_struct(usb_dev, koneplus); in koneplus_init_specials()