Lines Matching defs:value

87 					   unsigned int value,
100 if (match(usage, cur_idx, value)) {
347 int value)
350 value >= dev->battery_min && value <= dev->battery_max)
351 value = ((value - dev->battery_min) * 100) /
354 return value;
383 int value;
395 value = hidinput_query_battery_capacity(dev);
396 if (value < 0)
397 return value;
399 value = dev->battery_capacity;
402 val->intval = value;
412 value = hidinput_query_battery_capacity(dev);
413 if (value < 0)
414 return value;
416 dev->battery_capacity = value;
531 static void hidinput_update_battery(struct hid_device *dev, int value)
538 if (value == 0 || value < dev->battery_min || value > dev->battery_max)
541 capacity = hidinput_scale_battery_capacity(dev, value);
561 static void hidinput_update_battery(struct hid_device *dev, int value)
1178 * - HID is using *_MISC+N as a default value, but nothing prevents
1258 __s32 value)
1263 if (value == 0)
1272 * Windows reports one wheel click as value 120. Where a high-res
1277 hi_res = value * 120/usage->resolution_multiplier;
1288 void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value)
1297 hidinput_update_battery(hid, value);
1309 value = field->logical_maximum - value;
1315 hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1;
1323 *quirks = value ? (*quirks | HID_QUIRK_INVERT) : (*quirks & ~HID_QUIRK_INVERT);
1328 if (value) {
1340 input_event(input, EV_KEY, BTN_TOUCH, value > a + ((b - a) >> 3));
1344 dbg_hid("Maximum Effects - %d\n",value);
1358 hidinput_handle_scroll(usage, input, value);
1364 int count = abs(value);
1365 int direction = value > 0 ? KEY_VOLUMEUP : KEY_VOLUMEDOWN;
1380 * When it's not, clamp the value to match Microsoft's input
1391 (value < field->logical_minimum ||
1392 value > field->logical_maximum)) {
1393 dbg_hid("Ignoring out-of-range value %x\n", value);
1396 value = clamp(value,
1415 value == field->value[usage->usage_index])
1420 (!test_bit(usage->code, input->key)) == value)
1423 input_event(input, usage->type, usage->code, value);
1426 usage->type == EV_KEY && value) {
1495 field->value[j])
1522 * boolean value no matter what information is currently set on the LED
1525 * And in case we send a wrong value, a next led worker is spawned
1527 * correct value, guaranteed!
1552 unsigned int code, int value)
1559 return input_ff_event(dev, type, code, value);
1569 hid_set_field(field, offset, value);
1601 __s32 value = use_logical_max ?
1637 report->field[i]->value[j] = value;