Home
last modified time | relevance | path

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

/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-ntb.c104 const struct pci_epc_features *epc_features; member
491 const struct pci_epc_features *epc_features; in epf_ntb_configure_msix() local
516 epc_features = ntb_epc->epc_features; in epf_ntb_configure_msix()
517 align = epc_features->align; in epf_ntb_configure_msix()
996 const struct pci_epc_features *peer_epc_features, *epc_features; in epf_ntb_config_spad_bar_alloc() local
1013 epc_features = ntb_epc->epc_features; in epf_ntb_config_spad_bar_alloc()
1015 size = epc_features->bar[barno].fixed_size; in epf_ntb_config_spad_bar_alloc()
1016 align = epc_features->align; in epf_ntb_config_spad_bar_alloc()
1019 peer_epc_features = peer_ntb_epc->epc_features; in epf_ntb_config_spad_bar_alloc()
1032 msix_capable = epc_features->msix_capable; in epf_ntb_config_spad_bar_alloc()
[all …]
H A Dpci-epf-test.c87 const struct pci_epc_features *epc_features; member
740 bar = pci_epc_get_next_free_bar(epf_test->epc_features, epf_test->test_reg_bar + 1); in pci_epf_test_enable_doorbell()
854 if (!epf_test->epc_features->dynamic_inbound_mapping || in pci_epf_test_bar_subrange_setup()
855 !epf_test->epc_features->subrange_mapping) { in pci_epf_test_bar_subrange_setup()
1101 if (epf_test->epc_features->msi_capable) in pci_epf_test_set_capabilities()
1104 if (epf_test->epc_features->msix_capable) in pci_epf_test_set_capabilities()
1107 if (epf_test->epc_features->intx_capable) in pci_epf_test_set_capabilities()
1110 if (epf_test->epc_features->dynamic_inbound_mapping && in pci_epf_test_set_capabilities()
1111 epf_test->epc_features->subrange_mapping) in pci_epf_test_set_capabilities()
1121 const struct pci_epc_features *epc_features = epf_test->epc_features; in pci_epf_test_epc_init() local
[all …]
H A Dpci-epf-vntb.c438 const struct pci_epc_features *epc_features = pci_epc_get_features(epf->epc, in epf_ntb_config_spad_bar_alloc() local
448 barno, epc_features, 0); in epf_ntb_config_spad_bar_alloc()
484 const struct pci_epc_features *epc_features; in epf_ntb_configure_interrupt() local
491 epc_features = pci_epc_get_features(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no); in epf_ntb_configure_interrupt()
493 if (!(epc_features->msix_capable || epc_features->msi_capable)) { in epf_ntb_configure_interrupt()
506 if (epc_features->msi_capable) { in epf_ntb_configure_interrupt()
522 const struct pci_epc_features *epc_features, in epf_ntb_db_bar_init_msi_doorbell() argument
563 ret = pci_epf_assign_bar_space(epf, sz, barno, epc_features, 0, low); in epf_ntb_db_bar_init_msi_doorbell()
616 const struct pci_epc_features *epc_features; in epf_ntb_db_bar_init() local
624 epc_features = pci_epc_get_features(ntb->epf->epc, in epf_ntb_db_bar_init()
[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/drivers/pci/endpoint/
H A Dpci-epc-core.c79 pci_epc_get_first_free_bar(const struct pci_epc_features *epc_features) in pci_epc_get_first_free_bar() argument
81 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
151 epc_features = epc->ops->get_features(epc, func_no, vfunc_no); in pci_epc_get_features()
154 return epc_features; in pci_epc_get_features()
590 const struct pci_epc_features *epc_features; in pci_epc_set_bar() local
[all …]
H A Dpci-epf-core.c214 const struct pci_epc_features *epc_features, in pci_epf_get_required_bar_size() argument
217 u64 bar_fixed_size = epc_features->bar[bar].fixed_size; in pci_epf_get_required_bar_size()
218 size_t align = epc_features->align; in pci_epf_get_required_bar_size()
225 if (epc_features->bar[bar].type == BAR_RESIZABLE && size < SZ_1M) in pci_epf_get_required_bar_size()
228 if (epc_features->bar[bar].type == BAR_FIXED && bar_fixed_size) { in pci_epf_get_required_bar_size()
306 const struct pci_epc_features *epc_features, in pci_epf_alloc_space() argument
317 epc_features, type)) in pci_epf_alloc_space()
340 if (upper_32_bits(size) || epc_features->bar[bar].only_64bit) in pci_epf_alloc_space()
364 const struct pci_epc_features *epc_features, in pci_epf_assign_bar_space() argument
400 bar, epc_features, type)) in pci_epf_assign_bar_space()
[all …]
/linux/drivers/nvme/target/
H A Dpci-epf.c201 const struct pci_epc_features *epc_features; member
645 if (!ret || !nvme_epf->epc_features->intx_capable) in nvmet_pci_epf_raise_irq()
2155 const struct pci_epc_features *epc_features = nvme_epf->epc_features; in nvmet_pci_epf_configure_bar() local
2163 if (pci_epc_get_first_free_bar(epc_features) != BAR_0) { in nvmet_pci_epf_configure_bar()
2186 if (epc_features->msix_capable) { in nvmet_pci_epf_configure_bar()
2196 if (epc_features->bar[BAR_0].type == BAR_FIXED) { in nvmet_pci_epf_configure_bar()
2197 if (reg_size > epc_features->bar[BAR_0].fixed_size) { in nvmet_pci_epf_configure_bar()
2200 epc_features->bar[BAR_0].fixed_size, in nvmet_pci_epf_configure_bar()
2204 reg_bar_size = epc_features->bar[BAR_0].fixed_size; in nvmet_pci_epf_configure_bar()
2206 reg_bar_size = ALIGN(reg_size, max(epc_features->align, 4096)); in nvmet_pci_epf_configure_bar()
[all …]
/linux/include/linux/
H A Dpci-epf.h263 const struct pci_epc_features *epc_features,
270 const struct pci_epc_features *epc_features,
H A Dpci-epc.h313 pci_epc_get_first_free_bar(const struct pci_epc_features *epc_features);
315 *epc_features, enum pci_barno bar);
/linux/drivers/pci/controller/dwc/
H A Dpcie-dw-rockchip.c105 const struct pci_epc_features *epc_features; member
433 return rockchip->data->epc_features; in rockchip_pcie_get_features()
720 .epc_features = &rockchip_pcie_epc_features_rk3568,
725 .epc_features = &rockchip_pcie_epc_features_rk3588,
H A Dpci-imx6.c137 const struct pci_epc_features *epc_features; member
1477 return imx_pcie->drvdata->epc_features; in imx_pcie_ep_get_features()
1502 ep->page_size = imx_pcie->drvdata->epc_features->align; in imx_add_pcie_ep()
1987 .epc_features = &imx8q_pcie_epc_features,
1999 .epc_features = &imx8m_pcie_epc_features,
2010 .epc_features = &imx8m_pcie_epc_features,
2017 .epc_features = &imx8q_pcie_epc_features,
2031 .epc_features = &imx95_pcie_epc_features,
H A Dpcie-designware-ep.c480 const struct pci_epc_features *epc_features; in dw_pcie_ep_get_bar_type() local
485 epc_features = ep->ops->get_features(ep); in dw_pcie_ep_get_bar_type()
487 return epc_features->bar[bar].type; in dw_pcie_ep_get_bar_type()