Lines Matching refs:block_num
249 return (_CYHAL_SDXX_SEMA_USED == _cyhal_sdxx_semaphore_status[sdxx->resource.block_num]); in _cyhal_sdxx_is_smfr_ready_for_set()
255 return (_CYHAL_SDXX_SEMA_USED == _cyhal_sdxx_semaphore_status[sdxx->resource.block_num]) || in _cyhal_sdxx_is_smfr_ready_for_get()
256 (_CYHAL_SDXX_SEMA_SET == _cyhal_sdxx_semaphore_status[sdxx->resource.block_num]); in _cyhal_sdxx_is_smfr_ready_for_get()
1044 uint8_t block_num = sdxx->resource.block_num; in _cyhal_sdxx_setup_smphr() local
1049 if (_CYHAL_SDXX_SEMA_NOT_INITED == _cyhal_sdxx_semaphore_status[block_num]) in _cyhal_sdxx_setup_smphr()
1056 ret = cy_rtos_init_semaphore(&(_cyhal_sdxx_semaphore_xfer_done[block_num]), 1, 0); in _cyhal_sdxx_setup_smphr()
1058 else if (_CYHAL_SDXX_SEMA_SET == _cyhal_sdxx_semaphore_status[block_num]) in _cyhal_sdxx_setup_smphr()
1063 ret = cy_rtos_get_semaphore(&(_cyhal_sdxx_semaphore_xfer_done[block_num]), 500, in_isr); in _cyhal_sdxx_setup_smphr()
1067 _cyhal_sdxx_semaphore_status[block_num] = _CYHAL_SDXX_SEMA_USED; in _cyhal_sdxx_setup_smphr()
1070 else if (_CYHAL_SDXX_SEMA_NOT_INITED != _cyhal_sdxx_semaphore_status[block_num]) in _cyhal_sdxx_setup_smphr()
1072 _cyhal_sdxx_semaphore_status[block_num] = _CYHAL_SDXX_SEMA_NOT_USED; in _cyhal_sdxx_setup_smphr()
1093 …ret = cy_rtos_get_semaphore(&(_cyhal_sdxx_semaphore_xfer_done[sdxx->resource.block_num]), 500, in_… in _cyhal_sdxx_waitfor_transfer_complete()
1096 _cyhal_sdxx_semaphore_status[sdxx->resource.block_num] = _CYHAL_SDXX_SEMA_NOT_USED; in _cyhal_sdxx_waitfor_transfer_complete()
1153 … cy_rtos_set_semaphore(&(_cyhal_sdxx_semaphore_xfer_done[sdxx->resource.block_num]), true); in _cyhal_sdhc_irq_handler()
1154 _cyhal_sdxx_semaphore_status[sdxx->resource.block_num] = _CYHAL_SDXX_SEMA_SET; in _cyhal_sdhc_irq_handler()
1358 cyhal_resource_inst_t rsc = { CYHAL_RSC_SDHC, map->block_num, map->channel_num }; in _cyhal_sdhc_init_common_hw()
1527 sdxx->base = _CYHAL_SDHC_BASE_ADDRESSES[sdxx->resource.block_num]; in _cyhal_sdhc_init_common_hw()
1530 _cyhal_sdxx_semaphore_status[sdxx->resource.block_num] = _CYHAL_SDXX_SEMA_NOT_INITED; in _cyhal_sdhc_init_common_hw()
1542 _cyhal_sdxx_config_structs[sdxx->resource.block_num] = sdxx; in _cyhal_sdhc_init_common_hw()
1544 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in _cyhal_sdhc_init_common_hw()
1721 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in cyhal_sdhc_free()
1724 if (_CYHAL_SDXX_SEMA_NOT_INITED != _cyhal_sdxx_semaphore_status[sdxx->resource.block_num]) in cyhal_sdhc_free()
1726 cy_rtos_deinit_semaphore(&(_cyhal_sdxx_semaphore_xfer_done[sdxx->resource.block_num])); in cyhal_sdhc_free()
1727 _cyhal_sdxx_semaphore_status[sdxx->resource.block_num] = _CYHAL_SDXX_SEMA_NOT_INITED; in cyhal_sdhc_free()
1732 _cyhal_sdxx_config_structs[sdxx->resource.block_num] = NULL; in cyhal_sdhc_free()
2053 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in cyhal_sdhc_enable_event()
2786 … cyhal_resource_inst_t sdhc = { CYHAL_RSC_SDHC, cmd_map->block_num, cmd_map->channel_num }; in _cyhal_sdio_init_common()
2824 sdxx->base = _CYHAL_SDHC_BASE_ADDRESSES[sdxx->resource.block_num]; in _cyhal_sdio_init_common()
2866 _cyhal_sdxx_config_structs[sdxx->resource.block_num] = sdxx; in _cyhal_sdio_init_common()
2869 _cyhal_sdxx_semaphore_status[sdxx->resource.block_num] = _CYHAL_SDXX_SEMA_NOT_INITED; in _cyhal_sdio_init_common()
2872 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in _cyhal_sdio_init_common()
2948 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in cyhal_sdio_free()
2952 if (_CYHAL_SDXX_SEMA_NOT_INITED != _cyhal_sdxx_semaphore_status[sdxx->resource.block_num]) in cyhal_sdio_free()
2954 cy_rtos_deinit_semaphore(&(_cyhal_sdxx_semaphore_xfer_done[sdxx->resource.block_num])); in cyhal_sdio_free()
2955 _cyhal_sdxx_semaphore_status[sdxx->resource.block_num] = _CYHAL_SDXX_SEMA_NOT_INITED; in cyhal_sdio_free()
2968 _cyhal_sdxx_config_structs[sdxx->resource.block_num] = NULL; in cyhal_sdio_free()
3341 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in cyhal_sdio_enable_event()