• Home
  • Raw
  • Download

Lines Matching refs:retval

34 	int retval;  in arvo_sysfs_show_mode_key()  local
37 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key()
40 if (retval) in arvo_sysfs_show_mode_key()
41 return retval; in arvo_sysfs_show_mode_key()
55 int retval; in arvo_sysfs_set_mode_key() local
57 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key()
58 if (retval) in arvo_sysfs_set_mode_key()
59 return retval; in arvo_sysfs_set_mode_key()
65 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key()
68 if (retval) in arvo_sysfs_set_mode_key()
69 return retval; in arvo_sysfs_set_mode_key()
84 int retval; in arvo_sysfs_show_key_mask() local
87 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_show_key_mask()
90 if (retval) in arvo_sysfs_show_key_mask()
91 return retval; in arvo_sysfs_show_key_mask()
105 int retval; in arvo_sysfs_set_key_mask() local
107 retval = kstrtoul(buf, 10, &key_mask); in arvo_sysfs_set_key_mask()
108 if (retval) in arvo_sysfs_set_key_mask()
109 return retval; in arvo_sysfs_set_key_mask()
115 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_set_key_mask()
118 if (retval) in arvo_sysfs_set_key_mask()
119 return retval; in arvo_sysfs_set_key_mask()
130 int retval; in arvo_get_actual_profile() local
132 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_get_actual_profile()
135 if (retval) in arvo_get_actual_profile()
136 return retval; in arvo_get_actual_profile()
159 int retval; in arvo_sysfs_set_actual_profile() local
161 retval = kstrtoul(buf, 10, &profile); in arvo_sysfs_set_actual_profile()
162 if (retval) in arvo_sysfs_set_actual_profile()
163 return retval; in arvo_sysfs_set_actual_profile()
172 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_sysfs_set_actual_profile()
174 if (!retval) { in arvo_sysfs_set_actual_profile()
176 retval = size; in arvo_sysfs_set_actual_profile()
179 return retval; in arvo_sysfs_set_actual_profile()
192 int retval; in arvo_sysfs_write() local
198 retval = roccat_common2_send(usb_dev, command, buf, real_size); in arvo_sysfs_write()
201 return (retval ? retval : real_size); in arvo_sysfs_write()
211 int retval; in arvo_sysfs_read() local
220 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in arvo_sysfs_read()
223 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
439 retval = class_register(&arvo_class); in arvo_init()
440 if (retval) in arvo_init()
441 return retval; in arvo_init()
443 retval = hid_register_driver(&arvo_driver); in arvo_init()
444 if (retval) in arvo_init()
446 return retval; in arvo_init()