/Zephyr-latest/drivers/sensor/maxim/max31790/ |
D | max31790_fan_speed.c | 22 static int max31790_fan_speed_sample_fetch(const struct device *dev, enum sensor_channel chan) in max31790_fan_speed_sample_fetch() argument 33 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in max31790_fan_speed_sample_fetch() 93 static int max31790_fan_speed_channel_get(const struct device *dev, enum sensor_channel chan, in max31790_fan_speed_channel_get() argument 98 if (chan != SENSOR_CHAN_RPM) { in max31790_fan_speed_channel_get() 99 LOG_ERR("%s: requesting unsupported channel %i", dev->name, chan); in max31790_fan_speed_channel_get()
|
/Zephyr-latest/drivers/sensor/microchip/mcp9600/ |
D | mcp9600.c | 61 static int mcp9600_sample_fetch(const struct device *dev, enum sensor_channel chan) in mcp9600_sample_fetch() argument 67 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP) { in mcp9600_sample_fetch() 88 static int mcp9600_channel_get(const struct device *dev, enum sensor_channel chan, in mcp9600_channel_get() argument 93 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in mcp9600_channel_get()
|
/Zephyr-latest/drivers/sensor/aosong/ags10/ |
D | ags10.c | 41 static int ags10_sample_fetch(const struct device *dev, enum sensor_channel chan) in ags10_sample_fetch() argument 43 if (chan != SENSOR_CHAN_VOC && chan != SENSOR_CHAN_ALL) { in ags10_sample_fetch() 69 static int ags10_channel_get(const struct device *dev, enum sensor_channel chan, in ags10_channel_get() argument 74 if (chan == SENSOR_CHAN_VOC) { in ags10_channel_get()
|
/Zephyr-latest/drivers/dma/ |
D | dma_silabs_ldma.c | 269 struct dma_silabs_channel *chan; in dma_silabs_irq_handler() local 276 chan = &data->dma_chan_table[chnum]; in dma_silabs_irq_handler() 280 if (chan->cb) { in dma_silabs_irq_handler() 281 chan->cb(dev, chan->user_data, chnum, -EIO); in dma_silabs_irq_handler() 289 if (chan->complete_callback_en) { in dma_silabs_irq_handler() 292 atomic_clear(&chan->busy); in dma_silabs_irq_handler() 295 if (chan->cb) { in dma_silabs_irq_handler() 296 chan->cb(dev, chan->user_data, chnum, status); in dma_silabs_irq_handler() 412 struct dma_silabs_channel *chan = &data->dma_chan_table[channel]; in dma_silabs_start() local 418 atomic_inc(&chan->busy); in dma_silabs_start() [all …]
|
/Zephyr-latest/drivers/sensor/ti/tmp1075/ |
D | tmp1075.c | 61 static int tmp1075_attr_set(const struct device *dev, enum sensor_channel chan, in tmp1075_attr_set() argument 64 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp1075_attr_set() 99 static int tmp1075_attr_get(const struct device *dev, enum sensor_channel chan, in tmp1075_attr_get() argument 102 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp1075_attr_get() 122 static int tmp1075_sample_fetch(const struct device *dev, enum sensor_channel chan) in tmp1075_sample_fetch() argument 128 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp1075_sample_fetch() 137 static int tmp1075_channel_get(const struct device *dev, enum sensor_channel chan, in tmp1075_channel_get() argument 143 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp1075_channel_get()
|
/Zephyr-latest/tests/drivers/sensor/generic/src/ |
D | main.c | 21 enum sensor_channel chan; member 115 zassert_equal(sensor_sample_fetch_chan(dev, chan_elements[0].chan), in ZTEST() 118 zassert_equal(sensor_channel_get(dev, chan_elements[0].chan, in ZTEST() 130 zassert_equal(sensor_channel_get(dev, chan_elements[i].chan, in ZTEST() 209 trigger_elements[i].trig.chan, in ZTEST() 216 trigger_elements[i].trig.chan, in ZTEST() 234 trigger_elements[i].trig.chan, in ZTEST() 245 trigger_elements[i].trig.chan, in ZTEST() 252 trigger_elements[i].trig.chan, in ZTEST()
|
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/ |
D | bis_broadcaster.c | 35 static void send_data(struct bt_iso_chan *chan) in send_data() argument 90 static void iso_connected_cb(struct bt_iso_chan *chan) in iso_connected_cb() argument 92 LOG_INF("ISO Channel %p connected", chan); in iso_connected_cb() 94 if (chan == default_chan) { in iso_connected_cb() 101 static void iso_disconnected_cb(struct bt_iso_chan *chan, uint8_t reason) in iso_disconnected_cb() argument 103 LOG_INF("ISO Channel %p disconnected (reason 0x%02x)", chan, reason); in iso_disconnected_cb() 105 if (chan == default_chan) { in iso_disconnected_cb() 112 static void sdu_sent_cb(struct bt_iso_chan *chan) in sdu_sent_cb() argument 119 send_data(chan); in sdu_sent_cb()
|
/Zephyr-latest/drivers/sensor/ti/tmp112/ |
D | tmp112.c | 66 enum sensor_channel chan, in tmp112_attr_set() argument 73 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp112_attr_set() 140 enum sensor_channel chan) in tmp112_sample_fetch() argument 146 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp112_sample_fetch() 164 enum sensor_channel chan, in tmp112_channel_get() argument 170 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp112_channel_get()
|
/Zephyr-latest/drivers/sensor/adi/adt7420/ |
D | adt7420.c | 46 enum sensor_channel chan, in adt7420_attr_set() argument 55 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in adt7420_attr_set() 112 enum sensor_channel chan) in adt7420_sample_fetch() argument 117 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || in adt7420_sample_fetch() 118 chan == SENSOR_CHAN_AMBIENT_TEMP); in adt7420_sample_fetch() 130 enum sensor_channel chan, in adt7420_channel_get() argument 136 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in adt7420_channel_get()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/send_on_connect/src/ |
D | main_l2cap_send_on_connect.c | 57 static int chan_recv_cb(struct bt_l2cap_chan *chan, struct net_buf *buf) in chan_recv_cb() argument 59 (void)chan; in chan_recv_cb() 81 channel.chan.ops = &l2cap_ops; in accept() 82 *l2cap_chan = &channel.chan; in accept() 95 struct bt_l2cap_chan *chans[] = {&channel.chan, NULL}; in connect_l2cap_channel() 98 channel.chan.ops = &l2cap_ops; in connect_l2cap_channel() 106 err = bt_l2cap_chan_connect(default_conn, &channel.chan, server.psm); in connect_l2cap_channel()
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.c | 197 enum sensor_channel chan, in lsm6dso_accel_config() argument 251 enum sensor_channel chan, in lsm6dso_gyro_config() argument 269 enum sensor_channel chan, in lsm6dso_attr_set() argument 277 switch (chan) { in lsm6dso_attr_set() 279 return lsm6dso_accel_config(dev, chan, attr, val); in lsm6dso_attr_set() 281 return lsm6dso_gyro_config(dev, chan, attr, val); in lsm6dso_attr_set() 291 return lsm6dso_shub_config(dev, chan, attr, val); in lsm6dso_attr_set() 358 enum sensor_channel chan) in lsm6dso_sample_fetch() argument 364 switch (chan) { in lsm6dso_sample_fetch() 406 static inline int lsm6dso_accel_get_channel(enum sensor_channel chan, in lsm6dso_accel_get_channel() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is.c | 189 enum sensor_channel chan, in lsm6dso16is_accel_config() argument 260 enum sensor_channel chan, in lsm6dso16is_gyro_config() argument 295 enum sensor_channel chan, in lsm6dso16is_attr_set() argument 303 switch (chan) { in lsm6dso16is_attr_set() 305 return lsm6dso16is_accel_config(dev, chan, attr, val); in lsm6dso16is_attr_set() 307 return lsm6dso16is_gyro_config(dev, chan, attr, val); in lsm6dso16is_attr_set() 317 return lsm6dso16is_shub_config(dev, chan, attr, val); in lsm6dso16is_attr_set() 384 enum sensor_channel chan) in lsm6dso16is_sample_fetch() argument 390 switch (chan) { in lsm6dso16is_sample_fetch() 433 static inline int lsm6dso16is_accel_get_channel(enum sensor_channel chan, in lsm6dso16is_accel_get_channel() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dux12/ |
D | lis2dux12.c | 105 static int lis2dux12_accel_config(const struct device *dev, enum sensor_channel chan, in lis2dux12_accel_config() argument 133 static int lis2dux12_attr_set(const struct device *dev, enum sensor_channel chan, in lis2dux12_attr_set() argument 136 switch (chan) { in lis2dux12_attr_set() 138 return lis2dux12_accel_config(dev, chan, attr, val); in lis2dux12_attr_set() 147 static int lis2dux12_sample_fetch(const struct device *dev, enum sensor_channel chan) in lis2dux12_sample_fetch() argument 153 switch (chan) { in lis2dux12_sample_fetch() 188 static inline int lis2dux12_get_channel(enum sensor_channel chan, struct sensor_value *val, in lis2dux12_get_channel() argument 191 switch (chan) { in lis2dux12_get_channel() 218 static int lis2dux12_channel_get(const struct device *dev, enum sensor_channel chan, in lis2dux12_channel_get() argument 223 return lis2dux12_get_channel(chan, val, data, data->gain); in lis2dux12_channel_get()
|
/Zephyr-latest/drivers/sensor/st/iis328dq/ |
D | iis328dq.c | 117 static inline void iis328dq_channel_get_acc(const struct device *dev, enum sensor_channel chan, in iis328dq_channel_get_acc() argument 125 switch (chan) { in iis328dq_channel_get_acc() 146 static int iis328dq_channel_get(const struct device *dev, enum sensor_channel chan, in iis328dq_channel_get() argument 149 switch (chan) { in iis328dq_channel_get() 154 iis328dq_channel_get_acc(dev, chan, val); in iis328dq_channel_get() 227 static int iis328dq_dev_config(const struct device *dev, enum sensor_channel chan, in iis328dq_dev_config() argument 238 if (chan != SENSOR_CHAN_ACCEL_XYZ) { in iis328dq_dev_config() 244 if (chan != SENSOR_CHAN_ACCEL_XYZ) { in iis328dq_dev_config() 258 static int iis328dq_attr_set(const struct device *dev, enum sensor_channel chan, in iis328dq_attr_set() argument 261 switch (chan) { in iis328dq_attr_set() [all …]
|
/Zephyr-latest/drivers/sensor/st/stts751/ |
D | stts751.c | 33 enum sensor_channel chan) in stts751_sample_fetch() argument 38 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in stts751_sample_fetch() 58 enum sensor_channel chan, in stts751_channel_get() argument 63 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in stts751_channel_get() 114 enum sensor_channel chan, in stts751_attr_set() argument 118 if (chan != SENSOR_CHAN_ALL) { in stts751_attr_set()
|
/Zephyr-latest/drivers/sensor/st/lps2xdf/ |
D | lps2xdf.c | 65 static int lps2xdf_attr_set(const struct device *dev, enum sensor_channel chan, in lps2xdf_attr_set() argument 68 if (chan != SENSOR_CHAN_ALL) { in lps2xdf_attr_set() 118 static int lps2xdf_channel_get(const struct device *dev, enum sensor_channel chan, in lps2xdf_channel_get() argument 123 if (chan == SENSOR_CHAN_PRESS) { in lps2xdf_channel_get() 125 } else if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in lps2xdf_channel_get() 134 static int lps2xdf_sample_fetch(const struct device *dev, enum sensor_channel chan) in lps2xdf_sample_fetch() argument 139 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in lps2xdf_sample_fetch() 141 return chip_api->sample_fetch(dev, chan); in lps2xdf_sample_fetch()
|
/Zephyr-latest/samples/subsys/zbus/dyn_channel/src/ |
D | main.c | 51 static void filter_cb(const struct zbus_channel *chan) in filter_cb() argument 60 __ASSERT_NO_MSG(chan == &pkt_chan); in filter_cb() 62 chan_message = zbus_chan_const_msg(chan); in filter_cb()
|
/Zephyr-latest/drivers/sensor/microchip/tcn75a/ |
D | tcn75a.c | 14 int tcn75a_sample_fetch(const struct device *dev, enum sensor_channel chan) in tcn75a_sample_fetch() argument 23 if ((chan != SENSOR_CHAN_ALL) && (chan != SENSOR_CHAN_AMBIENT_TEMP)) { in tcn75a_sample_fetch() 49 static int tcn75a_channel_get(const struct device *dev, enum sensor_channel chan, in tcn75a_channel_get() argument 55 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tcn75a_channel_get()
|
/Zephyr-latest/drivers/sensor/nordic/temp/ |
D | temp_nrf5.c | 42 enum sensor_channel chan) in temp_nrf5_sample_fetch() argument 53 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP) { in temp_nrf5_sample_fetch() 78 enum sensor_channel chan, in temp_nrf5_channel_get() argument 85 if (chan != SENSOR_CHAN_DIE_TEMP) { in temp_nrf5_channel_get()
|
/Zephyr-latest/drivers/sensor/st/lps22hb/ |
D | lps22hb.c | 33 enum sensor_channel chan) in lps22hb_sample_fetch() argument 39 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in lps22hb_sample_fetch() 75 enum sensor_channel chan, in lps22hb_channel_get() argument 80 if (chan == SENSOR_CHAN_PRESS) { in lps22hb_channel_get() 82 } else if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in lps22hb_channel_get()
|
/Zephyr-latest/drivers/sensor/ti/tmp007/ |
D | tmp007.c | 59 enum sensor_channel chan) in tmp007_sample_fetch() argument 65 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp007_sample_fetch() 81 enum sensor_channel chan, in tmp007_channel_get() argument 87 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp007_channel_get()
|
/Zephyr-latest/drivers/sensor/amg88xx/ |
D | amg88xx.c | 25 enum sensor_channel chan) in amg88xx_sample_fetch() argument 30 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in amg88xx_sample_fetch() 43 enum sensor_channel chan, in amg88xx_channel_get() argument 49 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in amg88xx_channel_get()
|
/Zephyr-latest/drivers/sensor/ti/tmag5273/ |
D | tmag5273.c | 431 static int tmag5273_attr_set(const struct device *dev, enum sensor_channel chan, in tmag5273_attr_set() argument 444 if (chan != SENSOR_CHAN_MAGN_XYZ) { in tmag5273_attr_set() 481 static int tmag5273_attr_get(const struct device *dev, enum sensor_channel chan, in tmag5273_attr_get() argument 494 if (chan != SENSOR_CHAN_MAGN_XYZ) { in tmag5273_attr_get() 531 static int tmag5273_sample_fetch(const struct device *dev, enum sensor_channel chan) in tmag5273_sample_fetch() argument 570 switch ((int)chan) { in tmag5273_sample_fetch() 640 LOG_ERR("unknown sensor channel %d", chan); in tmag5273_sample_fetch() 712 bool all_channels = (chan == SENSOR_CHAN_ALL); in tmag5273_sample_fetch() 713 bool all_xyz = all_channels || (chan == SENSOR_CHAN_MAGN_XYZ); in tmag5273_sample_fetch() 714 bool all_angle_magnitude = all_channels || ((int)chan == TMAG5273_CHAN_ANGLE_MAGNITUDE); in tmag5273_sample_fetch() [all …]
|
/Zephyr-latest/soc/mediatek/mt8xxx/ |
D | soc.h | 23 void mtk_adsp_mbox_set_handler(const struct device *mbox, uint32_t chan, 27 void mtk_adsp_mbox_signal(const struct device *mbox, uint32_t chan);
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x.c | 225 enum sensor_channel chan, in lsm6dsv16x_accel_config() argument 315 enum sensor_channel chan, in lsm6dsv16x_gyro_config() argument 356 enum sensor_channel chan, in lsm6dsv16x_attr_set() argument 364 switch (chan) { in lsm6dsv16x_attr_set() 366 return lsm6dsv16x_accel_config(dev, chan, attr, val); in lsm6dsv16x_attr_set() 368 return lsm6dsv16x_gyro_config(dev, chan, attr, val); in lsm6dsv16x_attr_set() 378 return lsm6dsv16x_shub_config(dev, chan, attr, val); in lsm6dsv16x_attr_set() 389 enum sensor_channel chan, in lsm6dsv16x_accel_get_config() argument 457 enum sensor_channel chan, in lsm6dsv16x_gyro_get_config() argument 516 enum sensor_channel chan, in lsm6dsv16x_attr_get() argument [all …]
|