• Home
  • Raw
  • Download

Lines Matching refs:tmp

88 	uint32_t tmp;  in mmhub_v1_0_init_system_aperture_regs()  local
131 tmp = RREG32_SOC15(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL2); in mmhub_v1_0_init_system_aperture_regs()
132 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL2, in mmhub_v1_0_init_system_aperture_regs()
134 WREG32_SOC15(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL2, tmp); in mmhub_v1_0_init_system_aperture_regs()
139 uint32_t tmp; in mmhub_v1_0_init_tlb_regs() local
142 tmp = RREG32_SOC15(MMHUB, 0, mmMC_VM_MX_L1_TLB_CNTL); in mmhub_v1_0_init_tlb_regs()
144 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ENABLE_L1_TLB, 1); in mmhub_v1_0_init_tlb_regs()
145 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, SYSTEM_ACCESS_MODE, 3); in mmhub_v1_0_init_tlb_regs()
146 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, in mmhub_v1_0_init_tlb_regs()
148 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, in mmhub_v1_0_init_tlb_regs()
150 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, in mmhub_v1_0_init_tlb_regs()
152 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ATC_EN, 1); in mmhub_v1_0_init_tlb_regs()
154 WREG32_SOC15(MMHUB, 0, mmMC_VM_MX_L1_TLB_CNTL, tmp); in mmhub_v1_0_init_tlb_regs()
159 uint32_t tmp; in mmhub_v1_0_init_cache_regs() local
165 tmp = RREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL); in mmhub_v1_0_init_cache_regs()
166 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, ENABLE_L2_CACHE, 1); in mmhub_v1_0_init_cache_regs()
167 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, ENABLE_L2_FRAGMENT_PROCESSING, 1); in mmhub_v1_0_init_cache_regs()
169 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, L2_PDE0_CACHE_TAG_GENERATION_MODE, in mmhub_v1_0_init_cache_regs()
171 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, PDE_FAULT_CLASSIFICATION, 0); in mmhub_v1_0_init_cache_regs()
172 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, CONTEXT1_IDENTITY_ACCESS_MODE, 1); in mmhub_v1_0_init_cache_regs()
173 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, IDENTITY_MODE_FRAGMENT_SIZE, 0); in mmhub_v1_0_init_cache_regs()
174 WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL, tmp); in mmhub_v1_0_init_cache_regs()
176 tmp = RREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL2); in mmhub_v1_0_init_cache_regs()
177 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL2, INVALIDATE_ALL_L1_TLBS, 1); in mmhub_v1_0_init_cache_regs()
178 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL2, INVALIDATE_L2_CACHE, 1); in mmhub_v1_0_init_cache_regs()
179 WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL2, tmp); in mmhub_v1_0_init_cache_regs()
181 tmp = mmVM_L2_CNTL3_DEFAULT; in mmhub_v1_0_init_cache_regs()
183 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3, BANK_SELECT, 12); in mmhub_v1_0_init_cache_regs()
184 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3, in mmhub_v1_0_init_cache_regs()
187 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3, BANK_SELECT, 9); in mmhub_v1_0_init_cache_regs()
188 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3, in mmhub_v1_0_init_cache_regs()
191 WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL3, tmp); in mmhub_v1_0_init_cache_regs()
193 tmp = mmVM_L2_CNTL4_DEFAULT; in mmhub_v1_0_init_cache_regs()
194 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL4, VMC_TAP_PDE_REQUEST_PHYSICAL, 0); in mmhub_v1_0_init_cache_regs()
195 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL4, VMC_TAP_PTE_REQUEST_PHYSICAL, 0); in mmhub_v1_0_init_cache_regs()
196 WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL4, tmp); in mmhub_v1_0_init_cache_regs()
201 uint32_t tmp; in mmhub_v1_0_enable_system_domain() local
203 tmp = RREG32_SOC15(MMHUB, 0, mmVM_CONTEXT0_CNTL); in mmhub_v1_0_enable_system_domain()
204 tmp = REG_SET_FIELD(tmp, VM_CONTEXT0_CNTL, ENABLE_CONTEXT, 1); in mmhub_v1_0_enable_system_domain()
205 tmp = REG_SET_FIELD(tmp, VM_CONTEXT0_CNTL, PAGE_TABLE_DEPTH, 0); in mmhub_v1_0_enable_system_domain()
206 tmp = REG_SET_FIELD(tmp, VM_CONTEXT0_CNTL, in mmhub_v1_0_enable_system_domain()
208 WREG32_SOC15(MMHUB, 0, mmVM_CONTEXT0_CNTL, tmp); in mmhub_v1_0_enable_system_domain()
236 uint32_t tmp; in mmhub_v1_0_setup_vmid_config() local
247 tmp = RREG32_SOC15_OFFSET(MMHUB, 0, mmVM_CONTEXT1_CNTL, i); in mmhub_v1_0_setup_vmid_config()
248 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, ENABLE_CONTEXT, 1); in mmhub_v1_0_setup_vmid_config()
249 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, PAGE_TABLE_DEPTH, in mmhub_v1_0_setup_vmid_config()
251 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
253 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
256 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
258 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
260 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
262 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
264 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
266 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
270 tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL, in mmhub_v1_0_setup_vmid_config()
274 i * hub->ctx_distance, tmp); in mmhub_v1_0_setup_vmid_config()
344 u32 tmp; in mmhub_v1_0_gart_disable() local
353 tmp = RREG32_SOC15(MMHUB, 0, mmMC_VM_MX_L1_TLB_CNTL); in mmhub_v1_0_gart_disable()
354 tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ENABLE_L1_TLB, 0); in mmhub_v1_0_gart_disable()
355 tmp = REG_SET_FIELD(tmp, in mmhub_v1_0_gart_disable()
359 WREG32_SOC15(MMHUB, 0, mmMC_VM_MX_L1_TLB_CNTL, tmp); in mmhub_v1_0_gart_disable()
363 tmp = RREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL); in mmhub_v1_0_gart_disable()
364 tmp = REG_SET_FIELD(tmp, VM_L2_CNTL, ENABLE_L2_CACHE, 0); in mmhub_v1_0_gart_disable()
365 WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL, tmp); in mmhub_v1_0_gart_disable()
378 u32 tmp; in mmhub_v1_0_set_fault_enable_default() local
383 tmp = RREG32_SOC15(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL); in mmhub_v1_0_set_fault_enable_default()
384 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
386 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
388 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
390 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
392 tmp = REG_SET_FIELD(tmp, in mmhub_v1_0_set_fault_enable_default()
396 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
398 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
400 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
402 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
404 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
406 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
409 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
411 tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, in mmhub_v1_0_set_fault_enable_default()
415 WREG32_SOC15(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL, tmp); in mmhub_v1_0_set_fault_enable_default()