kone               37 drivers/hid/hid-roccat-kone.c static void kone_profile_activated(struct kone_device *kone, uint new_profile)
kone               39 drivers/hid/hid-roccat-kone.c 	kone->actual_profile = new_profile;
kone               40 drivers/hid/hid-roccat-kone.c 	kone->actual_dpi = kone->profiles[new_profile - 1].startup_dpi;
kone               43 drivers/hid/hid-roccat-kone.c static void kone_profile_report(struct kone_device *kone, uint new_profile)
kone               50 drivers/hid/hid-roccat-kone.c 	roccat_report_event(kone->chrdev_minor, (uint8_t *)&roccat_report);
kone              270 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              278 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              279 drivers/hid/hid-roccat-kone.c 	memcpy(buf, ((char const *)&kone->settings) + off, count);
kone              280 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              294 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              302 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              303 drivers/hid/hid-roccat-kone.c 	difference = memcmp(buf, &kone->settings, sizeof(struct kone_settings));
kone              308 drivers/hid/hid-roccat-kone.c 			mutex_unlock(&kone->kone_lock);
kone              312 drivers/hid/hid-roccat-kone.c 		old_profile = kone->settings.startup_profile;
kone              313 drivers/hid/hid-roccat-kone.c 		memcpy(&kone->settings, buf, sizeof(struct kone_settings));
kone              315 drivers/hid/hid-roccat-kone.c 		kone_profile_activated(kone, kone->settings.startup_profile);
kone              317 drivers/hid/hid-roccat-kone.c 		if (kone->settings.startup_profile != old_profile)
kone              318 drivers/hid/hid-roccat-kone.c 			kone_profile_report(kone, kone->settings.startup_profile);
kone              320 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              331 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              339 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              340 drivers/hid/hid-roccat-kone.c 	memcpy(buf, ((char const *)&kone->profiles[*(uint *)(attr->private)]) + off, count);
kone              341 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              351 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              360 drivers/hid/hid-roccat-kone.c 	profile = &kone->profiles[*(uint *)(attr->private)];
kone              362 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              371 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              395 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone =
kone              397 drivers/hid/hid-roccat-kone.c 	return snprintf(buf, PAGE_SIZE, "%d\n", kone->actual_profile);
kone              404 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone =
kone              406 drivers/hid/hid-roccat-kone.c 	return snprintf(buf, PAGE_SIZE, "%d\n", kone->actual_dpi);
kone              414 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone;
kone              420 drivers/hid/hid-roccat-kone.c 	kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              423 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              425 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              436 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone =
kone              438 drivers/hid/hid-roccat-kone.c 	return snprintf(buf, PAGE_SIZE, "%d\n", kone->firmware_version);
kone              446 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone =
kone              448 drivers/hid/hid-roccat-kone.c 	return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.tcu);
kone              466 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone;
kone              472 drivers/hid/hid-roccat-kone.c 	kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              482 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              511 drivers/hid/hid-roccat-kone.c 	retval = kone_get_settings(usb_dev, &kone->settings);
kone              516 drivers/hid/hid-roccat-kone.c 	if (kone->settings.tcu != state) {
kone              517 drivers/hid/hid-roccat-kone.c 		kone->settings.tcu = state;
kone              518 drivers/hid/hid-roccat-kone.c 		kone_set_settings_checksum(&kone->settings);
kone              520 drivers/hid/hid-roccat-kone.c 		retval = kone_set_settings(usb_dev, &kone->settings);
kone              527 drivers/hid/hid-roccat-kone.c 			retval = kone_get_settings(usb_dev, &kone->settings);
kone              533 drivers/hid/hid-roccat-kone.c 		kone_profile_activated(kone, kone->settings.startup_profile);
kone              540 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              548 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone =
kone              550 drivers/hid/hid-roccat-kone.c 	return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.startup_profile);
kone              556 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone;
kone              562 drivers/hid/hid-roccat-kone.c 	kone = hid_get_drvdata(dev_get_drvdata(dev));
kone              572 drivers/hid/hid-roccat-kone.c 	mutex_lock(&kone->kone_lock);
kone              574 drivers/hid/hid-roccat-kone.c 	kone->settings.startup_profile = new_startup_profile;
kone              575 drivers/hid/hid-roccat-kone.c 	kone_set_settings_checksum(&kone->settings);
kone              577 drivers/hid/hid-roccat-kone.c 	retval = kone_set_settings(usb_dev, &kone->settings);
kone              579 drivers/hid/hid-roccat-kone.c 		mutex_unlock(&kone->kone_lock);
kone              584 drivers/hid/hid-roccat-kone.c 	kone_profile_activated(kone, new_startup_profile);
kone              585 drivers/hid/hid-roccat-kone.c 	kone_profile_report(kone, new_startup_profile);
kone              587 drivers/hid/hid-roccat-kone.c 	mutex_unlock(&kone->kone_lock);
kone              652 drivers/hid/hid-roccat-kone.c 		struct kone_device *kone)
kone              657 drivers/hid/hid-roccat-kone.c 	mutex_init(&kone->kone_lock);
kone              660 drivers/hid/hid-roccat-kone.c 		retval = kone_get_profile(usb_dev, &kone->profiles[i], i + 1);
kone              665 drivers/hid/hid-roccat-kone.c 	retval = kone_get_settings(usb_dev, &kone->settings);
kone              669 drivers/hid/hid-roccat-kone.c 	retval = kone_get_firmware_version(usb_dev, &kone->firmware_version);
kone              673 drivers/hid/hid-roccat-kone.c 	kone_profile_activated(kone, kone->settings.startup_profile);
kone              689 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone;
kone              695 drivers/hid/hid-roccat-kone.c 		kone = kzalloc(sizeof(*kone), GFP_KERNEL);
kone              696 drivers/hid/hid-roccat-kone.c 		if (!kone)
kone              698 drivers/hid/hid-roccat-kone.c 		hid_set_drvdata(hdev, kone);
kone              700 drivers/hid/hid-roccat-kone.c 		retval = kone_init_kone_device_struct(usb_dev, kone);
kone              712 drivers/hid/hid-roccat-kone.c 			kone->roccat_claimed = 1;
kone              713 drivers/hid/hid-roccat-kone.c 			kone->chrdev_minor = retval;
kone              721 drivers/hid/hid-roccat-kone.c 	kfree(kone);
kone              728 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone;
kone              732 drivers/hid/hid-roccat-kone.c 		kone = hid_get_drvdata(hdev);
kone              733 drivers/hid/hid-roccat-kone.c 		if (kone->roccat_claimed)
kone              734 drivers/hid/hid-roccat-kone.c 			roccat_disconnect(kone->chrdev_minor);
kone              776 drivers/hid/hid-roccat-kone.c static void kone_keep_values_up_to_date(struct kone_device *kone,
kone              781 drivers/hid/hid-roccat-kone.c 		kone->actual_dpi = kone->profiles[event->value - 1].
kone              785 drivers/hid/hid-roccat-kone.c 		kone->actual_profile = event->value;
kone              789 drivers/hid/hid-roccat-kone.c 		kone->actual_dpi = event->value;
kone              794 drivers/hid/hid-roccat-kone.c static void kone_report_to_chrdev(struct kone_device const *kone,
kone              807 drivers/hid/hid-roccat-kone.c 		roccat_report_event(kone->chrdev_minor,
kone              814 drivers/hid/hid-roccat-kone.c 			roccat_report.value = kone->actual_profile;
kone              816 drivers/hid/hid-roccat-kone.c 			roccat_report_event(kone->chrdev_minor,
kone              832 drivers/hid/hid-roccat-kone.c 	struct kone_device *kone = hid_get_drvdata(hdev);
kone              839 drivers/hid/hid-roccat-kone.c 	if (kone == NULL)
kone              847 drivers/hid/hid-roccat-kone.c 	if (memcmp(&kone->last_mouse_event.tilt, &event->tilt, 5))
kone              848 drivers/hid/hid-roccat-kone.c 		memcpy(&kone->last_mouse_event, event,
kone              853 drivers/hid/hid-roccat-kone.c 	kone_keep_values_up_to_date(kone, event);
kone              855 drivers/hid/hid-roccat-kone.c 	if (kone->roccat_claimed)
kone              856 drivers/hid/hid-roccat-kone.c 		kone_report_to_chrdev(kone, event);