Lines Matching defs:lvl
51 #define _ARM_V7S_LVL_BITS(lvl, cfg) ((lvl) == 1 ? ((cfg)->ias - 20) : 8) argument
52 #define ARM_V7S_LVL_SHIFT(lvl) ((lvl) == 1 ? 20 : 12) argument
55 #define ARM_V7S_PTES_PER_LVL(lvl, cfg) (1 << _ARM_V7S_LVL_BITS(lvl, cfg)) argument
56 #define ARM_V7S_TABLE_SIZE(lvl, cfg) \ argument
59 #define ARM_V7S_BLOCK_SIZE(lvl) (1UL << ARM_V7S_LVL_SHIFT(lvl)) argument
60 #define ARM_V7S_LVL_MASK(lvl) ((u32)(~0U << ARM_V7S_LVL_SHIFT(lvl))) argument
62 #define _ARM_V7S_IDX_MASK(lvl, cfg) (ARM_V7S_PTES_PER_LVL(lvl, cfg) - 1) argument
63 #define ARM_V7S_LVL_IDX(addr, lvl, cfg) ({ \ argument
84 #define ARM_V7S_PTE_IS_TABLE(pte, lvl) \ argument
88 #define ARM_V7S_ATTR_XN(lvl) BIT(4 * (2 - (lvl))) argument
102 #define ARM_V7S_ATTR_SHIFT(lvl) (16 - (lvl) * 6) argument
196 static arm_v7s_iopte paddr_to_iopte(phys_addr_t paddr, int lvl, in paddr_to_iopte()
207 static phys_addr_t iopte_to_paddr(arm_v7s_iopte pte, int lvl, in iopte_to_paddr()
233 static arm_v7s_iopte *iopte_deref(arm_v7s_iopte pte, int lvl, in iopte_deref()
239 static void *__arm_v7s_alloc_table(int lvl, gfp_t gfp, in __arm_v7s_alloc_table()
299 static void __arm_v7s_free_table(void *table, int lvl, in __arm_v7s_free_table()
335 static arm_v7s_iopte arm_v7s_prot_to_pte(int prot, int lvl, in arm_v7s_prot_to_pte()
366 static int arm_v7s_pte_to_prot(arm_v7s_iopte pte, int lvl) in arm_v7s_pte_to_prot()
385 static arm_v7s_iopte arm_v7s_pte_to_cont(arm_v7s_iopte pte, int lvl) in arm_v7s_pte_to_cont()
401 static arm_v7s_iopte arm_v7s_cont_to_pte(arm_v7s_iopte pte, int lvl) in arm_v7s_cont_to_pte()
418 static bool arm_v7s_pte_is_cont(arm_v7s_iopte pte, int lvl) in arm_v7s_pte_is_cont()
433 int lvl, int num_entries, arm_v7s_iopte *ptep) in arm_v7s_init_pte()
499 int lvl, arm_v7s_iopte *ptep, gfp_t gfp) in __arm_v7s_map()
596 unsigned long iova, int idx, int lvl, in arm_v7s_split_cont()
668 unsigned long iova, size_t size, int lvl, in __arm_v7s_unmap()
765 int lvl = 0; in arm_v7s_iova_to_phys() local