Lines Matching refs:index
56 # define PMACFG_NUM(index) ((index / RV_REGSIZE) * 2) argument
58 # define PMACFG_NUM(index) (index / RV_REGSIZE) argument
60 #define PMACFG_SHIFT(index) ((index % RV_REGSIZE) * 8) argument
77 static void write_pmaaddr_csr(const uint32_t index, unsigned long value) in write_pmaaddr_csr() argument
83 switch (index) { in write_pmaaddr_csr()
95 uint32_t index = PMACFG_NUM(entry_index); in write_pmacfg_entry() local
103 switch (index) { in write_pmacfg_entry()
116 switch (index) { in write_pmacfg_entry()
127 static void region_init(const uint32_t index, in region_init() argument
141 write_pmaaddr_csr(index, pmaaddr); in region_init()
142 write_pmacfg_entry(index, pmacfg); in region_init()