Lines Matching refs:usage_index
130 uref->usage_index = j; in hiddev_lookup_usage()
178 uref.usage_index = (usage - field->usage); in hiddev_hid_event()
463 if (uref->usage_index >= field->maxusage) in hiddev_ioctl_usage()
465 uref->usage_index = array_index_nospec(uref->usage_index, in hiddev_ioctl_usage()
468 uref->usage_code = field->usage[uref->usage_index].hid; in hiddev_ioctl_usage()
499 if (uref->usage_index >= field->maxusage) in hiddev_ioctl_usage()
501 uref->usage_index = in hiddev_ioctl_usage()
502 array_index_nospec(uref->usage_index, in hiddev_ioctl_usage()
504 } else if (uref->usage_index >= field->report_count) in hiddev_ioctl_usage()
510 uref->usage_index + uref_multi->num_values > in hiddev_ioctl_usage()
514 uref->usage_index = in hiddev_ioctl_usage()
515 array_index_nospec(uref->usage_index, in hiddev_ioctl_usage()
522 if (uref->usage_index >= field->report_count) in hiddev_ioctl_usage()
524 uref->value = field->value[uref->usage_index]; in hiddev_ioctl_usage()
530 if (uref->usage_index >= field->report_count) in hiddev_ioctl_usage()
532 field->value[uref->usage_index] = uref->value; in hiddev_ioctl_usage()
536 i = field->usage[uref->usage_index].collection_index; in hiddev_ioctl_usage()
542 field->value[uref->usage_index + i]; in hiddev_ioctl_usage()
549 field->value[uref->usage_index + i] = in hiddev_ioctl_usage()