Searched refs:regnum (Results 1 – 5 of 5) sorted by relevance
160 #define z_nios2_get_register_address(base, regnum) \ argument161 ((void *)(((uint8_t *)base) + ((regnum) * (SYSTEM_BUS_WIDTH / 8))))163 static inline void _nios2_reg_write(void *base, int regnum, uint32_t data) in _nios2_reg_write() argument166 (mm_reg_t)z_nios2_get_register_address(base, regnum)); in _nios2_reg_write()169 static inline uint32_t _nios2_reg_read(void *base, int regnum) in _nios2_reg_read() argument171 return sys_read32((mm_reg_t)z_nios2_get_register_address(base, regnum)); in _nios2_reg_read()
567 uint8_t regnum = preg->pr_num; in espi_saf_xec_set_pr() local569 if (regnum >= MCHP_ESPI_SAF_PR_MAX) { in espi_saf_xec_set_pr()575 regs->SAF_PROT_RG[regnum].START = preg->start >> 12U; in espi_saf_xec_set_pr()576 regs->SAF_PROT_RG[regnum].LIMIT = in espi_saf_xec_set_pr()578 regs->SAF_PROT_RG[regnum].WEBM = preg->master_bm_we; in espi_saf_xec_set_pr()579 regs->SAF_PROT_RG[regnum].RDBM = preg->master_bm_rd; in espi_saf_xec_set_pr()581 regs->SAF_PROT_RG[regnum].START = 0x7FFFFU; in espi_saf_xec_set_pr()582 regs->SAF_PROT_RG[regnum].LIMIT = 0U; in espi_saf_xec_set_pr()583 regs->SAF_PROT_RG[regnum].WEBM = 0U; in espi_saf_xec_set_pr()584 regs->SAF_PROT_RG[regnum].RDBM = 0U; in espi_saf_xec_set_pr()[all …]
123 uint8_t regnum; in espi_taf_npcx_set_pr() local136 regnum = preg->pr_num; in espi_taf_npcx_set_pr()138 if (regnum >= CONFIG_ESPI_TAF_PR_NUM) { in espi_taf_npcx_set_pr()148 inst->FLASH_PRTR_BADDR[regnum] = ((preg->start & bitmask) << offset) in espi_taf_npcx_set_pr()152 inst->FLASH_PRTR_HADDR[regnum] = (preg->end & bitmask) << offset; in espi_taf_npcx_set_pr()156 inst->FLASH_RGN_TAG_OVR[regnum] = override_rw; in espi_taf_npcx_set_pr()
739 uint8_t regnum = preg->pr_num; in espi_saf_xec_set_pr() local741 if (regnum >= MCHP_ESPI_SAF_PR_MAX) { in espi_saf_xec_set_pr()747 regs->SAF_PROT_RG[regnum].START = preg->start >> 12U; in espi_saf_xec_set_pr()748 regs->SAF_PROT_RG[regnum].LIMIT = in espi_saf_xec_set_pr()750 regs->SAF_PROT_RG[regnum].WEBM = preg->master_bm_we; in espi_saf_xec_set_pr()751 regs->SAF_PROT_RG[regnum].RDBM = preg->master_bm_rd; in espi_saf_xec_set_pr()753 regs->SAF_PROT_RG[regnum].START = 0x7FFFFU; in espi_saf_xec_set_pr()754 regs->SAF_PROT_RG[regnum].LIMIT = 0U; in espi_saf_xec_set_pr()755 regs->SAF_PROT_RG[regnum].WEBM = 0U; in espi_saf_xec_set_pr()756 regs->SAF_PROT_RG[regnum].RDBM = 0U; in espi_saf_xec_set_pr()[all …]
86 : [regnum] "i" (regnum_p)); \95 [regnum] "i" (regnum_p)); \