Home
last modified time | relevance | path

Searched refs:unit_expo (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/include/linux/
Dhid-sensor-hub.h32 s32 unit_expo; member
240 static inline int hid_sensor_convert_exponent(int unit_expo) in hid_sensor_convert_exponent() argument
242 if (unit_expo < 0x08) in hid_sensor_convert_exponent()
243 return unit_expo; in hid_sensor_convert_exponent()
244 else if (unit_expo <= 0x0f) in hid_sensor_convert_exponent()
245 return -(0x0f-unit_expo+1); in hid_sensor_convert_exponent()
/linux-5.19.10/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c251 st->sensitivity.unit_expo, in hid_sensor_read_raw_hyst_value()
275 st->sensitivity_rel.unit_expo, val1, val2); in hid_sensor_read_raw_hyst_rel_value()
292 st->sensitivity.unit_expo, in hid_sensor_write_raw_hyst_value()
323 st->sensitivity_rel.unit_expo, in hid_sensor_write_raw_hyst_rel_value()
416 attr_info->unit_expo); in hid_sensor_format_scale()
/linux-5.19.10/drivers/rtc/
Drtc-hid-sensor-time.c180 if (time_state->info[i].unit_expo) { in hid_time_parse_report()
/linux-5.19.10/drivers/iio/light/
Dhid-sensor-prox.c107 prox_state->prox_attr.unit_expo); in prox_read_raw()
/linux-5.19.10/drivers/hid/
Dhid-sensor-hub.c91 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info()
393 info->unit_expo = -1; in sensor_hub_input_get_attribute_info()
Dhid-sensor-custom.c357 value = sensor_inst->fields[field_index].attribute.unit_expo; in show_value()
500 sensor_field->attribute.unit_expo = field->unit_exponent; in hid_sensor_custom_add_field()