Lines Matching defs:val
277 static u32 __convert_to_raw(const u64 val, const u32 resolution)
279 u64 __res = val * resolution;
287 static u32 __convert_to_raw_sign(const u64 val, const u32 resolution)
289 s64 __res = -(s32)val;
320 dev_dbg(&st->spi->dev, "Assign reg:0x%04X, val:0x%08X\n", reg,
1094 ret = of_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp);
1096 dev_err(&st->spi->dev, "Property adi,rsense-val-milli-ohms missing\n");
1140 const struct ltc2983_sensor *sensor, int *val)
1175 *val = __be32_to_cpu(st->temp);
1177 if (!(LTC2983_RES_VALID_MASK & *val)) {
1182 ret = sensor->fault_handler(st, *val);
1186 *val = sign_extend32((*val) & LTC2983_DATA_MASK, LTC2983_DATA_SIGN_BIT);
1192 int *val, int *val2, long mask)
1207 ret = ltc2983_chan_read(st, st->sensors[chan->address], val);
1214 *val = 1000;
1220 *val = 1000;