Lines Matching refs:retval

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