Lines Matching refs:raw
269 int16_t *raw; in fxos8700_sample_fetch() local
299 <= ARRAY_SIZE(data->raw), in fxos8700_sample_fetch()
302 raw = &data->raw[config->start_channel]; in fxos8700_sample_fetch()
305 *raw++ = (buffer[i] << 8) | (buffer[i+1]); in fxos8700_sample_fetch()
323 static void fxos8700_accel_convert(struct sensor_value *val, int16_t raw, in fxos8700_accel_convert() argument
340 micro_ms2 = (raw * SENSOR_G) >> frac_bits; in fxos8700_accel_convert()
350 static void fxos8700_magn_convert(struct sensor_value *val, int16_t raw) in fxos8700_magn_convert() argument
357 micro_g = raw * 1000; in fxos8700_magn_convert()
364 static void fxos8700_temp_convert(struct sensor_value *val, int8_t raw) in fxos8700_temp_convert() argument
371 micro_c = raw * 960 * 1000; in fxos8700_temp_convert()
386 int16_t *raw; in fxos8700_channel_get() local
425 raw = &data->raw[start_channel]; in fxos8700_channel_get()
427 fxos8700_accel_convert(val++, *raw++, config->range); in fxos8700_channel_get()
462 raw = &data->raw[start_channel]; in fxos8700_channel_get()
464 fxos8700_magn_convert(val++, *raw++); in fxos8700_channel_get()