Lines Matching refs:retval
48 int retval; in kovaplus_send_control() local
60 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control()
63 return retval; in kovaplus_send_control()
75 int retval; in kovaplus_get_profile_settings() local
77 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings()
79 if (retval) in kovaplus_get_profile_settings()
80 return retval; in kovaplus_get_profile_settings()
89 int retval; in kovaplus_get_profile_buttons() local
91 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons()
93 if (retval) in kovaplus_get_profile_buttons()
94 return retval; in kovaplus_get_profile_buttons()
104 int retval; in kovaplus_get_actual_profile() local
106 retval = roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_ACTUAL_PROFILE, in kovaplus_get_actual_profile()
109 return retval ? retval : buf.actual_profile; in kovaplus_get_actual_profile()
133 int retval; in kovaplus_sysfs_read() local
142 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in kovaplus_sysfs_read()
145 if (retval) in kovaplus_sysfs_read()
146 return retval; in kovaplus_sysfs_read()
158 int retval; in kovaplus_sysfs_write() local
164 retval = roccat_common2_send_with_status(usb_dev, command, in kovaplus_sysfs_write()
168 if (retval) in kovaplus_sysfs_write()
169 return retval; in kovaplus_sysfs_write()
223 ssize_t retval; in kovaplus_sysfs_read_profilex_settings() local
225 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), in kovaplus_sysfs_read_profilex_settings()
227 if (retval) in kovaplus_sysfs_read_profilex_settings()
228 return retval; in kovaplus_sysfs_read_profilex_settings()
241 ssize_t retval; in kovaplus_sysfs_read_profilex_buttons() local
243 retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), in kovaplus_sysfs_read_profilex_buttons()
245 if (retval) in kovaplus_sysfs_read_profilex_buttons()
246 return retval; in kovaplus_sysfs_read_profilex_buttons()
286 int retval; in kovaplus_sysfs_set_actual_profile() local
293 retval = kstrtoul(buf, 10, &profile); in kovaplus_sysfs_set_actual_profile()
294 if (retval) in kovaplus_sysfs_set_actual_profile()
295 return retval; in kovaplus_sysfs_set_actual_profile()
301 retval = kovaplus_set_actual_profile(usb_dev, profile); in kovaplus_sysfs_set_actual_profile()
302 if (retval) { in kovaplus_sysfs_set_actual_profile()
304 return retval; in kovaplus_sysfs_set_actual_profile()
415 int retval, i; in kovaplus_init_kovaplus_device_struct() local
422 retval = kovaplus_get_profile_settings(usb_dev, in kovaplus_init_kovaplus_device_struct()
424 if (retval) in kovaplus_init_kovaplus_device_struct()
425 return retval; in kovaplus_init_kovaplus_device_struct()
428 retval = kovaplus_get_profile_buttons(usb_dev, in kovaplus_init_kovaplus_device_struct()
430 if (retval) in kovaplus_init_kovaplus_device_struct()
431 return retval; in kovaplus_init_kovaplus_device_struct()
435 retval = kovaplus_get_actual_profile(usb_dev); in kovaplus_init_kovaplus_device_struct()
436 if (retval < 0) in kovaplus_init_kovaplus_device_struct()
437 return retval; in kovaplus_init_kovaplus_device_struct()
438 kovaplus_profile_activated(kovaplus, retval); in kovaplus_init_kovaplus_device_struct()
448 int retval; in kovaplus_init_specials() local
460 retval = kovaplus_init_kovaplus_device_struct(usb_dev, kovaplus); in kovaplus_init_specials()
461 if (retval) { in kovaplus_init_specials()
466 retval = roccat_connect(kovaplus_class, hdev, in kovaplus_init_specials()
468 if (retval < 0) { in kovaplus_init_specials()
471 kovaplus->chrdev_minor = retval; in kovaplus_init_specials()
482 return retval; in kovaplus_init_specials()
502 int retval; in kovaplus_probe() local
507 retval = hid_parse(hdev); in kovaplus_probe()
508 if (retval) { in kovaplus_probe()
513 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in kovaplus_probe()
514 if (retval) { in kovaplus_probe()
519 retval = kovaplus_init_specials(hdev); in kovaplus_probe()
520 if (retval) { in kovaplus_probe()
530 return retval; in kovaplus_probe()
639 int retval; in kovaplus_init() local
646 retval = hid_register_driver(&kovaplus_driver); in kovaplus_init()
647 if (retval) in kovaplus_init()
649 return retval; in kovaplus_init()