Lines Matching defs:in
221 __be16 in;
224 ret = regmap_bulk_read(st->map, reg, &in, sizeof(in));
229 * This is also used to calculate current in which case fs comes in
232 *val = DIV_ROUND_CLOSEST_ULL(be16_to_cpu(in) * (u64)fs, U16_MAX);
241 u32 in;
244 in = *cached_raw;
246 ret = regmap_read(st->map, reg, &in);
251 *val = DIV_ROUND_CLOSEST(in * fs, U8_MAX);
421 * fet_short in the status register.
433 long in;
437 * We pass in full scale in 10 * micro (note that 40 is already
440 ret = ltc4282_read_voltage_word(st, reg, DECA * 40 * MILLI, &in);
444 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense);
452 long in;
455 ret = ltc4282_read_voltage_byte(st, reg, DECA * 40 * MILLI, &in);
459 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense);
727 u32 in;
730 in = DIV_ROUND_CLOSEST(val * U8_MAX, fs);
733 *cache_raw = in;
737 return regmap_write(st->map, reg, in);
829 * We are also clearing possible fault logs in reset_history. Clearing
833 * to clear them in here. For VDD, we need to clear under/over voltage
949 /* need to pass it in millivolt */
950 u32 in = DIV_ROUND_CLOSEST_ULL((u64)val * st->rsense, DECA * MICRO);
955 in);
958 in);
1185 * frequency is divided by twice the value in the register.
1236 * rsense that is defined in ILIM_ADJUST. This is specially important for power
1238 * value, that would overflow long in 32bit archs when reading back the max
1371 * means we need nano in the bindings. However, to make things easier to
1569 HWMON_CHANNEL_INFO(in,
1742 /* Yes, it's big but it is as specified in the datasheet */