Home
last modified time | relevance | path

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

/rk3399_ARM-atf/plat/nvidia/tegra/drivers/smmu/
H A Dsmmu.c32 uint32_t val, cb_idx, smmu_id, ctx_base; in tegra_smmu_init() local
35 for (smmu_id = 0U; smmu_id < num_smmu_devices; smmu_id++) { in tegra_smmu_init()
37 val = tegra_smmu_read_32(smmu_id, SMMU_GSR0_SECURE_ACR); in tegra_smmu_init()
40 tegra_smmu_write_32(smmu_id, SMMU_GSR0_SECURE_ACR, val); in tegra_smmu_init()
43 val = tegra_smmu_read_32(smmu_id, SMMU_GNSR_ACR); in tegra_smmu_init()
45 tegra_smmu_write_32(smmu_id, SMMU_GNSR_ACR, val); in tegra_smmu_init()
51 val = tegra_smmu_read_32(smmu_id, in tegra_smmu_init()
54 tegra_smmu_write_32(smmu_id, ctx_base + in tegra_smmu_init()
59 val = tegra_smmu_read_32(smmu_id, SMMU_GNSR_ACR); in tegra_smmu_init()
61 tegra_smmu_write_32(smmu_id, SMMU_GNSR_ACR, val); in tegra_smmu_init()
[all …]
/rk3399_ARM-atf/plat/nvidia/tegra/include/drivers/
H A Dsmmu.h41 static inline uint32_t tegra_smmu_read_32(uint32_t smmu_id, uint32_t off) in tegra_smmu_read_32() argument
46 if (smmu_id == TEGRA_SMMU0) { in tegra_smmu_read_32()
52 if (smmu_id == TEGRA_SMMU1) { in tegra_smmu_read_32()
58 if (smmu_id == TEGRA_SMMU2) { in tegra_smmu_read_32()
66 static inline void tegra_smmu_write_32(uint32_t smmu_id, in tegra_smmu_write_32() argument
70 if (smmu_id == TEGRA_SMMU0) { in tegra_smmu_write_32()
76 if (smmu_id == TEGRA_SMMU1) { in tegra_smmu_write_32()
82 if (smmu_id == TEGRA_SMMU2) { in tegra_smmu_write_32()
/rk3399_ARM-atf/plat/mediatek/drivers/smmu/
H A Dsmmu.c45 enum smmu_id { enum
61 enum smmu_id id;
101 static struct hw_sema_t *mtk_smmu_get_hw_sema_cfg(enum smmu_id id) in mtk_smmu_get_hw_sema_cfg()
145 static int mtk_smmu_pm_get(enum smmu_id id, enum cmd_source source_id) in mtk_smmu_pm_get()
184 static int mtk_smmu_pm_put(enum smmu_id id, enum cmd_source source_id) in mtk_smmu_pm_put()
241 enum smmu_id smmu_id = F_MSK_SHIFT(x1, SMMU_SMC_ID_H, SMMU_SMC_ID_L); in mtk_smmu_handler() local
244 if (smmu_id >= MTK_SMMU_ID_NUM || source_id >= SMMU_CMD_SOURCE_NUM) in mtk_smmu_handler()
249 ret = mtk_smmu_pm_get(smmu_id, source_id); in mtk_smmu_handler()
252 ret = mtk_smmu_pm_put(smmu_id, source_id); in mtk_smmu_handler()