Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/i2c/
Di2c_ambiq.c42 struct k_sem transfer_sem; member
74 k_sem_give(&data->transfer_sem); in i2c_ambiq_isr()
95 if (k_sem_take(&data->transfer_sem, K_MSEC(I2C_TRANSFER_TIMEOUT_MSEC))) { in i2c_ambiq_read()
100 k_sem_reset(&data->transfer_sem); in i2c_ambiq_read()
130 if (k_sem_take(&data->transfer_sem, K_MSEC(I2C_TRANSFER_TIMEOUT_MSEC))) { in i2c_ambiq_write()
135 k_sem_reset(&data->transfer_sem); in i2c_ambiq_write()
280 .transfer_sem = Z_SEM_INITIALIZER(i2c_ambiq_data##n.transfer_sem, 0, 1), \
Di2c_esp32.c66 struct k_sem transfer_sem; member
257 k_sem_take(&data->transfer_sem, K_FOREVER); in i2c_esp32_recover()
259 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()
666 k_sem_take(&data->transfer_sem, K_FOREVER); in i2c_esp32_transfer()
697 k_sem_give(&data->transfer_sem); in i2c_esp32_transfer()
812 .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-Core-3.7.0/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-Core-3.7.0/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()
Dimx_usdhc.c81 struct k_sem transfer_sem; member
111 k_sem_give(&data->transfer_sem); in transfer_complete_cb()
455 k_sem_reset(&dev_data->transfer_sem); in imx_usdhc_transfer()
470 if (k_sem_take(&dev_data->transfer_sem, request->command_timeout)) { in imx_usdhc_transfer()
480 if (k_sem_take(&dev_data->transfer_sem, request->data_timeout)) { in imx_usdhc_transfer()
1037 return k_sem_init(&data->transfer_sem, 0, 1); in imx_usdhc_init()
/Zephyr-Core-3.7.0/drivers/mipi_dsi/
Ddsi_mcux_2l.c48 struct k_sem transfer_sem; member
77 k_sem_give(&data->transfer_sem); in dsi_mcux_dma_cb()
135 k_sem_take(&data->transfer_sem, K_FOREVER); in dsi_mcux_tx_color()
147 k_sem_give(&data->transfer_sem); in dsi_transfer_complete()
193 k_sem_take(&data->transfer_sem, K_FOREVER); in dsi_mcux_tx_color()
471 k_sem_init(&data->transfer_sem, 0, 1); in mcux_mipi_dsi_init()