Home
last modified time | relevance | path

Searched refs:pdn (Results 1 – 25 of 98) sorted by relevance

1234

/linux/arch/powerpc/kernel/
A Dpci_dn.c78 if (pdn) in pci_get_pdn_by_devfn()
107 if (pdn) in pci_get_pdn()
139 edev->pdn = pdn; in eeh_dev_init()
140 edev->bdfn = (pdn->busno << 8) | pdn->devfn; in eeh_dev_init()
157 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); in add_one_sriov_vf_pdn()
184 if (!pdn || (pdn->flags & PCI_DN_FLAG_IOV_VF)) in add_sriov_vf_pdns()
229 if (!pdn || !(pdn->flags & PCI_DN_FLAG_IOV_VF)) in remove_sriov_vf_pdns()
293 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); in pci_add_device_node_info()
369 pdn->busno, pdn->devfn); in pci_remove_device_node_info()
474 pdn->devfn = pdn->busno = -1; in pci_devs_phb_init_dynamic()
[all …]
A Drtas_pci.c51 if (!pdn) in rtas_read_config()
53 if (!config_access_valid(pdn, where)) in rtas_read_config()
56 if (pdn->edev && pdn->edev->pe && in rtas_read_config()
61 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config()
62 buid = pdn->phb->buid; in rtas_read_config()
81 struct pci_dn *pdn; in rtas_pci_read_config() local
102 if (!pdn) in rtas_write_config()
107 if (pdn->edev && pdn->edev->pe && in rtas_write_config()
112 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_write_config()
113 buid = pdn->phb->buid; in rtas_write_config()
[all …]
A Dpci-hotplug.c40 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node() local
42 if (!pdn || !pdn->phb || !pdn->phb->bus) in pci_find_bus_by_node()
45 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node()
58 struct pci_dn *pdn = pci_get_pdn(dev); in pcibios_release_device() local
64 if (pdn && (pdn->flags & PCI_DN_FLAG_DEAD)) { in pcibios_release_device()
66 kfree(pdn); in pcibios_release_device()
/linux/arch/powerpc/platforms/pseries/
A Deeh_pseries.c77 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device()
101 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_eeh_get_pe_config_addr()
250 if (!pdn) in pseries_eeh_cap_start()
336 pdn = pdn ? pdn->parent : NULL; in pseries_eeh_pe_get_parent()
337 while (pdn) { in pseries_eeh_pe_get_parent()
346 pdn = pdn->parent; in pseries_eeh_pe_get_parent()
392 if (!pdn->vendor_id || !pdn->device_id || !pdn->class_code) in pseries_eeh_init_edev()
432 pe.phb = pdn->phb; in pseries_eeh_init_edev()
463 if (!pdn) in pseries_eeh_probe()
489 if (!pdn) in pseries_eeh_init_edev_recursive()
[all …]
A Dpci.c61 struct pci_dn *pdn; in pseries_send_map_pe() local
69 pdn = pci_get_pdn(pdev); in pseries_send_map_pe()
70 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe()
71 buid = pdn->phb->buid; in pseries_send_map_pe()
92 struct pci_dn *pdn; in pseries_set_pe_num() local
94 pdn = pci_get_pdn(pdev); in pseries_set_pe_num()
106 struct pci_dn *pdn; in pseries_associate_pes() local
116 pdn = pci_get_pdn(pdev); in pseries_associate_pes()
175 if (!pdn->pe_num_map) in pseries_pci_sriov_enable()
305 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { in pseries_root_bridge_prepare()
[all …]
A Diommu.c720 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP()
1021 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw()
1141 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
1257 if (fpdn->pdn == pdn) in enable_ddw()
1472 fpdn->pdn = pdn; in enable_ddw()
1507 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in pci_dma_dev_setup_pSeriesLP()
1508 pdn = pdn->parent) { in pci_dma_dev_setup_pSeriesLP()
1514 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1558 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in iommu_bypass_supported_pSeriesLP()
1559 pdn = pdn->parent) { in iommu_bypass_supported_pSeriesLP()
[all …]
A Dmsi.c37 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi()
38 buid = pdn->phb->buid; in rtas_change_msi()
72 struct pci_dn *pdn; in rtas_disable_msi() local
74 pdn = pci_get_pdn(pdev); in rtas_disable_msi()
75 if (!pdn) in rtas_disable_msi()
86 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi()
98 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
99 buid = pdn->phb->buid; in rtas_query_irq_number()
365 struct pci_dn *pdn; in rtas_prepare_msi_irqs() local
398 pdn = pci_get_pdn(pdev); in rtas_prepare_msi_irqs()
[all …]
A Dsetup.c254 struct pci_dn *pdn; in pci_dn_reconfig_notifier() local
260 pdn = parent ? PCI_DN(parent) : NULL; in pci_dn_reconfig_notifier()
261 if (pdn) in pci_dn_reconfig_notifier()
262 pci_add_device_node_info(pdn->phb, np); in pci_dn_reconfig_notifier()
267 pdn = PCI_DN(np); in pci_dn_reconfig_notifier()
268 if (pdn) in pci_dn_reconfig_notifier()
269 list_del(&pdn->list); in pci_dn_reconfig_notifier()
/linux/arch/powerpc/platforms/powernv/
A Deeh-powernv.c236 if (!pdn) in pnv_eeh_find_cap()
330 int config_addr = (pdn->busno << 8) | (pdn->devfn); in pnv_eeh_probe()
421 pdn->busno); in pnv_eeh_probe()
925 pdn->phb->global_number, pdn->busno, in pnv_eeh_wait_for_pending()
926 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in pnv_eeh_wait_for_pending()
1006 struct pci_dn *pdn; in pnv_eeh_reset_vf_pe() local
1011 pdn = eeh_dev_to_pdn(edev); in pnv_eeh_reset_vf_pe()
1012 if (!pdn) in pnv_eeh_reset_vf_pe()
1234 if (!pdn) in pnv_eeh_read_config()
1250 if (!pdn) in pnv_eeh_write_config()
[all …]
A Dpci.c544 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh()
569 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh()
590 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read()
618 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read()
626 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_write()
629 __func__, pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()
658 edev = pdn->edev; in pnv_pci_cfg_check()
681 struct pci_dn *pdn; in pnv_pci_read_config() local
687 if (!pdn) in pnv_pci_read_config()
710 struct pci_dn *pdn; in pnv_pci_write_config() local
[all …]
A Dpci-ioda.c683 if (!pdn) in pnv_ioda_get_pe()
781 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv()
803 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv()
986 if (!pdn) { in pnv_ioda_setup_dev_PE()
1148 if (pdn) in pnv_pci_ioda_dma_dev_setup()
1237 if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) in pnv_pci_ioda_iommu_bypass_supported()
2672 struct pci_dn *pdn; in pnv_pci_enable_device_hook() local
2675 if (!pdn || pdn->pe_number == IODA_INVALID_PE) { in pnv_pci_enable_device_hook()
2685 struct pci_dn *pdn; in pnv_ocapi_enable_device_hook() local
2689 if (!pdn) in pnv_ocapi_enable_device_hook()
[all …]
/linux/drivers/pci/hotplug/
A Drpadlpar_core.c139 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() local
140 struct pci_controller *phb = pdn->phb; in dlpar_pci_add_bus()
143 pseries_eeh_init_edev_recursive(pdn); in dlpar_pci_add_bus()
146 dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); in dlpar_pci_add_bus()
207 struct pci_dn *pdn; in dlpar_remove_phb() local
221 pdn = dn->data; in dlpar_remove_phb()
222 BUG_ON(!pdn || !pdn->phb); in dlpar_remove_phb()
223 rc = remove_phb_dynamic(pdn->phb); in dlpar_remove_phb()
227 pdn->phb = NULL; in dlpar_remove_phb()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dpd.c38 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) in mlx5_core_alloc_pd() argument
47 *pdn = MLX5_GET(alloc_pd_out, out, pd); in mlx5_core_alloc_pd()
52 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) in mlx5_core_dealloc_pd() argument
57 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_core_dealloc_pd()
A Den_common.c49 static int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5e_create_mkey() argument
66 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey()
81 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources()
93 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources()
115 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources()
126 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
/linux/arch/arm64/boot/dts/exynos/
A Dexynosautov9-pinctrl.dtsi223 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
224 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
231 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
238 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
246 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
247 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
254 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
270 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
293 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
316 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
A Drsc_dump.c32 u32 pdn; member
204 static int mlx5_rsc_dump_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5_rsc_dump_create_mkey() argument
221 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_rsc_dump_create_mkey()
261 err = mlx5_core_alloc_pd(dev, &rsc_dump->pdn); in mlx5_rsc_dump_init()
266 err = mlx5_rsc_dump_create_mkey(dev, rsc_dump->pdn, &rsc_dump->mkey); in mlx5_rsc_dump_init()
281 mlx5_core_dealloc_pd(dev, rsc_dump->pdn); in mlx5_rsc_dump_init()
291 mlx5_core_dealloc_pd(dev, dev->rsc_dump->pdn); in mlx5_rsc_dump_cleanup()
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_pd.c61 pd->pdn = (unsigned long)id; in hns_roce_alloc_pd()
64 struct hns_roce_ib_alloc_pd_resp resp = {.pdn = pd->pdn}; in hns_roce_alloc_pd()
81 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
/linux/drivers/vdpa/mlx5/core/
A Dresources.c8 static int alloc_pd(struct mlx5_vdpa_dev *dev, u32 *pdn, u16 uid) in alloc_pd() argument
21 *pdn = MLX5_GET(alloc_pd_out, out, pd); in alloc_pd()
26 static int dealloc_pd(struct mlx5_vdpa_dev *dev, u32 pdn, u16 uid) in dealloc_pd() argument
32 MLX5_SET(dealloc_pd_in, in, pd, pdn); in dealloc_pd()
269 err = alloc_pd(mvdev, &res->pdn, res->uid); in mlx5_vdpa_alloc_resources()
297 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_alloc_resources()
317 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_free_resources()
A Dmlx5_vdpa.h42 u32 pdn; member
88 int mlx5_vdpa_alloc_pd(struct mlx5_vdpa_dev *dev, u32 *pdn, u16 uid);
89 int mlx5_vdpa_dealloc_pd(struct mlx5_vdpa_dev *dev, u32 pdn, u16 uid);
/linux/arch/powerpc/include/asm/
A Deeh.h145 struct pci_dn *pdn; /* Associated PCI device node */ member
167 return edev ? edev->pdn : NULL; in eeh_dev_to_pdn()
357 void pseries_eeh_init_edev(struct pci_dn *pdn);
358 void pseries_eeh_init_edev_recursive(struct pci_dn *pdn);
360 static inline void pseries_eeh_add_device_early(struct pci_dn *pdn) { } in pseries_eeh_add_device_early() argument
361 static inline void pseries_eeh_add_device_tree_early(struct pci_dn *pdn) { } in pseries_eeh_add_device_tree_early() argument
A Dpci-bridge.h249 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev() argument
251 return pdn ? pdn->edev : NULL; in pdn_to_eeh_dev()
/linux/drivers/net/ethernet/mellanox/mlx4/
A Dpd.c47 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) in mlx4_pd_alloc() argument
51 *pdn = mlx4_bitmap_alloc(&priv->pd_bitmap); in mlx4_pd_alloc()
52 if (*pdn == -1) in mlx4_pd_alloc()
59 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) in mlx4_pd_free() argument
61 mlx4_bitmap_free(&mlx4_priv(dev)->pd_bitmap, pdn, MLX4_USE_RR); in mlx4_pd_free()
/linux/drivers/infiniband/hw/efa/
A Defa_com_cmd.h95 u16 pdn; member
106 u16 pdn; member
219 u16 pdn; member
223 u16 pdn; member
/linux/include/uapi/rdma/
A Dmthca-abi.h59 __u32 pdn; member
76 __u32 pdn; member
/linux/arch/arm/boot/dts/
A Dexynos3250-artik5.dtsi363 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
364 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>;
384 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>;
385 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
392 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT0>;
393 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>;

Completed in 41 milliseconds

1234