Lines Matching refs:data_in

43 static inline void adxl362_temp_convert_q31(q31_t *out, int16_t data_in)  in adxl362_temp_convert_q31()  argument
46 data_in &= 0xFFF; in adxl362_temp_convert_q31()
48 if (data_in & BIT(11)) { in adxl362_temp_convert_q31()
49 data_in |= ADXL362_COMPLEMENT; in adxl362_temp_convert_q31()
52 *out = ((data_in - ADXL362_TEMP_BIAS_LSB) / ADXL362_TEMP_LSB_PER_C in adxl362_temp_convert_q31()
56 static inline void adxl362_accel_convert_q31(q31_t *out, int16_t data_in, int32_t range) in adxl362_accel_convert_q31() argument
58 data_in &= 0xFFF; in adxl362_accel_convert_q31()
60 if (data_in & BIT(11)) { in adxl362_accel_convert_q31()
61 data_in |= ADXL362_COMPLEMENT; in adxl362_accel_convert_q31()
64 *out = data_in * qscale_factor[range]; in adxl362_accel_convert_q31()
75 int16_t data_in; in adxl362_decode_stream() local
119 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 6))); in adxl362_decode_stream()
122 if (ADXL362_FIFO_HDR_CHECK_TEMP(data_in)) { in adxl362_decode_stream()
124 data_in); in adxl362_decode_stream()
142 data_in = sys_le16_to_cpu(*((int16_t *)buffer)); in adxl362_decode_stream()
145 if (ADXL362_FIFO_HDR_CHECK_ACCEL_X(data_in)) { in adxl362_decode_stream()
147 data_in, enc_data->selected_range); in adxl362_decode_stream()
155 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 2))); in adxl362_decode_stream()
158 if (ADXL362_FIFO_HDR_CHECK_ACCEL_Y(data_in)) { in adxl362_decode_stream()
160 data_in, enc_data->selected_range); in adxl362_decode_stream()
167 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 4))); in adxl362_decode_stream()
170 if (ADXL362_FIFO_HDR_CHECK_ACCEL_Z(data_in)) { in adxl362_decode_stream()
172 data_in, enc_data->selected_range); in adxl362_decode_stream()
179 data_in = sys_le16_to_cpu(*((int16_t *)buffer)); in adxl362_decode_stream()
182 if (ADXL362_FIFO_HDR_CHECK_ACCEL_X(data_in)) { in adxl362_decode_stream()
184 data_in, enc_data->selected_range); in adxl362_decode_stream()
188 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 2))); in adxl362_decode_stream()
191 if (ADXL362_FIFO_HDR_CHECK_ACCEL_Y(data_in)) { in adxl362_decode_stream()
193 data_in, enc_data->selected_range); in adxl362_decode_stream()
197 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 4))); in adxl362_decode_stream()
200 if (ADXL362_FIFO_HDR_CHECK_ACCEL_Z(data_in)) { in adxl362_decode_stream()
202 data_in, enc_data->selected_range); in adxl362_decode_stream()