Lines Matching refs:resource
70 cy_rslt_t cyhal_crypto_reserve(CRYPTO_Type** base, cyhal_resource_inst_t *resource, cyhal_crypto_fe… in cyhal_crypto_reserve() argument
78 resource->type = CYHAL_RSC_CRYPTO; in cyhal_crypto_reserve()
79 resource->block_num = (uint8_t)i; in cyhal_crypto_reserve()
80 resource->channel_num = 0; in cyhal_crypto_reserve()
88 result = cyhal_hwmgr_reserve(resource); in cyhal_crypto_reserve()
109 void cyhal_crypto_free(CRYPTO_Type* base, cyhal_resource_inst_t *resource, cyhal_crypto_feature_t f… in cyhal_crypto_free() argument
111 if (_cyhal_crypto_features[resource->block_num][feature] != 0) in cyhal_crypto_free()
113 --_cyhal_crypto_features[resource->block_num][feature]; in cyhal_crypto_free()
117 if (!_cyhal_crypto_enabled(resource->block_num)) in cyhal_crypto_free()
132 cyhal_hwmgr_free(resource); in cyhal_crypto_free()
133 resource->type = CYHAL_RSC_INVALID; in cyhal_crypto_free()