Home
last modified time | relevance | path

Searched refs:msgs (Results 1 – 25 of 112) sorted by relevance

12345

/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.h26 __maybe_unused static bool emul_bmi160_i2c_is_touching_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_touching_reg() argument
32 if (msgs[0].len != 1) { in emul_bmi160_i2c_is_touching_reg()
35 if (i2c_is_read_op(msgs)) { in emul_bmi160_i2c_is_touching_reg()
39 uint8_t start_reg = msgs[0].buf[0]; in emul_bmi160_i2c_is_touching_reg()
40 uint8_t read_len = msgs[1].len; 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() argument
57 if (!emul_bmi160_i2c_is_touching_reg(msgs, num_msgs, reg)) { in emul_bmi160_i2c_is_reading_reg()
60 return i2c_is_read_op(&msgs[1]); 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() argument
75 if (!emul_bmi160_i2c_is_touching_reg(msgs, num_msgs, reg)) { in emul_bmi160_i2c_is_writing_reg()
[all …]
/Zephyr-latest/drivers/fuel_gauge/max17048/
Demul_max17048.c68 static int max17048_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in max17048_emul_transfer_i2c() argument
76 __ASSERT_NO_MSG(msgs && num_msgs); in max17048_emul_transfer_i2c()
78 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in max17048_emul_transfer_i2c()
81 if (msgs->flags & I2C_MSG_READ) { in max17048_emul_transfer_i2c()
85 if (msgs->len != 1) { in max17048_emul_transfer_i2c()
86 LOG_ERR("Unexpected msg0 length %d", msgs->len); in max17048_emul_transfer_i2c()
89 reg = msgs->buf[0]; in max17048_emul_transfer_i2c()
92 msgs++; in max17048_emul_transfer_i2c()
93 if (msgs->flags & I2C_MSG_READ) { in max17048_emul_transfer_i2c()
94 switch (msgs->len - 1) { in max17048_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/bbram/
Dbbram_microchip_mcp7940n_emul.c38 static int mcp7940n_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, int num_msgs, in mcp7940n_emul_transfer_i2c() argument
43 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in mcp7940n_emul_transfer_i2c()
49 if (FIELD_GET(I2C_MSG_READ, msgs->flags)) { in mcp7940n_emul_transfer_i2c()
53 if (msgs->len < 1) { in mcp7940n_emul_transfer_i2c()
54 LOG_ERR("Unexpected msg0 length %d", msgs->len); in mcp7940n_emul_transfer_i2c()
58 uint8_t regn = msgs->buf[0]; in mcp7940n_emul_transfer_i2c()
59 bool is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in mcp7940n_emul_transfer_i2c()
60 bool is_stop = FIELD_GET(I2C_MSG_STOP, msgs->flags) == 1; in mcp7940n_emul_transfer_i2c()
64 msgs++; in mcp7940n_emul_transfer_i2c()
65 is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in mcp7940n_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/charger/
Demul_sbs_charger.c69 static int sbs_charger_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in sbs_charger_emul_transfer_i2c() argument
80 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in sbs_charger_emul_transfer_i2c()
83 if (msgs->flags & I2C_MSG_READ) { in sbs_charger_emul_transfer_i2c()
87 if (msgs->len != 1) { in sbs_charger_emul_transfer_i2c()
88 LOG_ERR("Unexpected msg0 length %d", msgs->len); in sbs_charger_emul_transfer_i2c()
91 reg = msgs->buf[0]; in sbs_charger_emul_transfer_i2c()
94 msgs++; in sbs_charger_emul_transfer_i2c()
95 if (msgs->flags & I2C_MSG_READ) { in sbs_charger_emul_transfer_i2c()
96 switch (msgs->len - 1) { in sbs_charger_emul_transfer_i2c()
105 sys_put_le16(val, msgs->buf); in sbs_charger_emul_transfer_i2c()
[all …]
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/
Dtest_i2c_ram.c33 struct i2c_msg msgs[2]; variable
94 msgs[0].buf = tx_data; in ZTEST()
95 msgs[0].len = ARRAY_SIZE(tx_data); in ZTEST()
96 msgs[0].flags = I2C_MSG_WRITE | I2C_MSG_STOP; in ZTEST()
98 zassert_ok(i2c_transfer(i2c_dev, msgs, 1, RAM_ADDR), in ZTEST()
102 msgs[0].buf = rx_cmd; in ZTEST()
103 msgs[0].len = ARRAY_SIZE(rx_cmd); in ZTEST()
104 msgs[0].flags = I2C_MSG_WRITE; in ZTEST()
105 msgs[1].buf = rx_data; in ZTEST()
106 msgs[1].len = 7; in ZTEST()
[all …]
/Zephyr-latest/drivers/sensor/adi/adltc2990/
Dadltc2990_emul.c73 static int adltc2990_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in adltc2990_emul_transfer_i2c() argument
78 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in adltc2990_emul_transfer_i2c()
84 if (FIELD_GET(I2C_MSG_READ, msgs->flags)) { in adltc2990_emul_transfer_i2c()
88 if (msgs->len < 1) { in adltc2990_emul_transfer_i2c()
89 LOG_ERR("Unexpected msg0 length %d", msgs->len); in adltc2990_emul_transfer_i2c()
93 uint8_t regn = msgs->buf[0]; in adltc2990_emul_transfer_i2c()
94 bool is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in adltc2990_emul_transfer_i2c()
95 bool is_stop = FIELD_GET(I2C_MSG_STOP, msgs->flags) == 1; in adltc2990_emul_transfer_i2c()
99 msgs++; in adltc2990_emul_transfer_i2c()
100 is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in adltc2990_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c47 static int sb_tsi_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in sb_tsi_emul_transfer_i2c() argument
54 __ASSERT_NO_MSG(msgs && num_msgs); in sb_tsi_emul_transfer_i2c()
56 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in sb_tsi_emul_transfer_i2c()
59 if (msgs->flags & I2C_MSG_READ) { in sb_tsi_emul_transfer_i2c()
63 if (msgs->len != 1) { in sb_tsi_emul_transfer_i2c()
64 LOG_ERR("Unexpected msg0 length %d", msgs->len); in sb_tsi_emul_transfer_i2c()
67 reg = msgs->buf[0]; in sb_tsi_emul_transfer_i2c()
70 msgs++; in sb_tsi_emul_transfer_i2c()
71 if (msgs->flags & I2C_MSG_READ) { in sb_tsi_emul_transfer_i2c()
72 switch (msgs->len) { in sb_tsi_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/sensor/f75303/
Df75303_emul.c51 static int f75303_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in f75303_emul_transfer_i2c() argument
58 __ASSERT_NO_MSG(msgs && num_msgs); in f75303_emul_transfer_i2c()
60 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in f75303_emul_transfer_i2c()
63 if (msgs->flags & I2C_MSG_READ) { in f75303_emul_transfer_i2c()
67 if (msgs->len != 1) { in f75303_emul_transfer_i2c()
68 LOG_ERR("Unexpected msg0 length %d", msgs->len); in f75303_emul_transfer_i2c()
71 reg = msgs->buf[0]; in f75303_emul_transfer_i2c()
74 msgs++; in f75303_emul_transfer_i2c()
75 if (msgs->flags & I2C_MSG_READ) { in f75303_emul_transfer_i2c()
76 switch (msgs->len) { in f75303_emul_transfer_i2c()
[all …]
/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_emul.c71 static int ina237_emul_transfer_i2c(const struct emul *target, struct i2c_msg msgs[], int num_msgs, in ina237_emul_transfer_i2c() argument
77 if (!msgs || num_msgs < 1 || num_msgs > 2) { in ina237_emul_transfer_i2c()
82 if (msgs[0].flags & I2C_MSG_READ) { in ina237_emul_transfer_i2c()
89 if (msgs[0].len != 3) { in ina237_emul_transfer_i2c()
95 uint8_t reg = msgs[0].buf[0]; in ina237_emul_transfer_i2c()
96 uint16_t val = sys_get_be16(&msgs[0].buf[1]); in ina237_emul_transfer_i2c()
108 if ((msgs[1].flags & I2C_MSG_READ) == I2C_MSG_WRITE) { in ina237_emul_transfer_i2c()
112 uint8_t reg = msgs[0].buf[0]; in ina237_emul_transfer_i2c()
121 if (msgs[1].len == 2) { in ina237_emul_transfer_i2c()
122 sys_put_be16(reg_ptr->value, msgs[1].buf); in ina237_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/eeprom/
Deeprom_at2x_emul.c55 static int at24_emul_transfer(const struct emul *target, struct i2c_msg *msgs, in at24_emul_transfer() argument
84 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in at24_emul_transfer()
87 if (msgs->flags & I2C_MSG_READ) { in at24_emul_transfer()
91 data->cur_reg = msgs->buf[0]; in at24_emul_transfer()
92 len = MIN(msgs->len - 1, cfg->size - data->cur_reg); in at24_emul_transfer()
93 memcpy(&cfg->buf[data->cur_reg], &msgs->buf[1], len); in at24_emul_transfer()
96 if (msgs->flags & I2C_MSG_READ) { in at24_emul_transfer()
100 data->cur_reg = msgs->buf[0]; in at24_emul_transfer()
103 msgs++; in at24_emul_transfer()
104 if (!(msgs->flags & I2C_MSG_READ)) { in at24_emul_transfer()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_smartbond.c33 struct i2c_msg *msgs; member
236 static inline int i2c_smartbond_set_msg_flags(struct i2c_msg *msgs, uint8_t num_msgs) in i2c_smartbond_set_msg_flags() argument
240 current = msgs; 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() argument
264 ret = i2c_smartbond_set_msg_flags(msgs, num_msgs); in i2c_smartbond_prep_transfer()
269 i2c_smartbond_set_target_address(config, data, msgs, addr); in i2c_smartbond_prep_transfer()
271 data->msgs = msgs; in i2c_smartbond_prep_transfer()
282 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in i2c_smartbond_tx()
285 if (!data->msgs->buf || data->msgs->len == 0) { in i2c_smartbond_tx()
290 while ((data->transmit_cnt < data->msgs->len) && in i2c_smartbond_tx()
[all …]
Di2c_nrfx_twim.c37 struct i2c_msg *msgs, in i2c_nrfx_twim_transfer() argument
57 if (I2C_MSG_ADDR_10_BITS & msgs[i].flags) { in i2c_nrfx_twim_transfer()
62 bool dma_accessible = nrf_dma_accessible_check(&dev_config->twim, msgs[i].buf); in i2c_nrfx_twim_transfer()
71 && !(msgs[i].flags & I2C_MSG_STOP) in i2c_nrfx_twim_transfer()
72 && !(msgs[i + 1].flags & I2C_MSG_RESTART) in i2c_nrfx_twim_transfer()
73 && ((msgs[i].flags & I2C_MSG_READ) in i2c_nrfx_twim_transfer()
74 == (msgs[i + 1].flags & I2C_MSG_READ)); in i2c_nrfx_twim_transfer()
82 if ((msg_buf_used + msgs[i].len) > msg_buf_size) { in i2c_nrfx_twim_transfer()
90 msg_buf_used, msgs[i].len, in i2c_nrfx_twim_transfer()
95 if (!(msgs[i].flags & I2C_MSG_READ)) { in i2c_nrfx_twim_transfer()
[all …]
Di2c_emul.c88 static int i2c_emul_send_to_target(const struct device *dev, struct i2c_msg *msgs, uint8_t num_msgs) in i2c_emul_send_to_target() argument
98 if (i2c_is_read_op(&msgs[i])) { in i2c_emul_send_to_target()
107 if (len > msgs[i].len) { in i2c_emul_send_to_target()
111 memcpy(msgs[i].buf, ptr, len); in i2c_emul_send_to_target()
113 callbacks->buf_write_received(data->target_cfg, msgs[i].buf, in i2c_emul_send_to_target()
114 msgs[i].len); in i2c_emul_send_to_target()
116 if (i2c_is_stop_op(&msgs[i])) { in i2c_emul_send_to_target()
129 LOG_DBG(" msgs[%u].flags? 0x%02x", i, msgs[i].flags); in i2c_emul_send_to_target()
130 if (i2c_is_read_op(&msgs[i])) { in i2c_emul_send_to_target()
131 for (uint32_t j = 0; j < msgs[i].len; ++j) { in i2c_emul_send_to_target()
[all …]
Di2c_b91.c76 struct i2c_msg *msgs, in i2c_b91_transfer() argument
90 if (msgs[i].flags & I2C_MSG_ADDR_10_BITS) { in i2c_b91_transfer()
97 send_stop = msgs[i].flags & I2C_MSG_STOP ? 1 : 0; in i2c_b91_transfer()
101 if (msgs[i].flags & I2C_MSG_READ) { in i2c_b91_transfer()
102 status = i2c_master_read(addr, msgs[i].buf, msgs[i].len); in i2c_b91_transfer()
104 status = i2c_master_write(addr, msgs[i].buf, msgs[i].len); in i2c_b91_transfer()
Di2c_nios2.c63 static int i2c_nios2_transfer(const struct device *dev, struct i2c_msg *msgs, in i2c_nios2_transfer() argument
80 if (msgs->flags & I2C_MSG_RESTART) { in i2c_nios2_transfer()
87 if (msgs->flags & I2C_MSG_STOP) { in i2c_nios2_transfer()
97 if (msgs->flags & I2C_MSG_READ) { in i2c_nios2_transfer()
100 msgs->buf, msgs->len, in i2c_nios2_transfer()
105 msgs->buf, msgs->len, in i2c_nios2_transfer()
136 msgs++; in i2c_nios2_transfer()
Di2c_handlers.c30 const struct i2c_msg *msgs, in copy_msgs_and_transfer() argument
38 memcpy(copy, msgs, num_msgs * sizeof(*msgs)); in copy_msgs_and_transfer()
52 struct i2c_msg *msgs, uint8_t num_msgs, in z_vrfy_i2c_transfer() argument
65 K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(msgs, num_msgs, in z_vrfy_i2c_transfer()
69 (struct i2c_msg *)msgs, in z_vrfy_i2c_transfer()
/Zephyr-latest/tests/drivers/sensor/ina230/src/
Dina230_emul.c82 static int ina230_emul_transfer_i2c(const struct emul *target, struct i2c_msg msgs[], int num_msgs, in ina230_emul_transfer_i2c() argument
88 if (!msgs || num_msgs < 1 || num_msgs > 2) { in ina230_emul_transfer_i2c()
93 if (msgs[0].flags & I2C_MSG_READ) { in ina230_emul_transfer_i2c()
100 if (msgs[0].len != 3) { in ina230_emul_transfer_i2c()
106 uint8_t reg = msgs[0].buf[0]; in ina230_emul_transfer_i2c()
107 uint16_t val = sys_get_be16(&msgs[0].buf[1]); in ina230_emul_transfer_i2c()
119 if ((msgs[1].flags & I2C_MSG_READ) == I2C_MSG_WRITE) { in ina230_emul_transfer_i2c()
123 uint8_t reg = msgs[0].buf[0]; in ina230_emul_transfer_i2c()
132 if (msgs[1].len == 2) { in ina230_emul_transfer_i2c()
133 sys_put_be16(reg_ptr->value, msgs[1].buf); in ina230_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/fuel_gauge/bq27z746/
Demul_bq27z746.c274 static int bq27z746_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, int num_msgs, in bq27z746_emul_transfer_i2c() argument
280 __ASSERT_NO_MSG(msgs && num_msgs); in bq27z746_emul_transfer_i2c()
282 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in bq27z746_emul_transfer_i2c()
285 if (msgs->flags & I2C_MSG_READ) { in bq27z746_emul_transfer_i2c()
290 return emul_bq27z746_write(target, msgs->buf, msgs->len); in bq27z746_emul_transfer_i2c()
292 if (msgs->flags & I2C_MSG_READ) { in bq27z746_emul_transfer_i2c()
296 if (msgs->len != 1) { in bq27z746_emul_transfer_i2c()
297 LOG_ERR("Unexpected msg0 length %d", msgs->len); in bq27z746_emul_transfer_i2c()
300 reg = msgs->buf[0]; in bq27z746_emul_transfer_i2c()
303 msgs++; in bq27z746_emul_transfer_i2c()
[all …]
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_emul.c74 static int akm09918c_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in akm09918c_emul_transfer_i2c() argument
79 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in akm09918c_emul_transfer_i2c()
85 if (FIELD_GET(I2C_MSG_READ, msgs->flags)) { in akm09918c_emul_transfer_i2c()
89 if (msgs->len < 1) { in akm09918c_emul_transfer_i2c()
90 LOG_ERR("Unexpected msg0 length %d", msgs->len); in akm09918c_emul_transfer_i2c()
94 uint8_t regn = msgs->buf[0]; in akm09918c_emul_transfer_i2c()
95 bool is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in akm09918c_emul_transfer_i2c()
96 bool is_stop = FIELD_GET(I2C_MSG_STOP, msgs->flags) == 1; in akm09918c_emul_transfer_i2c()
100 msgs++; in akm09918c_emul_transfer_i2c()
101 is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in akm09918c_emul_transfer_i2c()
[all …]
/Zephyr-latest/tests/subsys/rtio/rtio_i2c/src/
Dmain.cpp53 [&msg](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() argument
55 zassert_equal(msg.len, msgs[0].len); in ZTEST()
56 zassert_mem_equal(msg.buf, msgs[0].buf, msg.len); in ZTEST()
57 zassert_equal(msg.flags, msgs[0].flags); in ZTEST()
98 [&data](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() argument
100 zassert_equal(ARRAY_SIZE(data), msgs[0].len); in ZTEST()
101 zassert_mem_equal(data, msgs[0].buf, msgs[0].len); in ZTEST()
102 zassert_equal(I2C_MSG_WRITE | I2C_MSG_STOP, msgs[0].flags); in ZTEST()
131 [&msg](const struct emul *, struct i2c_msg *msgs, int msg_count, int) { in ZTEST() argument
133 zassert_equal(msg.len, msgs[0].len); in ZTEST()
[all …]
/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/
Demul_sbs_gauge.c223 static int sbs_gauge_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in sbs_gauge_emul_transfer_i2c() argument
234 __ASSERT_NO_MSG(msgs && num_msgs); in sbs_gauge_emul_transfer_i2c()
236 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in sbs_gauge_emul_transfer_i2c()
239 if (msgs->flags & I2C_MSG_READ) { in sbs_gauge_emul_transfer_i2c()
243 if (msgs->len != 1) { in sbs_gauge_emul_transfer_i2c()
244 LOG_ERR("Unexpected msg0 length %d", msgs->len); in sbs_gauge_emul_transfer_i2c()
247 reg = msgs->buf[0]; in sbs_gauge_emul_transfer_i2c()
250 msgs++; in sbs_gauge_emul_transfer_i2c()
251 if (msgs->flags & I2C_MSG_READ) { in sbs_gauge_emul_transfer_i2c()
252 switch (msgs->len) { in sbs_gauge_emul_transfer_i2c()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Di2c.h217 struct i2c_msg *msgs,
226 struct i2c_msg *msgs,
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() argument
543 i2c_dump_msgs_rw(dev, msgs, num_msgs, addr, false); in i2c_dump_msgs()
584 static inline void i2c_xfer_stats(const struct device *dev, struct i2c_msg *msgs, in i2c_xfer_stats() argument
595 if (msgs[i].flags & I2C_MSG_READ) { in i2c_xfer_stats()
596 bytes_read += msgs[i].len; in i2c_xfer_stats()
598 bytes_written += msgs[i].len; in i2c_xfer_stats()
677 static inline void i2c_xfer_stats(const struct device *dev, struct i2c_msg *msgs, in i2c_xfer_stats() argument
[all …]
/Zephyr-latest/tests/drivers/sensor/bmi160/include/
Dchecks.h15 static inline bool bmi160_i2c_is_touching_reg(struct i2c_msg *msgs, int num_msgs, int reg) in bmi160_i2c_is_touching_reg() argument
18 __ASSERT_NO_MSG(msgs[0].len == 1); in bmi160_i2c_is_touching_reg()
20 uint8_t start_reg = msgs[0].buf[0]; in bmi160_i2c_is_touching_reg()
22 return (start_reg <= reg) && (reg < start_reg + msgs[1].len); in bmi160_i2c_is_touching_reg()
/Zephyr-latest/drivers/i3c/
Di3c_handlers.c41 const struct i3c_msg *msgs, in copy_i3c_msgs_and_transfer() argument
48 memcpy(copy, msgs, num_msgs * sizeof(*msgs)); in copy_i3c_msgs_and_transfer()
62 struct i3c_msg *msgs, uint8_t num_msgs) in z_vrfy_i3c_transfer() argument
75 K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(msgs, num_msgs, in z_vrfy_i3c_transfer()
79 (struct i3c_msg *)msgs, in z_vrfy_i3c_transfer()
Di3c_rtio.c22 struct rtio_sqe *i3c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i3c_msg *msgs, in i3c_rtio_copy() argument
37 if (msgs[i].flags & I3C_MSG_READ) { in i3c_rtio_copy()
38 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i3c_rtio_copy()
41 rtio_sqe_prep_write(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i3c_rtio_copy()
46 ((msgs[i].flags & I3C_MSG_STOP) ? RTIO_IODEV_I3C_STOP : 0) | in i3c_rtio_copy()
47 ((msgs[i].flags & I3C_MSG_RESTART) ? RTIO_IODEV_I3C_RESTART : 0) | in i3c_rtio_copy()
48 ((msgs[i].flags & I3C_MSG_HDR) ? RTIO_IODEV_I3C_HDR : 0) | in i3c_rtio_copy()
49 ((msgs[i].flags & I3C_MSG_NBCH) ? RTIO_IODEV_I3C_NBCH : 0) | in i3c_rtio_copy()
50 RTIO_IODEV_I3C_HDR_MODE_SET(msgs[i].hdr_mode) | in i3c_rtio_copy()
51 RTIO_IODEV_I3C_HDR_CMD_CODE_SET(msgs[i].hdr_cmd_code); in i3c_rtio_copy()
[all …]

12345