Home
last modified time | relevance | path

Searched refs:target_cb (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/i2c/
Di2c_mcux_flexcomm.c289 const struct i2c_target_callbacks *target_cb; in i2c_target_transfer_callback() local
300 target_cb = target->target_cfg->callbacks; in i2c_target_transfer_callback()
305 if (target->first_read && target_cb->read_requested) { in i2c_target_transfer_callback()
307 target_cb->read_requested(target->target_cfg, &txVal); in i2c_target_transfer_callback()
308 } else if (target_cb->read_processed) { in i2c_target_transfer_callback()
309 target_cb->read_processed(target->target_cfg, &txVal); in i2c_target_transfer_callback()
318 if (target->first_write && target_cb->write_requested) { in i2c_target_transfer_callback()
319 target_cb->write_requested(target->target_cfg); in i2c_target_transfer_callback()
330 if (target->is_write && target_cb->write_received) { in i2c_target_transfer_callback()
331 target_cb->write_received(target->target_cfg, rxVal); in i2c_target_transfer_callback()
[all …]
Di2c_mcux_lpi2c.c321 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in mcux_lpi2c_slave_irq_handler() local
349 if (target_cb->write_requested) { in mcux_lpi2c_slave_irq_handler()
350 ret = target_cb->write_requested(data->target_cfg); in mcux_lpi2c_slave_irq_handler()
357 if (target_cb->write_received) { in mcux_lpi2c_slave_irq_handler()
358 ret = target_cb->write_received(data->target_cfg, in mcux_lpi2c_slave_irq_handler()
372 if (target_cb->read_requested) { in mcux_lpi2c_slave_irq_handler()
373 ret = target_cb->read_requested(data->target_cfg, in mcux_lpi2c_slave_irq_handler()
384 if (target_cb->read_processed) { in mcux_lpi2c_slave_irq_handler()
385 ret = target_cb->read_processed(data->target_cfg, in mcux_lpi2c_slave_irq_handler()
400 if (target_cb->stop) { in mcux_lpi2c_slave_irq_handler()
[all …]
Di2c_mchp_xec_v2.c811 const struct i2c_target_callbacks *target_cb = in i2c_xec_bus_isr() local
840 if (target_cb->stop) { in i2c_xec_bus_isr()
841 target_cb->stop(data->target_cfg); in i2c_xec_bus_isr()
849 if (target_cb->stop) { in i2c_xec_bus_isr()
850 target_cb->stop(data->target_cfg); in i2c_xec_bus_isr()
868 if (target_cb->read_requested) { in i2c_xec_bus_isr()
869 target_cb->read_requested( in i2c_xec_bus_isr()
895 if (target_cb->write_requested) { in i2c_xec_bus_isr()
896 ret = target_cb->write_requested( in i2c_xec_bus_isr()
939 if (target_cb->read_processed) { in i2c_xec_bus_isr()
[all …]
Di2c_npcx_controller.c757 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in i2c_ctrl_target_isr() local
766 if (target_cb->stop) { in i2c_ctrl_target_isr()
767 target_cb->stop(data->target_cfg); in i2c_ctrl_target_isr()
793 if (target_cb->stop) { in i2c_ctrl_target_isr()
794 target_cb->stop(data->target_cfg); in i2c_ctrl_target_isr()
817 if (target_cb->read_requested) { in i2c_ctrl_target_isr()
818 target_cb->read_requested(data->target_cfg, &val); in i2c_ctrl_target_isr()
825 if (target_cb->write_requested) { in i2c_ctrl_target_isr()
826 target_cb->write_requested(data->target_cfg); in i2c_ctrl_target_isr()
836 if (target_cb->read_processed) { in i2c_ctrl_target_isr()
[all …]
Di2c_max32.c146 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in i2c_max32_target_callback() local
151 if (data->first_write && target_cb->write_requested) { in i2c_max32_target_callback()
152 target_cb->write_requested(data->target_cfg); in i2c_max32_target_callback()
161 if (target_cb->write_received) { in i2c_max32_target_callback()
164 target_cb->write_received(data->target_cfg, rxval); in i2c_max32_target_callback()
172 if (target_cb->read_requested) { in i2c_max32_target_callback()
173 target_cb->read_requested(data->target_cfg, &txval); in i2c_max32_target_callback()
176 if (target_cb->read_processed) { in i2c_max32_target_callback()
177 target_cb->read_processed(data->target_cfg, &txval); in i2c_max32_target_callback()
181 if (target_cb->stop) { in i2c_max32_target_callback()
[all …]
Di2c_ite_enhance.c992 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in target_i2c_isr_dma() local
1017 target_cb->buf_write_received(data->target_cfg, in target_i2c_isr_dma()
1023 target_cb->stop(data->target_cfg); in target_i2c_isr_dma()
1035 target_cb->buf_read_requested(data->target_cfg, in target_i2c_isr_dma()
1057 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in target_i2c_isr_pio() local
1064 ret = target_cb->write_requested(data->target_cfg); in target_i2c_isr_pio()
1068 if (!target_cb->read_requested(data->target_cfg, &val)) { in target_i2c_isr_pio()
1077 if (!target_cb->read_processed(data->target_cfg, &val)) { in target_i2c_isr_pio()
1083 ret = target_cb->write_received(data->target_cfg, val); in target_i2c_isr_pio()
1094 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in target_i2c_isr() local
[all …]
/Zephyr-latest/drivers/i3c/
Di3c_cdns.c811 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; in cdns_i3c_target_read_rx_fifo() local
822 target_cb->write_received_cb(data->target_config, in cdns_i3c_target_read_rx_fifo()
838 target_cb->write_received_cb(data->target_config, rx_data); in cdns_i3c_target_read_rx_fifo()
2441 const struct i3c_target_callbacks *target_cb) in cdns_i3c_target_sdr_tx_thr_int_handler() argument
2447 if (target_cb != NULL && target_cb->read_processed_cb) { in cdns_i3c_target_sdr_tx_thr_int_handler()
2465 status = target_cb->read_processed_cb(data->target_config, in cdns_i3c_target_sdr_tx_thr_int_handler()
2485 status = target_cb->read_processed_cb(data->target_config, &byte); in cdns_i3c_target_sdr_tx_thr_int_handler()
2555 const struct i3c_target_callbacks *target_cb = in cdns_i3c_irq_handler() local
2565 if (target_cb != NULL && target_cb->write_received_cb != NULL) { in cdns_i3c_irq_handler()
2573 cdns_i3c_target_sdr_tx_thr_int_handler(dev, target_cb); in cdns_i3c_irq_handler()
[all …]
Di3c_npcx.c2161 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; in npcx_i3c_target_xfer_end_handle() local
2217 if (target_cb && target_cb->buf_write_received_cb) { in npcx_i3c_target_xfer_end_handle()
2218 target_cb->buf_write_received_cb(data->target_config, data->mdma_rx_buf, in npcx_i3c_target_xfer_end_handle()
2642 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; in npcx_i3c_target_isr() local
2655 if ((target_cb != NULL) && (target_cb->buf_write_received_cb != NULL)) { in npcx_i3c_target_isr()
2656 target_cb->buf_write_received_cb( in npcx_i3c_target_isr()
2695 if ((target_cb != NULL) && (target_cb->stop_cb != NULL)) { in npcx_i3c_target_isr()
2696 target_cb->stop_cb(data->target_config); in npcx_i3c_target_isr()
2742 if ((target_cb != NULL) && in npcx_i3c_target_isr()
2743 (target_cb->buf_read_requested_cb != NULL)) { in npcx_i3c_target_isr()
[all …]