Lines Matching refs:wdata
85 struct lg4ff_wheel_data wdata; member
311 switch (entry->wdata.product_id) { in lg4ff_adjust_input_event()
315 new_value = lg4ff_adjust_dfp_x_axis(value, entry->wdata.range); in lg4ff_adjust_input_event()
336 if (entry->wdata.combine) { in lg4ff_raw_event()
337 switch (entry->wdata.product_id) { in lg4ff_raw_event()
377 static void lg4ff_init_wheel_data(struct lg4ff_wheel_data * const wdata, const struct lg4ff_wheel *… in lg4ff_init_wheel_data() argument
402 memcpy(wdata, &t_wdata, sizeof(t_wdata)); in lg4ff_init_wheel_data()
515 switch (entry->wdata.product_id) { in lg4ff_set_autocenter_default()
818 if (!entry->wdata.real_name) { in lg4ff_alternate_modes_show()
824 if (entry->wdata.alternate_modes & BIT(i)) { in lg4ff_alternate_modes_show()
828 … !lg4ff_alternate_modes[i].product_id ? entry->wdata.real_name : lg4ff_alternate_modes[i].name); in lg4ff_alternate_modes_show()
833 if (lg4ff_alternate_modes[i].product_id == entry->wdata.product_id || in lg4ff_alternate_modes_show()
834 …(lg4ff_alternate_modes[i].product_id == 0 && entry->wdata.product_id == entry->wdata.real_product_… in lg4ff_alternate_modes_show()
893 if (entry->wdata.alternate_modes & BIT(i)) { in lg4ff_alternate_modes_store()
896 target_product_id = entry->wdata.real_product_id; in lg4ff_alternate_modes_store()
911 if (target_product_id == entry->wdata.product_id) /* Nothing to do */ in lg4ff_alternate_modes_store()
917 entry->wdata.real_name); in lg4ff_alternate_modes_store()
922 …if ((entry->wdata.real_product_id == USB_DEVICE_ID_LOGITECH_DFP_WHEEL || entry->wdata.real_product… in lg4ff_alternate_modes_store()
923 entry->wdata.product_id > target_product_id) { in lg4ff_alternate_modes_store()
924 …hid_info(hid, "\"%s\" cannot be switched back into \"%s\" mode\n", entry->wdata.real_name, lg4ff_a… in lg4ff_alternate_modes_store()
928 s = lg4ff_get_mode_switch_command(entry->wdata.real_product_id, target_product_id); in lg4ff_alternate_modes_store()
959 count = scnprintf(buf, PAGE_SIZE, "%u\n", entry->wdata.combine); in lg4ff_combine_show()
986 entry->wdata.combine = combine; in lg4ff_combine_store()
1012 count = scnprintf(buf, PAGE_SIZE, "%u\n", entry->wdata.range); in lg4ff_range_show()
1039 range = entry->wdata.max_range; in lg4ff_range_store()
1043 if (entry->wdata.set_range && range >= entry->wdata.min_range && range <= entry->wdata.max_range) { in lg4ff_range_store()
1044 entry->wdata.set_range(hid, range); in lg4ff_range_store()
1045 entry->wdata.range = range; in lg4ff_range_store()
1071 if (!entry->wdata.real_tag || !entry->wdata.real_name) { in lg4ff_real_id_show()
1076 count = scnprintf(buf, PAGE_SIZE, "%s: %s\n", entry->wdata.real_tag, entry->wdata.real_name); in lg4ff_real_id_show()
1142 if (led_cdev != entry->wdata.led[i]) in lg4ff_led_set_brightness()
1144 state = (entry->wdata.led_state >> i) & 1; in lg4ff_led_set_brightness()
1146 entry->wdata.led_state &= ~(1 << i); in lg4ff_led_set_brightness()
1147 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness()
1149 entry->wdata.led_state |= 1 << i; in lg4ff_led_set_brightness()
1150 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness()
1177 if (led_cdev == entry->wdata.led[i]) { in lg4ff_led_get_brightness()
1178 value = (entry->wdata.led_state >> i) & 1; in lg4ff_led_get_brightness()
1356 lg4ff_init_wheel_data(&entry->wdata, &lg4ff_devices[i], mmode_wheel, real_product_id); in lg4ff_init()
1389 entry->wdata.range = entry->wdata.max_range; in lg4ff_init()
1390 if (entry->wdata.set_range) in lg4ff_init()
1391 entry->wdata.set_range(hid, entry->wdata.range); in lg4ff_init()
1395 entry->wdata.led_state = 0; in lg4ff_init()
1397 entry->wdata.led[j] = NULL; in lg4ff_init()
1424 entry->wdata.led[j] = led; in lg4ff_init()
1432 led = entry->wdata.led[j]; in lg4ff_init()
1433 entry->wdata.led[j] = NULL; in lg4ff_init()
1469 if (entry->wdata.alternate_modes) { in lg4ff_deinit()
1484 led = entry->wdata.led[j]; in lg4ff_deinit()
1485 entry->wdata.led[j] = NULL; in lg4ff_deinit()