Lines Matching refs:chan_spec
348 static int icm42688_fifo_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_fifo_decode() argument
358 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in icm42688_fifo_decode()
390 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in icm42688_fifo_decode()
403 } else if (IS_ACCEL(chan_spec.chan_type) && has_accel) { in icm42688_fifo_decode()
424 } else if (IS_GYRO(chan_spec.chan_type) && has_gyro) { in icm42688_fifo_decode()
453 static int icm42688_one_shot_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_one_shot_decode() argument
468 if (max_count == 0 || chan_spec.chan_idx != 0) { in icm42688_one_shot_decode()
472 switch (chan_spec.chan_type) { in icm42688_one_shot_decode()
571 static int icm42688_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_decoder_decode() argument
578 return icm42688_fifo_decode(buffer, chan_spec, fit, max_count, data_out); in icm42688_decoder_decode()
580 return icm42688_one_shot_decode(buffer, chan_spec, fit, max_count, data_out); in icm42688_decoder_decode()
584 struct sensor_chan_spec chan_spec, in icm42688_decoder_get_frame_count() argument
590 if (chan_spec.chan_idx != 0) { in icm42688_decoder_get_frame_count()
595 switch (chan_spec.chan_type) { in icm42688_decoder_get_frame_count()
644 static int icm42688_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, in icm42688_decoder_get_size_info() argument
647 switch (chan_spec.chan_type) { in icm42688_decoder_get_size_info()