Lines Matching full:raw
99 s16 raw; in ds278x_get_temp() local
108 err = ds278x_read_reg16(info, DS278x_REG_TEMP_MSB, &raw); in ds278x_get_temp()
111 *temp = ((raw / 32) * 125) / 100; in ds278x_get_temp()
120 s16 raw; in ds2782_get_current() local
137 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2782_get_current()
140 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current()
146 s16 raw; in ds2782_get_voltage() local
153 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2782_get_voltage()
156 *voltage_uV = (raw / 32) * 4800; in ds2782_get_voltage()
163 u8 raw; in ds2782_get_capacity() local
165 err = ds278x_read_reg(info, DS2782_REG_RARC, &raw); in ds2782_get_capacity()
168 *capacity = raw; in ds2782_get_capacity()
175 s16 raw; in ds2786_get_current() local
177 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2786_get_current()
180 *current_uA = (raw / 16) * (DS2786_CURRENT_UNITS / info->rsns); in ds2786_get_current()
186 s16 raw; in ds2786_get_voltage() local
193 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2786_get_voltage()
196 *voltage_uV = (raw / 8) * 1220; in ds2786_get_voltage()
203 u8 raw; in ds2786_get_capacity() local
205 err = ds278x_read_reg(info, DS2786_REG_RARC, &raw); in ds2786_get_capacity()
209 *capacity = raw/2 ; in ds2786_get_capacity()