Home
last modified time | relevance | path

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

1234

/openbmc/u-boot/drivers/net/
H A Drtl8169.c409 tpc->chipset = i; in rtl8169_init_board()
418 tpc->chipset = 0; in rtl8169_init_board()
527 cur_rx = tpc->cur_rx; in rtl_recv_common()
574 tpc->cur_rx = cur_rx; in rtl_recv_common()
650 tpc->cur_tx++; in rtl_send_common()
760 tpc->cur_rx = 0; in rtl8169_hw_start()
780 if (tpc->chipset > 5) in rtl8169_hw_start()
811 tpc->cur_rx = 0; in rtl8169_init_ring()
812 tpc->cur_tx = 0; in rtl8169_init_ring()
813 tpc->dirty_tx = 0; in rtl8169_init_ring()
[all …]
/openbmc/linux/arch/sparc/mm/
H A Dfault_64.c64 regs->tpc); in bad_kernel_pc()
91 p4dp = p4d_offset(pgdp, tpc); in get_user_insn()
109 pa += tpc & ~HPAGE_MASK; in get_user_insn()
124 pa += (tpc & ~PAGE_MASK); in get_user_insn()
167 addr = regs->tpc; in do_fault_siginfo()
188 if (!regs->tpc || (regs->tpc & 0x3)) in get_fault_insn()
239 regs->tpc = entry->fixup; in do_kernel_fault()
263 regs->tpc); in bogus_32bit_fault_tpc()
302 unsigned long tpc = regs->tpc; in do_sparc64_fault() local
305 if ((tpc >= KERNBASE && tpc < (unsigned long) __init_end) || in do_sparc64_fault()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgv100.c49 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()
69 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x610), 0x00000001); 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
78 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0x403f0000); in gv100_gr_init_504430()
94 if (gr->ppc_tpc_mask[gpc][pes] & BIT(tpc)) in gv100_gr_nonpes_aware_tpc()
100 temp = (BIT(tpc) - 1) & gr->ppc_tpc_mask[gpc][pes]; in gv100_gr_nonpes_aware_tpc()
231 u32 gpc, tpc, pes, gtpc; in gv100_gr_oneinit_sm_id() local
258 tpc_table[gtpc] = tpc; in gv100_gr_oneinit_sm_id()
[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 Dgf100.c1366 int tpc; in gf100_gr_trap_gpc() local
1394 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_gr_trap_gpc()
1395 u32 mask = 0x00010000 << tpc; in gf100_gr_trap_gpc()
1897 int tpc, gpc; in gf100_gr_oneinit_sm_id() local
1899 for (tpc = 0; tpc < gr->tpc_max; tpc++) { in gf100_gr_oneinit_sm_id()
1901 if (tpc < gr->tpc_nr[gpc]) { in gf100_gr_oneinit_sm_id()
1903 gr->sm[gr->sm_nr].tpc = tpc; in gf100_gr_oneinit_sm_id()
2240 int gpc, tpc; in gf100_gr_init_419cc0() local
2245 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) in gf100_gr_init_419cc0()
2345 int gpc, tpc; in gf100_gr_init() local
[all …]
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 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 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 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 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 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()
/openbmc/linux/arch/sparc/kernel/
H A Dtraps_64.c62 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 …]
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 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 Dsignal_64.c78 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 …]
H A Dsignal32.c123 regs->tpc = pc; in do_sigreturn32()
211 regs->tpc = pc; in do_rt_sigreturn32()
390 regs->tpc &= 0xffffffff; in setup_frame32()
464 regs->tnpc = (regs->tpc + 4); in setup_frame32()
466 regs->tpc &= 0xffffffff; in setup_frame32()
524 regs->tpc &= 0xffffffff; in setup_rt_frame32()
596 regs->tnpc = (regs->tpc + 4); in setup_rt_frame32()
598 regs->tpc &= 0xffffffff; in setup_rt_frame32()
653 regs->tpc -= 4; in syscall_restart32()
687 regs->tpc -= 4; in do_signal32()
[all …]
H A Duprobes.c95 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()
/openbmc/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 Dperf_event.h23 (regs)->tpc = (ip); \
24 (regs)->tnpc = (regs)->tpc + 4; \
/openbmc/linux/drivers/memstick/host/
H A Drtsx_pci_ms.c129 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 …]
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()
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 …]
/openbmc/linux/drivers/memstick/core/
H A Dmemstick.c264 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()
/openbmc/qemu/linux-user/include/host/sparc64/
H A Dhost-signal.h19 return sc->sigc_regs.tpc; in host_signal_pc()
24 sc->sigc_regs.tpc = pc; in host_signal_set_pc()

1234