Lines Matching refs:resource

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()
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()
1300 sdxx->dc_configured = (cfg->resource != NULL); in _cyhal_sdhc_init_common_hw()
1310 sdxx->resource.type = CYHAL_RSC_INVALID; in _cyhal_sdhc_init_common_hw()
1516 sdxx->resource = *(cfg->resource); in _cyhal_sdhc_init_common_hw()
1526 sdxx->resource = rsc; 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()
1607 .resource = NULL, in cyhal_sdhc_init_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()
1737 cyhal_hwmgr_free(&(sdxx->resource)); in cyhal_sdhc_free()
1746 if (sdxx->resource.type != CYHAL_RSC_INVALID) in cyhal_sdhc_free()
1748 sdxx->resource.type = CYHAL_RSC_INVALID; in cyhal_sdhc_free()
2053 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in cyhal_sdhc_enable_event()
2697 sdxx->dc_configured = (cfg->resource != NULL); in _cyhal_sdio_init_common()
2711 sdxx->resource.type = CYHAL_RSC_INVALID; in _cyhal_sdio_init_common()
2781 sdxx->resource = *(cfg->resource); in _cyhal_sdio_init_common()
2787 sdxx->resource = sdhc; in _cyhal_sdio_init_common()
2795 …result = _cyhal_utils_allocate_clock(&(sdxx->clock), &(sdxx->resource), CYHAL_CLOCK_BLOCK_PERIPHER… 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()
2931 .resource = NULL, in cyhal_sdio_init()
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()
2964 cyhal_hwmgr_free(&(sdxx->resource)); in cyhal_sdio_free()
2968 _cyhal_sdxx_config_structs[sdxx->resource.block_num] = NULL; in cyhal_sdio_free()
2974 if (sdxx->resource.type != CYHAL_RSC_INVALID) in cyhal_sdio_free()
2976 sdxx->resource.type = CYHAL_RSC_INVALID; in cyhal_sdio_free()
3341 _cyhal_system_irq_t irqn = _CYHAL_SDHC_IRQ_N[sdxx->resource.block_num]; in cyhal_sdio_enable_event()