Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/arch/x86/entry/
H A Dcalling.h193 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req
195 mov %cr3, \scratch_reg
196 ADJUST_KERNEL_CR3 \scratch_reg
197 mov \scratch_reg, %cr3
204 .macro SWITCH_TO_USER_CR3_NOSTACK scratch_reg:req scratch_reg2:req
206 mov %cr3, \scratch_reg
213 movq \scratch_reg, \scratch_reg2
214 andq $(0x7FF), \scratch_reg /* mask ASID */
215 bt \scratch_reg, THIS_CPU_user_pcid_flush_mask
219 btr \scratch_reg, THIS_CPU_user_pcid_flush_mask
[all …]
H A Dentry_32.S134 .macro SWITCH_TO_USER_CR3 scratch_reg:req
137 movl %cr3, \scratch_reg
138 orl $PTI_SWITCH_MASK, \scratch_reg
139 movl \scratch_reg, %cr3
165 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req
167 movl %cr3, \scratch_reg
169 testl $PTI_SWITCH_MASK, \scratch_reg
171 andl $(~PTI_SWITCH_MASK), \scratch_reg
172 movl \scratch_reg, %cr3
174 orl $PTI_SWITCH_MASK, \scratch_reg
[all …]
H A Dentry_64.S101 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp
219 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi
613 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi
682 SWITCH_TO_KERNEL_CR3 scratch_reg=%rdi /* to kernel CR3 */
711 SWITCH_TO_USER_CR3_STACK scratch_reg=%rdi
921 SAVE_AND_SWITCH_TO_KERNEL_CR3 scratch_reg=%rax save_reg=%r14
942 SAVE_AND_SET_GSBASE scratch_reg=%rax save_reg=%rbx
1014 RESTORE_CR3 scratch_reg=%rax save_reg=%r14
1051 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
1110 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
[all …]
H A Dentry_64_compat.S57 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
213 SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp
316 SWITCH_TO_USER_CR3_NOSTACK scratch_reg=%r8 scratch_reg2=%r9
373 SWITCH_TO_KERNEL_CR3 scratch_reg=%rdi
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_fence.c71 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()
H A Dradeon_atombios.c4111 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()
H A Dr300.c242 radeon_ring_write(ring, PACKET0(rdev->fence_drv[fence->ring].scratch_reg, 0)); in r300_fence_ring_emit()
H A Dradeon.h365 uint32_t scratch_reg; member
H A Dr100.c874 radeon_ring_write(ring, PACKET0(rdev->fence_drv[fence->ring].scratch_reg, 0)); in r100_fence_ring_emit()
H A Dr600.c2906 …radeon_ring_write(ring, ((rdev->fence_drv[fence->ring].scratch_reg - PACKET3_SET_CONFIG_REG_OFFSET… in r600_fence_ring_emit()
/OK3568_Linux_fs/kernel/arch/mips/mm/
H A Dtlbex.c354 static int scratch_reg; variable
363 if (scratch_reg >= 0) { in build_get_work_registers()
365 UASM_i_MTC0(p, 1, c0_kscratch(), scratch_reg); in build_get_work_registers()
397 if (scratch_reg >= 0) { in build_restore_work_registers()
399 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_work_registers()
664 if (scratch_reg >= 0) in build_restore_pagemask()
681 if (scratch_reg >= 0) in build_restore_pagemask()
682 UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg); in build_restore_pagemask()
934 if (mode == refill_scratch && scratch_reg >= 0) in build_get_pgd_vmalloc64()
955 if (scratch_reg >= 0) in build_get_pgd_vmalloc64()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/libertas/
H A Dif_sdio.c115 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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlinux/
H A Dmoal_sdio_mmc.c2263 unsigned int scratch_reg = phandle->card_info->scratch_reg; in woal_sdiommc_reg_dbg() local
2293 reg_start = scratch_reg; in woal_sdiommc_reg_dbg()
2294 reg_end = scratch_reg + 10; in woal_sdiommc_reg_dbg()
2384 unsigned int scratch_reg = 0; in woal_sdiommc_dump_reg_info() local
2397 scratch_reg = phandle->card_info->scratch_reg; in woal_sdiommc_dump_reg_info()
2429 reg_start = scratch_reg; in woal_sdiommc_dump_reg_info()
2430 reg_end = scratch_reg + 10; in woal_sdiommc_dump_reg_info()
H A Dmoal_main.c119 .scratch_reg = 0x60,
155 .scratch_reg = 0x90,
191 .scratch_reg = 0xc0,
269 .scratch_reg = 0xe8,
308 .scratch_reg = 0xe8,
347 .scratch_reg = 0xe8,
387 .scratch_reg = 0xe8,
427 .scratch_reg = 0xe8,
467 .scratch_reg = 0xe8,
507 .scratch_reg = 0xe8,
[all …]
H A Dmoal_main.h1828 t_u8 scratch_reg; member
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlinux/
H A Dmoal_main.c6624 unsigned int scratch_reg = SDIO_SCRATCH_REG; local
6667 reg_start = scratch_reg;
6668 reg_end = scratch_reg + 10;
7540 unsigned int scratch_reg = SDIO_SCRATCH_REG; local
7574 reg_start = scratch_reg;
7575 reg_end = scratch_reg + 10;
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/
H A Dgtype.state23965 (!type struct 1556 nil gc_unused "scratch_reg"nil