Home
last modified time | relevance | path

Searched refs:val_h (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/hwmon/
Dlm95245.c94 static int temp_from_reg_unsigned(u8 val_h, u8 val_l) in temp_from_reg_unsigned() argument
96 return val_h * 1000 + val_l * 1000 / 256; in temp_from_reg_unsigned()
99 static int temp_from_reg_signed(u8 val_h, u8 val_l) in temp_from_reg_signed() argument
101 if (val_h & 0x80) in temp_from_reg_signed()
102 return (val_h - 0x100) * 1000; in temp_from_reg_signed()
103 return temp_from_reg_unsigned(val_h, val_l); in temp_from_reg_signed()
Dlm95241.c88 static int temp_from_reg_signed(u8 val_h, u8 val_l) in temp_from_reg_signed() argument
90 s16 val_hl = (val_h << 8) | val_l; in temp_from_reg_signed()
94 static int temp_from_reg_unsigned(u8 val_h, u8 val_l) in temp_from_reg_unsigned() argument
96 u16 val_hl = (val_h << 8) | val_l; in temp_from_reg_unsigned()
/Linux-v5.4/drivers/net/phy/
Dmscc.c1851 u32 val, val_l, val_h; in vsc85xx_csr_ctrl_phy_read() local
1887 val_h = phy_base_read(phydev, MSCC_EXT_PAGE_CSR_CNTL_18); in vsc85xx_csr_ctrl_phy_read()
1892 return (val_h << 16) | val_l; in vsc85xx_csr_ctrl_phy_read()