Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i2c/
Di2c_nrfx_twis.c64 struct i2c_target_config *target_config; member
94 if (dev_data->target_config == NULL) { in shim_nrf_twis_enable()
121 struct i2c_target_config *target_config = dev_data->target_config; in shim_nrf_twis_handle_read_req() local
122 const struct i2c_target_callbacks *callbacks = target_config->callbacks; in shim_nrf_twis_handle_read_req()
128 if (callbacks->buf_read_requested(target_config, &buf, &buf_size)) { in shim_nrf_twis_handle_read_req()
164 struct i2c_target_config *target_config = dev_data->target_config; in shim_nrf_twis_handle_write_done() local
165 const struct i2c_target_callbacks *callbacks = target_config->callbacks; in shim_nrf_twis_handle_write_done()
168 callbacks->buf_write_received(target_config, dev_config->buf, nrfx_twis_rx_amount(twis)); in shim_nrf_twis_handle_write_done()
214 struct i2c_target_config *target_config) in shim_nrf_twis_target_register() argument
222 target_config->address, in shim_nrf_twis_target_register()
[all …]
Di2c_mcux_flexcomm.c375 struct i2c_target_config *target_config) in mcux_flexcomm_target_register() argument
384 if (!target_config) { in mcux_flexcomm_target_register()
393 target->target_cfg = target_config; in mcux_flexcomm_target_register()
415 struct i2c_target_config *target_config) in mcux_flexcomm_target_unregister() argument
422 target = mcux_flexcomm_find_target_by_address(data, target_config->address); in mcux_flexcomm_target_unregister()
Di2c_mcux_lpi2c.c411 struct i2c_target_config *target_config) in mcux_lpi2c_target_register() argument
427 if (!target_config) { in mcux_lpi2c_target_register()
436 data->target_cfg = target_config; in mcux_lpi2c_target_register()
440 slave_config.address0 = target_config->address; in mcux_lpi2c_target_register()
460 struct i2c_target_config *target_config) in mcux_lpi2c_target_unregister() argument
Di2c_andes_atciic100.c582 reg |= (dev_data->target_config->address & (TARGET_ADDR_MSK)); in i2c_cmpl_handler()
613 (dev_data->target_config, &val); in andes_i2c_target_event()
620 (dev_data->target_config); in andes_i2c_target_event()
629 (dev_data->target_config, val); in andes_i2c_target_event()
642 (dev_data->target_config, &val); in andes_i2c_target_event()
665 dev_data->target_config = cfg; in i2c_atciic100_target_register()
Di2c_bcm_iproc.c231 struct i2c_target_config *target_config = dd->target_cfg; in iproc_i2c_target_init() local
250 ret = iproc_i2c_target_set_address(dev, target_config->address); in iproc_i2c_target_init()
458 struct i2c_target_config *target_config) in iproc_i2c_target_register() argument
470 dd->target_cfg = target_config; in iproc_i2c_target_register()
Di2c_andes_atciic100.h238 struct i2c_target_config *target_config; member
/Zephyr-latest/samples/drivers/i2c/rtio_loopback/src/
Dmain.c61 static int sample_target_write_requested(struct i2c_target_config *target_config) in sample_target_write_requested() argument
67 static int sample_target_read_requested(struct i2c_target_config *target_config, uint8_t *val) in sample_target_read_requested() argument
74 static int sample_target_write_received(struct i2c_target_config *target_config, uint8_t val) in sample_target_write_received() argument
85 static int sample_target_read_processed(struct i2c_target_config *target_config, uint8_t *val) in sample_target_read_processed() argument
97 static void sample_target_buf_write_received(struct i2c_target_config *target_config, in sample_target_buf_write_received() argument
105 static int sample_target_buf_read_requested(struct i2c_target_config *target_config, in sample_target_buf_read_requested() argument
/Zephyr-latest/drivers/i3c/
Di3c_npcx.c225 struct i3c_target_config *target_config; member
2161 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; 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()
2268 data->target_config = cfg; in npcx_i3c_target_register()
2277 data->target_config = NULL; in npcx_i3c_target_unregister()
2640 struct i3c_target_config *target_config = data->target_config; in npcx_i3c_target_isr() local
2642 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; in npcx_i3c_target_isr()
2657 data->target_config, data->mdma_rx_buf, in npcx_i3c_target_isr()
2696 target_cb->stop_cb(data->target_config); in npcx_i3c_target_isr()
2745 data->target_config, NULL, NULL, NULL); in npcx_i3c_target_isr()
[all …]
Di3c_cdns.c582 struct i3c_target_config *target_config; member
811 const struct i3c_target_callbacks *target_cb = data->target_config->callbacks; in cdns_i3c_target_read_rx_fifo()
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()
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()
2556 data->target_config ? data->target_config->callbacks : NULL; in cdns_i3c_irq_handler()
2582 target_cb->stop_cb(data->target_config); in cdns_i3c_irq_handler()
2594 target_cb->stop_cb(data->target_config); in cdns_i3c_irq_handler()
2667 data->target_config, in cdns_i3c_irq_handler()
[all …]