Lines Matching full:raw
100 s16 raw; in ds278x_get_temp() local
109 err = ds278x_read_reg16(info, DS278x_REG_TEMP_MSB, &raw); in ds278x_get_temp()
112 *temp = ((raw / 32) * 125) / 100; in ds278x_get_temp()
121 s16 raw; in ds2782_get_current() local
138 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2782_get_current()
141 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current()
147 s16 raw; in ds2782_get_voltage() local
154 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2782_get_voltage()
157 *voltage_uV = (raw / 32) * 4800; in ds2782_get_voltage()
164 u8 raw; in ds2782_get_capacity() local
166 err = ds278x_read_reg(info, DS2782_REG_RARC, &raw); in ds2782_get_capacity()
169 *capacity = raw; in ds2782_get_capacity()
176 s16 raw; in ds2786_get_current() local
178 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2786_get_current()
181 *current_uA = (raw / 16) * (DS2786_CURRENT_UNITS / info->rsns); in ds2786_get_current()
187 s16 raw; in ds2786_get_voltage() local
194 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2786_get_voltage()
197 *voltage_uV = (raw / 8) * 1220; in ds2786_get_voltage()
204 u8 raw; in ds2786_get_capacity() local
206 err = ds278x_read_reg(info, DS2786_REG_RARC, &raw); in ds2786_get_capacity()
210 *capacity = raw/2 ; in ds2786_get_capacity()