Lines Matching refs:block
82 static cy_rslt_t _cyhal_get_bit_position(cyhal_resource_t type, uint8_t block, uint8_t channel, uin… in _cyhal_get_bit_position() argument
88 channel = block; in _cyhal_get_bit_position()
89 block = CYHAL_CLOCK_BLOCK_PATHMUX; in _cyhal_get_bit_position()
109 if (block < blocks) in _cyhal_get_bit_position()
111 *bitPosition = offsetRsc + blockOffsets[block] + channel; in _cyhal_get_bit_position()
112 if ((block + 1) < blocks) in _cyhal_get_bit_position()
114 offsetEndOfRsc = offsetRsc + blockOffsets[block + 1]; in _cyhal_get_bit_position()
121 *bitPosition = offsetRsc + block; in _cyhal_get_bit_position()
129 static inline cy_rslt_t _cyhal_is_set(const uint8_t* used, cyhal_resource_t type, uint8_t block, ui… in _cyhal_is_set() argument
132 cy_rslt_t status = _cyhal_get_bit_position(type, block, channel, &bitPosition); in _cyhal_is_set()
142 static inline cy_rslt_t _cyhal_set_bit(uint8_t* used, cyhal_resource_t type, uint8_t block, uint8_t… in _cyhal_set_bit() argument
145 cy_rslt_t status = _cyhal_get_bit_position(type, block, channel, &bitPosition); in _cyhal_set_bit()
155 static inline cy_rslt_t _cyhal_clear_bit(uint8_t* used, cyhal_resource_t type, uint8_t block, uint8… in _cyhal_clear_bit() argument
158 cy_rslt_t status = _cyhal_get_bit_position(type, block, channel, &bitPosition); in _cyhal_clear_bit()
224 uint8_t block = 0; in _cyhal_hwmgr_allocate_with_connection() local
232 cyhal_dest_t destination = get_dest(block, channel); in _cyhal_hwmgr_allocate_with_connection()
237 cyhal_source_t source = get_src(block, channel); in _cyhal_hwmgr_allocate_with_connection()
243 cyhal_resource_inst_t rsc = { type, block, channel }; in _cyhal_hwmgr_allocate_with_connection()
247 obj->block_num = block; in _cyhal_hwmgr_allocate_with_connection()
257 if ((block + 1) < blocks && blockOffsets[block + 1] <= (i + 1)) in _cyhal_hwmgr_allocate_with_connection()
262 block++; in _cyhal_hwmgr_allocate_with_connection()
264 …while (((block + 1) < blocks) && (blockOffsets[block + 1] == blockOffsets[block])); /* Skip empty … in _cyhal_hwmgr_allocate_with_connection()
273 block++; in _cyhal_hwmgr_allocate_with_connection()