Searched refs:rsense (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | ltc4286.c | 73 u32 rsense; in ltc4286_probe() local 107 "shunt-resistor-micro-ohms", &rsense)) in ltc4286_probe() 108 rsense = 300; /* 0.3 mOhm if not set via DT */ in ltc4286_probe() 110 if (rsense == 0) in ltc4286_probe() 114 if (rsense > (INT_MAX / 1024)) in ltc4286_probe() 135 info->m[PSC_POWER] = 4 * rsense; in ltc4286_probe() 140 info->m[PSC_POWER] = rsense; in ltc4286_probe() 151 info->m[PSC_CURRENT_OUT] = 1024 * rsense; in ltc4286_probe()
|
H A D | xdp710.c | 64 int rsense; in xdp710_probe() local 93 rsense = micro_ohm_rsense[ret]; in xdp710_probe() 99 info->m[PSC_CURRENT_OUT] = DIV_ROUND_CLOSEST(m * rsense >> cs_rng, 1000); in xdp710_probe() 102 info->m[PSC_POWER] = DIV_ROUND_CLOSEST(m * rsense >> cs_rng, 1000); in xdp710_probe()
|
/openbmc/linux/drivers/power/supply/ |
H A D | max1721x_battery.c | 65 unsigned int rsense; /* in tenths uOhm */ member 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() 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 / 100); in devm_w1_max1721x_add_device()
|
/openbmc/linux/Documentation/devicetree/bindings/iio/temperature/ |
H A D | adi,ltc2983.yaml | 217 adi,rsense-handle: 229 adi,rsense-share: 265 - adi,rsense-handle 312 adi,rsense-handle: 320 adi,rsense-share: 362 - adi,rsense-handle 438 "^rsense@": 453 adi,rsense-val-milli-ohms: 457 - adi,rsense-val-milli-ohms 507 rsense2: rsense@2 { [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 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()
|
/openbmc/linux/drivers/iio/temperature/ |
H A D | ltc2983.c | 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() 1131 struct ltc2983_rsense *rsense; in ltc2983_r_sense_new() local 1135 rsense = devm_kzalloc(&st->spi->dev, sizeof(*rsense), GFP_KERNEL); in ltc2983_r_sense_new() 1136 if (!rsense) in ltc2983_r_sense_new() 1157 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024); in ltc2983_r_sense_new() 1160 rsense->sensor.assign_chan = ltc2983_r_sense_assign_chan; in ltc2983_r_sense_new() 1162 return &rsense->sensor; in ltc2983_r_sense_new()
|