Searched refs:transfer_sem (Results 1 – 9 of 9) sorted by relevance
/Zephyr-latest/drivers/i2c/ |
D | i2c_ambiq.c | 54 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), \
|
D | i2c_esp32.c | 66 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), \
|
D | i2c_ifx_cat1.c | 49 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/ |
D | test_i2c_ram.c | 134 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/ |
D | mcux_sdif.c | 51 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()
|
D | sdhc_renesas_ra.h | 17 struct k_sem transfer_sem; member
|
D | sdhc_renesas_ra.c | 191 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); \
|
D | imx_usdhc.c | 82 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/ |
D | dsi_mcux_2l.c | 51 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()
|