Lines Matching refs:epf

15 #include <linux/pci-epf.h>
121 struct pci_epf *epf;
141 struct pci_epf *epf = epf_mhi->epf;
142 struct pci_epc *epc = epf->epc;
149 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, *paddr,
179 struct pci_epf *epf = epf_mhi->epf;
180 struct pci_epc *epc = epf->epc;
182 pci_epc_unmap_addr(epc, epf->func_no, epf->vfunc_no, paddr - offset);
201 struct pci_epf *epf = epf_mhi->epf;
202 struct pci_epc *epc = epf->epc;
208 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, PCI_EPC_IRQ_MSI,
277 struct device *dma_dev = epf_mhi->epf->epc->dev.parent;
279 struct device *dev = &epf_mhi->epf->dev;
348 struct device *dma_dev = epf_mhi->epf->epc->dev.parent;
350 struct device *dev = &epf_mhi->epf->dev;
434 struct device *dma_dev = epf_mhi->epf->epc->dev.parent;
435 struct device *dev = &epf_mhi->epf->dev;
472 static int pci_epf_mhi_core_init(struct pci_epf *epf)
474 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
476 struct pci_epf_bar *epf_bar = &epf->bar[info->bar_num];
477 struct pci_epc *epc = epf->epc;
478 struct device *dev = &epf->dev;
485 ret = pci_epc_set_bar(epc, epf->func_no, epf->vfunc_no, epf_bar);
491 ret = pci_epc_set_msi(epc, epf->func_no, epf->vfunc_no,
498 ret = pci_epc_write_header(epc, epf->func_no, epf->vfunc_no,
499 epf->header);
505 epf_mhi->epc_features = pci_epc_get_features(epc, epf->func_no, epf->vfunc_no);
512 static int pci_epf_mhi_link_up(struct pci_epf *epf)
514 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
517 struct pci_epc *epc = epf->epc;
518 struct device *dev = &epf->dev;
558 static int pci_epf_mhi_link_down(struct pci_epf *epf)
560 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
574 static int pci_epf_mhi_bme(struct pci_epf *epf)
576 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
579 struct device *dev = &epf->dev;
599 static int pci_epf_mhi_bind(struct pci_epf *epf)
601 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
602 struct pci_epc *epc = epf->epc;
627 static void pci_epf_mhi_unbind(struct pci_epf *epf)
629 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
631 struct pci_epf_bar *epf_bar = &epf->bar[info->bar_num];
633 struct pci_epc *epc = epf->epc;
648 pci_epc_clear_bar(epc, epf->func_no, epf->vfunc_no, epf_bar);
658 static int pci_epf_mhi_probe(struct pci_epf *epf,
664 struct device *dev = &epf->dev;
670 epf->header = info->epf_header;
672 epf_mhi->epf = epf;
674 epf->event_ops = &pci_epf_mhi_event_ops;
678 epf_set_drvdata(epf, epf_mhi);