Lines Matching refs:retval

65 	int retval;  in pyra_get_profile_settings()  local
66 retval = pyra_send_control(usb_dev, number, in pyra_get_profile_settings()
68 if (retval) in pyra_get_profile_settings()
69 return retval; in pyra_get_profile_settings()
97 int retval; in pyra_sysfs_read() local
106 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in pyra_sysfs_read()
109 if (retval) in pyra_sysfs_read()
110 return retval; in pyra_sysfs_read()
123 int retval; in pyra_sysfs_write() local
129 retval = roccat_common2_send_with_status(usb_dev, command, (void *)buf, real_size); in pyra_sysfs_write()
132 if (retval) in pyra_sysfs_write()
133 return retval; in pyra_sysfs_write()
197 ssize_t retval; in pyra_sysfs_read_profilex_settings() local
199 retval = pyra_send_control(usb_dev, *(uint *)(attr->private), in pyra_sysfs_read_profilex_settings()
201 if (retval) in pyra_sysfs_read_profilex_settings()
202 return retval; in pyra_sysfs_read_profilex_settings()
216 ssize_t retval; in pyra_sysfs_read_profilex_buttons() local
218 retval = pyra_send_control(usb_dev, *(uint *)(attr->private), in pyra_sysfs_read_profilex_buttons()
220 if (retval) in pyra_sysfs_read_profilex_buttons()
221 return retval; in pyra_sysfs_read_profilex_buttons()
255 int retval = 0; in pyra_sysfs_write_settings() local
268 retval = pyra_set_settings(usb_dev, settings); in pyra_sysfs_write_settings()
269 if (retval) { in pyra_sysfs_write_settings()
271 return retval; in pyra_sysfs_write_settings()
381 int retval, i; in pyra_init_pyra_device_struct() local
385 retval = pyra_get_settings(usb_dev, &settings); in pyra_init_pyra_device_struct()
386 if (retval) in pyra_init_pyra_device_struct()
387 return retval; in pyra_init_pyra_device_struct()
390 retval = pyra_get_profile_settings(usb_dev, in pyra_init_pyra_device_struct()
392 if (retval) in pyra_init_pyra_device_struct()
393 return retval; in pyra_init_pyra_device_struct()
406 int retval; in pyra_init_specials() local
418 retval = pyra_init_pyra_device_struct(usb_dev, pyra); in pyra_init_specials()
419 if (retval) { in pyra_init_specials()
424 retval = roccat_connect(pyra_class, hdev, in pyra_init_specials()
426 if (retval < 0) { in pyra_init_specials()
429 pyra->chrdev_minor = retval; in pyra_init_specials()
439 return retval; in pyra_init_specials()
458 int retval; in pyra_probe() local
460 retval = hid_parse(hdev); in pyra_probe()
461 if (retval) { in pyra_probe()
466 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in pyra_probe()
467 if (retval) { in pyra_probe()
472 retval = pyra_init_specials(hdev); in pyra_probe()
473 if (retval) { in pyra_probe()
482 return retval; in pyra_probe()
590 int retval; in pyra_init() local
598 retval = hid_register_driver(&pyra_driver); in pyra_init()
599 if (retval) in pyra_init()
601 return retval; in pyra_init()