Lines Matching defs:i2c_ctrl_data
151 struct i2c_ctrl_data { struct
152 struct k_sem lock_sem; /* mutex of i2c controller */
153 struct k_sem sync_sem; /* semaphore used for synchronization */
154 uint32_t bus_freq; /* operation freq of i2c */
155 enum npcx_i2c_oper_state oper_state; /* controller operation state */
156 int trans_err; /* error code during transaction */
157 struct i2c_msg *msg; /* cache msg for transaction state machine */
158 int is_write; /* direction of current msg */
159 uint8_t *ptr_msg; /* current msg pointer for FIFO read/write */
160 uint16_t addr; /* slave address of transaction */
161 uint8_t port; /* current port used the controller */
162 bool is_configured; /* is port configured? */
163 const struct npcx_i2c_timing_cfg *ptr_speed_confs;
165 struct i2c_target_config *target_cfg;
166 atomic_t flags;