Home
last modified time | relevance | path

Searched refs:tpc (Results 1 – 25 of 65) sorted by relevance

123

/linux/arch/sparc/mm/
H A Dfault_64.c64 regs->tpc); in bad_kernel_pc()
69 unhandled_fault(regs->tpc, current, regs); in bad_kernel_pc()
79 static unsigned int get_user_insn(unsigned long tpc) in get_user_insn() argument
81 pgd_t *pgdp = pgd_offset(current->mm, tpc); in get_user_insn()
91 p4dp = p4d_offset(pgdp, tpc); in get_user_insn()
94 pudp = pud_offset(p4dp, tpc); in get_user_insn()
101 pmdp = pmd_offset(pudp, tpc); in get_user_insn()
109 pa += tpc & ~HPAGE_MASK; in get_user_insn()
118 ptep = pte_offset_map(pmdp, tpc); in get_user_insn()
124 pa += (tpc & ~PAGE_MASK); in get_user_insn()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgv100.c28 gv100_gr_trap_sm(struct gf100_gr *gr, int gpc, int tpc, int sm) in gv100_gr_trap_sm() argument
32 u32 werr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x730 + (sm * 0x80))); in gv100_gr_trap_sm()
33 u32 gerr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x734 + (sm * 0x80))); in gv100_gr_trap_sm()
42 gpc, tpc, sm, gerr, glob, werr, warp ? warp->name : ""); in gv100_gr_trap_sm()
44 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x730 + sm * 0x80), 0x00000000); in gv100_gr_trap_sm()
45 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x734 + sm * 0x80), gerr); in gv100_gr_trap_sm()
49 gv100_gr_trap_mp(struct gf100_gr *gr, int gpc, int tpc) in gv100_gr_trap_mp() argument
51 gv100_gr_trap_sm(gr, gpc, tpc, 0); in gv100_gr_trap_mp()
52 gv100_gr_trap_sm(gr, gpc, tpc, 1); in gv100_gr_trap_mp()
64 gv100_gr_init_shader_exceptions(struct gf100_gr *gr, int gpc, int tpc) in gv100_gr_init_shader_exceptions() argument
[all …]
H A Dctxtu102.c34 tu102_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in tu102_grctx_generate_sm_id() argument
38 tpc = gv100_gr_nonpes_aware_tpc(gr, gpc, tpc); in tu102_grctx_generate_sm_id()
40 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x608), sm); in tu102_grctx_generate_sm_id()
41 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in tu102_grctx_generate_sm_id()
H A Dctxgf108.c746 int gpc, tpc; in gf108_grctx_generate_attrib() local
752 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf108_grctx_generate_attrib()
756 const u32 o = TPC_UNIT(gpc, tpc, 0x500); in gf108_grctx_generate_attrib()
786 .tpc = gf108_grctx_pack_tpc,
H A Dctxga102.c25 ga102_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in ga102_grctx_generate_sm_id() argument
29 tpc = gv100_gr_nonpes_aware_tpc(gr, gpc, tpc); in ga102_grctx_generate_sm_id()
31 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x608), sm); in ga102_grctx_generate_sm_id()
H A Dctxgf100.c1037 int gpc, tpc; in gf100_grctx_generate_attrib() local
1043 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_grctx_generate_attrib()
1044 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in gf100_grctx_generate_attrib()
1293 gf100_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gf100_grctx_generate_sm_id() argument
1296 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gf100_grctx_generate_sm_id()
1297 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x4e8), sm); in gf100_grctx_generate_sm_id()
1298 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gf100_grctx_generate_sm_id()
1299 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gf100_grctx_generate_sm_id()
1309 func->sm_id(gr, gr->sm[sm].gpc, gr->sm[sm].tpc, sm); in gf100_grctx_generate_floorsweep()
1356 gf100_gr_mmio(gr, grctx->tpc); in gf100_grctx_generate_main()
[all …]
H A Dctxgv100.c160 gv100_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gv100_grctx_generate_sm_id() argument
164 tpc = gv100_gr_nonpes_aware_tpc(gr, gpc, tpc); in gv100_grctx_generate_sm_id()
166 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x608), sm); in gv100_grctx_generate_sm_id()
167 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gv100_grctx_generate_sm_id()
168 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gv100_grctx_generate_sm_id()
H A Dctxgp100.c115 const u8 tpc = gr->sm[sm].tpc; in gp100_grctx_generate_smid_config() local
116 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gp100_grctx_generate_smid_config()
117 gpcs[gpc + (gr->func->gpc_nr * (tpc / 4))] |= sm << ((tpc % 4) * 8); in gp100_grctx_generate_smid_config()
H A Dctxgm107.c950 gm107_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gm107_grctx_generate_sm_id() argument
953 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gm107_grctx_generate_sm_id()
954 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gm107_grctx_generate_sm_id()
955 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gm107_grctx_generate_sm_id()
966 .tpc = gm107_grctx_pack_tpc,
H A Dctxgm200.c56 const u8 tpc = gr->sm[sm].tpc; in gm200_grctx_generate_smid_config() local
57 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gm200_grctx_generate_smid_config()
58 gpcs[gpc] |= sm << (tpc * 8); in gm200_grctx_generate_smid_config()
H A Dgm107.c294 gm107_gr_init_shader_exceptions(struct gf100_gr *gr, int gpc, int tpc) in gm107_gr_init_shader_exceptions() argument
297 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); in gm107_gr_init_shader_exceptions()
298 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x64c), 0x00000005); in gm107_gr_init_shader_exceptions()
302 gm107_gr_init_504430(struct gf100_gr *gr, int gpc, int tpc) in gm107_gr_init_504430() argument
305 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gm107_gr_init_504430()
H A Dgf100.h128 u8 tpc; member
175 void (*init_tex_hww_esr)(struct gf100_gr *, int gpc, int tpc);
176 void (*init_504430)(struct gf100_gr *, int gpc, int tpc);
177 void (*init_shader_exceptions)(struct gf100_gr *, int gpc, int tpc);
182 void (*trap_mp)(struct gf100_gr *, int gpc, int tpc);
263 u32 gv100_gr_nonpes_aware_tpc(struct gf100_gr *gr, u32 gpc, u32 tpc);
H A Dgp100.c72 gp100_gr_init_shader_exceptions(struct gf100_gr *gr, int gpc, int tpc) in gp100_gr_init_shader_exceptions() argument
75 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); in gp100_gr_init_shader_exceptions()
76 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x64c), 0x00000105); in gp100_gr_init_shader_exceptions()
H A Dtu102.c45 int tpc = gv100_gr_nonpes_aware_tpc(gr, gr->sm[sm].gpc, gr->sm[sm].tpc); in tu102_gr_init_fs() local
47 nvkm_wr32(device, GPC_UNIT(gr->sm[sm].gpc, 0x0c10 + tpc * 4), sm); in tu102_gr_init_fs()
/linux/arch/sparc/kernel/
H A Dsignal_64.c78 regs->tpc = pc; in sparc64_set_context()
166 regs->tpc = (regs->tnpc & 0xffffffff); in sparc64_get_context()
169 regs->tpc = regs->tnpc; in sparc64_get_context()
181 err |= __put_user(regs->tpc, &((*grp)[MC_PC])); in sparc64_get_context()
257 unsigned long tpc, tnpc, tstate, ufp; in do_rt_sigreturn() local
281 err = __get_user(tpc, &sf->regs.tpc); in do_rt_sigreturn()
284 tpc &= 0xffffffff; in do_rt_sigreturn()
287 err |= ((tpc | tnpc) & 3); in do_rt_sigreturn()
313 regs->tpc = tpc; in do_rt_sigreturn()
375 regs->tpc, regs->u_regs[UREG_I7]); in setup_rt_frame()
[all …]
H A Dkprobes.c108 regs->tpc = (unsigned long) p->addr; in prepare_singlestep()
111 regs->tpc = (unsigned long) &p->ainsn.insn[0]; in prepare_singlestep()
119 void *addr = (void *) regs->tpc; in kprobe_handler()
207 if (regs->tnpc == regs->tpc + 0x4UL) in relbranch_fixup()
285 regs->tpc = kcb->kprobe_orig_tnpc; in resume_execution()
336 regs->tpc = (unsigned long)cur->addr; in kprobe_fault_handler()
353 entry = search_exception_tables(regs->tpc); in kprobe_fault_handler()
355 regs->tpc = entry->fixup; in kprobe_fault_handler()
356 regs->tnpc = regs->tpc + 4; in kprobe_fault_handler()
455 regs->tpc = orig_ret_address; in trampoline_probe_handler()
H A Dkgdb_64.c37 gdb_regs[GDB_PC] = regs->tpc; in pt_regs_to_gdb_regs()
105 regs->tpc = gdb_regs[GDB_PC]; in gdb_regs_to_pt_regs()
148 linux_regs->tpc = addr; in kgdb_arch_handle_exception()
155 if (linux_regs->tpc == (unsigned long) arch_kgdb_breakpoint) { in kgdb_arch_handle_exception()
156 linux_regs->tpc = linux_regs->tnpc; in kgdb_arch_handle_exception()
194 regs->tpc = ip; in kgdb_arch_set_pc()
195 regs->tnpc = regs->tpc + 4; in kgdb_arch_set_pc()
H A Dsignal32.c123 regs->tpc = pc; in do_sigreturn32()
211 regs->tpc = pc; in do_rt_sigreturn32()
381 regs->tpc, regs->u_regs[UREG_I7]); in setup_frame32()
390 regs->tpc &= 0xffffffff; in setup_frame32()
393 err = put_user(regs->tpc, &sf->info.si_regs.pc); in setup_frame32()
463 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame32()
464 regs->tnpc = (regs->tpc + 4); in setup_frame32()
466 regs->tpc &= 0xffffffff; in setup_frame32()
515 regs->tpc, regs->u_regs[UREG_I7]); in setup_rt_frame32()
524 regs->tpc &= 0xffffffff; in setup_rt_frame32()
[all …]
H A Dunaligned_64.c241 regs->tpc = regs->tnpc; in advance()
244 regs->tpc &= 0xffffffff; in advance()
265 entry = search_exception_tables(regs->tpc); in kernel_mna_trap_fault()
287 regs->tpc = entry->fixup; in kernel_mna_trap_fault()
288 regs->tnpc = regs->tpc + 4; in kernel_mna_trap_fault()
302 regs->tpc, (void *) regs->tpc); in log_unaligned()
329 "at <%016lx>.\n", regs->tpc); in kernel_unaligned_trap()
599 unsigned long pc = regs->tpc; in handle_lddfmna()
663 unsigned long pc = regs->tpc; in handle_stdfmna()
H A Dprocess_64.c169 regs->tpc, regs->tnpc, regs->y, print_tainted()); in show_regs()
170 printk("TPC: <%pS>\n", (void *) regs->tpc); in show_regs()
201 rp->tpc = regs->tpc; in __global_reg_self()
273 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace()
279 (void *) gp->tpc, in arch_trigger_cpumask_backtrace()
285 gp->tpc, gp->o7, gp->i7, gp->rpc); in arch_trigger_cpumask_backtrace()
549 regs->tpc, in fault_in_user_windows()
H A Detrap_64.S55 1: rdpr %tpc, %g3
226 rdpr %tpc, %g3
236 rdpr %tpc, %g3
251 rdpr %tpc, %g3
261 rdpr %tpc, %g3
/linux/arch/sparc/include/asm/
H A Dprocessor_64.h97 regs->tpc = ((pc & (~3)) - 4); \
98 regs->tnpc = regs->tpc + 4; \
141 regs->tpc = ((pc & (~3)) - 4); \
142 regs->tnpc = regs->tpc + 4; \
182 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->tpc)
H A Dptrace.h42 unsigned long tpc; member
65 #define instruction_pointer(regs) ((regs)->tpc)
67 (regs)->tpc = (val); \
H A Dperf_event.h23 (regs)->tpc = (ip); \
24 (regs)->tnpc = (regs)->tpc + 4; \
/linux/drivers/memstick/host/
H A Drtsx_usb_ms.c231 u8 tpc, u8 cfg, struct scatterlist *sg) in ms_transfer_data() argument
242 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data()
265 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data()
316 static int ms_write_bytes(struct rtsx_usb_ms *host, u8 tpc, in ms_write_bytes() argument
322 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes()
334 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes()
364 if (!(tpc & 0x08)) { in ms_write_bytes()
383 static int ms_read_bytes(struct rtsx_usb_ms *host, u8 tpc, in ms_read_bytes() argument
390 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes()
394 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes()
[all …]

123