Lines Matching refs:retval
39 int retval; in arvo_sysfs_show_mode_key() local
42 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key()
45 if (retval) in arvo_sysfs_show_mode_key()
46 return retval; in arvo_sysfs_show_mode_key()
60 int retval; in arvo_sysfs_set_mode_key() local
62 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key()
63 if (retval) in arvo_sysfs_set_mode_key()
64 return retval; in arvo_sysfs_set_mode_key()
70 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key()
73 if (retval) in arvo_sysfs_set_mode_key()
74 return retval; in arvo_sysfs_set_mode_key()
89 int retval; in arvo_sysfs_show_key_mask() local
92 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_show_key_mask()
95 if (retval) in arvo_sysfs_show_key_mask()
96 return retval; in arvo_sysfs_show_key_mask()
110 int retval; in arvo_sysfs_set_key_mask() local
112 retval = kstrtoul(buf, 10, &key_mask); in arvo_sysfs_set_key_mask()
113 if (retval) in arvo_sysfs_set_key_mask()
114 return retval; in arvo_sysfs_set_key_mask()
120 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_set_key_mask()
123 if (retval) in arvo_sysfs_set_key_mask()
124 return retval; in arvo_sysfs_set_key_mask()
135 int retval; in arvo_get_actual_profile() local
137 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_get_actual_profile()
140 if (retval) in arvo_get_actual_profile()
141 return retval; in arvo_get_actual_profile()
164 int retval; in arvo_sysfs_set_actual_profile() local
166 retval = kstrtoul(buf, 10, &profile); in arvo_sysfs_set_actual_profile()
167 if (retval) in arvo_sysfs_set_actual_profile()
168 return retval; in arvo_sysfs_set_actual_profile()
177 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_sysfs_set_actual_profile()
179 if (!retval) { in arvo_sysfs_set_actual_profile()
181 retval = size; in arvo_sysfs_set_actual_profile()
184 return retval; in arvo_sysfs_set_actual_profile()
198 int retval; in arvo_sysfs_write() local
204 retval = roccat_common2_send(usb_dev, command, buf, real_size); in arvo_sysfs_write()
207 return (retval ? retval : real_size); in arvo_sysfs_write()
218 int retval; in arvo_sysfs_read() local
227 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in arvo_sysfs_read()
230 return (retval ? retval : real_size); in arvo_sysfs_read()
279 int retval; in arvo_init_arvo_device_struct() local
283 retval = arvo_get_actual_profile(usb_dev); in arvo_init_arvo_device_struct()
284 if (retval < 0) in arvo_init_arvo_device_struct()
285 return retval; in arvo_init_arvo_device_struct()
286 arvo->actual_profile = retval; in arvo_init_arvo_device_struct()
296 int retval; in arvo_init_specials() local
311 retval = arvo_init_arvo_device_struct(usb_dev, arvo); in arvo_init_specials()
312 if (retval) { in arvo_init_specials()
317 retval = roccat_connect(arvo_class, hdev, in arvo_init_specials()
319 if (retval < 0) { in arvo_init_specials()
322 arvo->chrdev_minor = retval; in arvo_init_specials()
329 return retval; in arvo_init_specials()
350 int retval; in arvo_probe() local
352 retval = hid_parse(hdev); in arvo_probe()
353 if (retval) { in arvo_probe()
358 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in arvo_probe()
359 if (retval) { in arvo_probe()
364 retval = arvo_init_specials(hdev); in arvo_probe()
365 if (retval) { in arvo_probe()
375 return retval; in arvo_probe()
436 int retval; in arvo_init() local
443 retval = hid_register_driver(&arvo_driver); in arvo_init()
444 if (retval) in arvo_init()
446 return retval; in arvo_init()