Home
last modified time | relevance | path

Searched full:ibat (Results 1 – 25 of 25) sorted by relevance

/Linux-v6.6/Documentation/devicetree/bindings/power/supply/
Dmediatek,mt6370-charger.yaml46 Use ADC channel to read VBUS, IBUS, IBAT, etc., info.
74 - const: ibat
/Linux-v6.6/arch/powerpc/platforms/52xx/
Dlite5200_sleep.S265 SAVE_SPRN(IBAT##n##L, addr+2); \
266 SAVE_SPRN(IBAT##n##U, addr+3);
331 LOAD_SPRN(IBAT##n##L, addr+2); \
332 LOAD_SPRN(IBAT##n##U, addr+3);
/Linux-v6.6/drivers/iio/adc/
Dab8500-gpadc.c100 * Virtual channel used only for ibat conversion to ampere.
101 * Battery current conversion (ibat) cannot be requested as a
163 #define AB8500_ADC_CH_IBAT_MIN (-6000) /* mA range measured by ADC for ibat */
165 #define AB8500_ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat */
174 * when dividing to get ibat gain.
388 int *ibat) in ab8500_gpadc_read() argument
591 if (ibat != NULL) { in ab8500_gpadc_read()
592 *ibat = (high_data2 << 8) | low_data2; in ab8500_gpadc_read()
595 "gpadc_conversion: ibat not stored\n"); in ab8500_gpadc_read()
782 /* Read IBAT calibration Data */ in ab8500_gpadc_read_calibration_data()
[all …]
Dmt6370-adc.c246 [MT6370_CHAN_IBAT] = "ibat",
280 MT6370_ADC_CHAN(IBAT, IIO_CURRENT, 9, 0),
Dmt6360-adc.c212 "usbid", "vbusdiv5", "vbusdiv2", "vsys", "vbat", "ibus", "ibat", "chg_vddp",
251 MT6360_ADC_CHAN(IBAT, IIO_CURRENT),
Dqcom-pm8xxx-xoadc.c318 XOADC_CHAN(IBAT, 0x00, 0x05, IIO_VOLTAGE, 1, 1, SCALE_DEFAULT, AMUX_RSV1),
/Linux-v6.6/drivers/power/supply/
D88pm860x_battery.c446 /* measure enable on IBAT, BAT_DET, CC. IBAT is depend on CC. */ in pm860x_init_battery()
716 int ibat; in calc_capacity() local
745 ret = measure_current(info, &ibat); in calc_capacity()
748 /* Calculate the capacity when discharging(ibat < 0) */ in calc_capacity()
749 if (ibat < 0) { in calc_capacity()
783 (ibat < 0) ? "discharging" : "charging", in calc_capacity()
D88pm860x_charger.c200 /* set precharge current, termination voltage, IBAT & TBAT monitor */ in start_precharge()
243 /* set IBAT & TBAT monitor */ in start_fastcharge()
Dbq25890_charger.c92 u8 rbatcomp; /* IBAT sense resistor value */
93 u8 vclamp; /* IBAT compensation voltage limit */
1370 init->rbatcomp = init->vclamp = 0; /* IBAT compensation disabled */ in bq25890_fw_read_u32_props()
Dltc4162-l-charger.c578 static DEVICE_ATTR_RO(ibat);
Dab8500_chargalg.c800 dev_dbg(di->dev, " Maximization Ibat (%duA) too high" in ab8500_chargalg_chg_curr_maxim()
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-class-power-ltc4162l18 What: /sys/class/power_supply/ltc4162-l/ibat
Dsysfs-bus-iio-adc-mt636049 Indicated MT6360 IBAT ADC
Dsysfs-class-power47 Reports an average IBAT current reading for the battery, over
70 Reports the maximum IBAT current allowed into the battery.
86 Reports an instant, single IBAT current reading for the
/Linux-v6.6/include/linux/mfd/pcf50633/
Dmbc.h109 PCF50633_MBCS3_ILIM = 0x10, /* 1: Ibat > Icutoff */
/Linux-v6.6/arch/powerpc/mm/book3s32/
Dmmu.c40 struct ppc_bat BATS[8][2]; /* 8 pairs of IBAT, DBAT */
112 * Set up one of the IBAT (block address translation) register pairs.
/Linux-v6.6/Documentation/devicetree/bindings/mfd/
Dmediatek,mt6370.yaml42 measure range), VBAT, VSYS, CHG_VDDP, TS_BAT, IBUS, IBAT, and TEMP_JC.
/Linux-v6.6/arch/powerpc/kvm/
Dbook3s_pr.c1481 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1518 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), false, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1519 (u32)sregs->u.s.ppc32.ibat[i]); in kvm_arch_vcpu_ioctl_set_sregs_pr()
1520 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), true, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1521 (u32)(sregs->u.s.ppc32.ibat[i] >> 32)); in kvm_arch_vcpu_ioctl_set_sregs_pr()
Dbook3s_32_mmu.c139 bat = &vcpu_book3s->ibat[i]; in kvmppc_mmu_book3s_32_xlate_bat()
Dbook3s_emulate.c660 bat = &vcpu_book3s->ibat[(sprn - SPRN_IBAT0U) / 2]; in kvmppc_find_bat()
663 bat = &vcpu_book3s->ibat[4 + ((sprn - SPRN_IBAT4U) / 2)]; in kvmppc_find_bat()
/Linux-v6.6/include/linux/
Dpower_supply.h680 * +-------> IBAT >----------------+
701 * the load, so instead we often try to measure the instantaneous IBAT (the
705 * OCV = VBAT - (IBAT * Ri)
/Linux-v6.6/arch/powerpc/include/asm/
Dkvm_book3s.h106 struct kvmppc_bat ibat[8]; member
/Linux-v6.6/arch/powerpc/include/uapi/asm/
Dkvm.h189 __u64 ibat[8]; member
/Linux-v6.6/tools/arch/powerpc/include/uapi/asm/
Dkvm.h189 __u64 ibat[8]; member
/Linux-v6.6/arch/powerpc/xmon/
Dppc-opc.c664 /* The BAT index number in an XFX form m[ft]ibat[lu] instruction. */