Lines Matching refs:data_in

45 	int16_t data_in;  in adxl367_temp_convert_q31()  local
51 data_in = ((*((int8_t *)buff)) << 6) & 0x3FC0; in adxl367_temp_convert_q31()
58 data_in = ((int16_t)(*buff & 0x0F) << 8) | *(buff + 1); in adxl367_temp_convert_q31()
60 data_in = ((int16_t)(*buff) << 4) | (*(buff + 1) >> 4); in adxl367_temp_convert_q31()
63 data_in = (data_in << 2) & 0x3FFC; in adxl367_temp_convert_q31()
68 data_in = sys_le16_to_cpu(*((int16_t *)(buff))); in adxl367_temp_convert_q31()
69 if (ADXL367_FIFO_HDR_CHECK_TEMP(data_in)) { in adxl367_temp_convert_q31()
71 data_in &= 0x3FFF; in adxl367_temp_convert_q31()
73 data_in = (data_in << 2) & 0x3FFC; in adxl367_temp_convert_q31()
81 data_in = (int16_t)(((*tmp_buf >> 8) & 0xFF) | ((*tmp_buf << 8) & 0xFF00)); in adxl367_temp_convert_q31()
82 if (ADXL367_FIFO_HDR_CHECK_TEMP(data_in)) { in adxl367_temp_convert_q31()
84 data_in &= 0x3FFF; in adxl367_temp_convert_q31()
94 if (data_in & BIT(13)) { in adxl367_temp_convert_q31()
95 data_in |= ADXL367_COMPLEMENT; in adxl367_temp_convert_q31()
98 *out = ((data_in - ADXL367_TEMP_25C) / ADXL367_TEMP_SENSITIVITY in adxl367_temp_convert_q31()
106 int16_t data_in; in adxl367_accel_convert_q31() local
112 data_in = ((*((int8_t *)buff)) << 6) & 0x3FC0; in adxl367_accel_convert_q31()
119 data_in = ((int16_t)(*buff & 0x0F) << 8) | *(buff + 1); in adxl367_accel_convert_q31()
121 data_in = ((int16_t)(*buff) << 4) | (*(buff + 1) >> 4); in adxl367_accel_convert_q31()
124 data_in = (data_in << 2) & 0x3FFC; in adxl367_accel_convert_q31()
129 data_in = sys_le16_to_cpu(*((int16_t *)(buff))); in adxl367_accel_convert_q31()
130 if (ADXL367_FIFO_HDR_GET_ACCEL_AXIS(data_in) == axis) { in adxl367_accel_convert_q31()
132 data_in &= 0x3FFF; in adxl367_accel_convert_q31()
134 data_in = (data_in << 2) & 0x3FFC; in adxl367_accel_convert_q31()
142 data_in = (int16_t)(((*tmp_buf >> 8) & 0xFF) | ((*tmp_buf << 8) & 0xFF00)); in adxl367_accel_convert_q31()
143 if (ADXL367_FIFO_HDR_GET_ACCEL_AXIS(data_in) == axis) { in adxl367_accel_convert_q31()
145 data_in &= 0x3FFF; in adxl367_accel_convert_q31()
155 if (data_in & BIT(13)) { in adxl367_accel_convert_q31()
156 data_in |= ADXL367_COMPLEMENT; in adxl367_accel_convert_q31()
159 *out = data_in * SENSOR_QSCALE_FACTOR; in adxl367_accel_convert_q31()