Searched refs:current_lsb (Results 1 – 2 of 2) sorted by relevance
| /drivers/hwmon/pmbus/ |
| A D | ina233.c | 23 static void calculate_coef(int *m, int *R, u32 current_lsb, int power_coef) in calculate_coef() argument 34 if (1000000 % current_lsb) { in calculate_coef() 45 scaled_m = div64_u64(1000000 * scale_coef, (u64)current_lsb * power_coef); in calculate_coef() 88 u32 current_lsb; in ina233_probe() local 137 current_lsb = max_current / 32768; in ina233_probe() 140 calculate_coef(&m, &R, current_lsb, 1); in ina233_probe() 145 calculate_coef(&m, &R, current_lsb, 25); in ina233_probe() 150 calibration = div64_u64(5120000000ULL, (u64)rshunt * current_lsb); in ina233_probe() 154 current_lsb, rshunt); in ina233_probe() 160 client->name, rshunt, current_lsb); in ina233_probe()
|
| /drivers/hwmon/ |
| A D | tps23861.c | 167 long raw_val, current_lsb; in tps23861_read_current() local 173 current_lsb = CURRENT_LSB_255; in tps23861_read_current() 175 current_lsb = CURRENT_LSB_250; in tps23861_read_current() 184 *val = (FIELD_GET(VOLTAGE_CURRENT_MASK, raw_val) * current_lsb) / 1000000; in tps23861_read_current()
|
Completed in 4 milliseconds