Lines Matching refs:fan_div
277 u8 fan_div[8]; /* Decoded value */ member
395 data->fan_div[i] = DIV_FROM_REG(value & 0x03); in adm1026_update_device()
660 data->fan_div[nr])); in fan_show()
669 data->fan_div[nr])); in fan_min_show()
687 data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]); in fan_min_store()
717 int new_div = data->fan_div[fan]; in fixup_fan_min()
736 return sprintf(buf, "%d\n", data->fan_div[nr]); in fan_div_show()
757 orig_div = data->fan_div[nr]; in fan_div_store()
758 data->fan_div[nr] = DIV_FROM_REG(new_div); in fan_div_store()
762 (DIV_TO_REG(data->fan_div[0]) << 0) | in fan_div_store()
763 (DIV_TO_REG(data->fan_div[1]) << 2) | in fan_div_store()
764 (DIV_TO_REG(data->fan_div[2]) << 4) | in fan_div_store()
765 (DIV_TO_REG(data->fan_div[3]) << 6)); in fan_div_store()
768 (DIV_TO_REG(data->fan_div[4]) << 0) | in fan_div_store()
769 (DIV_TO_REG(data->fan_div[5]) << 2) | in fan_div_store()
770 (DIV_TO_REG(data->fan_div[6]) << 4) | in fan_div_store()
771 (DIV_TO_REG(data->fan_div[7]) << 6)); in fan_div_store()
774 if (data->fan_div[nr] != orig_div) in fan_div_store()
781 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
782 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);
783 static SENSOR_DEVICE_ATTR_RW(fan3_div, fan_div, 2);
784 static SENSOR_DEVICE_ATTR_RW(fan4_div, fan_div, 3);
785 static SENSOR_DEVICE_ATTR_RW(fan5_div, fan_div, 4);
786 static SENSOR_DEVICE_ATTR_RW(fan6_div, fan_div, 5);
787 static SENSOR_DEVICE_ATTR_RW(fan7_div, fan_div, 6);
788 static SENSOR_DEVICE_ATTR_RW(fan8_div, fan_div, 7);
1814 data->fan_div[i] = DIV_FROM_REG(value & 0x03); in adm1026_init_client()