epc 45 arch/csky/abiv1/inc/abi/entry.h mfcr lr, epc epc 86 arch/csky/abiv1/inc/abi/entry.h mtcr a0, epc epc 29 arch/csky/abiv2/inc/abi/entry.h mfcr lr, epc epc 72 arch/csky/abiv2/inc/abi/entry.h mtcr a0, epc epc 710 arch/mips/include/asm/kvm_host.h __BUILD_KVM_RW_HW(epc, l, MIPS_CP0_EXC_PC, 0) epc 963 arch/mips/include/asm/kvm_host.h unsigned long epc = msk_isa16_mode(vcpu->pc); epc 966 arch/mips/include/asm/kvm_host.h if (epc == badvaddr) epc 974 arch/mips/include/asm/kvm_host.h if ((cause & CAUSEF_BD) && badvaddr - epc <= 4) epc 74 arch/mips/include/asm/sn/nmi.h unsigned long epc; epc 206 arch/mips/include/uapi/asm/kvm.h __u64 epc; epc 30 arch/mips/kernel/branch.c long epc = regs->cp0_epc; epc 33 arch/mips/kernel/branch.c if (__get_user(inst, (u16 __user *) msk_isa16_mode(epc))) { epc 36 arch/mips/kernel/branch.c return epc; epc 43 arch/mips/kernel/branch.c epc += 4; epc 45 arch/mips/kernel/branch.c epc += 2; epc 47 arch/mips/kernel/branch.c epc += 2; epc 49 arch/mips/kernel/branch.c epc += 4; epc 51 arch/mips/kernel/branch.c return epc; epc 324 arch/mips/kernel/branch.c long epc; epc 326 arch/mips/kernel/branch.c epc = regs->cp0_epc; epc 329 arch/mips/kernel/branch.c addr = (u16 __user *)msk_isa16_mode(epc); epc 350 arch/mips/kernel/branch.c regs->regs[31] = epc + 6; epc 351 arch/mips/kernel/branch.c epc += 4; epc 352 arch/mips/kernel/branch.c epc >>= 28; epc 353 arch/mips/kernel/branch.c epc <<= 28; epc 360 arch/mips/kernel/branch.c epc |= epc 364 arch/mips/kernel/branch.c set_isa16_mode(epc); /* Set ISA mode bit. */ epc 365 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 382 arch/mips/kernel/branch.c regs->regs[31] = epc + 2; epc 384 arch/mips/kernel/branch.c regs->regs[31] = epc + 4; epc 423 arch/mips/kernel/branch.c long epc = regs->cp0_epc; epc 434 arch/mips/kernel/branch.c regs->regs[insn.r_format.rd] = epc + 8; epc 457 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 461 arch/mips/kernel/branch.c epc += 8; epc 462 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 471 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 475 arch/mips/kernel/branch.c epc += 8; epc 476 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 484 arch/mips/kernel/branch.c regs->regs[31] = epc + 8; epc 503 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 507 arch/mips/kernel/branch.c epc += 8; epc 508 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 516 arch/mips/kernel/branch.c regs->regs[31] = epc + 8; epc 535 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 539 arch/mips/kernel/branch.c epc += 8; epc 540 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 550 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 552 arch/mips/kernel/branch.c epc += 8; epc 553 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 566 arch/mips/kernel/branch.c epc += 4; epc 567 arch/mips/kernel/branch.c epc >>= 28; epc 568 arch/mips/kernel/branch.c epc <<= 28; epc 569 arch/mips/kernel/branch.c epc |= (insn.j_format.target << 2); epc 570 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 585 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 589 arch/mips/kernel/branch.c epc += 8; epc 590 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 600 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 604 arch/mips/kernel/branch.c epc += 8; epc 605 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 630 arch/mips/kernel/branch.c regs->regs[31] = epc + 4; epc 636 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 640 arch/mips/kernel/branch.c epc += 8; epc 641 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 666 arch/mips/kernel/branch.c regs->regs[31] = epc + 4; epc 673 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 677 arch/mips/kernel/branch.c epc += 8; epc 678 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 699 arch/mips/kernel/branch.c epc = epc + 4 + epc 702 arch/mips/kernel/branch.c epc += 8; epc 703 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 722 arch/mips/kernel/branch.c epc = epc + 4 + epc 727 arch/mips/kernel/branch.c epc += 8; epc 728 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 734 arch/mips/kernel/branch.c epc = epc + 4 + epc 739 arch/mips/kernel/branch.c epc += 8; epc 740 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 752 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 754 arch/mips/kernel/branch.c epc += 8; epc 755 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 760 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 762 arch/mips/kernel/branch.c epc += 8; epc 763 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 767 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 769 arch/mips/kernel/branch.c epc += 8; epc 770 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 775 arch/mips/kernel/branch.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 777 arch/mips/kernel/branch.c epc += 8; epc 778 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 791 arch/mips/kernel/branch.c regs->regs[31] = epc + 4; epc 792 arch/mips/kernel/branch.c epc += 4 + (insn.i_format.simmediate << 2); epc 793 arch/mips/kernel/branch.c regs->cp0_epc = epc; epc 807 arch/mips/kernel/branch.c regs->regs[31] = epc + 4; epc 822 arch/mips/kernel/branch.c regs->regs[31] = epc + 4; epc 850 arch/mips/kernel/branch.c long epc; epc 853 arch/mips/kernel/branch.c epc = regs->cp0_epc; epc 854 arch/mips/kernel/branch.c if (epc & 3) epc 860 arch/mips/kernel/branch.c addr = (unsigned int __user *) epc; epc 198 arch/mips/kernel/kprobes.c long epc; epc 201 arch/mips/kernel/kprobes.c epc = regs->cp0_epc; epc 202 arch/mips/kernel/kprobes.c if (epc & 3) epc 250 arch/mips/kernel/mips-r2-to-r6-emul.c unsigned long cepc, epc, nepc; epc 260 arch/mips/kernel/mips-r2-to-r6-emul.c epc = regs->cp0_epc; epc 287 arch/mips/kernel/mips-r2-to-r6-emul.c err = mips_dsemul(regs, nir, epc, cepc); epc 911 arch/mips/kernel/mips-r2-to-r6-emul.c unsigned long cpc, epc, nepc, r31, res, rs, rt; epc 918 arch/mips/kernel/mips-r2-to-r6-emul.c epc = regs->cp0_epc; epc 925 arch/mips/kernel/mips-r2-to-r6-emul.c inst, epc, pass); epc 994 arch/mips/kernel/mips-r2-to-r6-emul.c regs->cp0_epc = epc; epc 1001 arch/mips/kernel/mips-r2-to-r6-emul.c nepc = epc + 4; epc 1037 arch/mips/kernel/mips-r2-to-r6-emul.c err = mips_dsemul(regs, nir, epc, cpc); epc 1051 arch/mips/kernel/mips-r2-to-r6-emul.c regs->cp0_epc = epc; epc 1056 arch/mips/kernel/mips-r2-to-r6-emul.c nepc = epc + 4; epc 1086 arch/mips/kernel/mips-r2-to-r6-emul.c err = mips_dsemul(regs, nir, epc, cpc); epc 1095 arch/mips/kernel/mips-r2-to-r6-emul.c regs->cp0_epc = epc; epc 1120 arch/mips/kernel/mips-r2-to-r6-emul.c regs->cp0_epc = epc; epc 1127 arch/mips/kernel/mips-r2-to-r6-emul.c nepc = epc + 4; epc 1163 arch/mips/kernel/mips-r2-to-r6-emul.c err = mips_dsemul(regs, nir, epc, cpc); epc 1176 arch/mips/kernel/mips-r2-to-r6-emul.c regs->cp0_epc = epc; epc 2226 arch/mips/kernel/mips-r2-to-r6-emul.c regs->cp0_epc = epc; epc 980 arch/mips/kernel/traps.c unsigned long epc = msk_isa16_mode(exception_epc(regs)); epc 994 arch/mips/kernel/traps.c if (__get_user(instr[0], (u16 __user *)epc)) epc 1005 arch/mips/kernel/traps.c if (__get_user(instr[1], (u16 __user *)(epc + 2))) epc 1011 arch/mips/kernel/traps.c if (__get_user(opcode, (unsigned int __user *)epc)) epc 1076 arch/mips/kernel/traps.c unsigned long epc = msk_isa16_mode(exception_epc(regs)); epc 1085 arch/mips/kernel/traps.c if (__get_user(instr[0], (u16 __user *)(epc + 0)) || epc 1086 arch/mips/kernel/traps.c __get_user(instr[1], (u16 __user *)(epc + 2))) epc 1093 arch/mips/kernel/traps.c if (__get_user(opcode, (u32 __user *)epc)) epc 1114 arch/mips/kernel/traps.c unsigned int __user *epc = (unsigned int __user *)exception_epc(regs); epc 1127 arch/mips/kernel/traps.c likely(get_user(opcode, epc) >= 0)) { epc 1160 arch/mips/kernel/traps.c if (unlikely(get_user(opcode, epc) < 0)) epc 1177 arch/mips/kernel/traps.c if (unlikely(get_user(mmop[0], (u16 __user *)epc + 0) < 0)) epc 1179 arch/mips/kernel/traps.c if (unlikely(get_user(mmop[1], (u16 __user *)epc + 1) < 0)) epc 1349 arch/mips/kernel/traps.c unsigned int __user *epc; epc 1363 arch/mips/kernel/traps.c epc = (unsigned int __user *)exception_epc(regs); epc 1373 arch/mips/kernel/traps.c if (unlikely(get_user(opcode, epc) < 0)) epc 47 arch/mips/kvm/emulate.c long epc = instpc; epc 51 arch/mips/kvm/emulate.c if (epc & 3) { epc 57 arch/mips/kvm/emulate.c err = kvm_get_badinstrp((u32 *)epc, vcpu, &insn.word); epc 66 arch/mips/kvm/emulate.c arch->gprs[insn.r_format.rd] = epc + 8; epc 86 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 88 arch/mips/kvm/emulate.c epc += 8; epc 89 arch/mips/kvm/emulate.c nextpc = epc; epc 95 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 97 arch/mips/kvm/emulate.c epc += 8; epc 98 arch/mips/kvm/emulate.c nextpc = epc; epc 103 arch/mips/kvm/emulate.c arch->gprs[31] = epc + 8; epc 105 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 107 arch/mips/kvm/emulate.c epc += 8; epc 108 arch/mips/kvm/emulate.c nextpc = epc; epc 113 arch/mips/kvm/emulate.c arch->gprs[31] = epc + 8; epc 115 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 117 arch/mips/kvm/emulate.c epc += 8; epc 118 arch/mips/kvm/emulate.c nextpc = epc; epc 130 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 132 arch/mips/kvm/emulate.c epc += 8; epc 133 arch/mips/kvm/emulate.c nextpc = epc; epc 145 arch/mips/kvm/emulate.c epc += 4; epc 146 arch/mips/kvm/emulate.c epc >>= 28; epc 147 arch/mips/kvm/emulate.c epc <<= 28; epc 148 arch/mips/kvm/emulate.c epc |= (insn.j_format.target << 2); epc 149 arch/mips/kvm/emulate.c nextpc = epc; epc 157 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 159 arch/mips/kvm/emulate.c epc += 8; epc 160 arch/mips/kvm/emulate.c nextpc = epc; epc 167 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 169 arch/mips/kvm/emulate.c epc += 8; epc 170 arch/mips/kvm/emulate.c nextpc = epc; epc 180 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 182 arch/mips/kvm/emulate.c epc += 8; epc 183 arch/mips/kvm/emulate.c nextpc = epc; epc 193 arch/mips/kvm/emulate.c epc = epc + 4 + (insn.i_format.simmediate << 2); epc 195 arch/mips/kvm/emulate.c epc += 8; epc 196 arch/mips/kvm/emulate.c nextpc = epc; epc 229 arch/mips/kvm/emulate.c epc += 8; epc 230 arch/mips/kvm/emulate.c nextpc = epc; epc 317 arch/mips/kvm/trace.h __field(unsigned long, epc) epc 325 arch/mips/kvm/trace.h __entry->epc = kvm_read_c0_guest_epc(vcpu->arch.cop0); epc 333 arch/mips/kvm/trace.h __entry->epc, epc 86 arch/mips/sgi-ip27/ip27-nmi.c pr_emerg("epc : %016lx %pS\n", nr->epc, (void *)nr->epc); epc 242 drivers/dma/imx-sdma.c u32 epc :14; epc 237 drivers/infiniband/hw/cxgb3/iwch_cm.c static enum iwch_ep_state state_read(struct iwch_ep_common *epc) epc 242 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&epc->lock, flags); epc 243 drivers/infiniband/hw/cxgb3/iwch_cm.c state = epc->state; epc 244 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&epc->lock, flags); epc 248 drivers/infiniband/hw/cxgb3/iwch_cm.c static void __state_set(struct iwch_ep_common *epc, enum iwch_ep_state new) epc 250 drivers/infiniband/hw/cxgb3/iwch_cm.c epc->state = new; epc 253 drivers/infiniband/hw/cxgb3/iwch_cm.c static void state_set(struct iwch_ep_common *epc, enum iwch_ep_state new) epc 257 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&epc->lock, flags); epc 258 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s - %s -> %s\n", __func__, states[epc->state], states[new]); epc 259 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(epc, new); epc 260 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&epc->lock, flags); epc 266 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep_common *epc; epc 268 drivers/infiniband/hw/cxgb3/iwch_cm.c epc = kzalloc(size, gfp); epc 269 drivers/infiniband/hw/cxgb3/iwch_cm.c if (epc) { epc 270 drivers/infiniband/hw/cxgb3/iwch_cm.c kref_init(&epc->kref); epc 271 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_init(&epc->lock); epc 272 drivers/infiniband/hw/cxgb3/iwch_cm.c init_waitqueue_head(&epc->waitq); epc 274 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s alloc ep %p\n", __func__, epc); epc 275 drivers/infiniband/hw/cxgb3/iwch_cm.c return epc; epc 2191 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep_common *epc = ctx; epc 2193 drivers/infiniband/hw/cxgb3/iwch_cm.c get_ep(epc); epc 150 drivers/infiniband/hw/cxgb4/cm.c static void deref_cm_id(struct c4iw_ep_common *epc) epc 152 drivers/infiniband/hw/cxgb4/cm.c epc->cm_id->rem_ref(epc->cm_id); epc 153 drivers/infiniband/hw/cxgb4/cm.c epc->cm_id = NULL; epc 154 drivers/infiniband/hw/cxgb4/cm.c set_bit(CM_ID_DEREFED, &epc->history); epc 157 drivers/infiniband/hw/cxgb4/cm.c static void ref_cm_id(struct c4iw_ep_common *epc) epc 159 drivers/infiniband/hw/cxgb4/cm.c set_bit(CM_ID_REFED, &epc->history); epc 160 drivers/infiniband/hw/cxgb4/cm.c epc->cm_id->add_ref(epc->cm_id); epc 266 drivers/infiniband/hw/cxgb4/cm.c static enum c4iw_ep_state state_read(struct c4iw_ep_common *epc) epc 270 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&epc->mutex); epc 271 drivers/infiniband/hw/cxgb4/cm.c state = epc->state; epc 272 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&epc->mutex); epc 276 drivers/infiniband/hw/cxgb4/cm.c static void __state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new) epc 278 drivers/infiniband/hw/cxgb4/cm.c epc->state = new; epc 281 drivers/infiniband/hw/cxgb4/cm.c static void state_set(struct c4iw_ep_common *epc, enum c4iw_ep_state new) epc 283 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&epc->mutex); epc 284 drivers/infiniband/hw/cxgb4/cm.c pr_debug("%s -> %s\n", states[epc->state], states[new]); epc 285 drivers/infiniband/hw/cxgb4/cm.c __state_set(epc, new); epc 286 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&epc->mutex); epc 311 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep_common *epc; epc 313 drivers/infiniband/hw/cxgb4/cm.c epc = kzalloc(size, gfp); epc 314 drivers/infiniband/hw/cxgb4/cm.c if (epc) { epc 315 drivers/infiniband/hw/cxgb4/cm.c epc->wr_waitp = c4iw_alloc_wr_wait(gfp); epc 316 drivers/infiniband/hw/cxgb4/cm.c if (!epc->wr_waitp) { epc 317 drivers/infiniband/hw/cxgb4/cm.c kfree(epc); epc 318 drivers/infiniband/hw/cxgb4/cm.c epc = NULL; epc 321 drivers/infiniband/hw/cxgb4/cm.c kref_init(&epc->kref); epc 322 drivers/infiniband/hw/cxgb4/cm.c mutex_init(&epc->mutex); epc 323 drivers/infiniband/hw/cxgb4/cm.c c4iw_init_wr_wait(epc->wr_waitp); epc 325 drivers/infiniband/hw/cxgb4/cm.c pr_debug("alloc ep %p\n", epc); epc 327 drivers/infiniband/hw/cxgb4/cm.c return epc; epc 338 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c __le32 epc; epc 3014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c le32_to_cpu(tr.type), le32_to_cpu(tr.epc), epc 3028 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c le32_to_cpu(tr.type), le32_to_cpu(tr.epc), epc 17 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; epc 19 drivers/pci/controller/dwc/pcie-designware-ep.c pci_epc_linkup(epc); epc 43 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_write_header(struct pci_epc *epc, u8 func_no, epc 46 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 116 drivers/pci/controller/dwc/pcie-designware-ep.c static void dw_pcie_ep_clear_bar(struct pci_epc *epc, u8 func_no, epc 119 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 130 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_set_bar(struct pci_epc *epc, u8 func_no, epc 134 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 181 drivers/pci/controller/dwc/pcie-designware-ep.c static void dw_pcie_ep_unmap_addr(struct pci_epc *epc, u8 func_no, epc 186 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 197 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_map_addr(struct pci_epc *epc, u8 func_no, epc 202 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 214 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_get_msi(struct pci_epc *epc, u8 func_no) epc 216 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 233 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_set_msi(struct pci_epc *epc, u8 func_no, u8 interrupts) epc 235 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 253 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_get_msix(struct pci_epc *epc, u8 func_no) epc 255 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 272 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_set_msix(struct pci_epc *epc, u8 func_no, u16 interrupts) epc 274 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 292 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_raise_irq(struct pci_epc *epc, u8 func_no, epc 295 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 303 drivers/pci/controller/dwc/pcie-designware-ep.c static void dw_pcie_ep_stop(struct pci_epc *epc) epc 305 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 314 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_start(struct pci_epc *epc) epc 316 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 326 drivers/pci/controller/dwc/pcie-designware-ep.c dw_pcie_ep_get_features(struct pci_epc *epc, u8 func_no) epc 328 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); epc 366 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; epc 393 drivers/pci/controller/dwc/pcie-designware-ep.c aligned_offset = msg_addr_lower & (epc->mem->page_size - 1); epc 396 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_ep_map_addr(epc, func_no, ep->msi_mem_phys, msg_addr, epc 397 drivers/pci/controller/dwc/pcie-designware-ep.c epc->mem->page_size); epc 403 drivers/pci/controller/dwc/pcie-designware-ep.c dw_pcie_ep_unmap_addr(epc, func_no, ep->msi_mem_phys); epc 412 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; epc 455 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_ep_map_addr(epc, func_no, ep->msi_mem_phys, msg_addr, epc 456 drivers/pci/controller/dwc/pcie-designware-ep.c epc->mem->page_size); epc 462 drivers/pci/controller/dwc/pcie-designware-ep.c dw_pcie_ep_unmap_addr(epc, func_no, ep->msi_mem_phys); epc 469 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; epc 471 drivers/pci/controller/dwc/pcie-designware-ep.c pci_epc_mem_free_addr(epc, ep->msi_mem_phys, ep->msi_mem, epc 472 drivers/pci/controller/dwc/pcie-designware-ep.c epc->mem->page_size); epc 474 drivers/pci/controller/dwc/pcie-designware-ep.c pci_epc_mem_exit(epc); epc 504 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc; epc 554 drivers/pci/controller/dwc/pcie-designware-ep.c epc = devm_pci_epc_create(dev, &epc_ops); epc 555 drivers/pci/controller/dwc/pcie-designware-ep.c if (IS_ERR(epc)) { epc 557 drivers/pci/controller/dwc/pcie-designware-ep.c return PTR_ERR(epc); epc 560 drivers/pci/controller/dwc/pcie-designware-ep.c ep->epc = epc; epc 561 drivers/pci/controller/dwc/pcie-designware-ep.c epc_set_drvdata(epc, ep); epc 573 drivers/pci/controller/dwc/pcie-designware-ep.c ret = of_property_read_u8(np, "max-functions", &epc->max_functions); epc 575 drivers/pci/controller/dwc/pcie-designware-ep.c epc->max_functions = 1; epc 577 drivers/pci/controller/dwc/pcie-designware-ep.c ret = __pci_epc_mem_init(epc, ep->phys_base, ep->addr_size, epc 584 drivers/pci/controller/dwc/pcie-designware-ep.c ep->msi_mem = pci_epc_mem_alloc_addr(epc, &ep->msi_mem_phys, epc 585 drivers/pci/controller/dwc/pcie-designware-ep.c epc->mem->page_size); epc 212 drivers/pci/controller/dwc/pcie-designware.h struct pci_epc *epc; epc 49 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, epc 52 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 80 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, epc 83 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 147 drivers/pci/controller/pcie-cadence-ep.c static void cdns_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, epc 150 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 174 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, phys_addr_t addr, epc 177 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 184 drivers/pci/controller/pcie-cadence-ep.c dev_err(&epc->dev, "no free outbound region\n"); epc 196 drivers/pci/controller/pcie-cadence-ep.c static void cdns_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, epc 199 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 216 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 mmc) epc 218 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 236 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_get_msi(struct pci_epc *epc, u8 fn) epc 238 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 363 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, epc 367 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 383 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_start(struct pci_epc *epc) epc 385 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); epc 395 drivers/pci/controller/pcie-cadence-ep.c list_for_each_entry(epf, &epc->pci_epf, list) epc 409 drivers/pci/controller/pcie-cadence-ep.c cdns_pcie_ep_get_features(struct pci_epc *epc, u8 func_no) epc 439 drivers/pci/controller/pcie-cadence-ep.c struct pci_epc *epc; epc 493 drivers/pci/controller/pcie-cadence-ep.c epc = devm_pci_epc_create(dev, &cdns_pcie_epc_ops); epc 494 drivers/pci/controller/pcie-cadence-ep.c if (IS_ERR(epc)) { epc 496 drivers/pci/controller/pcie-cadence-ep.c ret = PTR_ERR(epc); epc 500 drivers/pci/controller/pcie-cadence-ep.c epc_set_drvdata(epc, ep); epc 502 drivers/pci/controller/pcie-cadence-ep.c if (of_property_read_u8(np, "max-functions", &epc->max_functions) < 0) epc 503 drivers/pci/controller/pcie-cadence-ep.c epc->max_functions = 1; epc 505 drivers/pci/controller/pcie-cadence-ep.c ret = pci_epc_mem_init(epc, pcie->mem_res->start, epc 512 drivers/pci/controller/pcie-cadence-ep.c ep->irq_cpu_addr = pci_epc_mem_alloc_addr(epc, &ep->irq_phys_addr, epc 526 drivers/pci/controller/pcie-cadence-ep.c pci_epc_mem_exit(epc); epc 41 drivers/pci/controller/pcie-rockchip-ep.c struct pci_epc *epc; epc 124 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, epc 127 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 161 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, epc 164 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 229 drivers/pci/controller/pcie-rockchip-ep.c static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, epc 232 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 258 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, epc 262 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 273 drivers/pci/controller/pcie-rockchip-ep.c dev_err(&epc->dev, "no free outbound region\n"); epc 286 drivers/pci/controller/pcie-rockchip-ep.c static void rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, epc 289 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 310 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, epc 313 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 331 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn) epc 333 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 473 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, epc 477 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 489 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_start(struct pci_epc *epc) epc 491 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); epc 497 drivers/pci/controller/pcie-rockchip-ep.c list_for_each_entry(epf, &epc->pci_epf, list) epc 512 drivers/pci/controller/pcie-rockchip-ep.c rockchip_pcie_ep_get_features(struct pci_epc *epc, u8 func_no) epc 551 drivers/pci/controller/pcie-rockchip-ep.c &ep->epc->max_functions); epc 553 drivers/pci/controller/pcie-rockchip-ep.c ep->epc->max_functions = 1; epc 568 drivers/pci/controller/pcie-rockchip-ep.c struct pci_epc *epc; epc 580 drivers/pci/controller/pcie-rockchip-ep.c epc = devm_pci_epc_create(dev, &rockchip_pcie_epc_ops); epc 581 drivers/pci/controller/pcie-rockchip-ep.c if (IS_ERR(epc)) { epc 583 drivers/pci/controller/pcie-rockchip-ep.c return PTR_ERR(epc); epc 586 drivers/pci/controller/pcie-rockchip-ep.c ep->epc = epc; epc 587 drivers/pci/controller/pcie-rockchip-ep.c epc_set_drvdata(epc, ep); epc 617 drivers/pci/controller/pcie-rockchip-ep.c err = pci_epc_mem_init(epc, rockchip->mem_res->start, epc 624 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_cpu_addr = pci_epc_mem_alloc_addr(epc, &ep->irq_phys_addr, epc 636 drivers/pci/controller/pcie-rockchip-ep.c pci_epc_mem_exit(epc); epc 84 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 88 drivers/pci/endpoint/functions/pci-epf-test.c src_addr = pci_epc_mem_alloc_addr(epc, &src_phys_addr, reg->size); epc 96 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_map_addr(epc, epf->func_no, src_phys_addr, reg->src_addr, epc 104 drivers/pci/endpoint/functions/pci-epf-test.c dst_addr = pci_epc_mem_alloc_addr(epc, &dst_phys_addr, reg->size); epc 112 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_map_addr(epc, epf->func_no, dst_phys_addr, reg->dst_addr, epc 122 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_unmap_addr(epc, epf->func_no, dst_phys_addr); epc 125 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_mem_free_addr(epc, dst_phys_addr, dst_addr, reg->size); epc 128 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_unmap_addr(epc, epf->func_no, src_phys_addr); epc 131 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_mem_free_addr(epc, src_phys_addr, src_addr, reg->size); epc 146 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 150 drivers/pci/endpoint/functions/pci-epf-test.c src_addr = pci_epc_mem_alloc_addr(epc, &phys_addr, reg->size); epc 158 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_map_addr(epc, epf->func_no, phys_addr, reg->src_addr, epc 181 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_unmap_addr(epc, epf->func_no, phys_addr); epc 184 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_mem_free_addr(epc, phys_addr, src_addr, reg->size); epc 198 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 202 drivers/pci/endpoint/functions/pci-epf-test.c dst_addr = pci_epc_mem_alloc_addr(epc, &phys_addr, reg->size); epc 210 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_map_addr(epc, epf->func_no, phys_addr, reg->dst_addr, epc 238 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_unmap_addr(epc, epf->func_no, phys_addr); epc 241 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_mem_free_addr(epc, phys_addr, dst_addr, reg->size); epc 252 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 260 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_raise_irq(epc, epf->func_no, PCI_EPC_IRQ_LEGACY, 0); epc 263 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_raise_irq(epc, epf->func_no, PCI_EPC_IRQ_MSI, irq); epc 266 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_raise_irq(epc, epf->func_no, PCI_EPC_IRQ_MSIX, irq); epc 283 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 301 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_raise_irq(epc, epf->func_no, PCI_EPC_IRQ_LEGACY, 0); epc 339 drivers/pci/endpoint/functions/pci-epf-test.c count = pci_epc_get_msi(epc, epf->func_no); epc 343 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_raise_irq(epc, epf->func_no, PCI_EPC_IRQ_MSI, epc 349 drivers/pci/endpoint/functions/pci-epf-test.c count = pci_epc_get_msix(epc, epf->func_no); epc 353 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_raise_irq(epc, epf->func_no, PCI_EPC_IRQ_MSIX, epc 374 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 379 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_stop(epc); epc 384 drivers/pci/endpoint/functions/pci-epf-test.c pci_epc_clear_bar(epc, epf->func_no, epf_bar); epc 395 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 415 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_set_bar(epc, epf->func_no, epf_bar); epc 498 drivers/pci/endpoint/functions/pci-epf-test.c struct pci_epc *epc = epf->epc; epc 504 drivers/pci/endpoint/functions/pci-epf-test.c if (WARN_ON_ONCE(!epc)) epc 507 drivers/pci/endpoint/functions/pci-epf-test.c epc_features = pci_epc_get_features(epc, epf->func_no); epc 519 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_write_header(epc, epf->func_no, header); epc 534 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_set_msi(epc, epf->func_no, epf->msi_interrupts); epc 542 drivers/pci/endpoint/functions/pci-epf-test.c ret = pci_epc_set_msix(epc, epf->func_no, epf->msix_interrupts); epc 30 drivers/pci/endpoint/pci-ep-cfs.c struct pci_epc *epc; epc 50 drivers/pci/endpoint/pci-ep-cfs.c struct pci_epc *epc; epc 53 drivers/pci/endpoint/pci-ep-cfs.c epc = epc_group->epc; epc 60 drivers/pci/endpoint/pci-ep-cfs.c pci_epc_stop(epc); epc 64 drivers/pci/endpoint/pci-ep-cfs.c ret = pci_epc_start(epc); epc 66 drivers/pci/endpoint/pci-ep-cfs.c dev_err(&epc->dev, "failed to start endpoint controller\n"); epc 95 drivers/pci/endpoint/pci-ep-cfs.c struct pci_epc *epc = epc_group->epc; epc 106 drivers/pci/endpoint/pci-ep-cfs.c ret = pci_epc_add_epf(epc, epf); epc 117 drivers/pci/endpoint/pci-ep-cfs.c pci_epc_remove_epf(epc, epf); epc 128 drivers/pci/endpoint/pci-ep-cfs.c struct pci_epc *epc; epc 135 drivers/pci/endpoint/pci-ep-cfs.c epc = epc_group->epc; epc 139 drivers/pci/endpoint/pci-ep-cfs.c pci_epc_remove_epf(epc, epf); epc 156 drivers/pci/endpoint/pci-ep-cfs.c struct pci_epc *epc; epc 175 drivers/pci/endpoint/pci-ep-cfs.c epc = pci_epc_get(name); epc 176 drivers/pci/endpoint/pci-ep-cfs.c if (IS_ERR(epc)) { epc 177 drivers/pci/endpoint/pci-ep-cfs.c ret = PTR_ERR(epc); epc 181 drivers/pci/endpoint/pci-ep-cfs.c epc_group->epc = epc; epc 204 drivers/pci/endpoint/pci-ep-cfs.c pci_epc_put(epc_group->epc); epc 22 drivers/pci/endpoint/pci-epc-core.c struct pci_epc *epc = *(struct pci_epc **)res; epc 24 drivers/pci/endpoint/pci-epc-core.c pci_epc_destroy(epc); epc 29 drivers/pci/endpoint/pci-epc-core.c struct pci_epc **epc = res; epc 31 drivers/pci/endpoint/pci-epc-core.c return *epc == match_data; epc 40 drivers/pci/endpoint/pci-epc-core.c void pci_epc_put(struct pci_epc *epc) epc 42 drivers/pci/endpoint/pci-epc-core.c if (!epc || IS_ERR(epc)) epc 45 drivers/pci/endpoint/pci-epc-core.c module_put(epc->ops->owner); epc 46 drivers/pci/endpoint/pci-epc-core.c put_device(&epc->dev); epc 60 drivers/pci/endpoint/pci-epc-core.c struct pci_epc *epc; epc 69 drivers/pci/endpoint/pci-epc-core.c epc = to_pci_epc(dev); epc 70 drivers/pci/endpoint/pci-epc-core.c if (!try_module_get(epc->ops->owner)) { epc 76 drivers/pci/endpoint/pci-epc-core.c get_device(&epc->dev); epc 77 drivers/pci/endpoint/pci-epc-core.c return epc; epc 119 drivers/pci/endpoint/pci-epc-core.c const struct pci_epc_features *pci_epc_get_features(struct pci_epc *epc, epc 125 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 128 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->get_features) epc 131 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 132 drivers/pci/endpoint/pci-epc-core.c epc_features = epc->ops->get_features(epc, func_no); epc 133 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 145 drivers/pci/endpoint/pci-epc-core.c void pci_epc_stop(struct pci_epc *epc) epc 149 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR(epc) || !epc->ops->stop) epc 152 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 153 drivers/pci/endpoint/pci-epc-core.c epc->ops->stop(epc); epc 154 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 164 drivers/pci/endpoint/pci-epc-core.c int pci_epc_start(struct pci_epc *epc) epc 169 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR(epc)) epc 172 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->start) epc 175 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 176 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->start(epc); epc 177 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 192 drivers/pci/endpoint/pci-epc-core.c int pci_epc_raise_irq(struct pci_epc *epc, u8 func_no, epc 198 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 201 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->raise_irq) epc 204 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 205 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->raise_irq(epc, func_no, type, interrupt_num); epc 206 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 219 drivers/pci/endpoint/pci-epc-core.c int pci_epc_get_msi(struct pci_epc *epc, u8 func_no) epc 224 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 227 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->get_msi) epc 230 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 231 drivers/pci/endpoint/pci-epc-core.c interrupt = epc->ops->get_msi(epc, func_no); epc 232 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 251 drivers/pci/endpoint/pci-epc-core.c int pci_epc_set_msi(struct pci_epc *epc, u8 func_no, u8 interrupts) epc 257 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || epc 261 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->set_msi) epc 266 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 267 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->set_msi(epc, func_no, encode_int); epc 268 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 281 drivers/pci/endpoint/pci-epc-core.c int pci_epc_get_msix(struct pci_epc *epc, u8 func_no) epc 286 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 289 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->get_msix) epc 292 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 293 drivers/pci/endpoint/pci-epc-core.c interrupt = epc->ops->get_msix(epc, func_no); epc 294 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 311 drivers/pci/endpoint/pci-epc-core.c int pci_epc_set_msix(struct pci_epc *epc, u8 func_no, u16 interrupts) epc 316 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || epc 320 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->set_msix) epc 323 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 324 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->set_msix(epc, func_no, interrupts - 1); epc 325 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 339 drivers/pci/endpoint/pci-epc-core.c void pci_epc_unmap_addr(struct pci_epc *epc, u8 func_no, epc 344 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 347 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->unmap_addr) epc 350 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 351 drivers/pci/endpoint/pci-epc-core.c epc->ops->unmap_addr(epc, func_no, phys_addr); epc 352 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 366 drivers/pci/endpoint/pci-epc-core.c int pci_epc_map_addr(struct pci_epc *epc, u8 func_no, epc 372 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 375 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->map_addr) epc 378 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 379 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->map_addr(epc, func_no, phys_addr, pci_addr, size); epc 380 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 394 drivers/pci/endpoint/pci-epc-core.c void pci_epc_clear_bar(struct pci_epc *epc, u8 func_no, epc 399 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || epc 404 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->clear_bar) epc 407 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 408 drivers/pci/endpoint/pci-epc-core.c epc->ops->clear_bar(epc, func_no, epf_bar); epc 409 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 421 drivers/pci/endpoint/pci-epc-core.c int pci_epc_set_bar(struct pci_epc *epc, u8 func_no, epc 428 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || epc 437 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->set_bar) epc 440 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, irq_flags); epc 441 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->set_bar(epc, func_no, epf_bar); epc 442 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, irq_flags); epc 459 drivers/pci/endpoint/pci-epc-core.c int pci_epc_write_header(struct pci_epc *epc, u8 func_no, epc 465 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) epc 468 drivers/pci/endpoint/pci-epc-core.c if (!epc->ops->write_header) epc 471 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 472 drivers/pci/endpoint/pci-epc-core.c ret = epc->ops->write_header(epc, func_no, header); epc 473 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 488 drivers/pci/endpoint/pci-epc-core.c int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf) epc 492 drivers/pci/endpoint/pci-epc-core.c if (epf->epc) epc 495 drivers/pci/endpoint/pci-epc-core.c if (IS_ERR(epc)) epc 498 drivers/pci/endpoint/pci-epc-core.c if (epf->func_no > epc->max_functions - 1) epc 501 drivers/pci/endpoint/pci-epc-core.c epf->epc = epc; epc 503 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 504 drivers/pci/endpoint/pci-epc-core.c list_add_tail(&epf->list, &epc->pci_epf); epc 505 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 518 drivers/pci/endpoint/pci-epc-core.c void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf) epc 522 drivers/pci/endpoint/pci-epc-core.c if (!epc || IS_ERR(epc) || !epf) epc 525 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 527 drivers/pci/endpoint/pci-epc-core.c epf->epc = NULL; epc 528 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 540 drivers/pci/endpoint/pci-epc-core.c void pci_epc_linkup(struct pci_epc *epc) epc 545 drivers/pci/endpoint/pci-epc-core.c if (!epc || IS_ERR(epc)) epc 548 drivers/pci/endpoint/pci-epc-core.c spin_lock_irqsave(&epc->lock, flags); epc 549 drivers/pci/endpoint/pci-epc-core.c list_for_each_entry(epf, &epc->pci_epf, list) epc 551 drivers/pci/endpoint/pci-epc-core.c spin_unlock_irqrestore(&epc->lock, flags); epc 561 drivers/pci/endpoint/pci-epc-core.c void pci_epc_destroy(struct pci_epc *epc) epc 563 drivers/pci/endpoint/pci-epc-core.c pci_ep_cfs_remove_epc_group(epc->group); epc 564 drivers/pci/endpoint/pci-epc-core.c device_unregister(&epc->dev); epc 565 drivers/pci/endpoint/pci-epc-core.c kfree(epc); epc 577 drivers/pci/endpoint/pci-epc-core.c void devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc) epc 582 drivers/pci/endpoint/pci-epc-core.c epc); epc 600 drivers/pci/endpoint/pci-epc-core.c struct pci_epc *epc; epc 607 drivers/pci/endpoint/pci-epc-core.c epc = kzalloc(sizeof(*epc), GFP_KERNEL); epc 608 drivers/pci/endpoint/pci-epc-core.c if (!epc) { epc 613 drivers/pci/endpoint/pci-epc-core.c spin_lock_init(&epc->lock); epc 614 drivers/pci/endpoint/pci-epc-core.c INIT_LIST_HEAD(&epc->pci_epf); epc 616 drivers/pci/endpoint/pci-epc-core.c device_initialize(&epc->dev); epc 617 drivers/pci/endpoint/pci-epc-core.c epc->dev.class = pci_epc_class; epc 618 drivers/pci/endpoint/pci-epc-core.c epc->dev.parent = dev; epc 619 drivers/pci/endpoint/pci-epc-core.c epc->ops = ops; epc 621 drivers/pci/endpoint/pci-epc-core.c ret = dev_set_name(&epc->dev, "%s", dev_name(dev)); epc 625 drivers/pci/endpoint/pci-epc-core.c ret = device_add(&epc->dev); epc 629 drivers/pci/endpoint/pci-epc-core.c epc->group = pci_ep_cfs_add_epc_group(dev_name(dev)); epc 631 drivers/pci/endpoint/pci-epc-core.c return epc; epc 634 drivers/pci/endpoint/pci-epc-core.c put_device(&epc->dev); epc 635 drivers/pci/endpoint/pci-epc-core.c kfree(epc); epc 657 drivers/pci/endpoint/pci-epc-core.c struct pci_epc **ptr, *epc; epc 663 drivers/pci/endpoint/pci-epc-core.c epc = __pci_epc_create(dev, ops, owner); epc 664 drivers/pci/endpoint/pci-epc-core.c if (!IS_ERR(epc)) { epc 665 drivers/pci/endpoint/pci-epc-core.c *ptr = epc; epc 671 drivers/pci/endpoint/pci-epc-core.c return epc; epc 48 drivers/pci/endpoint/pci-epc-mem.c int __pci_epc_mem_init(struct pci_epc *epc, phys_addr_t phys_base, size_t size, epc 84 drivers/pci/endpoint/pci-epc-mem.c epc->mem = mem; epc 103 drivers/pci/endpoint/pci-epc-mem.c void pci_epc_mem_exit(struct pci_epc *epc) epc 105 drivers/pci/endpoint/pci-epc-mem.c struct pci_epc_mem *mem = epc->mem; epc 107 drivers/pci/endpoint/pci-epc-mem.c epc->mem = NULL; epc 122 drivers/pci/endpoint/pci-epc-mem.c void __iomem *pci_epc_mem_alloc_addr(struct pci_epc *epc, epc 127 drivers/pci/endpoint/pci-epc-mem.c struct pci_epc_mem *mem = epc->mem; epc 159 drivers/pci/endpoint/pci-epc-mem.c void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, epc 163 drivers/pci/endpoint/pci-epc-mem.c struct pci_epc_mem *mem = epc->mem; epc 93 drivers/pci/endpoint/pci-epf-core.c struct device *dev = epf->epc->dev.parent; epc 120 drivers/pci/endpoint/pci-epf-core.c struct device *dev = epf->epc->dev.parent; epc 276 drivers/scsi/gvp11.c unsigned int epc; epc 337 drivers/scsi/gvp11.c epc = *(unsigned short *)(ZTWO_VADDR(address) + 0x8000); epc 339 drivers/scsi/gvp11.c (epc & GVP_SCSICLKMASK) ? WD33C93_FS_8_10 epc 44 include/linux/pci-epc.h int (*write_header)(struct pci_epc *epc, u8 func_no, epc 46 include/linux/pci-epc.h int (*set_bar)(struct pci_epc *epc, u8 func_no, epc 48 include/linux/pci-epc.h void (*clear_bar)(struct pci_epc *epc, u8 func_no, epc 50 include/linux/pci-epc.h int (*map_addr)(struct pci_epc *epc, u8 func_no, epc 52 include/linux/pci-epc.h void (*unmap_addr)(struct pci_epc *epc, u8 func_no, epc 54 include/linux/pci-epc.h int (*set_msi)(struct pci_epc *epc, u8 func_no, u8 interrupts); epc 55 include/linux/pci-epc.h int (*get_msi)(struct pci_epc *epc, u8 func_no); epc 56 include/linux/pci-epc.h int (*set_msix)(struct pci_epc *epc, u8 func_no, u16 interrupts); epc 57 include/linux/pci-epc.h int (*get_msix)(struct pci_epc *epc, u8 func_no); epc 58 include/linux/pci-epc.h int (*raise_irq)(struct pci_epc *epc, u8 func_no, epc 60 include/linux/pci-epc.h int (*start)(struct pci_epc *epc); epc 61 include/linux/pci-epc.h void (*stop)(struct pci_epc *epc); epc 62 include/linux/pci-epc.h const struct pci_epc_features* (*get_features)(struct pci_epc *epc, epc 134 include/linux/pci-epc.h #define pci_epc_mem_init(epc, phys_addr, size) \ epc 135 include/linux/pci-epc.h __pci_epc_mem_init((epc), (phys_addr), (size), PAGE_SIZE) epc 137 include/linux/pci-epc.h static inline void epc_set_drvdata(struct pci_epc *epc, void *data) epc 139 include/linux/pci-epc.h dev_set_drvdata(&epc->dev, data); epc 142 include/linux/pci-epc.h static inline void *epc_get_drvdata(struct pci_epc *epc) epc 144 include/linux/pci-epc.h return dev_get_drvdata(&epc->dev); epc 153 include/linux/pci-epc.h void devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc); epc 154 include/linux/pci-epc.h void pci_epc_destroy(struct pci_epc *epc); epc 155 include/linux/pci-epc.h int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf); epc 156 include/linux/pci-epc.h void pci_epc_linkup(struct pci_epc *epc); epc 157 include/linux/pci-epc.h void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf); epc 158 include/linux/pci-epc.h int pci_epc_write_header(struct pci_epc *epc, u8 func_no, epc 160 include/linux/pci-epc.h int pci_epc_set_bar(struct pci_epc *epc, u8 func_no, epc 162 include/linux/pci-epc.h void pci_epc_clear_bar(struct pci_epc *epc, u8 func_no, epc 164 include/linux/pci-epc.h int pci_epc_map_addr(struct pci_epc *epc, u8 func_no, epc 167 include/linux/pci-epc.h void pci_epc_unmap_addr(struct pci_epc *epc, u8 func_no, epc 169 include/linux/pci-epc.h int pci_epc_set_msi(struct pci_epc *epc, u8 func_no, u8 interrupts); epc 170 include/linux/pci-epc.h int pci_epc_get_msi(struct pci_epc *epc, u8 func_no); epc 171 include/linux/pci-epc.h int pci_epc_set_msix(struct pci_epc *epc, u8 func_no, u16 interrupts); epc 172 include/linux/pci-epc.h int pci_epc_get_msix(struct pci_epc *epc, u8 func_no); epc 173 include/linux/pci-epc.h int pci_epc_raise_irq(struct pci_epc *epc, u8 func_no, epc 175 include/linux/pci-epc.h int pci_epc_start(struct pci_epc *epc); epc 176 include/linux/pci-epc.h void pci_epc_stop(struct pci_epc *epc); epc 177 include/linux/pci-epc.h const struct pci_epc_features *pci_epc_get_features(struct pci_epc *epc, epc 182 include/linux/pci-epc.h void pci_epc_put(struct pci_epc *epc); epc 184 include/linux/pci-epc.h int __pci_epc_mem_init(struct pci_epc *epc, phys_addr_t phys_addr, size_t size, epc 186 include/linux/pci-epc.h void pci_epc_mem_exit(struct pci_epc *epc); epc 187 include/linux/pci-epc.h void __iomem *pci_epc_mem_alloc_addr(struct pci_epc *epc, epc 189 include/linux/pci-epc.h void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, epc 125 include/linux/pci-epf.h struct pci_epc *epc; epc 36 include/uapi/linux/zorro.h #define ZORRO_ID(manuf, prod, epc) \ epc 37 include/uapi/linux/zorro.h ((ZORRO_MANUF_##manuf << 16) | ((prod) << 8) | (epc)) epc 188 tools/arch/mips/include/uapi/asm/kvm.h __u64 epc;