Home
last modified time | relevance | path

Searched refs:IN_FROM_REG (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/hwmon/
H A Dpc87360.c161 #define IN_FROM_REG(val, ref) (((val) * (ref) + 128) / 256) macro
411 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in in_input_show()
456 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in in_min_show()
500 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in in_max_show()
673 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in therm_input_show()
706 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in therm_min_show()
742 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in therm_max_show()
778 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], in therm_crit_show()
H A Dw83627hf.c251 #define IN_FROM_REG(val) ((val) * 16) macro
816 in0 = (long)IN_FROM_REG(reg); in show_in_0()
1011 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in[nr])); in in_input_show()
1019 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in in_min_show()
1047 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in in_max_show()