Lines Matching refs:raw
104 s16 raw; in ds278x_get_temp() local
113 err = ds278x_read_reg16(info, DS278x_REG_TEMP_MSB, &raw); in ds278x_get_temp()
116 *temp = ((raw / 32) * 125) / 100; in ds278x_get_temp()
125 s16 raw; in ds2782_get_current() local
142 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2782_get_current()
145 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current()
151 s16 raw; in ds2782_get_voltage() local
158 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2782_get_voltage()
161 *voltage_uV = (raw / 32) * 4800; in ds2782_get_voltage()
168 u8 raw; in ds2782_get_capacity() local
170 err = ds278x_read_reg(info, DS2782_REG_RARC, &raw); in ds2782_get_capacity()
173 *capacity = raw; in ds2782_get_capacity()
180 s16 raw; in ds2786_get_current() local
182 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2786_get_current()
185 *current_uA = (raw / 16) * (DS2786_CURRENT_UNITS / info->rsns); in ds2786_get_current()
191 s16 raw; in ds2786_get_voltage() local
198 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2786_get_voltage()
201 *voltage_uV = (raw / 8) * 1220; in ds2786_get_voltage()
208 u8 raw; in ds2786_get_capacity() local
210 err = ds278x_read_reg(info, DS2786_REG_RARC, &raw); in ds2786_get_capacity()
214 *capacity = raw/2 ; in ds2786_get_capacity()