/trusted-firmware-m-3.7.0/platform/ext/target/arm/drivers/gpio/pl061/ |
D | gpio_pl061_drv.h | 50 void pl061_set_gpio(pl061_regblk_t * pdev, uint8_t mask, uint8_t pins) in pl061_set_gpio() argument 53 pdev->gpiodata[mask] = pins & pdev->gpiodir; in pl061_set_gpio() 63 void pl061_set_high(pl061_regblk_t * pdev, uint8_t mask) in pl061_set_high() argument 66 pdev->gpiodata[mask] = UINT8_MAX & pdev->gpiodir; in pl061_set_high() 76 void gpio_set_low(pl061_regblk_t * pdev, uint8_t mask) in gpio_set_low() argument 79 pdev->gpiodata[mask] = 0u; in gpio_set_low() 90 uint8_t pl061_get_gpio(pl061_regblk_t * pdev, uint8_t mask) in pl061_get_gpio() argument 93 return pdev->gpiodata[mask] & UINT8_MAX; /* only 8 bit wide */ in pl061_get_gpio() 103 void pl061_set_input(pl061_regblk_t * pdev, uint8_t mask) in pl061_set_input() argument 105 pdev->gpiodir &= ~mask; in pl061_set_input() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/cmsis/CMSIS/Core/Include/m-profile/ |
D | armv8m_pmu.h | 179 __STATIC_INLINE void ARM_PMU_CNTR_Enable(uint32_t mask); 180 __STATIC_INLINE void ARM_PMU_CNTR_Disable(uint32_t mask); 186 __STATIC_INLINE void ARM_PMU_Set_CNTR_OVS(uint32_t mask); 188 __STATIC_INLINE void ARM_PMU_Set_CNTR_IRQ_Enable(uint32_t mask); 189 __STATIC_INLINE void ARM_PMU_Set_CNTR_IRQ_Disable(uint32_t mask); 191 __STATIC_INLINE void ARM_PMU_CNTR_Increment(uint32_t mask); 242 __STATIC_INLINE void ARM_PMU_CNTR_Enable(uint32_t mask) in ARM_PMU_CNTR_Enable() argument 244 PMU->CNTENSET = mask; in ARM_PMU_CNTR_Enable() 254 __STATIC_INLINE void ARM_PMU_CNTR_Disable(uint32_t mask) in ARM_PMU_CNTR_Disable() argument 256 PMU->CNTENCLR = mask; in ARM_PMU_CNTR_Disable() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/Native_Driver/drivers/ |
D | fsl_gpio.h | 186 static inline void GPIO_PortSet(GPIO_Type *base, uint32_t port, uint32_t mask) in GPIO_PortSet() argument 188 base->SET[port] = mask; in GPIO_PortSet() 198 static inline void GPIO_PortClear(GPIO_Type *base, uint32_t port, uint32_t mask) in GPIO_PortClear() argument 200 base->CLR[port] = mask; in GPIO_PortClear() 210 static inline void GPIO_PortToggle(GPIO_Type *base, uint32_t port, uint32_t mask) in GPIO_PortToggle() argument 212 base->NOT[port] = mask; in GPIO_PortToggle() 239 static inline void GPIO_PortMaskedSet(GPIO_Type *base, uint32_t port, uint32_t mask) in GPIO_PortMaskedSet() argument 241 base->MASK[port] = mask; in GPIO_PortMaskedSet() 288 void GPIO_PortEnableInterrupts(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask); 298 void GPIO_PortDisableInterrupts(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask); [all …]
|
D | fsl_gpio.c | 153 void GPIO_PortEnableInterrupts(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask) in GPIO_PortEnableInterrupts() argument 157 base->INTENA[port] = base->INTENA[port] | mask; in GPIO_PortEnableInterrupts() 161 base->INTENB[port] = base->INTENB[port] | mask; in GPIO_PortEnableInterrupts() 177 void GPIO_PortDisableInterrupts(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask) in GPIO_PortDisableInterrupts() argument 181 base->INTENA[port] = base->INTENA[port] & ~mask; in GPIO_PortDisableInterrupts() 185 base->INTENB[port] = base->INTENB[port] & ~mask; in GPIO_PortDisableInterrupts() 202 void GPIO_PortClearInterruptFlags(GPIO_Type *base, uint32_t port, uint32_t index, uint32_t mask) in GPIO_PortClearInterruptFlags() argument 206 base->INTSTATA[port] = mask; in GPIO_PortClearInterruptFlags() 210 base->INTSTATB[port] = mask; in GPIO_PortClearInterruptFlags()
|
D | fsl_usart.h | 513 static inline void USART_ClearStatusFlags(USART_Type *base, uint32_t mask) in USART_ClearStatusFlags() argument 515 mask &= (uint32_t)kUSART_AllClearFlags; in USART_ClearStatusFlags() 517 base->STAT = (mask & 0xFFFF00UL) | ((mask & 0xFF0000UL) >> 16U); in USART_ClearStatusFlags() 519 base->FIFOSTAT = mask & (USART_FIFOSTAT_TXERR_MASK | USART_FIFOSTAT_RXERR_MASK); in USART_ClearStatusFlags() 541 static inline void USART_EnableInterrupts(USART_Type *base, uint32_t mask) in USART_EnableInterrupts() argument 543 mask &= (uint32_t)kUSART_AllInterruptEnables; in USART_EnableInterrupts() 544 base->INTENSET = (mask & 0x1FF00UL) | ((mask & 0xFF0000UL) >> 16U); in USART_EnableInterrupts() 545 base->FIFOINTENSET = mask & 0xF00000FUL; in USART_EnableInterrupts() 561 static inline void USART_DisableInterrupts(USART_Type *base, uint32_t mask) in USART_DisableInterrupts() argument 563 mask &= (uint32_t)kUSART_AllInterruptEnables; in USART_DisableInterrupts() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/pal/freertos/ |
D | cc_pal_interrupt_ctrl.c | 45 uint32_t mask = 0; in CC_PalInitIrq() local 51 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, SRAM_TO_DIN_MASK, mask, 0); in CC_PalInitIrq() 52 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, DOUT_TO_SRAM_MASK, mask, 0); in CC_PalInitIrq() 53 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, MEM_TO_DIN_MASK, mask, 0); in CC_PalInitIrq() 54 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, DOUT_TO_MEM_MASK, mask, 0); in CC_PalInitIrq() 55 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, AXI_ERR_MASK, mask, 0); in CC_PalInitIrq() 56 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, PKA_EXP_MASK, mask, 0); in CC_PalInitIrq() 57 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, RNG_INT_MASK, mask, 1); in CC_PalInitIrq() 58 CC_REG_FLD_SET(HOST_RGF, HOST_IMR, SYM_DMA_COMPLETED_MASK, mask, 0); in CC_PalInitIrq() 59 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, HOST_IMR), mask); in CC_PalInitIrq()
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | scu.h | 149 #define SCU_SET_IONSSET(mask) (SCU->IONSSET |= (mask)) argument 199 #define SCU_ENABLE_INT(mask) (SCU->SVIOIEN |= (mask)) argument 228 #define SCU_DISABLE_INT(mask) (SCU->SVIOIEN &= (~(mask))) argument 241 #define SCU_GET_INT_FLAG(mask) (SCU->SVINTSTS&(mask)) argument
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | scu.h | 145 #define SCU_SET_IONSSET(port, mask) (SCU->IONSSET[((uint32_t)(port)-(GPIOA_BASE))/0x40] = (mask)) argument 188 #define SCU_ENABLE_INT(mask) (SCU->SVIOIEN |= (mask)) argument 217 #define SCU_DISABLE_INT(mask) (SCU->SVIOIEN &= (~(mask))) argument 230 #define SCU_GET_INT_FLAG(mask) (SCU->SVINTSTS&(mask)) argument
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/native_drivers/ |
D | ppc_rse_drv.c | 117 ppc_rse_config_privilege(struct ppc_rse_dev_t* dev, uint32_t mask, in ppc_rse_config_privilege() argument 131 *(dev->data->sacfg_sp_ppc) &= ~mask; in ppc_rse_config_privilege() 133 *(dev->data->sacfg_sp_ppc) |= mask; in ppc_rse_config_privilege() 143 *(dev->data->nsacfg_nsp_ppc) &= ~mask; in ppc_rse_config_privilege() 145 *(dev->data->nsacfg_nsp_ppc) |= mask; in ppc_rse_config_privilege() 153 uint32_t mask) in ppc_rse_is_periph_priv_only() argument 163 if ((*(dev->data->sacfg_ns_ppc) & mask) == 0) { in ppc_rse_is_periph_priv_only() 165 return ((*(dev->data->sacfg_sp_ppc) & mask) == 0); in ppc_rse_is_periph_priv_only() 168 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_rse_is_periph_priv_only() 172 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_rse_is_periph_priv_only() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/examples/enabler_cert/ |
D | x509_sb_enabler_dbg_cert_rma.cfg | 14 … non-zero value to use this certificate for RMA mode entry. Mandatory if debug-mask is not defined. 15 # Cannot be defined together with debug-mask. 16 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 17 # Cannot be defined together with rma-mode. If bit 0 in debug-mask[0-31] is s… 18 #debug-mask[x-y] = The additional DCU lock by the OEM. 128 bit mask in 4*32 bits hex format (… 21 # if debug-mask is defined, either hbk-id or key-cert-pkg must be defined. hb… 32 #debug-mask[0-31] = 33 #debug-mask[32-63] = 34 #debug-mask[64-95] = 35 #debug-mask[96-127] =
|
D | sb_enabler_dbg_cert_rma.cfg | 14 … non-zero value to use this certificate for RMA mode entry. Mandatory if debug-mask is not defined. 15 # Cannot be defined together with debug-mask. 16 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 17 # Cannot be defined together with rma-mode. If bit 0 in debug-mask[0-31] is s… 18 #debug-mask[x-y] = The additional DCU lock by the OEM. 128 bit mask in 4*32 bits hex format (… 21 # if debug-mask is defined, either hbk-id or key-cert-pkg must be defined. hb… 32 #debug-mask[0-31] = 33 #debug-mask[32-63] = 34 #debug-mask[64-95] = 35 #debug-mask[96-127] =
|
D | x509_sb_enabler_dbg_cert.cfg | 14 … non-zero value to use this certificate for RMA mode entry. Mandatory if debug-mask is not defined. 15 # Cannot be defined together with debug-mask. 16 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 17 # Cannot be defined together with rma-mode. If bit 0 in debug-mask[0-31] is s… 18 #debug-mask[x-y] = The additional DCU lock by the OEM. 128 bit mask in 4*32 bits hex format (… 21 # if debug-mask is defined, either hbk-id or key-cert-pkg must be defined. hb… 33 debug-mask[0-31] = 0x00112233 34 debug-mask[32-63] = 0x44556677 35 debug-mask[64-95] = 0x8899AABB 36 debug-mask[96-127] = 0xCCDDEEFF
|
D | sb_enabler_dbg_cert.cfg | 14 … non-zero value to use this certificate for RMA mode entry. Mandatory if debug-mask is not defined. 15 # Cannot be defined together with debug-mask. 16 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 17 # Cannot be defined together with rma-mode. If bit 0 in debug-mask[0-31] is s… 18 #debug-mask[x-y] = The additional DCU lock by the OEM. 128 bit mask in 4*32 bits hex format (… 21 # if debug-mask is defined, either hbk-id or key-cert-pkg must be defined. hb… 33 debug-mask[0-31] = 0x00112233 34 debug-mask[32-63] = 0x44556677 35 debug-mask[64-95] = 0x8899AABB 36 debug-mask[96-127] = 0xCCDDEEFF
|
D | sb_enabler_dbg_cert_no_pwd.cfg | 14 … non-zero value to use this certificate for RMA mode entry. Mandatory if debug-mask is not defined. 15 # Cannot be defined together with debug-mask. 16 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 17 # Cannot be defined together with rma-mode. If bit 0 in debug-mask[0-31] is s… 18 #debug-mask[x-y] = The additional DCU lock by the OEM. 128 bit mask in 4*32 bits hex format (… 21 # if debug-mask is defined, either hbk-id or key-cert-pkg must be defined. hb… 33 debug-mask[0-31] = 0x00112233 34 debug-mask[32-63] = 0x44556677 35 debug-mask[64-95] = 0x8899AABB 36 debug-mask[96-127] = 0xCCDDEEFF
|
D | sb_enabler_dbg_cert_rma_no_pwd.cfg | 14 … non-zero value to use this certificate for RMA mode entry. Mandatory if debug-mask is not defined. 15 # Cannot be defined together with debug-mask. 16 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 17 # Cannot be defined together with rma-mode. If bit 0 in debug-mask[0-31] is s… 18 #debug-mask[x-y] = The additional DCU lock by the OEM. 128 bit mask in 4*32 bits hex format (… 21 # if debug-mask is defined, either hbk-id or key-cert-pkg must be defined. hb… 33 #debug-mask[0-31] = 34 #debug-mask[32-63] = 35 #debug-mask[64-95] = 36 #debug-mask[96-127] =
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/examples/developer_cert/ |
D | sb_developer_dbg_cert.cfg | 14 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 15 # If bit 0 in debug-mask[0-31] is set, the HW keys reset in debug mode is not… 22 debug-mask[0-31] = 0x00112233 23 debug-mask[32-63] = 0x44556677 24 debug-mask[64-95] = 0x8899AABB 25 debug-mask[96-127] = 0xCCDDEEFF
|
D | sb_developer_dbg_cert_no_pwd.cfg | 14 #debug-mask[x-y] = The DCU mask allowed by the OEM. 128 bit mask in 4*32 bits hex format (e.g.… 15 # If bit 0 in debug-mask[0-31] is set, the HW keys reset in debug mode is not… 22 debug-mask[0-31] = 0x00112233 23 debug-mask[32-63] = 0x44556677 24 debug-mask[64-95] = 0x8899AABB 25 debug-mask[96-127] = 0xCCDDEEFF
|
/trusted-firmware-m-3.7.0/platform/ext/cmsis/CMSIS/Driver/VIO/Source/ |
D | vio_memory.c | 51 void vioSetSignal (uint32_t mask, uint32_t signal) { in vioSetSignal() argument 53 vioSignalOut &= ~mask; in vioSetSignal() 54 vioSignalOut |= mask & signal; in vioSetSignal() 58 uint32_t vioGetSignal (uint32_t mask) { in vioGetSignal() argument 61 signal = vioSignalIn & mask; in vioGetSignal()
|
D | vio.c | 82 void vioSetSignal (uint32_t mask, uint32_t signal) { in vioSetSignal() argument 88 vioSignalOut &= ~mask; in vioSetSignal() 89 vioSignalOut |= mask & signal; in vioSetSignal() 98 uint32_t vioGetSignal (uint32_t mask) { in vioGetSignal() argument 111 signal = vioSignalIn & mask; in vioGetSignal()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps4/corstone315/native_drivers/ |
D | ppc_corstone315_drv.c | 203 ppc_corstone315_config_privilege(struct ppc_corstone315_dev_t* dev, uint32_t mask, in ppc_corstone315_config_privilege() argument 217 *(dev->data->sacfg_sp_ppc) &= ~mask; in ppc_corstone315_config_privilege() 219 *(dev->data->sacfg_sp_ppc) |= mask; in ppc_corstone315_config_privilege() 229 *(dev->data->nsacfg_nsp_ppc) &= ~mask; in ppc_corstone315_config_privilege() 231 *(dev->data->nsacfg_nsp_ppc) |= mask; in ppc_corstone315_config_privilege() 239 uint32_t mask) in ppc_corstone315_is_periph_priv_only() argument 249 if ((*(dev->data->sacfg_ns_ppc) & mask) == 0) { in ppc_corstone315_is_periph_priv_only() 251 return ((*(dev->data->sacfg_sp_ppc) & mask) == 0); in ppc_corstone315_is_periph_priv_only() 254 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_corstone315_is_periph_priv_only() 258 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_corstone315_is_periph_priv_only() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps3/corstone310/common/native_drivers/ |
D | ppc_corstone310_drv.c | 203 ppc_corstone310_config_privilege(struct ppc_corstone310_dev_t* dev, uint32_t mask, in ppc_corstone310_config_privilege() argument 217 *(dev->data->sacfg_sp_ppc) &= ~mask; in ppc_corstone310_config_privilege() 219 *(dev->data->sacfg_sp_ppc) |= mask; in ppc_corstone310_config_privilege() 229 *(dev->data->nsacfg_nsp_ppc) &= ~mask; in ppc_corstone310_config_privilege() 231 *(dev->data->nsacfg_nsp_ppc) |= mask; in ppc_corstone310_config_privilege() 239 uint32_t mask) in ppc_corstone310_is_periph_priv_only() argument 249 if ((*(dev->data->sacfg_ns_ppc) & mask) == 0) { in ppc_corstone310_is_periph_priv_only() 251 return ((*(dev->data->sacfg_sp_ppc) & mask) == 0); in ppc_corstone310_is_periph_priv_only() 254 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_corstone310_is_periph_priv_only() 258 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_corstone310_is_periph_priv_only() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/armchina/mps3/alcor/common/native_drivers/ |
D | ppc_alcor_drv.c | 321 ppc_alcor_config_privilege(struct ppc_alcor_dev_t* dev, uint32_t mask, in ppc_alcor_config_privilege() argument 335 *(dev->data->sacfg_sp_ppc) &= ~mask; in ppc_alcor_config_privilege() 337 *(dev->data->sacfg_sp_ppc) |= mask; in ppc_alcor_config_privilege() 347 *(dev->data->nsacfg_nsp_ppc) &= ~mask; in ppc_alcor_config_privilege() 349 *(dev->data->nsacfg_nsp_ppc) |= mask; in ppc_alcor_config_privilege() 357 uint32_t mask) in ppc_alcor_is_periph_priv_only() argument 367 if ((*(dev->data->sacfg_ns_ppc) & mask) == 0) { in ppc_alcor_is_periph_priv_only() 369 return ((*(dev->data->sacfg_sp_ppc) & mask) == 0); in ppc_alcor_is_periph_priv_only() 372 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_alcor_is_periph_priv_only() 376 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_alcor_is_periph_priv_only() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps3/corstone300/common/native_drivers/ |
D | ppc_sse300_drv.c | 320 ppc_sse300_config_privilege(struct ppc_sse300_dev_t* dev, uint32_t mask, in ppc_sse300_config_privilege() argument 334 *(dev->data->sacfg_sp_ppc) &= ~mask; in ppc_sse300_config_privilege() 336 *(dev->data->sacfg_sp_ppc) |= mask; in ppc_sse300_config_privilege() 346 *(dev->data->nsacfg_nsp_ppc) &= ~mask; in ppc_sse300_config_privilege() 348 *(dev->data->nsacfg_nsp_ppc) |= mask; in ppc_sse300_config_privilege() 356 uint32_t mask) in ppc_sse300_is_periph_priv_only() argument 366 if ((*(dev->data->sacfg_ns_ppc) & mask) == 0) { in ppc_sse300_is_periph_priv_only() 368 return ((*(dev->data->sacfg_sp_ppc) & mask) == 0); in ppc_sse300_is_periph_priv_only() 371 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_sse300_is_periph_priv_only() 375 return ((*(dev->data->nsacfg_nsp_ppc) & mask) == 0); in ppc_sse300_is_periph_priv_only() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/cypress/psoc64/Device/Source/iar/ |
D | cy_syslib_iar.c | 85 uint8_t mask; in Cy_SysLib_EnterCriticalSection() local 88 : "=r" (mask) in Cy_SysLib_EnterCriticalSection() 90 return mask; in Cy_SysLib_EnterCriticalSection()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/corstone1000/Native_Driver/ |
D | mhu_v2_x.c | 275 const struct mhu_v2_x_dev_t *dev, uint32_t channel, uint32_t mask) in mhu_v2_x_channel_mask_set() argument 284 (RECV_FRAME(p_mhu))->rec_ch_window[channel].ch_msk_set = mask; in mhu_v2_x_channel_mask_set() 292 const struct mhu_v2_x_dev_t *dev, uint32_t channel, uint32_t mask) in mhu_v2_x_channel_mask_clear() argument 301 (RECV_FRAME(p_mhu))->rec_ch_window[channel].ch_msk_clr = mask; in mhu_v2_x_channel_mask_clear() 499 const struct mhu_v2_x_dev_t *dev, uint32_t mask) in mhu_v2_x_interrupt_enable() argument 508 if (mask & MHU_2_1_INTR_CHCOMB_MASK) { in mhu_v2_x_interrupt_enable() 520 (SEND_FRAME(p_mhu))->int_en |= mask; in mhu_v2_x_interrupt_enable() 522 (RECV_FRAME(p_mhu))->int_en |= mask; in mhu_v2_x_interrupt_enable() 529 const struct mhu_v2_x_dev_t *dev, uint32_t mask) in mhu_v2_x_interrupt_disable() argument 538 if (mask & MHU_2_1_INTR_CHCOMB_MASK) { in mhu_v2_x_interrupt_disable() [all …]
|