| /linux/arch/powerpc/kernel/ |
| H A D | pci_dn.c | 34 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 …]
|
| H A D | rtas_pci.c | 46 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() 89 /* Validity of pdn is checked in here */ in rtas_pci_read_config() [all …]
|
| H A D | pci-hotplug.c | 41 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() 66 pci_dbg(dev, "freeing dead pdn\n"); in pcibios_release_device() 67 kfree(pdn); in pcibios_release_device()
|
| /linux/drivers/net/phy/ |
| H A D | phy_link_topology.c | 35 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/arch/powerpc/platforms/pseries/ |
| H A D | pci.c | 33 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 …]
|
| H A D | msi.c | 34 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument 40 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 41 buid = pdn->phb->buid; in rtas_change_msi() 75 struct pci_dn *pdn; in rtas_disable_msi() local 77 pdn = pci_get_pdn(pdev); in rtas_disable_msi() 78 if (!pdn) in rtas_disable_msi() 84 if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { in rtas_disable_msi() 89 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi() 95 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() argument 101 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number() [all …]
|
| /linux/net/ethtool/ |
| H A D | phy.c | 77 struct phy_device_node *pdn; in ethnl_phy_fill_reply() local 86 pdn = xa_load(&topo->phys, phydev->phyindex); in ethnl_phy_fill_reply() 87 if (!pdn) in ethnl_phy_fill_reply() 93 rep_data->upstream_type = pdn->upstream_type; in ethnl_phy_fill_reply() 95 if (pdn->upstream_type == PHY_UPSTREAM_PHY) { in ethnl_phy_fill_reply() 96 struct phy_device *upstream = pdn->upstream.phydev; in ethnl_phy_fill_reply() 100 if (pdn->parent_sfp_bus) in ethnl_phy_fill_reply() 101 rep_data->upstream_sfp_name = kstrdup(sfp_get_name(pdn->parent_sfp_bus), in ethnl_phy_fill_reply() 16 struct phy_device_node *pdn; global() member 32 struct phy_device_node *pdn = req_info->pdn; ethnl_phy_reply_size() local 254 struct phy_device_node *pdn; ethnl_phy_dump_one_dev() local
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | eeh-powernv.c | 230 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 …]
|
| H A D | pci-ioda.c | 594 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() local 596 if (!pdn) in pnv_ioda_get_pe() 598 if (pdn->pe_number == IODA_INVALID_PE) in pnv_ioda_get_pe() 600 return &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_get_pe() 691 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() local 694 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv() 695 parent = &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_set_peltv() 714 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_unset_peltv() local 716 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv() 717 rc = opal_pci_set_peltv(phb->opal_id, pdn->pe_number, in pnv_ioda_unset_peltv() [all …]
|
| /linux/arch/arm64/boot/dts/exynos/ |
| H A D | exynos7885-pinctrl.dtsi | 97 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 …]
|
| H A D | exynosautov9-pinctrl.dtsi | 223 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 …]
|
| H A D | exynos7870-pinctrl.dtsi | 82 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>; 83 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 90 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 91 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 388 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 389 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>; 397 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 398 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_UP>; 486 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>; 511 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>; [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | rpadlpar_core.c | 140 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()
|
| H A D | rpaphp_pci.c | 76 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/include/linux/ |
| H A D | phy_link_topology.h | 50 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/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | pd.c | 37 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()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | rsc_dump.c | 32 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/Documentation/networking/device_drivers/cellular/qualcomm/ |
| H A D | rmnet.rst | 18 handle multiple private data networks (PDN) like a default internet, tethering, 21 routes to the appropriate PDN after removing the MAP header. 25 these MAP frames and send them to appropriate PDN's. 51 Multiplexer ID is to indicate the PDN on which data has to be sent. 77 Multiplexer ID is to indicate the PDN on which data has to be sent. 131 Multiplexer ID is to indicate the PDN on which data has to be sent.
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | ti,tas5805m.yaml | 29 pdn-gpios: 31 Power-down control GPIO (PDN pin in the datasheet). 52 pdn-gpios = <&tlmm 160 0>;
|
| H A D | asahi-kasei,ak4375.yaml | 31 pdn-gpios: 32 description: optional GPIO to set the PDN pin. 55 pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
|
| /linux/drivers/vdpa/mlx5/core/ |
| H A D | resources.c | 8 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()
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_pd.c | 60 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/arch/arm/boot/dts/samsung/ |
| H A D | exynos3250-artik5.dtsi | 369 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>; 370 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>; 390 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 391 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 398 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT0>; 399 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>;
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | pd.c | 47 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/arch/arm64/boot/dts/exynos/google/ |
| H A D | gs101-pinctrl.dtsi | 259 samsung,pin-con-pdn = <GS101_PIN_PDN_PREV>; 260 samsung,pin-pud-pdn = <GS101_PIN_PULL_UP>; 267 samsung,pin-con-pdn = <GS101_PIN_PDN_PREV>; 353 samsung,pin-con-pdn = <GS101_PIN_PDN_PREV>; 354 samsung,pin-pud-pdn = <GS101_PIN_PULL_NONE>; 361 samsung,pin-con-pdn = <GS101_PIN_PDN_PREV>; 362 samsung,pin-pud-pdn = <GS101_PIN_PULL_NONE>; 370 samsung,pin-con-pdn = <GS101_PIN_PDN_PREV>; 371 samsung,pin-pud-pdn = <GS101_PIN_PULL_UP>; 378 samsung,pin-con-pdn = <GS101_PIN_PDN_PREV>; [all …]
|