pyra 32 drivers/hid/hid-roccat-pyra.c static void profile_activated(struct pyra_device *pyra, pyra 35 drivers/hid/hid-roccat-pyra.c if (new_profile >= ARRAY_SIZE(pyra->profile_settings)) pyra 37 drivers/hid/hid-roccat-pyra.c pyra->actual_profile = new_profile; pyra 38 drivers/hid/hid-roccat-pyra.c pyra->actual_cpi = pyra->profile_settings[pyra->actual_profile].y_cpi; pyra 91 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra = hid_get_drvdata(dev_get_drvdata(dev)); pyra 101 drivers/hid/hid-roccat-pyra.c mutex_lock(&pyra->pyra_lock); pyra 103 drivers/hid/hid-roccat-pyra.c mutex_unlock(&pyra->pyra_lock); pyra 116 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra = hid_get_drvdata(dev_get_drvdata(dev)); pyra 123 drivers/hid/hid-roccat-pyra.c mutex_lock(&pyra->pyra_lock); pyra 125 drivers/hid/hid-roccat-pyra.c mutex_unlock(&pyra->pyra_lock); pyra 245 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra = hid_get_drvdata(dev_get_drvdata(dev)); pyra 255 drivers/hid/hid-roccat-pyra.c if (settings->startup_profile >= ARRAY_SIZE(pyra->profile_settings)) pyra 258 drivers/hid/hid-roccat-pyra.c mutex_lock(&pyra->pyra_lock); pyra 262 drivers/hid/hid-roccat-pyra.c mutex_unlock(&pyra->pyra_lock); pyra 266 drivers/hid/hid-roccat-pyra.c profile_activated(pyra, settings->startup_profile); pyra 271 drivers/hid/hid-roccat-pyra.c roccat_report_event(pyra->chrdev_minor, pyra 274 drivers/hid/hid-roccat-pyra.c mutex_unlock(&pyra->pyra_lock); pyra 287 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra = pyra 289 drivers/hid/hid-roccat-pyra.c return snprintf(buf, PAGE_SIZE, "%d\n", pyra->actual_cpi); pyra 296 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra = pyra 301 drivers/hid/hid-roccat-pyra.c mutex_lock(&pyra->pyra_lock); pyra 304 drivers/hid/hid-roccat-pyra.c mutex_unlock(&pyra->pyra_lock); pyra 314 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra; pyra 319 drivers/hid/hid-roccat-pyra.c pyra = hid_get_drvdata(dev_get_drvdata(dev)); pyra 322 drivers/hid/hid-roccat-pyra.c mutex_lock(&pyra->pyra_lock); pyra 325 drivers/hid/hid-roccat-pyra.c mutex_unlock(&pyra->pyra_lock); pyra 370 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra) pyra 375 drivers/hid/hid-roccat-pyra.c mutex_init(&pyra->pyra_lock); pyra 383 drivers/hid/hid-roccat-pyra.c &pyra->profile_settings[i], i); pyra 388 drivers/hid/hid-roccat-pyra.c profile_activated(pyra, settings.startup_profile); pyra 397 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra; pyra 403 drivers/hid/hid-roccat-pyra.c pyra = kzalloc(sizeof(*pyra), GFP_KERNEL); pyra 404 drivers/hid/hid-roccat-pyra.c if (!pyra) { pyra 408 drivers/hid/hid-roccat-pyra.c hid_set_drvdata(hdev, pyra); pyra 410 drivers/hid/hid-roccat-pyra.c retval = pyra_init_pyra_device_struct(usb_dev, pyra); pyra 421 drivers/hid/hid-roccat-pyra.c pyra->chrdev_minor = retval; pyra 422 drivers/hid/hid-roccat-pyra.c pyra->roccat_claimed = 1; pyra 430 drivers/hid/hid-roccat-pyra.c kfree(pyra); pyra 437 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra; pyra 441 drivers/hid/hid-roccat-pyra.c pyra = hid_get_drvdata(hdev); pyra 442 drivers/hid/hid-roccat-pyra.c if (pyra->roccat_claimed) pyra 443 drivers/hid/hid-roccat-pyra.c roccat_disconnect(pyra->chrdev_minor); pyra 483 drivers/hid/hid-roccat-pyra.c static void pyra_keep_values_up_to_date(struct pyra_device *pyra, pyra 493 drivers/hid/hid-roccat-pyra.c profile_activated(pyra, button_event->data1 - 1); pyra 496 drivers/hid/hid-roccat-pyra.c pyra->actual_cpi = button_event->data1; pyra 503 drivers/hid/hid-roccat-pyra.c static void pyra_report_to_chrdev(struct pyra_device const *pyra, pyra 520 drivers/hid/hid-roccat-pyra.c roccat_report_event(pyra->chrdev_minor, pyra 533 drivers/hid/hid-roccat-pyra.c roccat_report.value = pyra->actual_profile + 1; pyra 534 drivers/hid/hid-roccat-pyra.c roccat_report_event(pyra->chrdev_minor, pyra 545 drivers/hid/hid-roccat-pyra.c struct pyra_device *pyra = hid_get_drvdata(hdev); pyra 551 drivers/hid/hid-roccat-pyra.c if (pyra == NULL) pyra 554 drivers/hid/hid-roccat-pyra.c pyra_keep_values_up_to_date(pyra, data); pyra 556 drivers/hid/hid-roccat-pyra.c if (pyra->roccat_claimed) pyra 557 drivers/hid/hid-roccat-pyra.c pyra_report_to_chrdev(pyra, data);