Home
last modified time | relevance | path

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

/linux-6.6.21/arch/x86/entry/
Dcalling.h167 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req
169 mov %cr3, \scratch_reg
170 ADJUST_KERNEL_CR3 \scratch_reg
171 mov \scratch_reg, %cr3
178 .macro SWITCH_TO_USER_CR3_NOSTACK scratch_reg:req scratch_reg2:req
180 mov %cr3, \scratch_reg
187 movq \scratch_reg, \scratch_reg2
188 andq $(0x7FF), \scratch_reg /* mask ASID */
189 bt \scratch_reg, THIS_CPU_user_pcid_flush_mask
193 btr \scratch_reg, THIS_CPU_user_pcid_flush_mask
[all …]
Dentry_32.S57 .macro SWITCH_TO_USER_CR3 scratch_reg:req
60 movl %cr3, \scratch_reg
61 orl $PTI_SWITCH_MASK, \scratch_reg
62 movl \scratch_reg, %cr3
88 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req
90 movl %cr3, \scratch_reg
92 testl $PTI_SWITCH_MASK, \scratch_reg
94 andl $(~PTI_SWITCH_MASK), \scratch_reg
95 movl \scratch_reg, %cr3
97 orl $PTI_SWITCH_MASK, \scratch_reg
[all …]
Dentry_64.S94 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp
219 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi
662 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi
738 SWITCH_TO_KERNEL_CR3 scratch_reg=%rdi /* to kernel CR3 */
766 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi
940 SAVE_AND_SWITCH_TO_KERNEL_CR3 scratch_reg=%rax save_reg=%r14
961 SAVE_AND_SET_GSBASE scratch_reg=%rax save_reg=%rbx
1033 RESTORE_CR3 scratch_reg=%rax save_reg=%r14
1072 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
1126 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
[all …]
Dentry_64_compat.S58 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
190 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp
268 SWITCH_TO_USER_CR3_NOSTACK scratch_reg=%r8 scratch_reg2=%r9
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_fence.c70 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()
100 seq = RREG32(drv->scratch_reg); in radeon_fence_read()
821 radeon_scratch_free(rdev, rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_start_ring()
823 rdev->fence_drv[ring].scratch_reg = 0; in radeon_fence_driver_start_ring()
838 r = radeon_scratch_get(rdev, &rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_start_ring()
844 rdev->fence_drv[ring].scratch_reg - in radeon_fence_driver_start_ring()
870 rdev->fence_drv[ring].scratch_reg = -1; in radeon_fence_driver_init_ring()
928 radeon_scratch_free(rdev, rdev->fence_drv[ring].scratch_reg); in radeon_fence_driver_fini()
Dradeon_atombios.c4106 uint32_t scratch_reg; in radeon_save_bios_scratch_regs() local
4110 scratch_reg = R600_BIOS_0_SCRATCH; in radeon_save_bios_scratch_regs()
4112 scratch_reg = RADEON_BIOS_0_SCRATCH; in radeon_save_bios_scratch_regs()
4115 rdev->bios_scratch[i] = RREG32(scratch_reg + (i * 4)); in radeon_save_bios_scratch_regs()
4120 uint32_t scratch_reg; in radeon_restore_bios_scratch_regs() local
4124 scratch_reg = R600_BIOS_0_SCRATCH; in radeon_restore_bios_scratch_regs()
4126 scratch_reg = RADEON_BIOS_0_SCRATCH; in radeon_restore_bios_scratch_regs()
4129 WREG32(scratch_reg + (i * 4), rdev->bios_scratch[i]); in radeon_restore_bios_scratch_regs()
Dr300.c239 radeon_ring_write(ring, PACKET0(rdev->fence_drv[fence->ring].scratch_reg, 0)); in r300_fence_ring_emit()
Dradeon.h365 uint32_t scratch_reg; member
Dr100.c884 radeon_ring_write(ring, PACKET0(rdev->fence_drv[fence->ring].scratch_reg, 0)); in r100_fence_ring_emit()
Dr600.c2907 …radeon_ring_write(ring, ((rdev->fence_drv[fence->ring].scratch_reg - PACKET3_SET_CONFIG_REG_OFFSET… in r600_fence_ring_emit()
/linux-6.6.21/arch/mips/mm/
Dtlbex.c347 static int scratch_reg; variable
356 if (scratch_reg >= 0) { in build_get_work_registers()
358 UASM_i_MTC0(p, 1, c0_kscratch(), scratch_reg); in build_get_work_registers()
390 if (scratch_reg >= 0) { in build_restore_work_registers()
392 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_work_registers()
638 if (scratch_reg >= 0) in build_restore_pagemask()
655 if (scratch_reg >= 0) in build_restore_pagemask()
656 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_pagemask()
908 if (mode == refill_scratch && scratch_reg >= 0) in build_get_pgd_vmalloc64()
929 if (scratch_reg >= 0) in build_get_pgd_vmalloc64()
[all …]
/linux-6.6.21/drivers/net/wireless/marvell/libertas/
Dif_sdio.c115 unsigned int scratch_reg; member
149 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
151 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
1170 card->scratch_reg = IF_SDIO_SCRATCH_OLD; in if_sdio_probe()
1173 card->scratch_reg = IF_SDIO_SCRATCH; in if_sdio_probe()
1177 card->scratch_reg = IF_SDIO_FW_STATUS; in if_sdio_probe()
/linux-6.6.21/arch/x86/kernel/
Duprobes.c457 scratch_reg(struct arch_uprobe *auprobe, struct pt_regs *regs) in scratch_reg() function
474 unsigned long *sr = scratch_reg(auprobe, regs); in riprel_pre_xol()
485 unsigned long *sr = scratch_reg(auprobe, regs); in riprel_post_xol()