Home
last modified time | relevance | path

Searched refs:dgroup (Results 1 – 8 of 8) sorted by relevance

/rk3399_ARM-atf/plat/mediatek/drivers/emi_mpu/
H A Demi_mpu_common.c28 unsigned int dgroup; in _emi_mpu_set_protection() local
33 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
36 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
47 if ((dgroup == 0) && ((apc >> 31) & 0x1)) { in _emi_mpu_set_protection()
66 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
71 mmio_write_32(SUB_EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
78 unsigned int dgroup; in emi_mpu_clear_protection() local
103 for (dgroup = 0; dgroup < EMI_MPU_DGROUP_NUM; dgroup++) in emi_mpu_clear_protection()
104 mmio_write_32(EMI_MPU_APC(region, dgroup), 0x0); in emi_mpu_clear_protection()
110 for (dgroup = 0; dgroup < EMI_MPU_DGROUP_NUM; dgroup++) in emi_mpu_clear_protection()
[all …]
/rk3399_ARM-atf/plat/mediatek/mt8186/drivers/emi_mpu/
H A Demi_mpu.c24 unsigned int dgroup; in _emi_mpu_set_protection() local
29 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
32 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
43 if ((dgroup == 0U) && ((apc >> 31) & 0x1)) { in _emi_mpu_set_protection()
62 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
67 mmio_write_32(SUB_EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
H A Demi_mpu.h21 #define EMI_MPU_APC(region, dgroup) (EMI_MPU_APC0 + (region * 4) + (dgroup * 0x100)) argument
36 #define SUB_EMI_MPU_APC(region, dgroup) (SUB_EMI_MPU_APC0 + (region * 4) + (dgroup * 0x100)) argument
/rk3399_ARM-atf/plat/mediatek/drivers/emi_mpu/mt8188/
H A Demi_mpu_priv.h19 #define EMI_MPU_APC(region, dgroup) (EMI_MPU_APC0 + (region * 4) + (dgroup * 0x100)) argument
32 #define SUB_EMI_MPU_APC(region, dgroup) (SUB_EMI_MPU_APC0 + (region * 4) + (dgroup * 0x100)) argument
/rk3399_ARM-atf/plat/mediatek/mt8192/drivers/emi_mpu/
H A Demi_mpu.c22 unsigned int dgroup; in _emi_mpu_set_protection() local
27 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
30 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
31 WARN("Region:%u or dgroup:%u is wrong!\n", region, dgroup); in _emi_mpu_set_protection()
48 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
H A Demi_mpu.h47 #define EMI_MPU_APC(region, dgroup) (EMI_MPU_APC0 + (region) * 4 + \ argument
48 (dgroup) * 0x100)
/rk3399_ARM-atf/plat/mediatek/mt8195/drivers/emi_mpu/
H A Demi_mpu.c26 unsigned int dgroup; in _emi_mpu_set_protection() local
31 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
34 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
45 if ((dgroup == 0) && ((apc >> 31) & 0x1)) { in _emi_mpu_set_protection()
64 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
69 mmio_write_32(SUB_EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
H A Demi_mpu.h21 #define EMI_MPU_APC(region, dgroup) (EMI_MPU_APC0 + (region * 4) + (dgroup * 0x100)) argument
36 #define SUB_EMI_MPU_APC(region, dgroup) (SUB_EMI_MPU_APC0 + (region * 4) + (dgroup * 0x100)) argument