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()
197 int retval; in arvo_sysfs_write() local
203 retval = roccat_common2_send(usb_dev, command, buf, real_size); in arvo_sysfs_write()
206 return (retval ? retval : real_size); in arvo_sysfs_write()
216 int retval; in arvo_sysfs_read() local
225 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in arvo_sysfs_read()
228 return (retval ? retval : real_size); in arvo_sysfs_read()
277 int retval; in arvo_init_arvo_device_struct() local
281 retval = arvo_get_actual_profile(usb_dev); in arvo_init_arvo_device_struct()
282 if (retval < 0) in arvo_init_arvo_device_struct()
283 return retval; in arvo_init_arvo_device_struct()
284 arvo->actual_profile = retval; in arvo_init_arvo_device_struct()
294 int retval; in arvo_init_specials() local
309 retval = arvo_init_arvo_device_struct(usb_dev, arvo); in arvo_init_specials()
310 if (retval) { in arvo_init_specials()
315 retval = roccat_connect(arvo_class, hdev, in arvo_init_specials()
317 if (retval < 0) { in arvo_init_specials()
320 arvo->chrdev_minor = retval; in arvo_init_specials()
327 return retval; in arvo_init_specials()
348 int retval; in arvo_probe() local
353 retval = hid_parse(hdev); in arvo_probe()
354 if (retval) { in arvo_probe()
359 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in arvo_probe()
360 if (retval) { in arvo_probe()
365 retval = arvo_init_specials(hdev); in arvo_probe()
366 if (retval) { in arvo_probe()
376 return retval; in arvo_probe()
437 int retval; in arvo_init() local
444 retval = hid_register_driver(&arvo_driver); in arvo_init()
445 if (retval) in arvo_init()
447 return retval; in arvo_init()