Searched refs:ntemp (Results 1 – 5 of 5) sorted by relevance
28 int ntemp = clamp_val(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); in LM75_TEMP_TO_REG() local30 ntemp += (ntemp < 0 ? -250 : 250); in LM75_TEMP_TO_REG()31 return (u16)((ntemp / 500) << 7); in LM75_TEMP_TO_REG()
138 int ntemp = clamp_val(temp, ASB100_TEMP_MIN, ASB100_TEMP_MAX); in TEMP_TO_REG() local139 ntemp += (ntemp < 0 ? -500 : 500); in TEMP_TO_REG()140 return (u8)(ntemp / 1000); in TEMP_TO_REG()
219 int ntemp = clamp_val(temp, in jc42_temp_to_reg() local224 return (ntemp * 2 / 125) & 0x1fff; in jc42_temp_to_reg()
270 int ntemp = clamp_val(temp, TEMP_MIN, TEMP_MAX); in TEMP_TO_REG() local271 ntemp += (ntemp < 0 ? -500 : 500); in TEMP_TO_REG()272 return (u8)(ntemp / 1000); in TEMP_TO_REG()
427 int ntemp = clamp_val(temp, LM93_TEMP_MIN, LM93_TEMP_MAX); in LM93_TEMP_TO_REG() local428 ntemp += (ntemp < 0 ? -500 : 500); in LM93_TEMP_TO_REG()429 return (u8)(ntemp / 1000); in LM93_TEMP_TO_REG()