Searched refs:raw_val (Results 1 – 6 of 6) sorted by relevance
/linux-4.19.296/drivers/iio/adc/ |
D | da9150-gpadc.c | 136 static inline int da9150_gpadc_gpio_6v_voltage_now(int raw_val) in da9150_gpadc_gpio_6v_voltage_now() argument 139 return (6 * ((raw_val * 1000) + 500)) / 1024; in da9150_gpadc_gpio_6v_voltage_now() 142 static inline int da9150_gpadc_ibus_current_avg(int raw_val) in da9150_gpadc_ibus_current_avg() argument 145 return (4 * ((raw_val * 1000) + 500)) / 2048; in da9150_gpadc_ibus_current_avg() 148 static inline int da9150_gpadc_vbus_21v_voltage_now(int raw_val) in da9150_gpadc_vbus_21v_voltage_now() argument 151 return (21 * ((raw_val * 1000) + 500)) / 1024; in da9150_gpadc_vbus_21v_voltage_now() 154 static inline int da9150_gpadc_vsys_6v_voltage_now(int raw_val) in da9150_gpadc_vsys_6v_voltage_now() argument 157 return (3 * ((raw_val * 1000) + 500)) / 512; in da9150_gpadc_vsys_6v_voltage_now() 163 int raw_val; in da9150_gpadc_read_processed() local 165 raw_val = da9150_gpadc_read_adc(gpadc, hw_chan); in da9150_gpadc_read_processed() [all …]
|
D | max9611.c | 227 u16 *raw_val) in max9611_read_single() argument 260 *raw_val = ret; in max9611_read_single()
|
/linux-4.19.296/drivers/iio/gyro/ |
D | mpu3050-core.c | 192 __be16 raw_val[3]; in mpu3050_start_sampling() local 211 raw_val[i] = cpu_to_be16(mpu3050->calibration[i]); in mpu3050_start_sampling() 213 ret = regmap_bulk_write(mpu3050->map, MPU3050_X_OFFS_USR_H, raw_val, in mpu3050_start_sampling() 214 sizeof(raw_val)); in mpu3050_start_sampling() 267 __be16 raw_val; in mpu3050_read_raw() local 332 &raw_val, sizeof(raw_val)); in mpu3050_read_raw() 339 *val = (s16)be16_to_cpu(raw_val); in mpu3050_read_raw() 346 &raw_val, in mpu3050_read_raw() 347 sizeof(raw_val)); in mpu3050_read_raw() 354 *val = be16_to_cpu(raw_val); in mpu3050_read_raw()
|
D | bmg160_core.c | 502 unsigned int raw_val; in bmg160_get_temp() local 511 ret = regmap_read(data->regmap, BMG160_REG_TEMP, &raw_val); in bmg160_get_temp() 519 *val = sign_extend32(raw_val, 7); in bmg160_get_temp() 532 __le16 raw_val; in bmg160_get_axis() local 541 ret = regmap_bulk_read(data->regmap, BMG160_AXIS_TO_REG(axis), &raw_val, in bmg160_get_axis() 542 sizeof(raw_val)); in bmg160_get_axis() 550 *val = sign_extend32(le16_to_cpu(raw_val), 15); in bmg160_get_axis()
|
/linux-4.19.296/drivers/iio/accel/ |
D | kxsd9.c | 169 __be16 raw_val; in kxsd9_read_raw() local 176 ret = regmap_bulk_read(st->map, chan->address, &raw_val, in kxsd9_read_raw() 177 sizeof(raw_val)); in kxsd9_read_raw() 180 nval = be16_to_cpu(raw_val); in kxsd9_read_raw()
|
D | bmc150-accel-core.c | 560 __le16 raw_val; in bmc150_accel_get_axis() local 570 &raw_val, sizeof(raw_val)); in bmc150_accel_get_axis() 577 *val = sign_extend32(le16_to_cpu(raw_val) >> chan->scan_type.shift, in bmc150_accel_get_axis()
|