Lines Matching refs:mcu_data
41 unsigned long mcu_data; member
68 u32 mcu_data; in nsa320_hwmon_update() local
74 mcu_data = hwmon->mcu_data; in nsa320_hwmon_update()
76 if (time_after(jiffies, hwmon->last_updated + HZ) || mcu_data == 0) { in nsa320_hwmon_update()
80 mcu_data = 0; in nsa320_hwmon_update()
87 mcu_data |= mask; in nsa320_hwmon_update()
91 dev_dbg(dev, "Read raw MCU data %08x\n", mcu_data); in nsa320_hwmon_update()
93 if ((mcu_data >> 24) != MAGIC_NUMBER) { in nsa320_hwmon_update()
94 dev_dbg(dev, "Read invalid MCU data %08x\n", mcu_data); in nsa320_hwmon_update()
95 mcu_data = -EIO; in nsa320_hwmon_update()
97 hwmon->mcu_data = mcu_data; in nsa320_hwmon_update()
104 return mcu_data; in nsa320_hwmon_update()
118 s32 mcu_data = nsa320_hwmon_update(dev); in temp1_input_show() local
120 if (mcu_data < 0) in temp1_input_show()
121 return mcu_data; in temp1_input_show()
123 return sprintf(buf, "%d\n", (mcu_data & 0xffff) * 100); in temp1_input_show()
129 s32 mcu_data = nsa320_hwmon_update(dev); in fan1_input_show() local
131 if (mcu_data < 0) in fan1_input_show()
132 return mcu_data; in fan1_input_show()
134 return sprintf(buf, "%d\n", ((mcu_data & 0xff0000) >> 16) * 100); in fan1_input_show()