Home
last modified time | relevance | path

Searched refs:I2C_MSG_RW_MASK (Results 1 – 25 of 37) sorted by relevance

12

/Zephyr-latest/drivers/i2c/
Di2c_smartbond.c244 if ((current->flags & I2C_MSG_RW_MASK) != (next->flags & I2C_MSG_RW_MASK)) { in i2c_smartbond_set_msg_flags()
282 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in i2c_smartbond_tx()
360 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_smartbond_transfer()
401 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_smartbond_enable_msg_interrupts()
457 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in isr_tx()
521 if ((data->msgs->flags & I2C_MSG_RW_MASK) != I2C_MSG_READ) { in i2c_smartbond_isr()
Di2c_ifx_cat1.c299 if ((msg[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in ifx_cat1_i2c_transfer()
304 if ((msg[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in ifx_cat1_i2c_transfer()
310 ((msg[i + 1U].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ)) { in ifx_cat1_i2c_transfer()
354 if ((msg[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in ifx_cat1_i2c_transfer()
358 if ((msg[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in ifx_cat1_i2c_transfer()
Di2c_gd32.c215 data->current->flags &= ~I2C_MSG_RW_MASK; in i2c_gd32_handle_addsend()
337 data->current->flags &= ~I2C_MSG_RW_MASK; in i2c_gd32_xfer_begin()
425 if ((current->flags & I2C_MSG_RW_MASK) != in i2c_gd32_transfer()
426 (next->flags & I2C_MSG_RW_MASK)) { in i2c_gd32_transfer()
463 if ((data->current->flags & I2C_MSG_RW_MASK) != in i2c_gd32_transfer()
464 (msgs[itr].flags & I2C_MSG_RW_MASK)) { in i2c_gd32_transfer()
Di2c_sam_twi.c222 if ((msgs[0].flags & I2C_MSG_RW_MASK) != in i2c_sam_twi_transfer()
223 (msgs[1].flags & I2C_MSG_RW_MASK)) { in i2c_sam_twi_transfer()
228 if ((msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_sam_twi_transfer()
Di2c_numaker.c103 __ASSERT_NO_MSG((data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in m_numaker_i2c_master_xfer_msg_read_last_byte()
116 bool is_read_next = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_read_last_byte()
197 bool is_read_prev = (data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_end()
207 bool is_read_next = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_end()
372 is_read = (data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_numaker_transfer()
545 bool is_read = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_numaker_isr()
Di2c_bitbang.c238 byte0 |= (flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_bitbang_transfer()
248 if ((flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_bitbang_transfer()
Di2c_sam0.c155 ((data->msgs[0].flags & I2C_MSG_RW_MASK) == in i2c_sam0_isr()
156 (data->msgs[1].flags & I2C_MSG_RW_MASK)) && in i2c_sam0_isr()
429 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_sam0_transfer()
451 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_sam0_transfer()
487 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_sam0_transfer()
Di2c_gecko.c109 if ((msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_gecko_transfer()
117 if ((msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_gecko_transfer()
Di2c_imx.c184 byte0 |= (flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_imx_send_addr()
236 if ((msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_imx_transfer()
Di2c_dw.c417 if ((dw->xfr_flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_dw_isr()
423 if ((dw->xfr_flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_dw_isr()
683 if ((pflags & I2C_MSG_RW_MASK) != (dw->xfr_flags & I2C_MSG_RW_MASK)) { in i2c_dw_transfer()
689 if ((dw->xfr_flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_dw_transfer()
Di2c_ite_enhance.c878 if (((msgs[0].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) && in cq_mode_allowed()
883 if (((msgs[0].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) && in cq_mode_allowed()
891 if (((msgs[0].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) && in cq_mode_allowed()
908 if (((msgs[0].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) && in cq_mode_allowed()
918 ((msgs[1].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) && in cq_mode_allowed()
Di2c_sedi.c79 if ((msgs[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_sedi_api_full_io()
Di2c_esp32.c643 if ((current->flags & I2C_MSG_RW_MASK) != (next->flags & I2C_MSG_RW_MASK)) { in i2c_esp32_transfer()
684 if ((msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_esp32_transfer()
Di2c_sam4l_twim.c251 next_msg_is_read = ((next_msg->flags & I2C_MSG_RW_MASK) == in i2c_prepare_xfer_cmd()
325 if ((msg->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ && in i2c_start_xfer()
Di2c_cc32xx.c41 #define IS_I2C_MSG_WRITE(flags) ((flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE)
Di2c_sam_twihs.c205 if ((msgs[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_sam_twihs_transfer()
Di2c_sc18im704.c161 start[1] = addr | (msg->flags & I2C_MSG_RW_MASK); in i2c_sc18im_transfer_msg()
Di2c_rcar.c164 if ((msg->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_rcar_transfer_msg()
Di2c_cc13xx_cc26xx.c209 if ((msgs[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_cc13xx_cc26xx_transfer()
Di2c_ene_kb1200.c275 if ((msgs[i].flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_kb1200_transfer()
Di2c_ifx_xmc4.c198 cmd_type = ((msg[msg_index].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) ? in ifx_xmc4_i2c_transfer()
Di2c_mchp_mss.c223 if ((current->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in mss_i2c_transfer()
Di2c_ll_stm32.c140 #define OPERATION(msg) (((struct i2c_msg *) msg)->flags & I2C_MSG_RW_MASK)
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/common/
Di2c_virtual.c147 #define OPERATION(msg) (((struct i2c_msg *) msg)->flags & I2C_MSG_RW_MASK)
187 if ((current->flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_virtual_transfer()
/Zephyr-latest/drivers/usb/bc12/
Demul_bc12_pi3usb9201.c25 #define IS_I2C_MSG_WRITE(flags) ((flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE)
26 #define IS_I2C_MSG_READ(flags) ((flags & I2C_MSG_RW_MASK) == I2C_MSG_READ)

12