Lines Matching refs:tmp_val

116 	uint16_t tmp_val = 0;  in bq27z746_get_prop()  local
125 rc = bq27z746_read16(dev, BQ27Z746_AVERAGECURRENT, &tmp_val); in bq27z746_get_prop()
126 val->avg_current = (int16_t)tmp_val * 1000; in bq27z746_get_prop()
129 rc = bq27z746_read16(dev, BQ27Z746_CYCLECOUNT, &tmp_val); in bq27z746_get_prop()
130 val->cycle_count = tmp_val * 100; in bq27z746_get_prop()
133 rc = bq27z746_read16(dev, BQ27Z746_CURRENT, &tmp_val); in bq27z746_get_prop()
134 val->current = (int16_t)tmp_val * 1000; in bq27z746_get_prop()
137 rc = bq27z746_read16(dev, BQ27Z746_FULLCHARGECAPACITY, &tmp_val); in bq27z746_get_prop()
138 val->full_charge_capacity = tmp_val * 1000; in bq27z746_get_prop()
141 rc = bq27z746_read16(dev, BQ27Z746_REMAININGCAPACITY, &tmp_val); in bq27z746_get_prop()
142 val->remaining_capacity = tmp_val * 1000; in bq27z746_get_prop()
145 rc = bq27z746_read16(dev, BQ27Z746_AVERAGETIMETOEMPTY, &tmp_val); in bq27z746_get_prop()
146 val->runtime_to_empty = tmp_val; in bq27z746_get_prop()
149 rc = bq27z746_read16(dev, BQ27Z746_AVERAGETIMETOFULL, &tmp_val); in bq27z746_get_prop()
150 val->runtime_to_full = tmp_val; in bq27z746_get_prop()
153 rc = bq27z746_read16(dev, BQ27Z746_MANUFACTURERACCESS, &tmp_val); in bq27z746_get_prop()
154 val->sbs_mfr_access_word = tmp_val; in bq27z746_get_prop()
157 rc = bq27z746_read16(dev, BQ27Z746_RELATIVESTATEOFCHARGE, &tmp_val); in bq27z746_get_prop()
158 val->relative_state_of_charge = tmp_val; in bq27z746_get_prop()
161 rc = bq27z746_read16(dev, BQ27Z746_TEMPERATURE, &tmp_val); in bq27z746_get_prop()
162 val->temperature = tmp_val; in bq27z746_get_prop()
165 rc = bq27z746_read16(dev, BQ27Z746_VOLTAGE, &tmp_val); in bq27z746_get_prop()
166 val->voltage = tmp_val * 1000; in bq27z746_get_prop()
169 rc = bq27z746_read16(dev, BQ27Z746_ATRATE, &tmp_val); in bq27z746_get_prop()
170 val->sbs_at_rate = (int16_t)tmp_val; in bq27z746_get_prop()
173 rc = bq27z746_read16(dev, BQ27Z746_ATRATETIMETOEMPTY, &tmp_val); in bq27z746_get_prop()
174 val->sbs_at_rate_time_to_empty = tmp_val; in bq27z746_get_prop()
177 rc = bq27z746_read16(dev, BQ27Z746_CHARGINGVOLTAGE, &tmp_val); in bq27z746_get_prop()
178 val->chg_voltage = tmp_val * 1000; in bq27z746_get_prop()
181 rc = bq27z746_read16(dev, BQ27Z746_CHARGINGCURRENT, &tmp_val); in bq27z746_get_prop()
182 val->chg_current = tmp_val * 1000; in bq27z746_get_prop()
185 rc = bq27z746_read16(dev, BQ27Z746_BATTERYSTATUS, &tmp_val); in bq27z746_get_prop()
186 val->fg_status = tmp_val; in bq27z746_get_prop()
189 rc = bq27z746_read16(dev, BQ27Z746_DESIGNCAPACITY, &tmp_val); in bq27z746_get_prop()
190 val->design_cap = tmp_val; in bq27z746_get_prop()
241 uint16_t tmp_val = 0; in bq27z746_set_prop() local
246 val.sbs_mfr_access_word = tmp_val; in bq27z746_set_prop()
250 val.sbs_at_rate = tmp_val; in bq27z746_set_prop()