Lines Matching refs:buffer

35 static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec,  in adxl372_decode_stream()  argument
38 const struct adxl372_fifo_data *enc_data = (const struct adxl372_fifo_data *)buffer; in adxl372_decode_stream()
40 buffer + sizeof(struct adxl372_fifo_data) + enc_data->fifo_byte_count; in adxl372_decode_stream()
55 buffer += sizeof(struct adxl372_fifo_data); in adxl372_decode_stream()
61 if ((uint8_t *)*fit >= buffer) { in adxl372_decode_stream()
62 sample_num = ((uint8_t *)*fit - buffer) / sample_set_size; in adxl372_decode_stream()
65 while (count < max_count && buffer < buffer_end) { in adxl372_decode_stream()
66 const uint8_t *sample_end = buffer; in adxl372_decode_stream()
70 if ((uintptr_t)buffer < *fit) { in adxl372_decode_stream()
72 buffer = sample_end; in adxl372_decode_stream()
80 adxl372_accel_convert_q31(&data->readings[count].x, buffer); in adxl372_decode_stream()
93 (buffer + buff_offset)); in adxl372_decode_stream()
112 (buffer + buff_offset)); in adxl372_decode_stream()
120 adxl372_accel_convert_q31(&data->readings[count].x, buffer); in adxl372_decode_stream()
126 (buffer + buff_offset)); in adxl372_decode_stream()
133 (buffer + buff_offset)); in adxl372_decode_stream()
140 buffer = sample_end; in adxl372_decode_stream()
149 static int adxl372_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_get_frame_count() argument
159 const struct adxl372_fifo_data *data = (const struct adxl372_fifo_data *)buffer; in adxl372_decoder_get_frame_count()
255 static int adxl372_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_decode() argument
258 const struct adxl372_xyz_accel_data *data = (const struct adxl372_xyz_accel_data *)buffer; in adxl372_decoder_decode()
262 return adxl372_decode_stream(buffer, chan_spec, fit, max_count, data_out); in adxl372_decoder_decode()
269 static bool adxl372_decoder_has_trigger(const uint8_t *buffer, enum sensor_trigger_type trigger) in adxl372_decoder_has_trigger() argument
271 const struct adxl372_fifo_data *data = (const struct adxl372_fifo_data *)buffer; in adxl372_decoder_has_trigger()