Lines Matching refs:epf
80 struct pci_epf *epf; member
645 dev = &ntb->epf->dev; in epf_ntb_cmd_handler()
791 dev = &ntb->epf->dev; in epf_ntb_peer_spad_bar_set()
906 dev = &ntb->epf->dev; in epf_ntb_config_sspad_bar_set()
953 struct pci_epf *epf; in epf_ntb_config_spad_bar_free() local
955 epf = ntb->epf; in epf_ntb_config_spad_bar_free()
960 pci_epf_free_space(epf, ntb_epc->reg, barno, type); in epf_ntb_config_spad_bar_free()
1003 struct pci_epf *epf; in epf_ntb_config_spad_bar_alloc() local
1009 epf = ntb->epf; in epf_ntb_config_spad_bar_alloc()
1010 dev = &epf->dev; in epf_ntb_config_spad_bar_alloc()
1070 base = pci_epf_alloc_space(epf, size, barno, align, type); in epf_ntb_config_spad_bar_alloc()
1103 dev = &ntb->epf->dev; in epf_ntb_config_spad_bar_alloc_interface()
1285 dev = &ntb->epf->dev; in epf_ntb_configure_interrupt()
1449 dev = &ntb->epf->dev; in epf_ntb_db_mw_bar_init()
1510 struct pci_epf *epf; in epf_ntb_epc_destroy_interface() local
1515 epf = ntb->epf; in epf_ntb_epc_destroy_interface()
1520 pci_epc_remove_epf(epc, epf, type); in epf_ntb_epc_destroy_interface()
1554 struct pci_epf *epf; in epf_ntb_epc_create_interface() local
1557 dev = &ntb->epf->dev; in epf_ntb_epc_create_interface()
1563 epf = ntb->epf; in epf_ntb_epc_create_interface()
1564 vfunc_no = epf->vfunc_no; in epf_ntb_epc_create_interface()
1566 func_no = epf->func_no; in epf_ntb_epc_create_interface()
1567 epf_bar = epf->bar; in epf_ntb_epc_create_interface()
1569 func_no = epf->sec_epc_func_no; in epf_ntb_epc_create_interface()
1570 epf_bar = epf->sec_epc_bar; in epf_ntb_epc_create_interface()
1602 struct pci_epf *epf; in epf_ntb_epc_create() local
1606 epf = ntb->epf; in epf_ntb_epc_create()
1607 dev = &epf->dev; in epf_ntb_epc_create()
1609 ret = epf_ntb_epc_create_interface(ntb, epf->epc, PRIMARY_INTERFACE); in epf_ntb_epc_create()
1615 ret = epf_ntb_epc_create_interface(ntb, epf->sec_epc, in epf_ntb_epc_create()
1653 dev = &ntb->epf->dev; in epf_ntb_init_epc_bar_interface()
1695 dev = &ntb->epf->dev; in epf_ntb_init_epc_bar()
1723 struct pci_epf *epf; in epf_ntb_epc_init_interface() local
1728 epf = ntb->epf; in epf_ntb_epc_init_interface()
1729 dev = &epf->dev; in epf_ntb_epc_init_interface()
1763 ret = pci_epc_write_header(epc, func_no, vfunc_no, epf->header); in epf_ntb_epc_init_interface()
1837 dev = &ntb->epf->dev; in epf_ntb_epc_init()
1865 static int epf_ntb_bind(struct pci_epf *epf) in epf_ntb_bind() argument
1867 struct epf_ntb *ntb = epf_get_drvdata(epf); in epf_ntb_bind()
1868 struct device *dev = &epf->dev; in epf_ntb_bind()
1871 if (!epf->epc) { in epf_ntb_bind()
1876 if (!epf->sec_epc) { in epf_ntb_bind()
1905 epf_set_drvdata(epf, ntb); in epf_ntb_bind()
1924 static void epf_ntb_unbind(struct pci_epf *epf) in epf_ntb_unbind() argument
1926 struct epf_ntb *ntb = epf_get_drvdata(epf); in epf_ntb_unbind()
1978 struct device *dev = &ntb->epf->dev; \
2063 static struct config_group *epf_ntb_add_cfs(struct pci_epf *epf, in epf_ntb_add_cfs() argument
2066 struct epf_ntb *ntb = epf_get_drvdata(epf); in epf_ntb_add_cfs()
2068 struct device *dev = &epf->dev; in epf_ntb_add_cfs()
2082 static int epf_ntb_probe(struct pci_epf *epf) in epf_ntb_probe() argument
2087 dev = &epf->dev; in epf_ntb_probe()
2093 epf->header = &epf_ntb_header; in epf_ntb_probe()
2094 ntb->epf = epf; in epf_ntb_probe()
2095 epf_set_drvdata(epf, ntb); in epf_ntb_probe()