Lines Matching refs:arvo
29 struct arvo_device *arvo = in arvo_sysfs_show_mode_key() local
36 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_show_mode_key()
39 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_show_mode_key()
49 struct arvo_device *arvo = in arvo_sysfs_set_mode_key() local
64 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_set_mode_key()
67 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_set_mode_key()
79 struct arvo_device *arvo = in arvo_sysfs_show_key_mask() local
86 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_show_key_mask()
89 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_show_key_mask()
99 struct arvo_device *arvo = in arvo_sysfs_set_key_mask() local
114 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_set_key_mask()
117 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_set_key_mask()
144 struct arvo_device *arvo = in arvo_sysfs_show_actual_profile() local
147 return sysfs_emit(buf, "%d\n", arvo->actual_profile); in arvo_sysfs_show_actual_profile()
153 struct arvo_device *arvo = in arvo_sysfs_set_actual_profile() local
171 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_set_actual_profile()
175 arvo->actual_profile = profile; in arvo_sysfs_set_actual_profile()
178 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_set_actual_profile()
190 struct arvo_device *arvo = hid_get_drvdata(dev_get_drvdata(dev)); in arvo_sysfs_write() local
197 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_write()
199 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_write()
209 struct arvo_device *arvo = hid_get_drvdata(dev_get_drvdata(dev)); in arvo_sysfs_read() local
219 mutex_lock(&arvo->arvo_lock); in arvo_sysfs_read()
221 mutex_unlock(&arvo->arvo_lock); in arvo_sysfs_read()
275 struct arvo_device *arvo) in arvo_init_arvo_device_struct() argument
279 mutex_init(&arvo->arvo_lock); in arvo_init_arvo_device_struct()
284 arvo->actual_profile = retval; in arvo_init_arvo_device_struct()
293 struct arvo_device *arvo; in arvo_init_specials() local
302 arvo = kzalloc(sizeof(*arvo), GFP_KERNEL); in arvo_init_specials()
303 if (!arvo) { in arvo_init_specials()
307 hid_set_drvdata(hdev, arvo); in arvo_init_specials()
309 retval = arvo_init_arvo_device_struct(usb_dev, arvo); in arvo_init_specials()
320 arvo->chrdev_minor = retval; in arvo_init_specials()
321 arvo->roccat_claimed = 1; in arvo_init_specials()
326 kfree(arvo); in arvo_init_specials()
333 struct arvo_device *arvo; in arvo_remove_specials() local
339 arvo = hid_get_drvdata(hdev); in arvo_remove_specials()
340 if (arvo->roccat_claimed) in arvo_remove_specials()
341 roccat_disconnect(arvo->chrdev_minor); in arvo_remove_specials()
342 kfree(arvo); in arvo_remove_specials()
385 static void arvo_report_to_chrdev(struct arvo_device const *arvo, in arvo_report_to_chrdev() argument
393 roccat_report.profile = arvo->actual_profile; in arvo_report_to_chrdev()
402 roccat_report_event(arvo->chrdev_minor, in arvo_report_to_chrdev()
409 struct arvo_device *arvo = hid_get_drvdata(hdev); in arvo_raw_event() local
414 if (arvo && arvo->roccat_claimed) in arvo_raw_event()
415 arvo_report_to_chrdev(arvo, data); in arvo_raw_event()