Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i2c/
Di2c_mcux_flexcomm.c381 const struct i2c_target_callbacks *target_cb; in i2c_target_transfer_callback() local
392 target_cb = target->target_cfg->callbacks; in i2c_target_transfer_callback()
397 if (target->first_read && target_cb->read_requested) { in i2c_target_transfer_callback()
399 target_cb->read_requested(target->target_cfg, &txVal); in i2c_target_transfer_callback()
400 } else if (target_cb->read_processed) { in i2c_target_transfer_callback()
401 target_cb->read_processed(target->target_cfg, &txVal); in i2c_target_transfer_callback()
410 if (target->first_write && target_cb->write_requested) { in i2c_target_transfer_callback()
411 target_cb->write_requested(target->target_cfg); in i2c_target_transfer_callback()
422 if (target->is_write && target_cb->write_received) { in i2c_target_transfer_callback()
423 target_cb->write_received(target->target_cfg, rxVal); in i2c_target_transfer_callback()
[all …]
Di2c_mcux_lpi2c.c318 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in mcux_lpi2c_slave_irq_handler() local
346 if (target_cb->write_requested) { in mcux_lpi2c_slave_irq_handler()
347 ret = target_cb->write_requested(data->target_cfg); in mcux_lpi2c_slave_irq_handler()
354 if (target_cb->write_received) { in mcux_lpi2c_slave_irq_handler()
355 ret = target_cb->write_received(data->target_cfg, in mcux_lpi2c_slave_irq_handler()
369 if (target_cb->read_requested) { in mcux_lpi2c_slave_irq_handler()
370 ret = target_cb->read_requested(data->target_cfg, in mcux_lpi2c_slave_irq_handler()
381 if (target_cb->read_processed) { in mcux_lpi2c_slave_irq_handler()
382 ret = target_cb->read_processed(data->target_cfg, in mcux_lpi2c_slave_irq_handler()
397 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.c850 const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks; in i2c_ctrl_target_isr() local
859 if (target_cb->stop) { in i2c_ctrl_target_isr()
860 target_cb->stop(data->target_cfg); in i2c_ctrl_target_isr()
890 if (target_cb->stop) { in i2c_ctrl_target_isr()
891 target_cb->stop(data->target_cfg); in i2c_ctrl_target_isr()
918 if (target_cb->read_requested) { in i2c_ctrl_target_isr()
919 target_cb->read_requested(data->target_cfg, &val); in i2c_ctrl_target_isr()
926 if (target_cb->write_requested) { in i2c_ctrl_target_isr()
927 target_cb->write_requested(data->target_cfg); in i2c_ctrl_target_isr()
937 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.c820 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; in cdns_i3c_target_read_rx_fifo() local
831 target_cb->write_received_cb(data->target_config, in cdns_i3c_target_read_rx_fifo()
847 target_cb->write_received_cb(data->target_config, rx_data); in cdns_i3c_target_read_rx_fifo()
2618 const struct i3c_target_callbacks *target_cb) in cdns_i3c_target_sdr_tx_thr_int_handler() argument
2624 if (target_cb != NULL && target_cb->read_processed_cb) { in cdns_i3c_target_sdr_tx_thr_int_handler()
2642 status = target_cb->read_processed_cb(data->target_config, in cdns_i3c_target_sdr_tx_thr_int_handler()
2662 status = target_cb->read_processed_cb(data->target_config, &byte); in cdns_i3c_target_sdr_tx_thr_int_handler()
2734 const struct i3c_target_callbacks *target_cb = in cdns_i3c_irq_handler() local
2743 if (target_cb != NULL && target_cb->write_received_cb != NULL) { in cdns_i3c_irq_handler()
2751 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 …]
Di3c_dw.c545 const struct i3c_target_callbacks *target_cb = in dw_i3c_end_xfer() local
552 target_cb->write_received_cb(data->target_config, in dw_i3c_end_xfer()
557 if (target_cb != NULL && target_cb->stop_cb != NULL) { in dw_i3c_end_xfer()
562 target_cb->stop_cb(data->target_config); in dw_i3c_end_xfer()
1372 const struct i3c_target_callbacks *target_cb = in i3c_dw_irq() local
1377 if (target_cb != NULL && target_cb->read_requested_cb != NULL) { in i3c_dw_irq()
1379 target_cb->read_requested_cb(data->target_config, NULL); in i3c_dw_irq()