Home
last modified time | relevance | path

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

123456

/linux-6.12.1/arch/powerpc/kernel/
Dpci_dn.c34 struct pci_dn *pdn; in pci_bus_to_pdn() local
53 pdn = dn ? PCI_DN(dn) : NULL; in pci_bus_to_pdn()
55 return pdn; in pci_bus_to_pdn()
62 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() local
77 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn_by_devfn()
78 if (pdn) in pci_get_pdn_by_devfn()
79 return pdn; in pci_get_pdn_by_devfn()
86 list_for_each_entry(pdn, &parent->child_list, list) { in pci_get_pdn_by_devfn()
87 if (pdn->busno == bus->number && in pci_get_pdn_by_devfn()
88 pdn->devfn == devfn) in pci_get_pdn_by_devfn()
[all …]
Drtas_pci.c46 int rtas_pci_dn_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_pci_dn_read_config() argument
52 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()
58 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) 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
87 pdn = pci_get_pdn_by_devfn(bus, devfn); in rtas_pci_read_config()
90 ret = rtas_pci_dn_read_config(pdn, where, size, val); in rtas_pci_read_config()
[all …]
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-6.12.1/arch/powerpc/platforms/pseries/
Deeh_pseries.c46 static void pseries_eeh_init_edev(struct pci_dn *pdn);
50 struct pci_dn *pdn = pci_get_pdn(pdev); in pseries_pcibios_bus_add_device() local
58 pdn->device_id = pdev->device; in pseries_pcibios_bus_add_device()
59 pdn->vendor_id = pdev->vendor; in pseries_pcibios_bus_add_device()
60 pdn->class_code = pdev->class; in pseries_pcibios_bus_add_device()
66 pdn->last_allow_rc = 0; in pseries_pcibios_bus_add_device()
69 pseries_eeh_init_edev(pdn); in pseries_pcibios_bus_add_device()
77 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_pcibios_bus_add_device()
79 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device()
101 static int pseries_eeh_get_pe_config_addr(struct pci_dn *pdn) in pseries_eeh_get_pe_config_addr() argument
[all …]
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()
67 pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); in pseries_set_pe_num()
73 pdn->pe_num_map[vf_index]); 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()
[all …]
Diommu.c842 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local
851 pdn = pci_dma_find(dn, &prop); in pci_dma_bus_setup_pSeriesLP()
862 if (!pdn) { in pci_dma_bus_setup_pSeriesLP()
867 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
870 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
994 static void copy_property(struct device_node *pdn, const char *from, const char *to) in copy_property() argument
998 src = of_find_property(pdn, from, NULL); in copy_property()
1012 if (of_add_property(pdn, dst)) { in copy_property()
1013 pr_err("Unable to add DMA window property for %pOF", pdn); in copy_property()
1062 static bool find_existing_ddw(struct device_node *pdn, u64 *dma_addr, int *window_shift, in find_existing_ddw() argument
[all …]
Dmsi.c33 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument
39 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()
83 if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { in rtas_disable_msi()
88 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi()
94 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() argument
100 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
[all …]
/linux-6.12.1/drivers/net/phy/
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()
53 pdn->upstream.netdev = (struct net_device *)upstream; in phy_link_topo_add_phy()
55 pdn->parent_sfp_bus = pdn->upstream.netdev->sfp_bus; in phy_link_topo_add_phy()
58 pdn->upstream.phydev = (struct phy_device *)upstream; 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()
70 ret = xa_insert(&topo->phys, phy->phyindex, pdn, GFP_KERNEL); in phy_link_topo_add_phy()
[all …]
/linux-6.12.1/net/ethtool/
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()
51 const char *upstream_sfp_name = sfp_get_name(pdn->parent_sfp_bus); 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()
100 sfp_upstream_name = sfp_get_name(pdn->parent_sfp_bus); in ethnl_phy_fill_reply()
[all …]
/linux-6.12.1/arch/powerpc/platforms/powernv/
Deeh-powernv.c230 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() argument
236 if (!pdn) in pnv_eeh_find_cap()
240 pnv_pci_cfg_read(pdn, PCI_STATUS, 2, &status); in pnv_eeh_find_cap()
245 pnv_pci_cfg_read(pdn, pos, 1, &pos); in pnv_eeh_find_cap()
250 pnv_pci_cfg_read(pdn, pos + PCI_CAP_LIST_ID, 1, &id); in pnv_eeh_find_cap()
265 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() argument
267 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_find_ecap()
273 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) in pnv_eeh_find_ecap()
286 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) in pnv_eeh_find_ecap()
323 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_eeh_probe() local
[all …]
Dpci.c530 static void pnv_pci_config_check_eeh(struct pci_dn *pdn) in pnv_pci_config_check_eeh() argument
532 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_config_check_eeh()
543 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()
585 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() argument
588 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_read()
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()
621 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() argument
624 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_write()
[all …]
Dpci-ioda.c596 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() local
598 if (!pdn) in pnv_ioda_get_pe()
600 if (pdn->pe_number == IODA_INVALID_PE) in pnv_ioda_get_pe()
602 return &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_get_pe()
693 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() local
696 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv()
697 parent = &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_set_peltv()
716 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_unset_peltv() local
718 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv()
719 rc = opal_pci_set_peltv(phb->opal_id, pdn->pe_number, in pnv_ioda_unset_peltv()
[all …]
/linux-6.12.1/drivers/pci/hotplug/
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()
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
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()
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-6.12.1/include/linux/
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-6.12.1/arch/arm64/boot/dts/exynos/
Dexynos7885-pinctrl.dtsi97 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
552 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
553 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
563 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
564 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
572 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
573 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
581 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
582 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
605 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
[all …]
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>;
261 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
269 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
270 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>;
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/diag/
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-6.12.1/drivers/infiniband/hw/hns/
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
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-6.12.1/drivers/net/ethernet/mellanox/mlx4/
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-6.12.1/include/uapi/rdma/
Dmthca-abi.h59 __u32 pdn; member
76 __u32 pdn; member
/linux-6.12.1/drivers/vdpa/mlx5/core/
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()

123456