/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | ab8500_bmdata.c | 48 * temperature values to work. Factory resistance is 300 mOhm and the 49 * resistance values to the right are percentages of 300 mOhm. 52 { .temp = 40, .resistance = 40 /* 120 mOhm */ }, 53 { .temp = 30, .resistance = 45 /* 135 mOhm */ }, 54 { .temp = 20, .resistance = 55 /* 165 mOhm */ }, 55 { .temp = 10, .resistance = 77 /* 230 mOhm */ }, 56 { .temp = 00, .resistance = 108 /* 325 mOhm */ }, 57 { .temp = -10, .resistance = 158 /* 445 mOhm */ }, 58 { .temp = -20, .resistance = 198 /* 595 mOhm */ }, 200 * Internal resistance an in ab8500_bm_of_probe() [all...] |
H A D | samsung-sdi-battery.c | 8 * The BTI (battery type indicator) resistance in the code drops was very 9 * unreliable. The resistance listed here was obtained by simply measuring 10 * the BTI resistance with a multimeter on the battery. 23 * Voltage to internal resistance tables. The internal resistance varies 425 * Temperature to internal resistance scaling tables. 427 * "resistance" is the percentage of the resistance determined from the voltage 435 { .temp = 50, .resistance = 100 }, 436 { .temp = 40, .resistance [all...] |
H A D | sc27xx_fuel_gauge.c | 81 * @internal_resist: the battery internal resistance in mOhm 90 * @resist_table_len: the resistance table length 93 * @calib_resist: the real resistance of coulomb counter chip in uOhm 95 * @resist_table: resistance percent table with corresponding temperature 490 int vol, cur, ret, temp, resistance; in sc27xx_fgu_get_vbat_ocv() local 500 resistance = data->internal_resist; in sc27xx_fgu_get_vbat_ocv() 506 resistance = power_supply_temp2resist_simple(data->resist_table, in sc27xx_fgu_get_vbat_ocv() 508 resistance = data->internal_resist * resistance / 100; in sc27xx_fgu_get_vbat_ocv() 512 *val = vol * 1000 - cur * resistance; in sc27xx_fgu_get_vbat_ocv() [all...] |
H A D | power_supply_core.c | 714 fwnode_property_read_u32(fwnode, "factory-internal-resistance-micro-ohms", in power_supply_get_battery_info() 794 list = of_get_property(battery_np, "resistance-temp-table", &len); in power_supply_get_battery_info() 811 resist_table[index].resistance = be32_to_cpu(*list++); in power_supply_get_battery_info() 970 * power_supply_temp2resist_simple() - find the battery internal resistance 972 * @table: Pointer to battery resistance temperature table 976 * This helper function is used to look up battery internal resistance percent 977 * according to current temperature value from the resistance temperature table, 979 * resistance = the ideal battery internal resistance * percent / 100. 981 * Return: the battery internal resistance percen 1161 power_supply_battery_bti_in_range(struct power_supply_battery_info *info, int resistance) power_supply_battery_bti_in_range() argument [all...] |
H A D | ab8500_fg.c | 879 * ab8500_fg_battery_resistance() - Returns the battery inner resistance 883 * Returns battery inner resistance added with the fuel gauge resistor value 884 * to get the total resistance in the whole link from gnd to bat+ node 891 int resistance; in ab8500_fg_battery_resistance() local 894 * Determine the resistance at this voltage. First try VBAT-to-Ri else in ab8500_fg_battery_resistance() 896 * use the internal resistance. in ab8500_fg_battery_resistance() 899 resistance = power_supply_vbat2ri(bi, vbat_uncomp_uv, di->flags.charging); in ab8500_fg_battery_resistance() 901 resistance = resistance / 1000; in ab8500_fg_battery_resistance() 907 resistance in ab8500_fg_battery_resistance() [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | qcom-vadc-common.c | 17 * resistance. 538 s64 resistance = adc_code; in qcom_vadc7_scale_hw_calib_therm() local 545 resistance *= R_PU_100K; in qcom_vadc7_scale_hw_calib_therm() 546 resistance = div64_s64(resistance, RATIO_MAX_ADC7 - adc_code); in qcom_vadc7_scale_hw_calib_therm() 550 resistance, &result); in qcom_vadc7_scale_hw_calib_therm() 682 int64_t resistance; in qcom_adc_tm5_gen2_temp_res_scale() local 684 resistance = qcom_vadc_map_temp_voltage(adcmap7_100k, in qcom_adc_tm5_gen2_temp_res_scale() 687 return div64_s64(resistance * RATIO_MAX_ADC7, resistance in qcom_adc_tm5_gen2_temp_res_scale() [all...] |
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | qcom-vadc-common.c | 500 s64 resistance = adc_code; in qcom_vadc7_scale_hw_calib_therm() local 507 resistance *= R_PU_100K; in qcom_vadc7_scale_hw_calib_therm() 508 resistance = div64_s64(resistance, RATIO_MAX_ADC7 - adc_code); in qcom_vadc7_scale_hw_calib_therm() 512 resistance, &result); in qcom_vadc7_scale_hw_calib_therm()
|
/kernel/linux/linux-5.10/drivers/iio/chemical/ |
H A D | ams-iaq-core.c | 25 __be32 resistance; member 116 *val = be32_to_cpu(data->buffer.resistance); in ams_iaqcore_read_raw()
|
/kernel/linux/linux-6.6/drivers/iio/chemical/ |
H A D | ams-iaq-core.c | 25 __be32 resistance; member 116 *val = be32_to_cpu(data->buffer.resistance); in ams_iaqcore_read_raw()
|
/kernel/linux/linux-6.6/drivers/leds/flash/ |
H A D | leds-rt8515.c | 14 * RFS (resistance flash setting?) is 20 kOhm 15 * RTS (resistance torch setting?) is 39 kOhm 232 const char *resistance, in rt8515_determine_max_intensity() 242 fwnode_property_read_u32(rt->dev->fwnode, resistance, &res); in rt8515_determine_max_intensity() 249 resistance, max_ua_prop); in rt8515_determine_max_intensity() 230 rt8515_determine_max_intensity(struct rt8515 *rt, struct fwnode_handle *led, const char *resistance, const char *max_ua_prop, int hw_max, int *max_intensity_setting) rt8515_determine_max_intensity() argument
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | sc27xx_fuel_gauge.c | 81 * @internal_resist: the battery internal resistance in mOhm 90 * @resist_table_len: the resistance table length 93 * @calib_resist: the real resistance of coulomb counter chip in uOhm 95 * @resist_table: resistance percent table with corresponding temperature 490 int vol, cur, ret, temp, resistance; in sc27xx_fgu_get_vbat_ocv() local 500 resistance = data->internal_resist; in sc27xx_fgu_get_vbat_ocv() 506 resistance = power_supply_temp2resist_simple(data->resist_table, in sc27xx_fgu_get_vbat_ocv() 508 resistance = data->internal_resist * resistance / 100; in sc27xx_fgu_get_vbat_ocv() 512 *val = vol * 1000 - cur * resistance; in sc27xx_fgu_get_vbat_ocv() [all...] |
H A D | power_supply_core.c | 652 of_property_read_u32(battery_np, "factory-internal-resistance-micro-ohms", in power_supply_get_battery_info() 721 list = of_get_property(battery_np, "resistance-temp-table", &len); in power_supply_get_battery_info() 738 resist_table[index].resistance = be32_to_cpu(*list++); in power_supply_get_battery_info() 763 * power_supply_temp2resist_simple() - find the battery internal resistance 765 * @table: Pointer to battery resistance temperature table 769 * This helper function is used to look up battery internal resistance percent 770 * according to current temperature value from the resistance temperature table, 772 * resistance = the ideal battery internal resistance * percent / 100. 774 * Return: the battery internal resistance percen [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | power_supply.h | 350 int resistance; /* internal resistance percent */ member 355 int ri_uohm; /* Internal resistance in microohm */ 502 * @factory_internal_resistance_uohm: the internal resistance of the battery 503 * at fabrication time, expressed in microohms. This resistance will vary 505 * nominal ballpark figure. This internal resistance is given for the state 507 * @factory_internal_resistance_charging_uohm: the internal resistance of the 509 * The charging process will affect the internal resistance of the battery 510 * so this value provides a better resistance under these circumstances. 511 * This resistance wil [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/ |
H A D | dsi_pll_28nm.c | 45 u32 resistance; member 48 /* Loop filter resistance: */ 146 /* Configure the Loop filter resistance */ in dsi_pll_28nm_clk_set_rate() 151 DRM_DEV_ERROR(dev, "unable to get loop filter resistance. vco=%lu\n", in dsi_pll_28nm_clk_set_rate() 155 pll_write(base + REG_DSI_28nm_PHY_PLL_LPFR_CFG, lpfr_lut[i].resistance); in dsi_pll_28nm_clk_set_rate()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | power_supply.h | 340 int resistance; /* internal resistance percent */ member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/dsi/phy/ |
H A D | dsi_phy_28nm.c | 45 u32 resistance; member 48 /* Loop filter resistance: */ 133 /* Configure the Loop filter resistance */ in dsi_pll_28nm_clk_set_rate() 138 DRM_DEV_ERROR(dev, "unable to get loop filter resistance. vco=%lu\n", in dsi_pll_28nm_clk_set_rate() 142 dsi_phy_write(base + REG_DSI_28nm_PHY_PLL_LPFR_CFG, lpfr_lut[i].resistance); in dsi_pll_28nm_clk_set_rate()
|