Home
last modified time | relevance | path

Searched refs:_PERIPH_IDS_PER_REG (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/drivers/firewall/
H A Dstm32_iac.c52 #define _PERIPH_IDS_PER_REG 32 macro
61 #define IAC_EXCEPT_MSB_BIT(x) ((x) * _PERIPH_IDS_PER_REG + \
62 _PERIPH_IDS_PER_REG - 1)
63 #define IAC_EXCEPT_LSB_BIT(x) ((x) * _PERIPH_IDS_PER_REG)
149 unsigned int nreg = DIV_ROUND_UP(ddata->num_ilac, _PERIPH_IDS_PER_REG); in stm32_iac_itr()
166 for (j = 0; j < _PERIPH_IDS_PER_REG; j++) { in stm32_iac_itr()
191 unsigned int nreg = DIV_ROUND_UP(ddata->num_ilac, _PERIPH_IDS_PER_REG); in stm32_iac_setup()
H A Dstm32_serc.c46 #define _PERIPH_IDS_PER_REG U(32) macro
55 #define SERC_EXCEPT_MSB_BIT(x) ((x) * _PERIPH_IDS_PER_REG + \
56 _PERIPH_IDS_PER_REG - 1)
57 #define SERC_EXCEPT_LSB_BIT(x) ((x) * _PERIPH_IDS_PER_REG)
153 nreg = DIV_ROUND_UP(ddata->num_ilac, _PERIPH_IDS_PER_REG); in stm32_serc_handle_ilac()
170 for (j = 0; j < _PERIPH_IDS_PER_REG; j++) { in stm32_serc_handle_ilac()
202 uint32_t nreg = DIV_ROUND_UP(ddata->num_ilac, _PERIPH_IDS_PER_REG); in stm32_serc_setup()
H A Dstm32_rifsc.c82 #define _PERIPH_IDS_PER_REG U(32) macro
527 uintptr_t offset = sizeof(uint32_t) * (risup->id / _PERIPH_IDS_PER_REG); in stm32_risup_cfg()
530 uint32_t shift = risup->id % _PERIPH_IDS_PER_REG; in stm32_risup_cfg()
762 reg_id = resource_id / _PERIPH_IDS_PER_REG; in stm32_rifsc_check_access()
763 periph_offset = resource_id % _PERIPH_IDS_PER_REG; in stm32_rifsc_check_access()
816 reg_id = resource_id / _PERIPH_IDS_PER_REG; in stm32_rifsc_acquire_access()
817 periph_offset = resource_id % _PERIPH_IDS_PER_REG; in stm32_rifsc_acquire_access()
957 (risup->id / _PERIPH_IDS_PER_REG); in stm32_rifsc_sem_pm_resume()
958 uintptr_t perih_offset = risup->id % _PERIPH_IDS_PER_REG; in stm32_rifsc_sem_pm_resume()