Lines Matching refs:retval

57 /* retval is 0-4 on success, < 0 on error */
61 int retval;
63 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE,
66 return retval ? retval : buf.actual_profile;
90 int retval;
99 retval = roccat_common2_receive(usb_dev, command, buf, real_size);
102 if (retval)
103 return retval;
115 int retval;
121 retval = roccat_common2_send_with_status(usb_dev, command,
125 if (retval)
126 return retval;
193 ssize_t retval;
195 retval = koneplus_send_control(usb_dev, *(uint *)(attr->private),
197 if (retval)
198 return retval;
211 ssize_t retval;
213 retval = koneplus_send_control(usb_dev, *(uint *)(attr->private),
215 if (retval)
216 return retval;
256 int retval;
263 retval = kstrtoul(buf, 10, &profile);
264 if (retval)
265 return retval;
272 retval = koneplus_set_actual_profile(usb_dev, profile);
273 if (retval) {
275 return retval;
362 int retval;
366 retval = koneplus_get_actual_profile(usb_dev);
367 if (retval < 0)
368 return retval;
369 koneplus_profile_activated(koneplus, retval);
379 int retval;
391 retval = koneplus_init_koneplus_device_struct(usb_dev, koneplus);
392 if (retval) {
397 retval = roccat_connect(koneplus_class, hdev,
399 if (retval < 0) {
402 koneplus->chrdev_minor = retval;
412 return retval;
432 int retval;
437 retval = hid_parse(hdev);
438 if (retval) {
443 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
444 if (retval) {
449 retval = koneplus_init_specials(hdev);
450 if (retval) {
460 return retval;
549 int retval;
557 retval = hid_register_driver(&koneplus_driver);
558 if (retval)
560 return retval;