/linux/arch/sparc/mm/ |
A D | fault_64.c | 64 regs->tpc); in bad_kernel_pc() 91 p4dp = p4d_offset(pgdp, tpc); in get_user_insn() 108 pa += tpc & ~HPAGE_MASK; in get_user_insn() 121 pa += (tpc & ~PAGE_MASK); in get_user_insn() 164 addr = regs->tpc; in do_fault_siginfo() 185 if (!regs->tpc || (regs->tpc & 0x3)) in get_fault_insn() 236 regs->tpc = entry->fixup; in do_kernel_fault() 260 regs->tpc); in bogus_32bit_fault_tpc() 299 unsigned long tpc = regs->tpc; in do_sparc64_fault() local 302 if ((tpc >= KERNBASE && tpc < (unsigned long) __init_end) || in do_sparc64_fault() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
A D | gv100.c | 28 gv100_gr_trap_sm(struct gf100_gr *gr, int gpc, int tpc, int sm) in gv100_gr_trap_sm() argument 42 gpc, tpc, sm, gerr, glob, werr, warp ? warp->name : ""); 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() 68 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x728 + sm), 0x0085eb64); in gv100_gr_init_shader_exceptions() 69 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x610), 0x00000001); in gv100_gr_init_shader_exceptions() 70 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x72c + sm), 0x00000004); in gv100_gr_init_shader_exceptions() 75 gv100_gr_init_504430(struct gf100_gr *gr, int gpc, int tpc) in gv100_gr_init_504430() argument [all …]
|
A D | gf100.c | 1306 int tpc; in gf100_gr_trap_gpc() local 1334 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_gr_trap_gpc() 1335 u32 mask = 0x00010000 << tpc; in gf100_gr_trap_gpc() 1853 int tpc, gpc; in gf100_gr_oneinit_sm_id() local 1854 for (tpc = 0; tpc < gr->tpc_max; tpc++) { in gf100_gr_oneinit_sm_id() 1856 if (tpc < gr->tpc_nr[gpc]) { in gf100_gr_oneinit_sm_id() 1858 gr->sm[gr->sm_nr].tpc = tpc; in gf100_gr_oneinit_sm_id() 2174 int gpc, tpc; in gf100_gr_init_419cc0() local 2179 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) in gf100_gr_init_419cc0() 2259 int gpc, tpc, rop; in gf100_gr_init() local [all …]
|
A D | ctxgf108.c | 749 int gpc, tpc; in gf108_grctx_generate_attrib() local 757 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf108_grctx_generate_attrib() 761 const u32 o = TPC_UNIT(gpc, tpc, 0x500); in gf108_grctx_generate_attrib() 791 .tpc = gf108_grctx_pack_tpc,
|
A D | ctxgf100.c | 1072 int gpc, tpc; in gf100_grctx_generate_attrib() local 1080 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_grctx_generate_attrib() 1081 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in gf100_grctx_generate_attrib() 1315 gf100_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gf100_grctx_generate_sm_id() argument 1318 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gf100_grctx_generate_sm_id() 1319 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x4e8), sm); in gf100_grctx_generate_sm_id() 1320 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gf100_grctx_generate_sm_id() 1321 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gf100_grctx_generate_sm_id() 1331 func->sm_id(gr, gr->sm[sm].gpc, gr->sm[sm].tpc, sm); in gf100_grctx_generate_floorsweep() 1377 gf100_gr_mmio(gr, grctx->tpc); in gf100_grctx_generate_main() [all …]
|
A D | ctxgp100.c | 105 const u8 tpc = gr->sm[sm].tpc; in gp100_grctx_generate_smid_config() local 106 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gp100_grctx_generate_smid_config() 107 gpcs[gpc + (gr->func->gpc_nr * (tpc / 4))] |= sm << ((tpc % 4) * 8); in gp100_grctx_generate_smid_config()
|
A D | ctxgm200.c | 56 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()
|
A D | ctxtu102.c | 34 tu102_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in tu102_grctx_generate_sm_id() argument 37 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x608), sm); in tu102_grctx_generate_sm_id() 38 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in tu102_grctx_generate_sm_id()
|
A D | ctxgm107.c | 955 gm107_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gm107_grctx_generate_sm_id() argument 958 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gm107_grctx_generate_sm_id() 959 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gm107_grctx_generate_sm_id() 960 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gm107_grctx_generate_sm_id() 971 .tpc = gm107_grctx_pack_tpc,
|
A D | gm107.c | 294 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()
|
/linux/arch/sparc/kernel/ |
A D | traps_64.c | 62 unsigned long tpc; member 107 regs->tpc &= 0xffffffff; in bad_trap() 201 regs->tpc &= 0xffffffff; in spitfire_insn_access_exception() 1606 regs->tpc += 4; in cheetah_deferred_handler() 1789 regs->tpc); in cheetah_plus_parity_error() 1797 regs->tpc); in cheetah_plus_parity_error() 1973 pfx, regs->tpc, (void *) regs->tpc); in sun4v_log_error() 2058 regs->tpc); in do_mcd_err() 2227 regs->tpc += 4; in sun4v_nonresum_error() 2487 pc = regs->tpc; in show_stack() [all …]
|
A D | signal_64.c | 78 regs->tpc = pc; in sparc64_set_context() 169 regs->tpc = regs->tnpc; in sparc64_get_context() 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() 441 regs->tnpc = (regs->tpc + 4); in setup_rt_frame() 443 regs->tpc &= 0xffffffff; in setup_rt_frame() 467 regs->tpc -= 4; in syscall_restart() 532 regs->tpc -= 4; in do_signal() [all …]
|
A D | kprobes.c | 108 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()
|
A D | kgdb_64.c | 37 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()
|
A D | signal32.c | 124 regs->tpc = pc; in do_sigreturn32() 212 regs->tpc = pc; in do_rt_sigreturn32() 389 regs->tpc &= 0xffffffff; in setup_frame32() 463 regs->tnpc = (regs->tpc + 4); in setup_frame32() 465 regs->tpc &= 0xffffffff; in setup_frame32() 523 regs->tpc &= 0xffffffff; in setup_rt_frame32() 595 regs->tnpc = (regs->tpc + 4); in setup_rt_frame32() 597 regs->tpc &= 0xffffffff; in setup_rt_frame32() 652 regs->tpc -= 4; in syscall_restart32() 686 regs->tpc -= 4; in do_signal32() [all …]
|
A D | uprobes.c | 95 if (regs->tnpc == regs->tpc + 0x4UL) in relbranch_fixup() 176 regs->tpc += 4; in arch_uprobe_skip_sstep() 198 autask->saved_tpc = regs->tpc; in arch_uprobe_pre_xol() 225 regs->tpc = autask->saved_tnpc; in arch_uprobe_post_xol() 229 regs->tpc = autask->saved_tnpc+4; in arch_uprobe_post_xol()
|
A D | unaligned_64.c | 241 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()
|
A D | process_64.c | 178 regs->tpc, regs->tnpc, regs->y, print_tainted()); in show_regs() 179 printk("TPC: <%pS>\n", (void *) regs->tpc); in show_regs() 210 rp->tpc = regs->tpc; in __global_reg_self() 282 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace() 288 (void *) gp->tpc, in arch_trigger_cpumask_backtrace() 294 gp->tpc, gp->o7, gp->i7, gp->rpc); in arch_trigger_cpumask_backtrace() 558 regs->tpc, in fault_in_user_windows()
|
/linux/drivers/memstick/host/ |
A D | rtsx_pci_ms.c | 129 u8 tpc, u8 cfg, struct scatterlist *sg) in ms_transfer_data() argument 140 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data() 153 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data() 205 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes() 219 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes() 246 if (!(tpc & 0x08)) { in ms_write_bytes() 281 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes() 315 if (!(tpc & 0x08)) { in ms_read_bytes() 353 req->tpc, cfg, &(req->sg)); in rtsx_pci_ms_issue_cmd() 356 err = ms_read_bytes(host, req->tpc, cfg, in rtsx_pci_ms_issue_cmd() [all …]
|
A D | rtsx_usb_ms.c | 231 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() 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 394 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes() 432 if (!(tpc & 0x08)) { in ms_read_bytes() 471 req->tpc, cfg, &(req->sg)); in rtsx_usb_ms_issue_cmd() 474 err = ms_read_bytes(host, req->tpc, cfg, in rtsx_usb_ms_issue_cmd() [all …]
|
/linux/arch/sparc/include/asm/ |
A D | processor_64.h | 101 regs->tpc = ((pc & (~3)) - 4); \ 102 regs->tnpc = regs->tpc + 4; \ 145 regs->tpc = ((pc & (~3)) - 4); \ 146 regs->tnpc = regs->tpc + 4; \ 189 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->tpc)
|
A D | ptrace.h | 42 unsigned long tpc; member 65 #define instruction_pointer(regs) ((regs)->tpc) 67 (regs)->tpc = (val); \
|
A D | perf_event.h | 23 (regs)->tpc = (ip); \ 24 (regs)->tnpc = (regs)->tpc + 4; \
|
/linux/drivers/memstick/core/ |
A D | memstick.c | 264 void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req_sg() argument 267 mrq->tpc = tpc; in memstick_init_req_sg() 268 if (tpc & 8) in memstick_init_req_sg() 276 if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD) in memstick_init_req_sg() 294 void memstick_init_req(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req() argument 297 mrq->tpc = tpc; in memstick_init_req() 298 if (tpc & 8) in memstick_init_req() 309 if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD) in memstick_init_req()
|
/linux/arch/powerpc/kernel/ |
A D | setup-common.c | 392 static void __init cpu_init_thread_core_maps(int tpc) in cpu_init_thread_core_maps() argument 396 threads_per_core = tpc; in cpu_init_thread_core_maps() 397 threads_per_subcore = tpc; in cpu_init_thread_core_maps() 403 threads_shift = ilog2(tpc); in cpu_init_thread_core_maps() 404 BUG_ON(tpc != (1 << threads_shift)); in cpu_init_thread_core_maps() 406 for (i = 0; i < tpc; i++) in cpu_init_thread_core_maps() 410 tpc, tpc > 1 ? "s" : ""); in cpu_init_thread_core_maps()
|