Searched refs:target_cfg (Results 1 – 9 of 9) sorted by relevance
/Zephyr-Core-3.5.0/drivers/i2c/ |
D | i2c_gecko.c | 47 struct i2c_target_config *target_cfg; member 203 data->target_cfg = cfg; in i2c_gecko_target_register() 223 data->target_cfg = NULL; in i2c_gecko_target_unregister() 265 data->target_cfg->callbacks->read_requested(data->target_cfg, in i2c_gecko_isr() 269 data->target_cfg->callbacks->write_requested(data->target_cfg); in i2c_gecko_isr() 276 data->target_cfg->callbacks->write_received(data->target_cfg, rx_byte); in i2c_gecko_isr() 284 data->target_cfg->callbacks->read_processed(data->target_cfg, &tx_byte); in i2c_gecko_isr() 292 data->target_cfg->callbacks->stop(data->target_cfg); in i2c_gecko_isr()
|
D | i2c_npcx_controller.h | 94 struct i2c_target_config *target_cfg, uint8_t port); 107 struct i2c_target_config *target_cfg);
|
D | i2c_mcux_flexcomm.c | 38 struct i2c_target_config *target_cfg; member 196 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in i2c_target_transfer_callback() 206 target_cb->read_requested(data->target_cfg, &txVal); in i2c_target_transfer_callback() 208 target_cb->read_processed(data->target_cfg, &txVal); in i2c_target_transfer_callback() 218 target_cb->write_requested(data->target_cfg); in i2c_target_transfer_callback() 230 target_cb->write_received(data->target_cfg, rxVal); in i2c_target_transfer_callback() 237 target_cb->stop(data->target_cfg); in i2c_target_transfer_callback() 275 data->target_cfg = target_config; in mcux_flexcomm_target_register() 304 data->target_cfg = NULL; in mcux_flexcomm_target_unregister()
|
D | i2c_npcx_port.c | 148 struct i2c_target_config *target_cfg) in i2c_npcx_target_register() argument 152 if (!target_cfg) { in i2c_npcx_target_register() 161 return npcx_i2c_ctrl_target_register(config->i2c_ctrl, target_cfg, config->port); in i2c_npcx_target_register() 165 struct i2c_target_config *target_cfg) in i2c_npcx_target_unregister() argument 174 return npcx_i2c_ctrl_target_unregister(config->i2c_ctrl, target_cfg); in i2c_npcx_target_unregister()
|
D | i2c_xilinx_axi.c | 35 struct i2c_target_config *target_cfg; member 65 if (data->target_cfg) { in i2c_xilinx_axi_target_register() 70 data->target_cfg = cfg; in i2c_xilinx_axi_target_register() 105 if (!data->target_cfg) { in i2c_xilinx_axi_target_unregister() 115 data->target_cfg = NULL; in i2c_xilinx_axi_target_unregister() 148 if ((*data->target_cfg->callbacks->read_requested)(data->target_cfg, in i2c_xilinx_axi_target_isr() 158 if ((*data->target_cfg->callbacks->write_requested)(data->target_cfg)) { in i2c_xilinx_axi_target_isr() 168 (*data->target_cfg->callbacks->stop)(data->target_cfg); in i2c_xilinx_axi_target_isr() 181 if ((*data->target_cfg->callbacks->write_received)(data->target_cfg, in i2c_xilinx_axi_target_isr() 205 (*data->target_cfg->callbacks->read_processed)(data->target_cfg, in i2c_xilinx_axi_target_isr() [all …]
|
D | i2c_mcux_lpi2c.c | 56 struct i2c_target_config *target_cfg; member 309 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in mcux_lpi2c_slave_irq_handler() 338 ret = target_cb->write_requested(data->target_cfg); in mcux_lpi2c_slave_irq_handler() 346 ret = target_cb->write_received(data->target_cfg, in mcux_lpi2c_slave_irq_handler() 361 ret = target_cb->read_requested(data->target_cfg, in mcux_lpi2c_slave_irq_handler() 373 ret = target_cb->read_processed(data->target_cfg, in mcux_lpi2c_slave_irq_handler() 389 target_cb->stop(data->target_cfg); in mcux_lpi2c_slave_irq_handler() 423 data->target_cfg = target_config; in mcux_lpi2c_target_register() 456 data->target_cfg = NULL; in mcux_lpi2c_target_unregister()
|
D | i2c_ite_enhance.c | 139 struct i2c_target_config *target_cfg; member 969 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in target_i2c_isr_dma() 994 target_cb->buf_write_received(data->target_cfg, in target_i2c_isr_dma() 1007 target_cb->buf_read_requested(data->target_cfg, in target_i2c_isr_dma() 1026 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in target_i2c_isr_pio() 1033 ret = target_cb->write_requested(data->target_cfg); in target_i2c_isr_pio() 1037 if (!target_cb->read_requested(data->target_cfg, &val)) { in target_i2c_isr_pio() 1046 if (!target_cb->read_processed(data->target_cfg, &val)) { in target_i2c_isr_pio() 1052 ret = target_cb->write_received(data->target_cfg, val); in target_i2c_isr_pio() 1063 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in target_i2c_isr() [all …]
|
D | i2c_mchp_xec_v2.c | 102 struct i2c_target_config *target_cfg; member 251 if (data->target_cfg) { in i2c_xec_reset_config() 252 regs->OWN_ADDR = data->target_cfg->address; in i2c_xec_reset_config() 812 data->target_cfg->callbacks; in i2c_xec_bus_isr() 841 target_cb->stop(data->target_cfg); in i2c_xec_bus_isr() 850 target_cb->stop(data->target_cfg); in i2c_xec_bus_isr() 870 data->target_cfg, &val); in i2c_xec_bus_isr() 897 data->target_cfg); in i2c_xec_bus_isr() 941 data->target_cfg, &val); in i2c_xec_bus_isr() 958 ret = target_cb->write_received(data->target_cfg, val); in i2c_xec_bus_isr() [all …]
|
D | i2c_npcx_controller.c | 165 struct i2c_target_config *target_cfg; member 756 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in i2c_ctrl_target_isr() 766 target_cb->stop(data->target_cfg); in i2c_ctrl_target_isr() 786 target_cb->stop(data->target_cfg); in i2c_ctrl_target_isr() 810 target_cb->read_requested(data->target_cfg, &val); in i2c_ctrl_target_isr() 818 target_cb->write_requested(data->target_cfg); in i2c_ctrl_target_isr() 829 target_cb->read_processed(data->target_cfg, &val); in i2c_ctrl_target_isr() 836 target_cb->write_received(data->target_cfg, val); in i2c_ctrl_target_isr() 1062 struct i2c_target_config *target_cfg, uint8_t port) in npcx_i2c_ctrl_target_register() argument 1068 uint8_t addr = BIT(NPCX_SMBADDR1_SAEN) | target_cfg->address; in npcx_i2c_ctrl_target_register() [all …]
|