Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i2c/
Di2c_ambiq.c54 struct k_sem transfer_sem; member
113 k_sem_give(&data->transfer_sem); in i2c_ambiq_isr()
134 if (k_sem_take(&data->transfer_sem, K_MSEC(I2C_TRANSFER_TIMEOUT_MSEC))) { in i2c_ambiq_read()
139 k_sem_reset(&data->transfer_sem); in i2c_ambiq_read()
169 if (k_sem_take(&data->transfer_sem, K_MSEC(I2C_TRANSFER_TIMEOUT_MSEC))) { in i2c_ambiq_write()
174 k_sem_reset(&data->transfer_sem); in i2c_ambiq_write()
441 .transfer_sem = Z_SEM_INITIALIZER(i2c_ambiq_data##n.transfer_sem, 0, 1), \
Di2c_esp32.c66 struct k_sem transfer_sem; member
258 k_sem_take(&data->transfer_sem, K_FOREVER); in i2c_esp32_recover()
260 k_sem_give(&data->transfer_sem); in i2c_esp32_recover()
338 k_sem_take(&data->transfer_sem, K_FOREVER); in i2c_esp32_configure()
344 k_sem_give(&data->transfer_sem); in i2c_esp32_configure()
664 k_sem_take(&data->transfer_sem, K_FOREVER); in i2c_esp32_transfer()
695 k_sem_give(&data->transfer_sem); in i2c_esp32_transfer()
823 .transfer_sem = Z_SEM_INITIALIZER(i2c_esp32_data_##idx.transfer_sem, 1, 1), \
Di2c_ifx_cat1.c49 struct k_sem transfer_sem; member
116 k_sem_give(&data->transfer_sem); in ifx_master_event_handler()
331 ret = k_sem_take(&data->transfer_sem, K_FOREVER); in ifx_cat1_i2c_transfer()
395 ret = k_sem_init(&data->transfer_sem, 0, 1); in ifx_cat1_i2c_init()
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/
Dtest_i2c_ram.c134 K_SEM_DEFINE(transfer_sem, 0, 1);
151 &transfer_sem), "I2C write to fram failed"); in ZTEST()
153 k_sem_take(&transfer_sem, K_FOREVER); in ZTEST()
164 i2c_ram_transfer_cb, &transfer_sem), in ZTEST()
167 k_sem_take(&transfer_sem, K_FOREVER); in ZTEST()
/Zephyr-latest/drivers/sdhc/
Dmcux_sdif.c51 struct k_sem transfer_sem; member
76 k_sem_give(&data->transfer_sem); in mcux_sdif_transfer_complete()
205 k_sem_init(&data->transfer_sem, 0, 1); in mcux_sdif_init()
289 k_sem_reset(&dev_data->transfer_sem); in mcux_sdif_transfer()
305 if (k_sem_take(&dev_data->transfer_sem, K_MSEC(cmd->timeout_ms))) { in mcux_sdif_transfer()
315 if (k_sem_take(&dev_data->transfer_sem, K_MSEC(data->timeout_ms))) { in mcux_sdif_transfer()
Dsdhc_renesas_ra.h17 struct k_sem transfer_sem; member
Dsdhc_renesas_ra.c191 k_sem_reset(&priv->sdmmc_event.transfer_sem); in sdhc_ra_request()
351 ret = k_sem_take(&priv->sdmmc_event.transfer_sem, K_MSEC(ra_cmd.timeout_ms)); in sdhc_ra_request()
379 ret = k_sem_take(&priv->sdmmc_event.transfer_sem, K_MSEC(ra_cmd.timeout_ms)); in sdhc_ra_request()
541 k_sem_init(&priv->sdmmc_event.transfer_sem, 1, 1); in sdhc_ra_init()
674 k_sem_give(&priv->sdmmc_event.transfer_sem); \
677 k_sem_give(&priv->sdmmc_event.transfer_sem); \
Dimx_usdhc.c82 struct k_sem transfer_sem; member
112 k_sem_give(&data->transfer_sem); in transfer_complete_cb()
456 k_sem_reset(&dev_data->transfer_sem); in imx_usdhc_transfer()
471 if (k_sem_take(&dev_data->transfer_sem, request->command_timeout)) { in imx_usdhc_transfer()
481 if (k_sem_take(&dev_data->transfer_sem, request->data_timeout)) { in imx_usdhc_transfer()
1046 return k_sem_init(&data->transfer_sem, 0, 1); in imx_usdhc_init()
/Zephyr-latest/drivers/mipi_dsi/
Ddsi_mcux_2l.c51 struct k_sem transfer_sem; member
82 k_sem_give(&data->transfer_sem); in dsi_mcux_dma_cb()
139 k_sem_take(&data->transfer_sem, K_FOREVER); in dsi_mcux_tx_color()
151 k_sem_give(&data->transfer_sem); in dsi_transfer_complete()
197 k_sem_take(&data->transfer_sem, K_FOREVER); in dsi_mcux_tx_color()
483 k_sem_init(&data->transfer_sem, 0, 1); in mcux_mipi_dsi_init()