Searched refs:epc (Results 1 - 25 of 69) sorted by relevance

123

/linux-master/drivers/pci/endpoint/
H A Dpci-epc-core.c13 #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
766 pci_epc_notify_pending_init(struct pci_epc *epc, struct pci_epf *epf) argument
785 pci_epc_bme_notify(struct pci_epc *epc) argument
809 pci_epc_destroy(struct pci_epc *epc) argument
824 devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc) argument
852 struct pci_epc *epc; local
910 struct pci_epc **ptr, *epc; local
[all...]
H A DMakefile7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
8 pci-epc-mem.o functions/
H A Dpci-epc-mem.c13 #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 Dpci-ep-cfs.c13 #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);
68 pci_epc_notify_pending_init(epc, epf);
78 struct pci_epc *epc; local
83 epc = epc_group->epc;
118 struct pci_epc *epc = epc_group->epc; local
142 struct pci_epc *epc; local
180 struct pci_epc *epc; local
226 struct pci_epc *epc = epc_group->epc; local
248 struct pci_epc *epc; local
275 struct pci_epc *epc; local
[all...]
H A Dpci-epf-core.c14 #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
269 struct pci_epc *epc; local
[all...]
/linux-master/include/linux/
H A Dpci-epc.h58 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 Dbranch.c32 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 Dcfi.c11 * 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 Dtraps_misaligned.c281 static inline int get_insn(struct pt_regs *regs, ulong epc, ulong *r_insn) argument
285 if (epc & 0x2) {
288 if (__read_insn(regs, insn, epc, u16))
299 epc += sizeof(u16);
300 if (__read_insn(regs, tmp, epc, u16))
306 if (__read_insn(regs, insn, epc, u32))
333 unsigned long epc = regs->epc; local
350 if (get_insn(regs, epc, &insn))
353 regs->epc
441 unsigned long epc = regs->epc; local
[all...]
H A Dtraps.c154 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...]
/linux-master/drivers/pci/endpoint/functions/
H A Dpci-epf-ntb.c42 #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 Dpci-epf-test.c18 #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
711 struct pci_epc *epc = epf->epc; local
739 struct pci_epc *epc = epf->epc; local
866 struct pci_epc *epc = epf->epc; local
[all...]
H A Dpci-epf-mhi.c14 #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...]
/linux-master/drivers/pci/controller/dwc/
H A Dpcie-designware-ep.c15 #include <linux/pci-epc.h>
24 struct pci_epc *epc = ep->epc; local
26 pci_epc_linkup(epc);
36 struct pci_epc *epc = ep->epc; local
38 pci_epc_init_notify(epc);
89 funcs = pci->ep.epc->max_functions;
129 static int dw_pcie_ep_write_header(struct pci_epc *epc, u8 func_no, u8 vfunc_no, argument
132 struct dw_pcie_ep *ep = epc_get_drvdata(epc);
209 dw_pcie_ep_clear_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_bar *epf_bar) argument
225 dw_pcie_ep_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no, struct pci_epf_bar *epf_bar) argument
282 dw_pcie_ep_unmap_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t addr) argument
298 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
314 dw_pcie_ep_get_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument
334 dw_pcie_ep_set_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u8 interrupts) argument
357 dw_pcie_ep_get_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument
377 dw_pcie_ep_set_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u16 interrupts, enum pci_barno bir, u32 offset) argument
410 dw_pcie_ep_raise_irq(struct pci_epc *epc, u8 func_no, u8 vfunc_no, unsigned int type, u16 interrupt_num) argument
421 dw_pcie_ep_stop(struct pci_epc *epc) argument
429 dw_pcie_ep_start(struct pci_epc *epc) argument
438 dw_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument
495 struct pci_epc *epc = ep->epc; local
581 struct pci_epc *epc = ep->epc; local
648 struct pci_epc *epc = ep->epc; local
690 struct pci_epc *epc = ep->epc; local
820 struct pci_epc *epc; local
[all...]
/linux-master/arch/riscv/include/asm/
H A Dperf_event.h15 (regs)->epc = (__ip); \
H A Dptrace.h16 unsigned long epc; member in struct:pt_regs
72 return regs->epc;
77 regs->epc = val;
H A Dftrace.h131 unsigned long epc; member in struct:ftrace_regs
154 return fregs->epc;
160 fregs->epc = pc;
189 fregs->epc = fregs->ra;
/linux-master/drivers/pci/controller/
H A Dpcie-rockchip-ep.c15 #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);
129 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument
132 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc);
197 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument
200 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc);
231 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u argument
247 rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr) argument
267 rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, u8 multi_msg_cap) argument
288 rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) argument
407 rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, unsigned int type, u16 interrupt_num) argument
422 rockchip_pcie_ep_start(struct pci_epc *epc) argument
446 rockchip_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument
504 struct pci_epc *epc; local
[all...]
H A Dpcie-rcar-ep.c13 #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 Dpcie-cadence-ep.c10 #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);
148 static void cdns_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, argument
151 struct cdns_pcie_ep *ep = epc_get_drvdata(epc);
181 static int cdns_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, argument
184 struct cdns_pcie_ep *ep = epc_get_drvdata(epc);
203 cdns_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, phys_addr_t addr) argument
223 cdns_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, u8 mmc) argument
245 cdns_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) argument
268 cdns_pcie_ep_get_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument
287 cdns_pcie_ep_set_msix(struct pci_epc *epc, u8 fn, u8 vfn, u16 interrupts, enum pci_barno bir, u32 offset) argument
428 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
531 cdns_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, unsigned int type, u16 interrupt_num) argument
559 cdns_pcie_ep_start(struct pci_epc *epc) argument
624 cdns_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no) argument
657 struct pci_epc *epc; local
[all...]
/linux-master/arch/riscv/mm/
H A Dextable.c26 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 Demulate.c46 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 Datomic.S21 mfcr a3, epc
53 mtcr a3, epc
/linux-master/include/uapi/linux/
H A Dzorro.h36 #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
/linux-master/tools/testing/selftests/kvm/riscv/
H A Debreak_test.c31 WRITE_ONCE(sw_bp_addr, regs->epc);
32 regs->epc += 4;

Completed in 393 milliseconds

123