Lines Matching refs:retval

36 	int retval;  in arvo_sysfs_show_mode_key()  local
39 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key()
42 if (retval) in arvo_sysfs_show_mode_key()
43 return retval; in arvo_sysfs_show_mode_key()
57 int retval; in arvo_sysfs_set_mode_key() local
59 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key()
60 if (retval) in arvo_sysfs_set_mode_key()
61 return retval; in arvo_sysfs_set_mode_key()
67 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key()
70 if (retval) in arvo_sysfs_set_mode_key()
71 return retval; in arvo_sysfs_set_mode_key()
86 int retval; in arvo_sysfs_show_key_mask() local
89 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_show_key_mask()
92 if (retval) in arvo_sysfs_show_key_mask()
93 return retval; in arvo_sysfs_show_key_mask()
107 int retval; in arvo_sysfs_set_key_mask() local
109 retval = kstrtoul(buf, 10, &key_mask); in arvo_sysfs_set_key_mask()
110 if (retval) in arvo_sysfs_set_key_mask()
111 return retval; in arvo_sysfs_set_key_mask()
117 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_set_key_mask()
120 if (retval) in arvo_sysfs_set_key_mask()
121 return retval; in arvo_sysfs_set_key_mask()
132 int retval; in arvo_get_actual_profile() local
134 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_get_actual_profile()
137 if (retval) in arvo_get_actual_profile()
138 return retval; in arvo_get_actual_profile()
161 int retval; in arvo_sysfs_set_actual_profile() local
163 retval = kstrtoul(buf, 10, &profile); in arvo_sysfs_set_actual_profile()
164 if (retval) in arvo_sysfs_set_actual_profile()
165 return retval; in arvo_sysfs_set_actual_profile()
174 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_sysfs_set_actual_profile()
176 if (!retval) { in arvo_sysfs_set_actual_profile()
178 retval = size; in arvo_sysfs_set_actual_profile()
181 return retval; in arvo_sysfs_set_actual_profile()
194 int retval; in arvo_sysfs_write() local
200 retval = roccat_common2_send(usb_dev, command, buf, real_size); in arvo_sysfs_write()
203 return (retval ? retval : real_size); in arvo_sysfs_write()
213 int retval; in arvo_sysfs_read() local
222 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in arvo_sysfs_read()
225 return (retval ? retval : real_size); in arvo_sysfs_read()
274 int retval; in arvo_init_arvo_device_struct() local
278 retval = arvo_get_actual_profile(usb_dev); in arvo_init_arvo_device_struct()
279 if (retval < 0) in arvo_init_arvo_device_struct()
280 return retval; in arvo_init_arvo_device_struct()
281 arvo->actual_profile = retval; in arvo_init_arvo_device_struct()
291 int retval; in arvo_init_specials() local
306 retval = arvo_init_arvo_device_struct(usb_dev, arvo); in arvo_init_specials()
307 if (retval) { in arvo_init_specials()
312 retval = roccat_connect(arvo_class, hdev, in arvo_init_specials()
314 if (retval < 0) { in arvo_init_specials()
317 arvo->chrdev_minor = retval; in arvo_init_specials()
324 return retval; in arvo_init_specials()
345 int retval; in arvo_probe() local
350 retval = hid_parse(hdev); in arvo_probe()
351 if (retval) { in arvo_probe()
356 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in arvo_probe()
357 if (retval) { in arvo_probe()
362 retval = arvo_init_specials(hdev); in arvo_probe()
363 if (retval) { in arvo_probe()
373 return retval; in arvo_probe()
434 int retval; in arvo_init() local
441 retval = hid_register_driver(&arvo_driver); in arvo_init()
442 if (retval) in arvo_init()
444 return retval; in arvo_init()