Searched refs:val_h (Results 1 – 2 of 2) sorted by relevance
129 static int temp_from_reg_unsigned(u8 val_h, u8 val_l) in temp_from_reg_unsigned() argument131 return val_h * 1000 + val_l * 1000 / 256; in temp_from_reg_unsigned()134 static int temp_from_reg_signed(u8 val_h, u8 val_l) in temp_from_reg_signed() argument136 if (val_h & 0x80) in temp_from_reg_signed()137 return (val_h - 0x100) * 1000; in temp_from_reg_signed()138 return temp_from_reg_unsigned(val_h, val_l); in temp_from_reg_signed()
102 static int temp_from_reg_signed(u8 val_h, u8 val_l) in temp_from_reg_signed() argument104 s16 val_hl = (val_h << 8) | val_l; in temp_from_reg_signed()108 static int temp_from_reg_unsigned(u8 val_h, u8 val_l) in temp_from_reg_unsigned() argument110 u16 val_hl = (val_h << 8) | val_l; in temp_from_reg_unsigned()