Home
last modified time | relevance | path

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

12

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dmediatek,mt6370-charger.yaml46 Use ADC channel to read VBUS, IBUS, IBAT, etc., info.
74 - const: ibat
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
Dlite5200_sleep.S261 SAVE_SPRN(IBAT##n##L, addr+2); \
262 SAVE_SPRN(IBAT##n##U, addr+3);
326 LOAD_SPRN(IBAT##n##L, addr+2); \
327 LOAD_SPRN(IBAT##n##U, addr+3);
/kernel/linux/linux-6.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);
/kernel/linux/linux-6.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),
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.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()
/kernel/linux/linux-5.10/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()
Dbd70528-charger.c49 *| | VRECHG_TH | | or IBAT > IFST/x |
50 *+----------------+ & IBAT < | | |
Dbq25890_charger.c86 u8 rbatcomp; /* IBAT sense resistor value */
87 u8 vclamp; /* IBAT compensation voltage limit */
877 init->rbatcomp = init->vclamp = 0; /* IBAT compensation disabled */ in bq25890_fw_read_u32_props()
D88pm860x_charger.c200 /* set precharge current, termination voltage, IBAT & TBAT monitor */ in start_precharge()
243 /* set IBAT & TBAT monitor */ in start_fastcharge()
/kernel/linux/linux-6.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
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s32/
Dmmu.c41 struct ppc_bat BATS[8][2]; /* 8 pairs of IBAT, DBAT */
109 * Set up one of the IBAT (block address translation) register pairs.
257 * On 603+, only set IBAT when _PAGE_EXEC is set
/kernel/linux/linux-5.10/include/linux/mfd/pcf50633/
Dmbc.h109 PCF50633_MBCS3_ILIM = 0x10, /* 1: Ibat > Icutoff */
/kernel/linux/linux-6.6/include/linux/mfd/pcf50633/
Dmbc.h109 PCF50633_MBCS3_ILIM = 0x10, /* 1: Ibat > Icutoff */
/kernel/linux/linux-5.10/Documentation/ABI/testing/
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
/kernel/linux/linux-6.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.
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dmediatek,mt6370.yaml42 measure range), VBAT, VSYS, CHG_VDDP, TS_BAT, IBUS, IBAT, and TEMP_JC.
/kernel/linux/linux-6.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()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_pr.c1493 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1530 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), false, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1531 (u32)sregs->u.s.ppc32.ibat[i]); in kvm_arch_vcpu_ioctl_set_sregs_pr()
1532 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), true, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1533 (u32)(sregs->u.s.ppc32.ibat[i] >> 32)); in kvm_arch_vcpu_ioctl_set_sregs_pr()
/kernel/linux/linux-6.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)

12