Home
last modified time | relevance | path

Searched refs:scratch_reg (Results 1 – 6 of 6) sorted by relevance

/linux/arch/x86/entry/
H A Dcalling.h173 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req
175 mov %cr3, \scratch_reg
176 ADJUST_KERNEL_CR3 \scratch_reg
177 mov \scratch_reg, %cr3
184 .macro SWITCH_TO_USER_CR3 scratch_reg:req scratch_reg2:req
185 mov %cr3, \scratch_reg
192 movq \scratch_reg, \scratch_reg2
193 andq $(0x7FF), \scratch_reg /* mask ASID */
194 bt \scratch_reg, THIS_CPU_user_pcid_flush_mask
198 btr \scratch_reg, THIS_CPU_user_pcid_flush_mask
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_fence.c71 if (likely(rdev->wb.enabled || !drv->scratch_reg)) { in radeon_fence_write()
75 WREG32(drv->scratch_reg, seq); in radeon_fence_write()
93 if (likely(rdev->wb.enabled || !drv->scratch_reg)) { in radeon_fence_read()
99 seq = RREG32(drv->scratch_reg); in radeon_fence_read()
764 radeon_scratch_free(rdev, rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_start_ring()
766 rdev->fence_drv[ring].scratch_reg = 0; in radeon_fence_driver_start_ring()
781 r = radeon_scratch_get(rdev, &rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_start_ring()
787 rdev->fence_drv[ring].scratch_reg - in radeon_fence_driver_start_ring()
813 rdev->fence_drv[ring].scratch_reg = -1; in radeon_fence_driver_init_ring()
870 radeon_scratch_free(rdev, rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_fini()
H A Dradeon_atombios.c4109 uint32_t scratch_reg; in radeon_save_bios_scratch_regs() local
4113 scratch_reg = R600_BIOS_0_SCRATCH; in radeon_save_bios_scratch_regs()
4115 scratch_reg = RADEON_BIOS_0_SCRATCH; in radeon_save_bios_scratch_regs()
4118 rdev->bios_scratch[i] = RREG32(scratch_reg + (i * 4)); in radeon_save_bios_scratch_regs()
4123 uint32_t scratch_reg; in radeon_restore_bios_scratch_regs() local
4127 scratch_reg = R600_BIOS_0_SCRATCH; in radeon_restore_bios_scratch_regs()
4129 scratch_reg = RADEON_BIOS_0_SCRATCH; in radeon_restore_bios_scratch_regs()
4132 WREG32(scratch_reg + (i * 4), rdev->bios_scratch[i]); in radeon_restore_bios_scratch_regs()
H A Dr600.c2907 …radeon_ring_write(ring, ((rdev->fence_drv[fence->ring].scratch_reg - PACKET3_SET_CONFIG_REG_OFFSET… in r600_fence_ring_emit()
/linux/scripts/gdb/linux/
H A Dcpus.py197 scratch_reg = gdb.parse_and_eval("$sscratch")
206 if (scratch_reg.cast(utils.get_ulong_type()) > current_tp.cast(utils.get_ulong_type())):
207 current_task = scratch_reg.cast(task_ptr_type)
/linux/arch/mips/mm/
H A Dtlbex.c328 static int scratch_reg; variable
337 if (scratch_reg >= 0) { in build_get_work_registers()
339 UASM_i_MTC0(p, 1, c0_kscratch(), scratch_reg); in build_get_work_registers()
371 if (scratch_reg >= 0) { in build_restore_work_registers()
373 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_work_registers()
619 if (scratch_reg >= 0) in build_restore_pagemask()
636 if (scratch_reg >= 0) in build_restore_pagemask()
637 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_pagemask()
889 if (mode == refill_scratch && scratch_reg >= 0) in build_get_pgd_vmalloc64()
910 if (scratch_reg >= 0) in build_get_pgd_vmalloc64()
[all …]