Lines Matching refs:bulk_reg

174 	u8 bulk_reg[2];  in rk817_bat_calib_vol()  local
178 bulk_reg, 2); in rk817_bat_calib_vol()
179 vcalib0 = get_unaligned_be16(bulk_reg); in rk817_bat_calib_vol()
182 bulk_reg, 2); in rk817_bat_calib_vol()
183 vcalib1 = get_unaligned_be16(bulk_reg); in rk817_bat_calib_vol()
193 u8 bulk_reg[2]; in rk817_bat_calib_cur() local
197 bulk_reg, 2); in rk817_bat_calib_cur()
199 bulk_reg, 2); in rk817_bat_calib_cur()
208 u8 bulk_reg[3]; in rk817_record_battery_nvram_values() local
215 put_unaligned_le24(charger->soc, bulk_reg); in rk817_record_battery_nvram_values()
217 bulk_reg, 3); in rk817_record_battery_nvram_values()
225 put_unaligned_le24(rsoc, bulk_reg); in rk817_record_battery_nvram_values()
227 bulk_reg, 3); in rk817_record_battery_nvram_values()
231 put_unaligned_le24(charger->fcc_mah, bulk_reg); in rk817_record_battery_nvram_values()
233 bulk_reg, 3); in rk817_record_battery_nvram_values()
244 u8 bulk_reg[4]; in rk817_bat_calib_cap() local
263 put_unaligned_be32(charge_now_adc, bulk_reg); in rk817_bat_calib_cap()
265 bulk_reg, 4); in rk817_bat_calib_cap()
279 bulk_reg, 4); in rk817_bat_calib_cap()
280 charge_now_adc = get_unaligned_be32(bulk_reg); in rk817_bat_calib_cap()
300 put_unaligned_be32(charge_now_adc, bulk_reg); in rk817_bat_calib_cap()
303 bulk_reg, 4); in rk817_bat_calib_cap()
316 bulk_reg, 2); in rk817_bat_calib_cap()
317 tmp = get_unaligned_be16(bulk_reg); in rk817_bat_calib_cap()
322 bulk_reg, 4); in rk817_bat_calib_cap()
323 charge_now_adc = get_unaligned_be32(bulk_reg); in rk817_bat_calib_cap()
344 put_unaligned_be32(charge_now_adc, bulk_reg); in rk817_bat_calib_cap()
346 RK817_GAS_GAUGE_Q_INIT_H3, bulk_reg, 4); in rk817_bat_calib_cap()
360 u8 bulk_reg[4]; in rk817_read_props() local
380 bulk_reg, 4); in rk817_read_props()
381 tmp = get_unaligned_be32(bulk_reg); in rk817_read_props()
393 bulk_reg, 2); in rk817_read_props()
394 tmp = get_unaligned_be16(bulk_reg); in rk817_read_props()
403 bulk_reg, 2); in rk817_read_props()
404 tmp = (short int)get_unaligned_be16(bulk_reg); in rk817_read_props()
445 bulk_reg, 2); in rk817_read_props()
446 reg = get_unaligned_be16(bulk_reg); in rk817_read_props()
701 u8 bulk_reg[3]; in rk817_read_battery_nvram_values() local
706 RK817_GAS_GAUGE_DATA3, bulk_reg, 3); in rk817_read_battery_nvram_values()
709 charger->fcc_mah = get_unaligned_le24(bulk_reg); in rk817_read_battery_nvram_values()
733 RK817_GAS_GAUGE_BAT_R1, bulk_reg, 3); in rk817_read_battery_nvram_values()
736 charger->soc = get_unaligned_le24(bulk_reg); in rk817_read_battery_nvram_values()
750 u8 bulk_reg[4]; in rk817_read_or_set_full_charge_on_boot() local
770 bulk_reg, 2); in rk817_read_or_set_full_charge_on_boot()
771 tmp = get_unaligned_be16(bulk_reg); in rk817_read_or_set_full_charge_on_boot()
803 bulk_reg, 4); in rk817_read_or_set_full_charge_on_boot()
804 tmp = get_unaligned_be32(bulk_reg); in rk817_read_or_set_full_charge_on_boot()
824 bulk_reg, 2); in rk817_read_or_set_full_charge_on_boot()
825 tmp = get_unaligned_be16(bulk_reg); in rk817_read_or_set_full_charge_on_boot()
846 put_unaligned_be32(tmp, bulk_reg); in rk817_read_or_set_full_charge_on_boot()
848 bulk_reg, 4); in rk817_read_or_set_full_charge_on_boot()
855 put_unaligned_be32(tmp, bulk_reg); in rk817_read_or_set_full_charge_on_boot()
857 bulk_reg, 4); in rk817_read_or_set_full_charge_on_boot()
871 u8 bulk_reg[2]; in rk817_battery_init() local
897 put_unaligned_be16(tmp, bulk_reg); in rk817_battery_init()
899 bulk_reg, 2); in rk817_battery_init()
904 put_unaligned_be16(tmp, bulk_reg); in rk817_battery_init()
906 bulk_reg, 2); in rk817_battery_init()