Home
last modified time | relevance | path

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

123456

/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()
370 pdn->busno, pdn->devfn); in pci_remove_device_node_info()
475 pdn->devfn = pdn->busno = -1; in pci_devs_phb_init_dynamic()
[all …]
A Drtas_pci.c52 if (!pdn) in rtas_pci_dn_read_config()
54 if (!config_access_valid(pdn, where)) in rtas_pci_dn_read_config()
57 if (pdn->edev && pdn->edev->pe && in rtas_pci_dn_read_config()
62 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_pci_dn_read_config()
63 buid = pdn->phb->buid; in rtas_pci_dn_read_config()
82 struct pci_dn *pdn; in rtas_pci_read_config() local
103 if (!pdn) in rtas_pci_dn_write_config()
108 if (pdn->edev && pdn->edev->pe && in rtas_pci_dn_write_config()
113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_pci_dn_write_config()
114 buid = pdn->phb->buid; in rtas_pci_dn_write_config()
[all …]
A Dpci-hotplug.c41 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node() local
43 if (!pdn || !pdn->phb || !pdn->phb->bus) in pci_find_bus_by_node()
46 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node()
59 struct pci_dn *pdn = pci_get_pdn(dev); in pcibios_release_device() local
65 if (pdn && (pdn->flags & PCI_DN_FLAG_DEAD)) { in pcibios_release_device()
67 kfree(pdn); in pcibios_release_device()
/linux/arch/powerpc/platforms/pseries/
A Deeh_pseries.c79 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device()
103 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_eeh_get_pe_config_addr()
252 if (!pdn) in pseries_eeh_cap_start()
338 pdn = pdn ? pdn->parent : NULL; in pseries_eeh_pe_get_parent()
339 while (pdn) { in pseries_eeh_pe_get_parent()
348 pdn = pdn->parent; in pseries_eeh_pe_get_parent()
394 if (!pdn->vendor_id || !pdn->device_id || !pdn->class_code) in pseries_eeh_init_edev()
434 pe.phb = pdn->phb; in pseries_eeh_init_edev()
465 if (!pdn) in pseries_eeh_probe()
491 if (!pdn) in pseries_eeh_init_edev_recursive()
[all …]
A Dpci.c33 struct pci_dn *pdn; in pseries_send_map_pe() local
41 pdn = pci_get_pdn(pdev); in pseries_send_map_pe()
42 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe()
43 buid = pdn->phb->buid; in pseries_send_map_pe()
64 struct pci_dn *pdn; in pseries_set_pe_num() local
66 pdn = pci_get_pdn(pdev); in pseries_set_pe_num()
78 struct pci_dn *pdn; in pseries_associate_pes() local
88 pdn = pci_get_pdn(pdev); in pseries_associate_pes()
147 if (!pdn->pe_num_map) in pseries_pci_sriov_enable()
277 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { in pseries_root_bridge_prepare()
[all …]
A Diommu.c1212 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw()
1323 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
1438 if (fpdn->pdn == pdn) in enable_ddw()
1697 fpdn->pdn = pdn; in enable_ddw()
1797 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1848 if (pdn && PCI_DN(pdn)) in iommu_bypass_supported_pSeriesLP()
1940 if (!pdn || !PCI_DN(pdn)) { in pseries_setup_default_iommu_config()
2023 if (fpdn->pdn == pdn) { in spapr_tce_create_table()
2166 fpdn->pdn = pdn; in spapr_tce_create_table()
2250 fpdn->pdn = pdn; in spapr_tce_unset_window()
[all …]
A Dmsi.c39 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi()
40 buid = pdn->phb->buid; in rtas_change_msi()
74 struct pci_dn *pdn; in rtas_disable_msi() local
76 pdn = pci_get_pdn(pdev); in rtas_disable_msi()
77 if (!pdn) in rtas_disable_msi()
88 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi()
100 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
101 buid = pdn->phb->buid; in rtas_query_irq_number()
346 struct pci_dn *pdn; in rtas_prepare_msi_irqs() local
376 pdn = pci_get_pdn(pdev); in rtas_prepare_msi_irqs()
[all …]
/linux/drivers/net/phy/
A Dphy_link_topology.c35 struct phy_device_node *pdn; in phy_link_topo_add_phy() local
46 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); in phy_link_topo_add_phy()
47 if (!pdn) in phy_link_topo_add_phy()
50 pdn->phy = phy; in phy_link_topo_add_phy()
55 pdn->parent_sfp_bus = pdn->upstream.netdev->sfp_bus; in phy_link_topo_add_phy()
60 pdn->parent_sfp_bus = pdn->upstream.phydev->sfp_bus; in phy_link_topo_add_phy()
66 pdn->upstream_type = upt; in phy_link_topo_add_phy()
82 kfree(pdn); in phy_link_topo_add_phy()
91 struct phy_device_node *pdn; in phy_link_topo_del_phy() local
96 pdn = xa_erase(&topo->phys, phy->phyindex); in phy_link_topo_del_phy()
[all …]
/linux/net/ethtool/
A Dphy.c15 struct phy_device_node *pdn; member
31 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_reply_size() local
32 struct phy_device *phydev = pdn->phy; in ethnl_phy_reply_size()
76 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_fill_reply() local
77 struct phy_device *phydev = pdn->phy; in ethnl_phy_fill_reply()
80 ptype = pdn->upstream_type; in ethnl_phy_fill_reply()
92 struct phy_device *upstream = pdn->upstream.phydev; in ethnl_phy_fill_reply()
99 if (pdn->parent_sfp_bus) { in ethnl_phy_fill_reply()
167 if (!req_info.pdn) in ethnl_phy_doit()
250 struct phy_device_node *pdn; in ethnl_phy_dump_one_dev() local
[all …]
/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()
924 pdn->phb->global_number, pdn->busno, in pnv_eeh_wait_for_pending()
925 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in pnv_eeh_wait_for_pending()
1005 struct pci_dn *pdn; in pnv_eeh_reset_vf_pe() local
1010 pdn = eeh_dev_to_pdn(edev); in pnv_eeh_reset_vf_pe()
1011 if (!pdn) in pnv_eeh_reset_vf_pe()
1233 if (!pdn) in pnv_eeh_read_config()
1249 if (!pdn) in pnv_eeh_write_config()
[all …]
A Dpci.c543 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh()
568 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh()
589 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read()
617 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read()
625 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_write()
628 __func__, pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()
657 edev = pdn->edev; in pnv_pci_cfg_check()
680 struct pci_dn *pdn; in pnv_pci_read_config() local
686 if (!pdn) in pnv_pci_read_config()
709 struct pci_dn *pdn; in pnv_pci_write_config() local
[all …]
A Dpci-ioda.c598 if (!pdn) in pnv_ioda_get_pe()
696 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv()
718 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv()
880 if (!pdn) { in pnv_ioda_setup_dev_PE()
1036 if (pdn) in pnv_pci_ioda_dma_dev_setup()
1125 if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) in pnv_pci_ioda_iommu_bypass_supported()
2329 struct pci_dn *pdn; in pnv_pci_enable_device_hook() local
2332 if (!pdn || pdn->pe_number == IODA_INVALID_PE) { in pnv_pci_enable_device_hook()
2342 struct pci_dn *pdn; in pnv_ocapi_enable_device_hook() local
2346 if (!pdn) in pnv_ocapi_enable_device_hook()
[all …]
/linux/drivers/pci/hotplug/
A Drpadlpar_core.c140 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() local
141 struct pci_controller *phb = pdn->phb; in dlpar_pci_add_bus()
144 pseries_eeh_init_edev_recursive(pdn); in dlpar_pci_add_bus()
147 dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); in dlpar_pci_add_bus()
208 struct pci_dn *pdn; in dlpar_remove_phb() local
222 pdn = dn->data; in dlpar_remove_phb()
223 BUG_ON(!pdn || !pdn->phb); in dlpar_remove_phb()
224 rc = remove_phb_dynamic(pdn->phb); in dlpar_remove_phb()
228 pdn->phb = NULL; in dlpar_remove_phb()
A Drpaphp_pci.c76 struct pci_dn *pdn; in __rpaphp_get_sensor_state() local
87 pdn = list_first_entry_or_null(&PCI_DN(phb->dn)->child_list, in __rpaphp_get_sensor_state()
89 if (!pdn) in __rpaphp_get_sensor_state()
92 pe = eeh_dev_to_pe(pdn->edev); in __rpaphp_get_sensor_state()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dpd.c37 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) in mlx5_core_alloc_pd() argument
46 *pdn = MLX5_GET(alloc_pd_out, out, pd); in mlx5_core_alloc_pd()
51 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) in mlx5_core_dealloc_pd() argument
56 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_core_dealloc_pd()
A Den_common.c51 int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey) in mlx5e_create_mkey() argument
67 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey()
148 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources()
160 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources()
200 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources()
215 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
/linux/include/linux/
A Dphy_link_topology.h50 struct phy_device_node *pdn; in phy_link_topo_get_phy() local
55 pdn = xa_load(&topo->phys, phyindex); in phy_link_topo_get_phy()
56 if (pdn) in phy_link_topo_get_phy()
57 return pdn->phy; in phy_link_topo_get_phy()
/linux/arch/arm64/boot/dts/exynos/
A Dexynos7885-pinctrl.dtsi97 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
553 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
564 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
573 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
582 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
606 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
616 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
655 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
665 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
688 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
[all …]
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
223 static int mlx5_rsc_dump_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5_rsc_dump_create_mkey() argument
240 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_rsc_dump_create_mkey()
280 err = mlx5_core_alloc_pd(dev, &rsc_dump->pdn); in mlx5_rsc_dump_init()
285 err = mlx5_rsc_dump_create_mkey(dev, rsc_dump->pdn, &rsc_dump->mkey); in mlx5_rsc_dump_init()
300 mlx5_core_dealloc_pd(dev, rsc_dump->pdn); in mlx5_rsc_dump_init()
310 mlx5_core_dealloc_pd(dev, dev->rsc_dump->pdn); in mlx5_rsc_dump_cleanup()
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_pd.c60 pd->pdn = (unsigned long)id; in hns_roce_alloc_pd()
63 struct hns_roce_ib_alloc_pd_resp resp = {.pdn = pd->pdn}; in hns_roce_alloc_pd()
80 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Daso.c178 static int create_aso_sq(struct mlx5_core_dev *mdev, int pdn, in create_aso_sq() argument
242 static int mlx5_aso_create_sq_rdy(struct mlx5_core_dev *mdev, u32 pdn, in mlx5_aso_create_sq_rdy() argument
247 err = create_aso_sq(mdev, pdn, sqc_data, sq); in mlx5_aso_create_sq_rdy()
270 u32 pdn, struct mlx5_aso *sq) in mlx5_aso_create_sq() argument
281 MLX5_SET(wq, wq, pd, pdn); in mlx5_aso_create_sq()
290 err = mlx5_aso_create_sq_rdy(mdev, pdn, sqc_data, sq); in mlx5_aso_create_sq()
308 struct mlx5_aso *mlx5_aso_create(struct mlx5_core_dev *mdev, u32 pdn) in mlx5_aso_create() argument
322 err = mlx5_aso_create_sq(mdev, numa_node, pdn, aso); in mlx5_aso_create()
/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/include/uapi/rdma/
A Dmthca-abi.h59 __u32 pdn; member
76 __u32 pdn; member
/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()
316 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_free_resources()

Completed in 59 milliseconds

123456