Lines Matching refs:value
211 *version = obj->integer.value; in asus_wmi_get_version()
242 *count = obj->integer.value; in asus_wmi_get_item_count()
311 s->data_type = data_type_obj.integer.value; in asus_wmi_sensor_info()
319 s->location = location_obj.integer.value; in asus_wmi_sensor_info()
327 s->source = source_obj.integer.value; in asus_wmi_sensor_info()
336 s->type = type_obj.integer.value; in asus_wmi_sensor_info()
351 static int asus_wmi_get_sensor_value(u8 index, long *value) in asus_wmi_get_sensor_value() argument
372 *value = obj->integer.value; in asus_wmi_get_sensor_value()
382 long value = 0; in asus_wmi_update_values_for_source() local
389 ret = asus_wmi_get_sensor_value(sensor->id, &value); in asus_wmi_update_values_for_source()
393 sensor->cached_value = value; in asus_wmi_update_values_for_source()
400 static int asus_wmi_scale_sensor_value(u32 value, int data_type) in asus_wmi_scale_sensor_value() argument
406 return DIV_ROUND_CLOSEST(value, KILO); in asus_wmi_scale_sensor_value()
409 return value * MILLIDEGREE_PER_DEGREE; in asus_wmi_scale_sensor_value()
412 return value * MILLI; in asus_wmi_scale_sensor_value()
414 return value; in asus_wmi_scale_sensor_value()
419 u32 *value) in asus_wmi_get_cached_value_or_update() argument
437 *value = sensor->cached_value; in asus_wmi_get_cached_value_or_update()
450 u32 value = 0; in asus_wmi_hwmon_read() local
457 ret = asus_wmi_get_cached_value_or_update(sensor, sensor_data, &value); in asus_wmi_hwmon_read()
461 *val = asus_wmi_scale_sensor_value(value, sensor->data_type); in asus_wmi_hwmon_read()