/linux-master/drivers/pci/endpoint/ |
H A D | pci-epc-core.c | 13 #include <linux/pci-epc.h> 21 struct pci_epc *epc = *(struct pci_epc **)res; local 23 pci_epc_destroy(epc); 28 struct pci_epc **epc = res; local 30 return *epc == match_data; 35 * @epc: epc returned by pci_epc_get() 39 void pci_epc_put(struct pci_epc *epc) argument 41 if (IS_ERR_OR_NULL(epc)) 44 module_put(epc 59 struct pci_epc *epc; local 141 pci_epc_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 169 pci_epc_stop(struct pci_epc *epc) argument 186 pci_epc_start(struct pci_epc *epc) argument 214 pci_epc_raise_irq(struct pci_epc *epc, u8 func_no, u8 vfunc_no, unsigned int type, u16 interrupt_num) argument 257 pci_epc_map_msi_irq(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t phys_addr, u8 interrupt_num, u32 entry_size, u32 *msi_data, u32 *msi_addr_offset) argument 290 pci_epc_get_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 325 pci_epc_set_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u8 interrupts) argument 358 pci_epc_get_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 393 pci_epc_set_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u16 interrupts, enum pci_barno bir, u32 offset) argument 426 pci_epc_unmap_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t phys_addr) argument 455 pci_epc_map_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t phys_addr, u64 pci_addr, size_t size) argument 487 pci_epc_clear_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_bar *epf_bar) argument 516 pci_epc_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_bar *epf_bar) argument 557 pci_epc_write_header(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_header *header) argument 594 pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf, enum pci_epc_interface_type type) argument 652 pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf, enum pci_epc_interface_type type) argument 685 pci_epc_linkup(struct pci_epc *epc) argument 711 pci_epc_linkdown(struct pci_epc *epc) argument 737 pci_epc_init_notify(struct pci_epc *epc) argument 763 pci_epc_bme_notify(struct pci_epc *epc) argument 787 pci_epc_destroy(struct pci_epc *epc) argument 802 devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc) argument 830 struct pci_epc *epc; local 888 struct pci_epc **ptr, *epc; local [all...] |
H A D | Makefile | 7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\ 8 pci-epc-mem.o functions/
|
H A D | pci-epc-mem.c | 13 #include <linux/pci-epc.h> 40 * @epc: the EPC device that invoked pci_epc_mem_init 47 int pci_epc_multi_mem_init(struct pci_epc *epc, argument 60 epc->num_windows = 0; 65 epc->windows = kcalloc(num_windows, sizeof(*epc->windows), GFP_KERNEL); 66 if (!epc->windows) 98 epc->windows[i] = mem; 101 epc->mem = epc 128 pci_epc_mem_init(struct pci_epc *epc, phys_addr_t base, size_t size, size_t page_size) argument 148 pci_epc_mem_exit(struct pci_epc *epc) argument 178 pci_epc_mem_alloc_addr(struct pci_epc *epc, phys_addr_t *phys_addr, size_t size) argument 218 pci_epc_get_matching_window(struct pci_epc *epc, phys_addr_t phys_addr) argument 244 pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, void __iomem *virt_addr, size_t size) argument [all...] |
H A D | pci-ep-cfs.c | 13 #include <linux/pci-epc.h> 34 struct pci_epc *epc; member in struct:pci_epc_group 54 struct pci_epc *epc = epc_group->epc; local 57 ret = pci_epc_add_epf(epc, epf, SECONDARY_INTERFACE); 63 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); 75 struct pci_epc *epc; local 80 epc = epc_group->epc; 83 pci_epc_remove_epf(epc, ep 115 struct pci_epc *epc = epc_group->epc; local 136 struct pci_epc *epc; local 174 struct pci_epc *epc; local 220 struct pci_epc *epc = epc_group->epc; local 239 struct pci_epc *epc; local 266 struct pci_epc *epc; local [all...] |
H A D | pci-epf-core.c | 14 #include <linux/pci-epc.h> 64 struct pci_epc *epc; local 85 epc = epf->epc; 87 if (!IS_ERR_OR_NULL(epc)) { 88 if (!epc->max_vfs) { 94 if (vfunc_no > epc->max_vfs[func_no]) { 102 epc = epf->sec_epc; 104 if (!IS_ERR_OR_NULL(epc)) { 105 if (!epc 224 struct pci_epc *epc; local 267 struct pci_epc *epc; local [all...] |
/linux-master/include/linux/ |
H A D | pci-epc.h | 58 int (*write_header)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 60 int (*set_bar)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 62 void (*clear_bar)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 64 int (*map_addr)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 66 void (*unmap_addr)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 68 int (*set_msi)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 70 int (*get_msi)(struct pci_epc *epc, u8 func_no, u8 vfunc_no); 71 int (*set_msix)(struct pci_epc *epc, u8 func_no, u8 vfunc_no, 73 int (*get_msix)(struct pci_epc *epc, u8 func_no, u8 vfunc_no); 74 int (*raise_irq)(struct pci_epc *epc, u 205 epc_set_drvdata(struct pci_epc *epc, void *data) argument 210 epc_get_drvdata(struct pci_epc *epc) argument [all...] |
/linux-master/arch/mips/kernel/ |
H A D | branch.c | 32 long epc = regs->cp0_epc; local 35 if (__get_user(inst, (u16 __user *) msk_isa16_mode(epc))) { 38 return epc; 45 epc += 4; 47 epc += 2; 49 epc += 2; 51 epc += 4; 53 return epc; 326 long epc; local 328 epc 425 long epc = regs->cp0_epc; local 852 long epc; local [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | cfi.c | 11 * Returns the target address and the expected type when regs->epc points 31 * ebreak ; <- regs->epc 38 if (get_kernel_nofault(insn, (void *)regs->epc - 4)) 45 if (get_kernel_nofault(insn, (void *)regs->epc) || 46 get_kernel_nofault(insn, (void *)regs->epc + GET_INSN_LENGTH(insn))) 70 if (!is_cfi_trap(regs->epc)) 74 return report_cfi_failure_noaddr(regs, regs->epc); 76 return report_cfi_failure(regs, regs->epc, &target, type);
|
H A D | traps.c | 154 do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \ 158 do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \ 184 do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->epc, 191 do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->epc, 207 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->epc, 215 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->epc, 228 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->epc, 236 do_trap_error(regs, SIGBUS, BUS_ADRALN, regs->epc, 284 force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->epc); 290 else if (report_bug(regs->epc, reg [all...] |
H A D | traps_misaligned.c | 353 static inline int get_insn(struct pt_regs *regs, ulong epc, ulong *r_insn) argument 357 if (epc & 0x2) { 359 u16 __user *insn_addr = (u16 __user *)epc; 379 u32 __user *insn_addr = (u32 __user *)epc; 409 unsigned long epc = regs->epc; local 426 if (get_insn(regs, epc, &insn)) 429 regs->epc = 0; 487 regs->epc = epc; 515 unsigned long epc = regs->epc; local [all...] |
H A D | signal.c | 268 frame, (void *)regs->epc, (void *)regs->sp); 371 regs->epc = (unsigned long)ksig->ka.sa.sa_handler; 380 (void *)regs->epc, (void *)regs->ra, frame); 411 continue_addr = regs->epc; 428 regs->epc = restart_addr; 443 if (regs->epc == restart_addr && 449 regs->epc = continue_addr; 461 if (syscall && regs->epc == restart_addr && retval == -ERESTART_RESTARTBLOCK)
|
/linux-master/drivers/pci/endpoint/functions/ |
H A D | pci-epf-ntb.c | 42 #include <linux/pci-epc.h> 83 struct epf_ntb_epc *epc[2]; member in struct:epf_ntb 95 struct pci_epc *epc; member in struct:epf_ntb_epc 146 struct pci_epc *epc; local 152 ntb_epc = ntb->epc[type]; 153 epc = ntb_epc->epc; 163 ret = pci_epc_raise_irq(epc, func_no, vfunc_no, irq_type, 1); 165 dev_err(&epc->dev, 244 struct pci_epc *epc; local 303 struct pci_epc *epc; local 393 struct pci_epc *epc; local 500 struct pci_epc *epc; local 559 struct pci_epc *epc; local 596 struct pci_epc *epc; local 739 struct pci_epc *epc; local 787 struct pci_epc *epc; local 855 struct pci_epc *epc; local 901 struct pci_epc *epc; local 1165 struct pci_epc *epc; local 1229 struct pci_epc *epc; local 1279 struct pci_epc *epc; local 1440 struct pci_epc *epc; local 1509 struct pci_epc *epc; local 1546 epf_ntb_epc_create_interface(struct epf_ntb *ntb, struct pci_epc *epc, enum pci_epc_interface_type type) argument 1722 struct pci_epc *epc; local [all...] |
H A D | pci-epf-test.c | 18 #include <linux/pci-epc.h> 224 filter.dev = epf->epc->dev.parent; 328 struct pci_epc *epc = epf->epc; local 330 src_addr = pci_epc_mem_alloc_addr(epc, &src_phys_addr, reg->size); 338 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, src_phys_addr, 346 dst_addr = pci_epc_mem_alloc_addr(epc, &dst_phys_addr, reg->size); 354 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, dst_phys_addr, 393 pci_epc_unmap_addr(epc, epf->func_no, epf->vfunc_no, dst_phys_addr); 396 pci_epc_mem_free_addr(epc, dst_phys_add 423 struct pci_epc *epc = epf->epc; local 507 struct pci_epc *epc = epf->epc; local 592 struct pci_epc *epc = epf->epc; local 692 struct pci_epc *epc = epf->epc; local 715 struct pci_epc *epc = epf->epc; local 754 struct pci_epc *epc = epf->epc; local 892 struct pci_epc *epc = epf->epc; local [all...] |
H A D | pci-epf-mhi.c | 14 #include <linux/pci-epc.h> 171 struct pci_epc *epc = epf->epc; local 174 *vaddr = pci_epc_mem_alloc_addr(epc, paddr, size + offset); 178 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, *paddr, 181 pci_epc_mem_free_addr(epc, *paddr, *vaddr, size + offset); 209 struct pci_epc *epc = epf->epc; local 211 pci_epc_unmap_addr(epc, epf->func_no, epf->vfunc_no, paddr - offset); 212 pci_epc_mem_free_addr(epc, padd 231 struct pci_epc *epc = epf->epc; local 724 struct pci_epc *epc = epf->epc; local 764 struct pci_epc *epc = epf->epc; local 850 struct pci_epc *epc = epf->epc; local 881 struct pci_epc *epc = epf->epc; local [all...] |
H A D | pci-epf-vntb.c | 44 #include <linux/pci-epc.h> 216 ret = pci_epc_map_addr(ntb->epf->epc, func_no, vfunc_no, phys_addr, addr, size); 218 dev_err(&ntb->epf->epc->dev, 233 pci_epc_unmap_addr(ntb->epf->epc, 348 pci_epc_clear_bar(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no, epf_bar); 377 ret = pci_epc_set_bar(ntb->epf->epc, func_no, vfunc_no, epf_bar); 421 const struct pci_epc_features *epc_features = pci_epc_get_features(epf->epc, 492 epc_features = pci_epc_get_features(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no); 508 ret = pci_epc_set_msi(ntb->epf->epc, 537 epc_features = pci_epc_get_features(ntb->epf->epc, 734 struct pci_epc *epc; local [all...] |
/linux-master/drivers/pci/controller/dwc/ |
H A D | pcie-designware-ep.c | 15 #include <linux/pci-epc.h> 20 struct pci_epc *epc = ep->epc; local 22 pci_epc_linkup(epc); 28 struct pci_epc *epc = ep->epc; local 30 pci_epc_init_notify(epc); 68 funcs = pci->ep.epc->max_functions; 108 static int dw_pcie_ep_write_header(struct pci_epc *epc, u8 func_no, u8 vfunc_no, argument 111 struct dw_pcie_ep *ep = epc_get_drvdata(epc); 188 dw_pcie_ep_clear_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_bar *epf_bar) argument 204 dw_pcie_ep_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_bar *epf_bar) argument 261 dw_pcie_ep_unmap_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t addr) argument 277 dw_pcie_ep_map_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t addr, u64 pci_addr, size_t size) argument 293 dw_pcie_ep_get_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 313 dw_pcie_ep_set_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u8 interrupts) argument 336 dw_pcie_ep_get_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 356 dw_pcie_ep_set_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u16 interrupts, enum pci_barno bir, u32 offset) argument 389 dw_pcie_ep_raise_irq(struct pci_epc *epc, u8 func_no, u8 vfunc_no, unsigned int type, u16 interrupt_num) argument 400 dw_pcie_ep_stop(struct pci_epc *epc) argument 408 dw_pcie_ep_start(struct pci_epc *epc) argument 417 dw_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 459 struct pci_epc *epc = ep->epc; local 528 struct pci_epc *epc = ep->epc; local 572 struct pci_epc *epc = ep->epc; local 670 struct pci_epc *epc; local [all...] |
/linux-master/arch/riscv/include/asm/ |
H A D | perf_event.h | 15 (regs)->epc = (__ip); \
|
H A D | ptrace.h | 16 unsigned long epc; member in struct:pt_regs 72 return regs->epc; 77 regs->epc = val;
|
/linux-master/drivers/pci/controller/ |
H A D | pcie-rockchip-ep.c | 15 #include <linux/pci-epc.h> 25 * @epc: PCI EPC device 42 struct pci_epc *epc; member in struct:rockchip_pcie_ep 92 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, argument 96 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); 131 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument 134 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); 199 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument 202 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); 233 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u argument 249 rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr) argument 269 rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, u8 multi_msg_cap) argument 290 rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) argument 409 rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, unsigned int type, u16 interrupt_num) argument 424 rockchip_pcie_ep_start(struct pci_epc *epc) argument 448 rockchip_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 506 struct pci_epc *epc; local [all...] |
H A D | pcie-rcar-ep.c | 13 #include <linux/pci-epc.h> 159 static int rcar_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, argument 162 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); 195 static int rcar_pcie_ep_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, argument 199 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); 246 static void rcar_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument 249 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); 259 static int rcar_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, argument 262 struct rcar_pcie_endpoint *ep = epc_get_drvdata(epc); 273 static int rcar_pcie_ep_get_msi(struct pci_epc *epc, u argument 286 rcar_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr, u64 pci_addr, size_t size) argument 323 rcar_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr) argument 404 rcar_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, unsigned int type, u16 interrupt_num) argument 421 rcar_pcie_ep_start(struct pci_epc *epc) argument 431 rcar_pcie_ep_stop(struct pci_epc *epc) argument 455 rcar_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 485 struct pci_epc *epc; local [all...] |
/linux-master/drivers/pci/controller/cadence/ |
H A D | pcie-cadence-ep.c | 10 #include <linux/pci-epc.h> 35 static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, argument 38 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); 44 dev_err(&epc->dev, "Only Virtual Function #1 has deviceID\n"); 77 static int cdns_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument 80 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); 151 static void cdns_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument 154 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); 184 static int cdns_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, argument 187 struct cdns_pcie_ep *ep = epc_get_drvdata(epc); 206 cdns_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr) argument 226 cdns_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, u8 mmc) argument 248 cdns_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) argument 271 cdns_pcie_ep_get_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 290 cdns_pcie_ep_set_msix(struct pci_epc *epc, u8 fn, u8 vfn, u16 interrupts, enum pci_barno bir, u32 offset) argument 431 cdns_pcie_ep_map_msi_irq(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr, u8 interrupt_num, u32 entry_size, u32 *msi_data, u32 *msi_addr_offset) argument 534 cdns_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, unsigned int type, u16 interrupt_num) argument 562 cdns_pcie_ep_start(struct pci_epc *epc) argument 627 cdns_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument 660 struct pci_epc *epc; local [all...] |
/linux-master/arch/riscv/mm/ |
H A D | extable.c | 26 regs->epc = get_ex_fixup(ex); 57 regs->epc = get_ex_fixup(ex); 78 regs->epc = get_ex_fixup(ex); 86 ex = search_exception_tables(regs->epc);
|
/linux-master/arch/mips/kvm/ |
H A D | emulate.c | 46 long epc = instpc; local 50 if (epc & 3) { 51 kvm_err("%s: unaligned epc\n", __func__); 56 err = kvm_get_badinstrp((u32 *)epc, vcpu, &insn.word); 65 arch->gprs[insn.r_format.rd] = epc + 8; 85 epc = epc + 4 + (insn.i_format.simmediate << 2); 87 epc += 8; 88 nextpc = epc; 94 epc [all...] |
/linux-master/arch/csky/kernel/ |
H A D | atomic.S | 21 mfcr a3, epc 53 mtcr a3, epc
|
/linux-master/include/uapi/linux/ |
H A D | zorro.h | 36 #define ZORRO_ID(manuf, prod, epc) \ 37 ((ZORRO_MANUF_##manuf << 16) | ((prod) << 8) | (epc)) 48 * (epc). The epc has to be ANDed with the GVP_PRODMASK before the
|