Lines Matching refs:value

74  * leave out the first 8 bits of the priority value.
133 unsigned int value,
146 if (match(usage, cur_idx, value)) {
430 int value)
433 value >= dev->battery_min && value <= dev->battery_max)
434 value = ((value - dev->battery_min) * 100) /
437 return value;
466 int value;
478 value = hidinput_query_battery_capacity(dev);
479 if (value < 0)
480 return value;
482 value = dev->battery_capacity;
485 val->intval = value;
495 value = hidinput_query_battery_capacity(dev);
496 if (value < 0)
497 return value;
499 dev->battery_capacity = value;
619 static void hidinput_update_battery(struct hid_device *dev, int value)
626 if (value == 0 || value < dev->battery_min || value > dev->battery_max)
629 capacity = hidinput_scale_battery_capacity(dev, value);
643 unsigned int usage, int value)
647 dev->battery_charge_status = value ?
666 static void hidinput_update_battery(struct hid_device *dev, int value)
671 unsigned int usage, int value)
1385 * - HID is using *_MISC+N as a default value, but nothing prevents
1465 __s32 value)
1470 if (value == 0)
1479 * Windows reports one wheel click as value 120. Where a high-res
1484 hi_res = value * 120/usage->resolution_multiplier;
1523 void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value)
1533 bool handled = hidinput_set_battery_charge_status(hid, usage->hid, value);
1536 hidinput_update_battery(hid, value);
1549 hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1;
1559 * When it's not, clamp the value to match Microsoft's input
1570 (value < field->logical_minimum ||
1571 value > field->logical_maximum)) {
1572 dbg_hid("Ignoring out-of-range value %x\n", value);
1575 value = clamp(value,
1582 report->tool_active |= !!value;
1588 if (value)
1591 /* value is off, tool is not rubber, ignore */
1607 report->tool_active |= !!value;
1612 if (value)
1622 report->tool_active |= !!value;
1632 /* drivers may have changed the value behind our back, resend it */
1645 report->tool_active |= !!value;
1647 /* if tool is set to RUBBER we should ignore the current value */
1658 if (value > a + ((b - a) >> 3)) {
1666 dbg_hid("Maximum Effects - %d\n",value);
1683 hidinput_handle_scroll(usage, input, value);
1691 int count = abs(value);
1692 int direction = value > 0 ? KEY_VOLUMEUP : KEY_VOLUMEDOWN;
1705 value = field->logical_maximum - value;
1723 value == field->value[usage->usage_index])
1728 (!test_bit(usage->code, input->key)) == value)
1731 input_event(input, usage->type, usage->code, value);
1734 usage->type == EV_KEY && value) {
1803 field->value[j])
1830 * boolean value no matter what information is currently set on the LED
1833 * And in case we send a wrong value, a next led worker is spawned
1835 * correct value, guaranteed!
1860 unsigned int code, int value)
1867 return input_ff_event(dev, type, code, value);
1877 hid_set_field(field, offset, value);
1909 __s32 value = use_logical_max ?
1945 report->field[i]->value[j] = value;