Lines Matching full:msb
211 int lsb, msb; in sch56xx_read_virtual_reg16() local
213 /* Read LSB first, this will cause the matching MSB to be latched */ in sch56xx_read_virtual_reg16()
218 msb = sch56xx_read_virtual_reg(addr, reg + 1); in sch56xx_read_virtual_reg16()
219 if (msb < 0) in sch56xx_read_virtual_reg16()
220 return msb; in sch56xx_read_virtual_reg16()
222 return lsb | (msb << 8); in sch56xx_read_virtual_reg16()
229 int msb, lsn; in sch56xx_read_virtual_reg12() local
231 /* Read MSB first, this will cause the matching LSN to be latched */ in sch56xx_read_virtual_reg12()
232 msb = sch56xx_read_virtual_reg(addr, msb_reg); in sch56xx_read_virtual_reg12()
233 if (msb < 0) in sch56xx_read_virtual_reg12()
234 return msb; in sch56xx_read_virtual_reg12()
241 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12()
243 return (msb << 4) | (lsn & 0x0f); in sch56xx_read_virtual_reg12()
253 int lsb, msb, ret; in sch56xx_regmap_read16() local
260 ret = regmap_read(map, reg + 1, &msb); in sch56xx_regmap_read16()
264 *val = lsb | (msb << 8); in sch56xx_regmap_read16()