/Zephyr-latest/drivers/i2c/ |
D | i2c_handlers.c | 30 const struct i2c_msg *msgs, in copy_msgs_and_transfer() 34 struct i2c_msg copy[num_msgs]; in copy_msgs_and_transfer() 52 struct i2c_msg *msgs, uint8_t num_msgs, in z_vrfy_i2c_transfer() 66 sizeof(struct i2c_msg))); in z_vrfy_i2c_transfer() 69 (struct i2c_msg *)msgs, in z_vrfy_i2c_transfer()
|
D | i2c_rtio_default.c | 15 static inline void i2c_msg_from_rx(const struct rtio_iodev_sqe *iodev_sqe, struct i2c_msg *msg) in i2c_msg_from_rx() 28 static inline void i2c_msg_from_tx(const struct rtio_iodev_sqe *iodev_sqe, struct i2c_msg *msg) in i2c_msg_from_tx() 41 static inline void i2c_msg_from_tiny_tx(const struct rtio_iodev_sqe *iodev_sqe, struct i2c_msg *msg) in i2c_msg_from_tiny_tx() 101 struct i2c_msg msgs[CONFIG_I2C_RTIO_FALLBACK_MSGS]; in i2c_iodev_submit_work_handler()
|
D | i2c_common.c | 39 void i2c_dump_msgs_rw(const struct device *dev, const struct i2c_msg *msgs, uint8_t num_msgs, in i2c_dump_msgs_rw() 63 const struct i2c_msg *msg = &msgs[i]; in i2c_dump_msgs_rw()
|
D | i2c_ll_stm32.h | 75 struct i2c_msg *msg; 97 struct i2c_msg msg, uint8_t *next_msg_flags,
|
D | i2c_test.c | 24 struct i2c_msg *msgs, in vnd_i2c_transfer()
|
D | i2c_bitbang.h | 69 struct i2c_msg *msgs, uint8_t num_msgs,
|
D | i2c_npcx_controller.h | 69 int npcx_i2c_ctrl_transfer(const struct device *i2c_dev, struct i2c_msg *msgs,
|
D | i2c_sam4l_twim.c | 92 struct i2c_msg *msgs; 213 struct i2c_msg *next_msg = NULL; in i2c_prepare_xfer_data() 242 struct i2c_msg *next_msg = &data->msgs[next_msg_idx]; in i2c_prepare_xfer_cmd() 287 struct i2c_msg *msg = &data->msgs[0]; in i2c_start_xfer() 382 struct i2c_msg *msg = &data->msgs[data->msg_cur_idx]; in i2c_prepare_next() 422 struct i2c_msg *msg = &data->msgs[data->msg_cur_idx]; in i2c_sam_twim_isr() 503 struct i2c_msg *msgs, in i2c_sam_twim_transfer()
|
D | i2c_smartbond.c | 33 struct i2c_msg *msgs; 218 const struct i2c_msg *const msg, uint16_t addr) in i2c_smartbond_set_target_address() 236 static inline int i2c_smartbond_set_msg_flags(struct i2c_msg *msgs, uint8_t num_msgs) in i2c_smartbond_set_msg_flags() 238 struct i2c_msg *current, *next; in i2c_smartbond_set_msg_flags() 257 static inline int i2c_smartbond_prep_transfer(const struct device *dev, struct i2c_msg *msgs, in i2c_smartbond_prep_transfer() 342 static int i2c_smartbond_transfer(const struct device *dev, struct i2c_msg *msgs, uint8_t num_msgs, in i2c_smartbond_transfer() 418 static int i2c_smartbond_transfer_cb(const struct device *dev, struct i2c_msg *msgs, in i2c_smartbond_transfer_cb()
|
D | i2c_sifive.c | 110 struct i2c_msg *msg, in i2c_sifive_write_msg() 159 struct i2c_msg *msg, in i2c_sifive_read_msg() 267 struct i2c_msg *msgs, in i2c_sifive_transfer()
|
D | i2c_mcux.c | 44 struct i2c_msg *msgs; 144 static int i2c_mcux_transfer(const struct device *dev, struct i2c_msg *msgs, in i2c_mcux_transfer() 241 struct i2c_msg *msg = &data->msgs[data->msg]; in i2c_mcux_async_iter() 276 static int i2c_mcux_transfer_cb(const struct device *dev, struct i2c_msg *msgs, uint8_t num_msgs, in i2c_mcux_transfer_cb()
|
D | i2c_cc32xx.c | 77 struct i2c_msg msg; /* Cache msg for transfer state machine */ 115 struct i2c_msg *msg, in i2c_cc32xx_prime_transfer() 160 static int i2c_cc32xx_transfer(const struct device *dev, struct i2c_msg *msgs, in i2c_cc32xx_transfer()
|
D | i2c_bcm_iproc.c | 163 struct i2c_msg *msg; 524 static int iproc_i2c_check_status(const struct device *dev, uint16_t dev_addr, struct i2c_msg *msg) in iproc_i2c_check_status() 615 struct i2c_msg *msg = dd->msg; in iproc_i2c_read_valid_bytes() 636 struct i2c_msg *msg = dd->msg; in iproc_i2c_data_recv() 661 static int iproc_i2c_transfer_one(const struct device *dev, struct i2c_msg *msg, uint16_t dev_addr) in iproc_i2c_transfer_one() 767 static int iproc_i2c_transfer_multi(const struct device *dev, struct i2c_msg *msgs, in iproc_i2c_transfer_multi() 771 struct i2c_msg *msgs_chk = msgs; in iproc_i2c_transfer_multi() 804 struct i2c_msg *msg = dd->msg; in iproc_i2c_send_data()
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | emul_bmi160.h | 26 __maybe_unused static bool emul_bmi160_i2c_is_touching_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_touching_reg() 54 __maybe_unused static bool emul_bmi160_i2c_is_reading_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_reading_reg() 72 __maybe_unused static bool emul_bmi160_i2c_is_writing_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_writing_reg()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | i2c.h | 184 struct i2c_msg { struct 217 struct i2c_msg *msgs, 226 struct i2c_msg *msgs, 480 static inline bool i2c_is_read_op(const struct i2c_msg *msg) in i2c_is_read_op() 492 static inline bool i2c_is_stop_op(const struct i2c_msg *msg) in i2c_is_stop_op() 523 void i2c_dump_msgs_rw(const struct device *dev, const struct i2c_msg *msgs, uint8_t num_msgs, 540 static inline void i2c_dump_msgs(const struct device *dev, const struct i2c_msg *msgs, in i2c_dump_msgs() 584 static inline void i2c_xfer_stats(const struct device *dev, struct i2c_msg *msgs, in i2c_xfer_stats() 677 static inline void i2c_xfer_stats(const struct device *dev, struct i2c_msg *msgs, in i2c_xfer_stats() 790 struct i2c_msg *msgs, uint8_t num_msgs, [all …]
|
D | i2c_emul.h | 33 struct i2c_msg; 69 typedef int (*i2c_emul_transfer_t)(const struct emul *target, struct i2c_msg *msgs, int num_msgs,
|
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/common/ |
D | i2c_virtual.c | 86 struct i2c_msg *msg, in i2c_virtual_msg_write() 120 static int i2c_virtual_msg_read(const struct device *dev, struct i2c_msg *msg, in i2c_virtual_msg_read() 147 #define OPERATION(msg) (((struct i2c_msg *) msg)->flags & I2C_MSG_RW_MASK) 149 static int i2c_virtual_transfer(const struct device *dev, struct i2c_msg *msg, in i2c_virtual_transfer() 153 struct i2c_msg *current, *next; in i2c_virtual_transfer()
|
/Zephyr-latest/tests/subsys/rtio/rtio_i2c/src/ |
D | main.cpp | 46 struct i2c_msg msg = { in ZTEST() 53 [&msg](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() 98 [&data](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() 124 struct i2c_msg msg = { in ZTEST() 131 [&msg](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() 228 struct i2c_msg msg[] = { in ZTEST() 249 [&msg](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() 293 int msg_idx = (struct i2c_msg *)cqe[i]->userdata - msg; in ZTEST()
|
D | blocking_emul.cpp | 17 DEFINE_FAKE_VALUE_FUNC(int, blocking_emul_i2c_transfer, const struct emul *, struct i2c_msg *, int,
|
/Zephyr-latest/drivers/led/ |
D | lp5569.c | 85 uint8_t i2c_msg[LP5569_NUM_LEDS + 1]; in lp5569_write_channels() local 91 i2c_msg[0] = LP5569_LED0_PWM + start_channel; in lp5569_write_channels() 92 memcpy(&i2c_msg[1], buf, num_channels); in lp5569_write_channels() 94 return i2c_write_dt(&config->bus, i2c_msg, i2c_len); in lp5569_write_channels()
|
/Zephyr-latest/include/zephyr/drivers/i2c/ |
D | rtio.h | 51 struct rtio_sqe *i2c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i2c_msg *msgs, 99 int i2c_rtio_transfer(struct i2c_rtio *ctx, struct i2c_msg *msgs, uint8_t num_msgs, uint16_t addr);
|
/Zephyr-latest/tests/subsys/rtio/rtio_i2c/include/ |
D | blocking_emul.hpp | 31 DECLARE_FAKE_VALUE_FUNC(int, blocking_emul_i2c_transfer, const struct emul *, struct i2c_msg *, int,
|
/Zephyr-latest/tests/drivers/sensor/bmi160/include/ |
D | checks.h | 15 static inline bool bmi160_i2c_is_touching_reg(struct i2c_msg *msgs, int num_msgs, int reg) in bmi160_i2c_is_touching_reg()
|
/Zephyr-latest/tests/drivers/sensor/bmi160/src/ |
D | i2c.c | 19 static int mock_i2c_transfer(const struct emul *target, struct i2c_msg *msgs, int num_msgs, in mock_i2c_transfer()
|
/Zephyr-latest/tests/boards/frdm_k64f/i2c/src/ |
D | i2c.c | 91 static struct i2c_msg msgs[2] = { { .buf = ®, .len = 1, .flags = I2C_MSG_WRITE }, 191 struct i2c_msg umsgs[2] = { { .buf = &ureg, .len = 1, .flags = I2C_MSG_WRITE }, in test_i2c_fxos8700_transfer_signal()
|