/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | pci_dn.c | 78 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 D | rtas_pci.c | 52 if (!pdn) in rtas_read_config() 54 if (!config_access_valid(pdn, where)) in rtas_read_config() 57 if (pdn->edev && pdn->edev->pe && in rtas_read_config() 62 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config() 63 buid = pdn->phb->buid; in rtas_read_config() 82 struct pci_dn *pdn; in rtas_pci_read_config() local 103 if (!pdn) in rtas_write_config() 108 if (pdn->edev && pdn->edev->pe && in rtas_write_config() 113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_write_config() 114 buid = pdn->phb->buid; in rtas_write_config() [all …]
|
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() 67 kfree(pdn); in pcibios_release_device()
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
A D | eeh_pseries.c | 79 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 D | pci.c | 60 struct pci_dn *pdn; in pseries_send_map_pe() local 68 pdn = pci_get_pdn(pdev); in pseries_send_map_pe() 69 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe() 70 buid = pdn->phb->buid; in pseries_send_map_pe() 91 struct pci_dn *pdn; in pseries_set_pe_num() local 93 pdn = pci_get_pdn(pdev); in pseries_set_pe_num() 105 struct pci_dn *pdn; in pseries_associate_pes() local 115 pdn = pci_get_pdn(pdev); in pseries_associate_pes() 174 if (!pdn->pe_num_map) in pseries_pci_sriov_enable() 304 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { in pseries_root_bridge_prepare() [all …]
|
A D | iommu.c | 1037 pdn = PCI_DN(dn); in query_ddw() 1039 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw() 1085 pdn = PCI_DN(dn); in create_ddw() 1087 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw() 1159 pdn = PCI_DN(dn); in reset_dma_window() 1161 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window() 1277 if (fpdn->pdn == pdn) in enable_ddw() 1403 pdn, ret); in enable_ddw() 1493 fpdn->pdn = pdn; in enable_ddw() 1529 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP() [all …]
|
A D | msi.c | 38 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 39 buid = pdn->phb->buid; in rtas_change_msi() 73 struct pci_dn *pdn; in rtas_disable_msi() local 75 pdn = pci_get_pdn(pdev); in rtas_disable_msi() 76 if (!pdn) in rtas_disable_msi() 87 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi() 99 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number() 100 buid = pdn->phb->buid; in rtas_query_irq_number() 345 struct pci_dn *pdn; in rtas_prepare_msi_irqs() local 375 pdn = pci_get_pdn(pdev); in rtas_prepare_msi_irqs() [all …]
|
/linux-6.3-rc2/arch/powerpc/platforms/powernv/ |
A D | eeh-powernv.c | 237 if (!pdn) in pnv_eeh_find_cap() 331 int config_addr = (pdn->busno << 8) | (pdn->devfn); in pnv_eeh_probe() 422 pdn->busno); in pnv_eeh_probe() 926 pdn->phb->global_number, pdn->busno, in pnv_eeh_wait_for_pending() 927 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in pnv_eeh_wait_for_pending() 1007 struct pci_dn *pdn; in pnv_eeh_reset_vf_pe() local 1012 pdn = eeh_dev_to_pdn(edev); in pnv_eeh_reset_vf_pe() 1013 if (!pdn) in pnv_eeh_reset_vf_pe() 1235 if (!pdn) in pnv_eeh_read_config() 1251 if (!pdn) in pnv_eeh_write_config() [all …]
|
A D | pci.c | 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() 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 D | pci-ioda.c | 684 if (!pdn) in pnv_ioda_get_pe() 782 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv() 804 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv() 987 if (!pdn) { in pnv_ioda_setup_dev_PE() 1149 if (pdn) in pnv_pci_ioda_dma_dev_setup() 1238 if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) in pnv_pci_ioda_iommu_bypass_supported() 2666 struct pci_dn *pdn; in pnv_pci_enable_device_hook() local 2669 if (!pdn || pdn->pe_number == IODA_INVALID_PE) { in pnv_pci_enable_device_hook() 2679 struct pci_dn *pdn; in pnv_ocapi_enable_device_hook() local 2683 if (!pdn) in pnv_ocapi_enable_device_hook() [all …]
|
/linux-6.3-rc2/drivers/pci/hotplug/ |
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()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
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()
|
A D | en_common.c | 50 int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey) 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() 122 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources() 135 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
|
/linux-6.3-rc2/arch/arm64/boot/dts/exynos/ |
A D | exynos7885-pinctrl.dtsi | 97 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 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>; 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
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-6.3-rc2/drivers/infiniband/hw/hns/ |
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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | aso.c | 178 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.3-rc2/drivers/vdpa/mlx5/core/ |
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() 270 err = alloc_pd(mvdev, &res->pdn, res->uid); in mlx5_vdpa_alloc_resources() 298 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_alloc_resources() 318 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_free_resources()
|
A D | mlx5_vdpa.h | 42 u32 pdn; member 101 int mlx5_vdpa_alloc_pd(struct mlx5_vdpa_dev *dev, u32 *pdn, u16 uid); 102 int mlx5_vdpa_dealloc_pd(struct mlx5_vdpa_dev *dev, u32 pdn, u16 uid);
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
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-6.3-rc2/include/uapi/rdma/ |
A D | mthca-abi.h | 59 __u32 pdn; member 76 __u32 pdn; member
|
/linux-6.3-rc2/drivers/infiniband/hw/efa/ |
A D | efa_com_cmd.h | 96 u16 pdn; member 107 u16 pdn; member 220 u16 pdn; member 224 u16 pdn; member
|
/linux-6.3-rc2/Documentation/devicetree/bindings/sound/ |
A D | ak4375.yaml | 31 pdn-gpios: 55 pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
|
A D | tas5805m.yaml | 29 pdn-gpios: 50 pdn-gpios = <&tlmm 160 0>;
|