Home
last modified time | relevance | path

Searched refs:epc_features (Results 1 – 12 of 12) sorted by relevance

/linux-6.15/drivers/pci/endpoint/functions/
H A Dpci-epf-ntb.c516 epc_features = ntb_epc->epc_features; in epf_ntb_configure_msix()
517 align = epc_features->align; in epf_ntb_configure_msix()
1013 epc_features = ntb_epc->epc_features; in epf_ntb_config_spad_bar_alloc()
1016 align = epc_features->align; in epf_ntb_config_spad_bar_alloc()
1287 epc_features = ntb_epc->epc_features; in epf_ntb_configure_interrupt()
1390 epc_features = ntb_epc->epc_features; in epf_ntb_alloc_peer_mem()
1391 align = epc_features->align; in epf_ntb_alloc_peer_mem()
1450 epc_features = ntb_epc->epc_features; in epf_ntb_db_mw_bar_init()
1582 if (!epc_features) in epf_ntb_epc_create_interface()
1584 ntb_epc->epc_features = epc_features; in epf_ntb_epc_create_interface()
[all …]
H A Dpci-epf-test.c68 const struct pci_epc_features *epc_features; member
780 if (epf_test->epc_features->msi_capable) in pci_epf_test_set_capabilities()
796 const struct pci_epc_features *epc_features = epf_test->epc_features; in pci_epf_test_epc_init() local
822 if (epc_features->msi_capable) { in pci_epf_test_epc_init()
831 if (epc_features->msix_capable) { in pci_epf_test_epc_init()
894 const struct pci_epc_features *epc_features = epf_test->epc_features; in pci_epf_test_alloc_space() local
899 if (epc_features->msix_capable) { in pci_epf_test_alloc_space()
908 epc_features, PRIMARY_INTERFACE); in pci_epf_test_alloc_space()
924 epc_features, PRIMARY_INTERFACE); in pci_epf_test_alloc_space()
961 if (!epc_features) { in pci_epf_test_bind()
[all …]
H A Dpci-epf-vntb.c425 size = epc_features->bar[barno].fixed_size; in epf_ntb_config_spad_bar_alloc()
426 align = epc_features->align; in epf_ntb_config_spad_bar_alloc()
449 base = pci_epf_alloc_space(epf, size, barno, epc_features, 0); in epf_ntb_config_spad_bar_alloc()
485 const struct pci_epc_features *epc_features; in epf_ntb_configure_interrupt() local
494 if (!(epc_features->msix_capable || epc_features->msi_capable)) { in epf_ntb_configure_interrupt()
507 if (epc_features->msi_capable) { in epf_ntb_configure_interrupt()
529 const struct pci_epc_features *epc_features; in epf_ntb_db_bar_init() local
537 epc_features = pci_epc_get_features(ntb->epf->epc, in epf_ntb_db_bar_init()
686 const struct pci_epc_features *epc_features; in epf_ntb_init_epc_bar() local
700 barno = pci_epc_get_next_free_bar(epc_features, barno); in epf_ntb_init_epc_bar()
[all …]
H A Dpci-epf-mhi.c144 const struct pci_epc_features *epc_features; member
163 return addr & (epf_mhi->epc_features->align -1); in get_align_offset()
753 epf_mhi->epc_features = pci_epc_get_features(epc, epf->func_no, epf->vfunc_no); in pci_epf_mhi_epc_init()
754 if (!epf_mhi->epc_features) in pci_epf_mhi_epc_init()
/linux-6.15/drivers/pci/endpoint/
H A Dpci-epc-core.c81 return pci_epc_get_next_free_bar(epc_features, BAR_0); in pci_epc_get_first_free_bar()
94 *epc_features, enum pci_barno bar) in pci_epc_get_next_free_bar()
98 if (!epc_features) in pci_epc_get_next_free_bar()
102 if (bar > 0 && epc_features->bar[bar - 1].only_64bit) in pci_epc_get_next_free_bar()
107 if (epc_features->bar[i].type != BAR_RESERVED) in pci_epc_get_next_free_bar()
142 const struct pci_epc_features *epc_features; in pci_epc_get_features() local
154 return epc_features; in pci_epc_get_features()
596 const struct pci_epc_features *epc_features; in pci_epc_set_bar() local
602 if (!epc_features) in pci_epc_set_bar()
605 if (epc_features->bar[bar].type == BAR_RESIZABLE && in pci_epc_set_bar()
[all …]
H A Dpci-epf-core.c263 const struct pci_epc_features *epc_features, in pci_epf_alloc_space() argument
266 u64 bar_fixed_size = epc_features->bar[bar].fixed_size; in pci_epf_alloc_space()
267 size_t align = epc_features->align; in pci_epf_alloc_space()
278 if (epc_features->bar[bar].type == BAR_RESIZABLE && size < SZ_1M) in pci_epf_alloc_space()
281 if (epc_features->bar[bar].type == BAR_FIXED && bar_fixed_size) { in pci_epf_alloc_space()
314 if (upper_32_bits(size) || epc_features->bar[bar].only_64bit) in pci_epf_alloc_space()
/linux-6.15/drivers/nvme/target/
H A Dpci-epf.c201 const struct pci_epc_features *epc_features; member
2145 const struct pci_epc_features *epc_features = nvme_epf->epc_features; in nvmet_pci_epf_configure_bar() local
2176 if (epc_features->msix_capable) { in nvmet_pci_epf_configure_bar()
2190 epc_features->bar[BAR_0].fixed_size, in nvmet_pci_epf_configure_bar()
2200 epc_features, PRIMARY_INTERFACE); in nvmet_pci_epf_configure_bar()
2231 const struct pci_epc_features *epc_features = nvme_epf->epc_features; in nvmet_pci_epf_init_irq() local
2275 const struct pci_epc_features *epc_features = nvme_epf->epc_features; in nvmet_pci_epf_epc_init() local
2343 if (!epc_features->linkup_notifier) in nvmet_pci_epf_epc_init()
2396 const struct pci_epc_features *epc_features; in nvmet_pci_epf_bind() local
2404 if (!epc_features) { in nvmet_pci_epf_bind()
[all …]
/linux-6.15/drivers/pci/controller/dwc/
H A Dpcie-dw-rockchip.c72 const struct pci_epc_features *epc_features; member
340 return rockchip->data->epc_features; in rockchip_pcie_get_features()
674 .epc_features = &rockchip_pcie_epc_features_rk3568,
679 .epc_features = &rockchip_pcie_epc_features_rk3588,
H A Dpci-imx6.c125 const struct pci_epc_features *epc_features; member
1321 return imx_pcie->drvdata->epc_features; in imx_pcie_ep_get_features()
1346 ep->page_size = imx_pcie->drvdata->epc_features->align; in imx_add_pcie_ep()
1767 .epc_features = &imx8m_pcie_epc_features,
1779 .epc_features = &imx8m_pcie_epc_features,
1790 .epc_features = &imx8m_pcie_epc_features,
1797 .epc_features = &imx8q_pcie_epc_features,
1808 .epc_features = &imx95_pcie_epc_features,
H A Dpcie-designware-ep.c356 const struct pci_epc_features *epc_features; in dw_pcie_ep_get_bar_type() local
361 epc_features = ep->ops->get_features(ep); in dw_pcie_ep_get_bar_type()
363 return epc_features->bar[bar].type; in dw_pcie_ep_get_bar_type()
/linux-6.15/include/linux/
H A Dpci-epc.h305 pci_epc_get_first_free_bar(const struct pci_epc_features *epc_features);
307 *epc_features, enum pci_barno bar);
H A Dpci-epf.h222 const struct pci_epc_features *epc_features,