raw_val           545 drivers/iio/accel/bmc150-accel-core.c 	__le16 raw_val;
raw_val           555 drivers/iio/accel/bmc150-accel-core.c 			       &raw_val, sizeof(raw_val));
raw_val           562 drivers/iio/accel/bmc150-accel-core.c 	*val = sign_extend32(le16_to_cpu(raw_val) >> chan->scan_type.shift,
raw_val           166 drivers/iio/accel/kxsd9.c 	__be16 raw_val;
raw_val           173 drivers/iio/accel/kxsd9.c 		ret = regmap_bulk_read(st->map, chan->address, &raw_val,
raw_val           174 drivers/iio/accel/kxsd9.c 				       sizeof(raw_val));
raw_val           177 drivers/iio/accel/kxsd9.c 		nval = be16_to_cpu(raw_val);
raw_val           132 drivers/iio/adc/da9150-gpadc.c static inline int da9150_gpadc_gpio_6v_voltage_now(int raw_val)
raw_val           135 drivers/iio/adc/da9150-gpadc.c 	return (6 * ((raw_val * 1000) + 500)) / 1024;
raw_val           138 drivers/iio/adc/da9150-gpadc.c static inline int da9150_gpadc_ibus_current_avg(int raw_val)
raw_val           141 drivers/iio/adc/da9150-gpadc.c 	return (4 * ((raw_val * 1000) + 500)) / 2048;
raw_val           144 drivers/iio/adc/da9150-gpadc.c static inline int da9150_gpadc_vbus_21v_voltage_now(int raw_val)
raw_val           147 drivers/iio/adc/da9150-gpadc.c 	return (21 * ((raw_val * 1000) + 500)) / 1024;
raw_val           150 drivers/iio/adc/da9150-gpadc.c static inline int da9150_gpadc_vsys_6v_voltage_now(int raw_val)
raw_val           153 drivers/iio/adc/da9150-gpadc.c 	return (3 * ((raw_val * 1000) + 500)) / 512;
raw_val           159 drivers/iio/adc/da9150-gpadc.c 	int raw_val;
raw_val           161 drivers/iio/adc/da9150-gpadc.c 	raw_val = da9150_gpadc_read_adc(gpadc, hw_chan);
raw_val           162 drivers/iio/adc/da9150-gpadc.c 	if (raw_val < 0)
raw_val           163 drivers/iio/adc/da9150-gpadc.c 		return raw_val;
raw_val           170 drivers/iio/adc/da9150-gpadc.c 		*val = da9150_gpadc_gpio_6v_voltage_now(raw_val);
raw_val           173 drivers/iio/adc/da9150-gpadc.c 		*val = da9150_gpadc_ibus_current_avg(raw_val);
raw_val           176 drivers/iio/adc/da9150-gpadc.c 		*val = da9150_gpadc_vbus_21v_voltage_now(raw_val);
raw_val           179 drivers/iio/adc/da9150-gpadc.c 		*val = da9150_gpadc_vsys_6v_voltage_now(raw_val);
raw_val           183 drivers/iio/adc/da9150-gpadc.c 		*val = raw_val;
raw_val           224 drivers/iio/adc/max9611.c 			       u16 *raw_val)
raw_val           257 drivers/iio/adc/max9611.c 	*raw_val = ret;
raw_val           491 drivers/iio/gyro/bmg160_core.c 	unsigned int raw_val;
raw_val           500 drivers/iio/gyro/bmg160_core.c 	ret = regmap_read(data->regmap, BMG160_REG_TEMP, &raw_val);
raw_val           508 drivers/iio/gyro/bmg160_core.c 	*val = sign_extend32(raw_val, 7);
raw_val           521 drivers/iio/gyro/bmg160_core.c 	__le16 raw_val;
raw_val           530 drivers/iio/gyro/bmg160_core.c 	ret = regmap_bulk_read(data->regmap, BMG160_AXIS_TO_REG(axis), &raw_val,
raw_val           531 drivers/iio/gyro/bmg160_core.c 			       sizeof(raw_val));
raw_val           539 drivers/iio/gyro/bmg160_core.c 	*val = sign_extend32(le16_to_cpu(raw_val), 15);
raw_val           193 drivers/iio/gyro/mpu3050-core.c 	__be16 raw_val[3];
raw_val           212 drivers/iio/gyro/mpu3050-core.c 		raw_val[i] = cpu_to_be16(mpu3050->calibration[i]);
raw_val           214 drivers/iio/gyro/mpu3050-core.c 	ret = regmap_bulk_write(mpu3050->map, MPU3050_X_OFFS_USR_H, raw_val,
raw_val           215 drivers/iio/gyro/mpu3050-core.c 				sizeof(raw_val));
raw_val           268 drivers/iio/gyro/mpu3050-core.c 	__be16 raw_val;
raw_val           324 drivers/iio/gyro/mpu3050-core.c 					       &raw_val, sizeof(raw_val));
raw_val           331 drivers/iio/gyro/mpu3050-core.c 			*val = be16_to_cpu(raw_val);
raw_val           338 drivers/iio/gyro/mpu3050-core.c 				       &raw_val,
raw_val           339 drivers/iio/gyro/mpu3050-core.c 				       sizeof(raw_val));
raw_val           346 drivers/iio/gyro/mpu3050-core.c 			*val = be16_to_cpu(raw_val);
raw_val           213 drivers/power/supply/axp288_fuel_gauge.c 	int raw_val, ret;
raw_val           279 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[BAT_TEMP], &raw_val);
raw_val           281 drivers/power/supply/axp288_fuel_gauge.c 		seq_printf(s, "axp288-batttemp : %d\n", raw_val);
raw_val           282 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[PMIC_TEMP], &raw_val);
raw_val           284 drivers/power/supply/axp288_fuel_gauge.c 		seq_printf(s, "axp288-pmictemp : %d\n", raw_val);
raw_val           285 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[SYSTEM_TEMP], &raw_val);
raw_val           287 drivers/power/supply/axp288_fuel_gauge.c 		seq_printf(s, "axp288-systtemp : %d\n", raw_val);
raw_val           288 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[BAT_CHRG_CURR], &raw_val);
raw_val           290 drivers/power/supply/axp288_fuel_gauge.c 		seq_printf(s, "axp288-chrgcurr : %d\n", raw_val);
raw_val           291 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[BAT_D_CURR], &raw_val);
raw_val           293 drivers/power/supply/axp288_fuel_gauge.c 		seq_printf(s, "axp288-dchrgcur : %d\n", raw_val);
raw_val           294 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[BAT_VOLT], &raw_val);
raw_val           296 drivers/power/supply/axp288_fuel_gauge.c 		seq_printf(s, "axp288-battvolt : %d\n", raw_val);
raw_val           378 drivers/power/supply/axp288_fuel_gauge.c 	int ret = 0, raw_val;
raw_val           380 drivers/power/supply/axp288_fuel_gauge.c 	ret = iio_read_channel_raw(info->iio_channel[BAT_VOLT], &raw_val);
raw_val           384 drivers/power/supply/axp288_fuel_gauge.c 	*vbatt = VOLTAGE_FROM_ADC(raw_val);