Searched refs:rsense (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | max1721x_battery.c | 65 unsigned int rsense; /* in tenths uOhm */ member 174 /* We need signed current, so must cast info->rsense to signed type */ in max1721x_battery_get_property() 178 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property() 183 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property() 367 /* rsense init */ in devm_w1_max1721x_add_device() 368 info->rsense = 0; in devm_w1_max1721x_add_device() 369 if (regmap_read(info->regmap, MAX1721X_REG_NRSENSE, &info->rsense)) { in devm_w1_max1721x_add_device() 374 if (!info->rsense) { in devm_w1_max1721x_add_device() 376 info->rsense = 1000; /* in regs in 10^-5 */ in devm_w1_max1721x_add_device() 378 dev_info(info->w1_dev, "RSense: %d mOhms.\n", info->rsense / 10 in devm_w1_max1721x_add_device() [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | max1721x_battery.c | 65 unsigned int rsense; /* in tenths uOhm */ member 174 /* We need signed current, so must cast info->rsense to signed type */ in max1721x_battery_get_property() 178 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property() 183 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property() 367 /* rsense init */ in devm_w1_max1721x_add_device() 368 info->rsense = 0; in devm_w1_max1721x_add_device() 369 if (regmap_read(info->regmap, MAX1721X_REG_NRSENSE, &info->rsense)) { in devm_w1_max1721x_add_device() 374 if (!info->rsense) { in devm_w1_max1721x_add_device() 376 info->rsense = 1000; /* in regs in 10^-5 */ in devm_w1_max1721x_add_device() 378 dev_info(info->w1_dev, "RSense: %d mOhms.\n", info->rsense / 10 in devm_w1_max1721x_add_device() [all...] |
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 99 * @rsense: Values of the internal and external sense resister in micro Ohms. 111 u32 rsense[2]; member 332 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw() 436 &iadc->rsense[IADC_EXT_RSENSE]); in iadc_rsense_read() 438 iadc->rsense[IADC_EXT_RSENSE] = IADC_INT_RSENSE_IDEAL_VALUE; in iadc_rsense_read() 440 if (!iadc->rsense[IADC_EXT_RSENSE]) { in iadc_rsense_read() 462 iadc->rsense[IADC_INT_RSENSE] = int_sense; in iadc_rsense_read() 523 iadc->rsense[IADC_INT_RSENSE], in iadc_probe() 524 iadc->rsense[IADC_EXT_RSENSE]); in iadc_probe()
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 98 * @rsense: Values of the internal and external sense resister in micro Ohms. 110 u32 rsense[2]; member 331 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw() 435 &iadc->rsense[IADC_EXT_RSENSE]); in iadc_rsense_read() 437 iadc->rsense[IADC_EXT_RSENSE] = IADC_INT_RSENSE_IDEAL_VALUE; in iadc_rsense_read() 439 if (!iadc->rsense[IADC_EXT_RSENSE]) { in iadc_rsense_read() 461 iadc->rsense[IADC_INT_RSENSE] = int_sense; in iadc_rsense_read() 522 iadc->rsense[IADC_INT_RSENSE], in iadc_probe() 523 iadc->rsense[IADC_EXT_RSENSE]); in iadc_probe()
|
/kernel/linux/linux-5.10/drivers/iio/temperature/ |
H A D | ltc2983.c | 112 /* cold junction for thermocouples and rsense for rtd's and thermistor's */ 581 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local 584 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan() 706 phandle = of_parse_phandle(child, "adi,rsense-handle", 0); in ltc2983_rtd_new() 708 dev_err(dev, "Property adi,rsense-handle missing or invalid"); in ltc2983_rtd_new() 741 if (of_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new() 742 /* Current rotation is only available with rsense sharing */ in ltc2983_rtd_new() 759 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be in ltc2983_rtd_new() 773 /* kelvin rsense*/ in ltc2983_rtd_new() 1079 struct ltc2983_rsense *rsense; ltc2983_r_sense_new() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/temperature/ |
H A D | ltc2983.c | 127 /* cold junction for thermocouples and rsense for rtd's and thermistor's */ 619 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local 622 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan() 760 ref = fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new() 762 dev_err(dev, "Property adi,rsense-handle missing or invalid"); in ltc2983_rtd_new() 795 if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new() 796 /* Current rotation is only available with rsense sharing */ in ltc2983_rtd_new() 813 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be in ltc2983_rtd_new() 827 /* kelvin rsense*/ in ltc2983_rtd_new() 1131 struct ltc2983_rsense *rsense; ltc2983_r_sense_new() local [all...] |
Completed in 8 milliseconds