Lines Matching refs:chan

318 static int lsm9ds1_accel_config(const struct device *dev, enum sensor_channel chan,  in lsm9ds1_accel_config()  argument
334 static int lsm9ds1_gyro_config(const struct device *dev, enum sensor_channel chan, in lsm9ds1_gyro_config() argument
350 static int lsm9ds1_attr_set(const struct device *dev, enum sensor_channel chan, in lsm9ds1_attr_set() argument
353 switch (chan) { in lsm9ds1_attr_set()
355 return lsm9ds1_accel_config(dev, chan, attr, val); in lsm9ds1_attr_set()
357 return lsm9ds1_gyro_config(dev, chan, attr, val); in lsm9ds1_attr_set()
414 static int lsm9ds1_sample_fetch(const struct device *dev, enum sensor_channel chan) in lsm9ds1_sample_fetch() argument
416 switch (chan) { in lsm9ds1_sample_fetch()
449 static inline int lsm9ds1_accel_get_channel(enum sensor_channel chan, struct sensor_value *val, in lsm9ds1_accel_get_channel() argument
454 switch (chan) { in lsm9ds1_accel_get_channel()
476 static int lsm9ds1_accel_channel_get(enum sensor_channel chan, struct sensor_value *val, in lsm9ds1_accel_channel_get() argument
479 return lsm9ds1_accel_get_channel(chan, val, data, data->acc_gain); in lsm9ds1_accel_channel_get()
489 static inline int lsm9ds1_gyro_get_channel(enum sensor_channel chan, struct sensor_value *val, in lsm9ds1_gyro_get_channel() argument
494 switch (chan) { in lsm9ds1_gyro_get_channel()
516 static int lsm9ds1_gyro_channel_get(enum sensor_channel chan, struct sensor_value *val, in lsm9ds1_gyro_channel_get() argument
519 return lsm9ds1_gyro_get_channel(chan, val, data, data->gyro_gain); in lsm9ds1_gyro_channel_get()
530 static int lsm9ds1_channel_get(const struct device *dev, enum sensor_channel chan, in lsm9ds1_channel_get() argument
535 switch (chan) { in lsm9ds1_channel_get()
540 lsm9ds1_accel_channel_get(chan, val, data); in lsm9ds1_channel_get()
546 lsm9ds1_gyro_channel_get(chan, val, data); in lsm9ds1_channel_get()