| /Linux-v5.4/arch/x86/entry/ |
| D | calling.h | 197 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req 199 mov %cr3, \scratch_reg 200 ADJUST_KERNEL_CR3 \scratch_reg 201 mov \scratch_reg, %cr3 208 .macro SWITCH_TO_USER_CR3_NOSTACK scratch_reg:req scratch_reg2:req 210 mov %cr3, \scratch_reg 217 movq \scratch_reg, \scratch_reg2 218 andq $(0x7FF), \scratch_reg /* mask ASID */ 219 bt \scratch_reg, THIS_CPU_user_pcid_flush_mask 223 btr \scratch_reg, THIS_CPU_user_pcid_flush_mask [all …]
|
| D | entry_32.S | 161 .macro SWITCH_TO_USER_CR3 scratch_reg:req 164 movl %cr3, \scratch_reg 165 orl $PTI_SWITCH_MASK, \scratch_reg 166 movl \scratch_reg, %cr3 192 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req 194 movl %cr3, \scratch_reg 196 testl $PTI_SWITCH_MASK, \scratch_reg 198 andl $(~PTI_SWITCH_MASK), \scratch_reg 199 movl \scratch_reg, %cr3 201 orl $PTI_SWITCH_MASK, \scratch_reg [all …]
|
| D | entry_64.S | 156 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp 271 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi 532 SWITCH_TO_KERNEL_CR3 scratch_reg=%rdi 657 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi 744 SWITCH_TO_KERNEL_CR3 scratch_reg=%rdi /* to kernel CR3 */ 772 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi 1241 SAVE_AND_SWITCH_TO_KERNEL_CR3 scratch_reg=%rax save_reg=%r14 1273 RESTORE_CR3 scratch_reg=%rbx save_reg=%r14 1279 RESTORE_CR3 scratch_reg=%rbx save_reg=%r14 1302 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax [all …]
|
| D | entry_64_compat.S | 54 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp 207 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp 307 SWITCH_TO_USER_CR3_NOSTACK scratch_reg=%r8 scratch_reg2=%r9 363 SWITCH_TO_KERNEL_CR3 scratch_reg=%rdi
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| D | radeon_fence.c | 71 if (likely(rdev->wb.enabled || !drv->scratch_reg)) { in radeon_fence_write() 76 WREG32(drv->scratch_reg, seq); in radeon_fence_write() 94 if (likely(rdev->wb.enabled || !drv->scratch_reg)) { in radeon_fence_read() 101 seq = RREG32(drv->scratch_reg); in radeon_fence_read() 838 radeon_scratch_free(rdev, rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_start_ring() 840 rdev->fence_drv[ring].scratch_reg = 0; in radeon_fence_driver_start_ring() 855 r = radeon_scratch_get(rdev, &rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_start_ring() 861 rdev->fence_drv[ring].scratch_reg - in radeon_fence_driver_start_ring() 887 rdev->fence_drv[ring].scratch_reg = -1; in radeon_fence_driver_init_ring() 948 radeon_scratch_free(rdev, rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_fini()
|
| D | radeon_atombios.c | 4111 uint32_t scratch_reg; in radeon_save_bios_scratch_regs() local 4115 scratch_reg = R600_BIOS_0_SCRATCH; in radeon_save_bios_scratch_regs() 4117 scratch_reg = RADEON_BIOS_0_SCRATCH; in radeon_save_bios_scratch_regs() 4120 rdev->bios_scratch[i] = RREG32(scratch_reg + (i * 4)); in radeon_save_bios_scratch_regs() 4125 uint32_t scratch_reg; in radeon_restore_bios_scratch_regs() local 4129 scratch_reg = R600_BIOS_0_SCRATCH; in radeon_restore_bios_scratch_regs() 4131 scratch_reg = RADEON_BIOS_0_SCRATCH; in radeon_restore_bios_scratch_regs() 4134 WREG32(scratch_reg + (i * 4), rdev->bios_scratch[i]); in radeon_restore_bios_scratch_regs()
|
| D | r300.c | 242 radeon_ring_write(ring, PACKET0(rdev->fence_drv[fence->ring].scratch_reg, 0)); in r300_fence_ring_emit()
|
| D | radeon.h | 361 uint32_t scratch_reg; member
|
| D | r100.c | 874 radeon_ring_write(ring, PACKET0(rdev->fence_drv[fence->ring].scratch_reg, 0)); in r100_fence_ring_emit()
|
| D | r600.c | 2906 …radeon_ring_write(ring, ((rdev->fence_drv[fence->ring].scratch_reg - PACKET3_SET_CONFIG_REG_OFFSET… in r600_fence_ring_emit()
|
| /Linux-v5.4/arch/mips/mm/ |
| D | tlbex.c | 350 static int scratch_reg; variable 359 if (scratch_reg >= 0) { in build_get_work_registers() 361 UASM_i_MTC0(p, 1, c0_kscratch(), scratch_reg); in build_get_work_registers() 393 if (scratch_reg >= 0) { in build_restore_work_registers() 395 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_work_registers() 660 if (scratch_reg >= 0) in build_restore_pagemask() 677 if (scratch_reg >= 0) in build_restore_pagemask() 678 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_pagemask() 930 if (mode == refill_scratch && scratch_reg >= 0) in build_get_pgd_vmalloc64() 951 if (scratch_reg >= 0) in build_get_pgd_vmalloc64() [all …]
|
| /Linux-v5.4/drivers/net/wireless/marvell/libertas/ |
| D | if_sdio.c | 115 unsigned int scratch_reg; member 148 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch() 150 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch() 1169 card->scratch_reg = IF_SDIO_SCRATCH_OLD; in if_sdio_probe() 1172 card->scratch_reg = IF_SDIO_SCRATCH; in if_sdio_probe() 1176 card->scratch_reg = IF_SDIO_FW_STATUS; in if_sdio_probe()
|
| /Linux-v5.4/arch/x86/kernel/ |
| D | uprobes.c | 456 scratch_reg(struct arch_uprobe *auprobe, struct pt_regs *regs) in scratch_reg() function 473 unsigned long *sr = scratch_reg(auprobe, regs); in riprel_pre_xol() 484 unsigned long *sr = scratch_reg(auprobe, regs); in riprel_post_xol()
|