| /linux/drivers/pci/endpoint/ |
| A D | pci-epc-core.c | 42 if (!epc || IS_ERR(epc)) in pci_epc_put() 77 return epc; in pci_epc_get() 177 if (IS_ERR(epc) || !epc->ops->stop) in pci_epc_stop() 181 epc->ops->stop(epc); in pci_epc_stop() 203 ret = epc->ops->start(epc); in pci_epc_start() 633 epf->epc = epc; in pci_epc_add_epf() 664 if (!epc || IS_ERR(epc) || !epf) in pci_epc_remove_epf() 693 if (!epc || IS_ERR(epc)) in pci_epc_linkup() 710 if (!epc || IS_ERR(epc)) in pci_epc_init_notify() 744 epc); in devm_pci_epc_destroy() [all …]
|
| A D | pci-epc-mem.c | 60 epc->num_windows = 0; in pci_epc_multi_mem_init() 65 epc->windows = kcalloc(num_windows, sizeof(*epc->windows), GFP_KERNEL); in pci_epc_multi_mem_init() 66 if (!epc->windows) in pci_epc_multi_mem_init() 98 epc->windows[i] = mem; in pci_epc_multi_mem_init() 101 epc->mem = epc->windows[0]; in pci_epc_multi_mem_init() 112 kfree(epc->windows); in pci_epc_multi_mem_init() 143 if (!epc->num_windows) in pci_epc_mem_exit() 151 kfree(epc->windows); in pci_epc_mem_exit() 153 epc->windows = NULL; in pci_epc_mem_exit() 154 epc->mem = NULL; in pci_epc_mem_exit() [all …]
|
| A D | pci-ep-cfs.c | 33 struct pci_epc *epc; member 53 struct pci_epc *epc = epc_group->epc; in pci_secondary_epc_epf_link() local 74 struct pci_epc *epc; in pci_secondary_epc_epf_unlink() local 79 epc = epc_group->epc; in pci_secondary_epc_epf_unlink() 114 struct pci_epc *epc = epc_group->epc; in pci_primary_epc_epf_link() local 140 epc = epc_group->epc; in pci_primary_epc_epf_unlink() 176 epc = epc_group->epc; in pci_epc_start_store() 216 struct pci_epc *epc = epc_group->epc; in pci_epc_epf_link() local 242 epc = epc_group->epc; in pci_epc_epf_unlink() 282 if (IS_ERR(epc)) { in pci_ep_cfs_add_epc_group() [all …]
|
| A D | pci-epf-core.c | 96 struct pci_epc *epc; in pci_epf_bind() local 117 epc = epf->epc; in pci_epf_bind() 134 epc = epf->sec_epc; in pci_epf_bind() 153 epf_vf->epc = epf->epc; in pci_epf_bind() 194 if (epf_pf->epc || epf_vf->epc || epf_vf->epf_pf) in pci_epf_add_vepf() 256 struct pci_epc *epc; in pci_epf_free_space() local 262 epc = epf->epc; in pci_epf_free_space() 265 epc = epf->sec_epc; in pci_epf_free_space() 296 struct pci_epc *epc; in pci_epf_alloc_space() local 309 epc = epf->epc; in pci_epf_alloc_space() [all …]
|
| A D | built-in.a | 4 pci-epc-core.o/ 6 pci-epc-mem.o/
|
| A D | Makefile | 7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\ 8 pci-epc-mem.o functions/
|
| A D | .built-in.a.cmd | 1 …/pci-ep-cfs.o drivers/pci/endpoint/pci-epc-core.o drivers/pci/endpoint/pci-epf-core.o drivers/pci/…
|
| /linux/arch/mips/kernel/ |
| A D | branch.c | 38 return epc; in __isa_exception_epc() 45 epc += 4; in __isa_exception_epc() 47 epc += 2; in __isa_exception_epc() 49 epc += 2; in __isa_exception_epc() 51 epc += 4; in __isa_exception_epc() 53 return epc; in __isa_exception_epc() 326 long epc; in __MIPS16e_compute_return_epc() local 362 epc |= in __MIPS16e_compute_return_epc() 701 epc = epc + 4 + in __compute_return_epc_for_insn() 724 epc = epc + 4 + in __compute_return_epc_for_insn() [all …]
|
| A D | mips-r2-to-r6-emul.c | 260 epc = regs->cp0_epc; in jr_func() 918 epc = regs->cp0_epc; in mipsr2_decoder() 925 inst, epc, pass); in mipsr2_decoder() 994 regs->cp0_epc = epc; in mipsr2_decoder() 1001 nepc = epc + 4; in mipsr2_decoder() 1051 regs->cp0_epc = epc; in mipsr2_decoder() 1056 nepc = epc + 4; in mipsr2_decoder() 1095 regs->cp0_epc = epc; in mipsr2_decoder() 1120 regs->cp0_epc = epc; in mipsr2_decoder() 1127 nepc = epc + 4; in mipsr2_decoder() [all …]
|
| /linux/include/linux/ |
| A D | pci-epc.h | 87 int (*start)(struct pci_epc *epc); 88 void (*stop)(struct pci_epc *epc); 187 dev_set_drvdata(&epc->dev, data); in epc_set_drvdata() 192 return dev_get_drvdata(&epc->dev); in epc_get_drvdata() 208 void pci_epc_destroy(struct pci_epc *epc); 211 void pci_epc_linkup(struct pci_epc *epc); 212 void pci_epc_init_notify(struct pci_epc *epc); 237 int pci_epc_start(struct pci_epc *epc); 238 void pci_epc_stop(struct pci_epc *epc); 246 void pci_epc_put(struct pci_epc *epc); [all …]
|
| /linux/drivers/pci/endpoint/functions/ |
| A D | pci-epf-ntb.c | 153 epc = ntb_epc->epc; in epf_ntb_link_up() 249 epc = ntb_epc->epc; in epf_ntb_configure_mw() 306 epc = ntb_epc->epc; in epf_ntb_teardown_mw() 397 epc = ntb_epc->epc; in epf_ntb_configure_msi() 506 epc = ntb_epc->epc; in epf_ntb_configure_msix() 566 epc = ntb_epc->epc; in epf_ntb_configure_db() 599 epc = ntb_epc->epc; in epf_ntb_teardown_db() 741 epc = ntb_epc->epc; in epf_ntb_peer_spad_bar_clear() 802 epc = ntb_epc->epc; in epf_ntb_peer_spad_bar_set() 857 epc = ntb_epc->epc; in epf_ntb_config_sspad_bar_clear() [all …]
|
| A D | pci-epf-test.c | 238 struct pci_epc *epc = epf->epc; in pci_epf_test_copy() local 321 struct pci_epc *epc = epf->epc; in pci_epf_test_read() local 409 struct pci_epc *epc = epf->epc; in pci_epf_test_write() local 496 struct pci_epc *epc = epf->epc; in pci_epf_test_raise_irq() local 530 struct pci_epc *epc = epf->epc; in pci_epf_test_cmd_handler() local 614 struct pci_epc *epc = epf->epc; in pci_epf_test_unbind() local 620 pci_epc_stop(epc); in pci_epf_test_unbind() 638 struct pci_epc *epc = epf->epc; in pci_epf_test_set_bar() local 677 struct pci_epc *epc = epf->epc; in pci_epf_test_core_init() local 838 struct pci_epc *epc = epf->epc; in pci_epf_test_bind() local [all …]
|
| /linux/drivers/pci/controller/dwc/ |
| A D | pcie-designware-ep.c | 20 struct pci_epc *epc = ep->epc; in dw_pcie_ep_linkup() local 22 pci_epc_linkup(epc); in dw_pcie_ep_linkup() 28 struct pci_epc *epc = ep->epc; in dw_pcie_ep_init_notify() local 30 pci_epc_init_notify(epc); in dw_pcie_ep_init_notify() 496 struct pci_epc *epc = ep->epc; in dw_pcie_ep_raise_msi_irq() local 568 struct pci_epc *epc = ep->epc; in dw_pcie_ep_raise_msix_irq() local 613 struct pci_epc *epc = ep->epc; in dw_pcie_ep_exit() local 683 struct pci_epc *epc; in dw_pcie_ep_init() local 744 if (IS_ERR(epc)) { in dw_pcie_ep_init() 746 return PTR_ERR(epc); in dw_pcie_ep_init() [all …]
|
| /linux/drivers/pci/controller/cadence/ |
| A D | pcie-cadence-ep.c | 37 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); in cdns_pcie_ep_write_header() 633 struct pci_epc *epc; in cdns_pcie_ep_setup() local 665 if (IS_ERR(epc)) { in cdns_pcie_ep_setup() 667 return PTR_ERR(epc); in cdns_pcie_ep_setup() 670 epc_set_drvdata(epc, ep); in cdns_pcie_ep_setup() 673 epc->max_functions = 1; in cdns_pcie_ep_setup() 680 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup() 682 if (!epc->max_vfs) in cdns_pcie_ep_setup() 686 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup() 690 if (epc->max_vfs[i] == 0) in cdns_pcie_ep_setup() [all …]
|
| /linux/drivers/pci/controller/ |
| A D | pcie-rockchip-ep.c | 42 struct pci_epc *epc; member 274 dev_err(&epc->dev, "no free outbound region\n"); in rockchip_pcie_ep_map_addr() 498 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start() 552 &ep->epc->max_functions); in rockchip_pcie_parse_ep_dt() 554 ep->epc->max_functions = 1; in rockchip_pcie_parse_ep_dt() 569 struct pci_epc *epc; in rockchip_pcie_ep_probe() local 582 if (IS_ERR(epc)) { in rockchip_pcie_ep_probe() 584 return PTR_ERR(epc); in rockchip_pcie_ep_probe() 587 ep->epc = epc; in rockchip_pcie_ep_probe() 588 epc_set_drvdata(epc, ep); in rockchip_pcie_ep_probe() [all …]
|
| A D | pcie-rcar-ep.c | 162 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_write_header() 199 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_set_bar() 249 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); in rcar_pcie_ep_clear_bar() 422 static int rcar_pcie_ep_start(struct pci_epc *epc) in rcar_pcie_ep_start() argument 432 static void rcar_pcie_ep_stop(struct pci_epc *epc) in rcar_pcie_ep_stop() argument 482 struct pci_epc *epc; in rcar_pcie_ep_probe() local 524 epc = devm_pci_epc_create(dev, &rcar_pcie_epc_ops); in rcar_pcie_ep_probe() 525 if (IS_ERR(epc)) { in rcar_pcie_ep_probe() 527 err = PTR_ERR(epc); in rcar_pcie_ep_probe() 531 epc->max_functions = ep->max_functions; in rcar_pcie_ep_probe() [all …]
|
| /linux/arch/mips/kvm/ |
| A D | emulate.c | 85 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 94 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 104 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 114 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 129 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 144 epc += 4; in kvm_compute_return_epc() 156 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 166 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 179 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() 192 epc = epc + 4 + (insn.i_format.simmediate << 2); in kvm_compute_return_epc() [all …]
|
| /linux/arch/riscv/kernel/ |
| A D | traps_misaligned.c | 243 unsigned long epc = regs->epc; in handle_misaligned_load() local 244 unsigned long insn = get_insn(epc); in handle_misaligned_load() 248 regs->epc = 0; in handle_misaligned_load() 306 regs->epc = epc; in handle_misaligned_load() 318 regs->epc = epc + INSN_LEN(insn); in handle_misaligned_load() 326 unsigned long epc = regs->epc; in handle_misaligned_store() local 327 unsigned long insn = get_insn(epc); in handle_misaligned_store() 331 regs->epc = 0; in handle_misaligned_store() 360 regs->epc = epc; in handle_misaligned_store() 367 regs->epc = epc + INSN_LEN(insn); in handle_misaligned_store()
|
| A D | traps.c | 97 do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \ 123 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->epc, in do_trap_load_misaligned() 131 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->epc, in do_trap_store_misaligned() 173 force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->epc); in do_trap_break() 179 else if (report_bug(regs->epc, regs) == BUG_TRAP_TYPE_WARN) in do_trap_break() 180 regs->epc += get_break_insn_length(regs->epc); in do_trap_break()
|
| A D | signal.c | 132 frame, (void *)regs->epc, (void *)regs->sp); in SYSCALL_DEFINE0() 217 regs->epc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame() 226 (void *)regs->epc, (void *)regs->ra, frame); in setup_rt_frame() 256 regs->epc -= 0x4; in handle_signal() 288 regs->epc -= 0x4; in do_signal() 293 regs->epc -= 0x4; in do_signal()
|
| A D | kgdb.c | 60 unsigned long pc = regs->epc; in get_step_address() 220 {DBG_REG_EPC, GDB_SIZEOF_REG, offsetof(struct pt_regs, epc)}, 273 regs->epc = pc; in kgdb_arch_set_pc() 295 regs->epc = addr; in kgdb_arch_update_addr() 345 type = kgdb_riscv_kgdbbreak(regs->epc); in kgdb_riscv_notify() 356 regs->epc += 4; in kgdb_riscv_notify()
|
| A D | process.c | 49 pr_cont("epc : %pS\n", (void *)regs->epc); in __show_regs() 54 regs->epc, regs->ra, regs->sp); in __show_regs() 98 regs->epc = pc; in start_thread()
|
| /linux/arch/riscv/mm/ |
| A D | extable.c | 22 fixup = search_exception_tables(regs->epc); in fixup_exception() 27 if (regs->epc >= BPF_JIT_REGION_START && regs->epc < BPF_JIT_REGION_END) in fixup_exception() 31 regs->epc = fixup->fixup; in fixup_exception()
|
| /linux/arch/riscv/include/asm/ |
| A D | ptrace.h | 16 unsigned long epc; member 69 return regs->epc; in instruction_pointer() 74 regs->epc = val; in instruction_pointer_set()
|
| /linux/arch/csky/kernel/ |
| A D | atomic.S | 21 mfcr a3, epc 53 mtcr a3, epc
|