Home
last modified time | relevance | path

Searched refs:ntemp (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dlm75.h28 int ntemp = clamp_val(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); in LM75_TEMP_TO_REG() local
30 ntemp += (ntemp < 0 ? -250 : 250); in LM75_TEMP_TO_REG()
31 return (u16)((ntemp / 500) << 7); in LM75_TEMP_TO_REG()
H A Dasb100.c138 int ntemp = clamp_val(temp, ASB100_TEMP_MIN, ASB100_TEMP_MAX); in TEMP_TO_REG() local
139 ntemp += (ntemp < 0 ? -500 : 500); in TEMP_TO_REG()
140 return (u8)(ntemp / 1000); in TEMP_TO_REG()
H A Djc42.c219 int ntemp = clamp_val(temp, in jc42_temp_to_reg() local
224 return (ntemp * 2 / 125) & 0x1fff; in jc42_temp_to_reg()
H A Dw83627hf.c270 int ntemp = clamp_val(temp, TEMP_MIN, TEMP_MAX); in TEMP_TO_REG() local
271 ntemp += (ntemp < 0 ? -500 : 500); in TEMP_TO_REG()
272 return (u8)(ntemp / 1000); in TEMP_TO_REG()
H A Dlm93.c427 int ntemp = clamp_val(temp, LM93_TEMP_MIN, LM93_TEMP_MAX); in LM93_TEMP_TO_REG() local
428 ntemp += (ntemp < 0 ? -500 : 500); in LM93_TEMP_TO_REG()
429 return (u8)(ntemp / 1000); in LM93_TEMP_TO_REG()