Lines Matching refs:chan_spec
35 static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decode_stream() argument
44 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in adxl372_decode_stream()
76 switch (chan_spec.chan_type) { 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
154 if (chan_spec.chan_idx != 0) { in adxl372_decoder_get_frame_count()
163 switch (chan_spec.chan_type) { in adxl372_decoder_get_frame_count()
181 switch (chan_spec.chan_type) { in adxl372_decoder_get_frame_count()
222 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl372_decode_sample() argument
231 switch (chan_spec.chan_type) { in adxl372_decode_sample()
255 static int adxl372_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_decode() argument
262 return adxl372_decode_stream(buffer, chan_spec, fit, max_count, data_out); in adxl372_decoder_decode()
266 return adxl372_decode_sample(data, chan_spec, fit, max_count, data_out); in adxl372_decoder_decode()