Home
last modified time | relevance | path

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

12345

/linux-6.6.21/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_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() argument
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()
58 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) 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
87 pdn = pci_get_pdn_by_devfn(bus, devfn); in rtas_pci_read_config()
90 ret = rtas_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.6.21/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.c60 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()
94 pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); in pseries_set_pe_num()
100 pdn->pe_num_map[vf_index]); 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()
[all …]
Diommu.c774 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local
783 pdn = pci_dma_find(dn, &prop); in pci_dma_bus_setup_pSeriesLP()
791 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
794 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
953 static bool find_existing_ddw(struct device_node *pdn, u64 *dma_addr, int *window_shift, in find_existing_ddw() argument
963 if (window->device == pdn) { in find_existing_ddw()
977 static struct dma_win *ddw_list_new_entry(struct device_node *pdn, in ddw_list_new_entry() argument
986 window->device = pdn; in ddw_list_new_entry()
996 struct device_node *pdn; in find_existing_ddw_windows_named() local
1000 for_each_node_with_property(pdn, name) { in find_existing_ddw_windows_named()
[all …]
Dmsi.c32 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument
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()
82 if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { in rtas_disable_msi()
87 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi()
93 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() argument
99 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
[all …]
/linux-6.6.21/arch/powerpc/platforms/powernv/
Deeh-powernv.c231 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() argument
237 if (!pdn) in pnv_eeh_find_cap()
241 pnv_pci_cfg_read(pdn, PCI_STATUS, 2, &status); in pnv_eeh_find_cap()
246 pnv_pci_cfg_read(pdn, pos, 1, &pos); in pnv_eeh_find_cap()
251 pnv_pci_cfg_read(pdn, pos + PCI_CAP_LIST_ID, 1, &id); in pnv_eeh_find_cap()
266 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() argument
268 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_find_ecap()
274 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) in pnv_eeh_find_ecap()
287 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) in pnv_eeh_find_ecap()
324 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.6.21/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.6.21/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()
82 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources()
94 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources()
123 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources()
136 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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()
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()
/linux-6.6.21/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.6.21/include/uapi/rdma/
Dmthca-abi.h59 __u32 pdn; member
76 __u32 pdn; member
/linux-6.6.21/drivers/infiniband/hw/efa/
Defa_com_cmd.h96 u16 pdn; member
107 u16 pdn; member
220 u16 pdn; member
224 u16 pdn; member
/linux-6.6.21/Documentation/devicetree/bindings/sound/
Dak4375.yaml31 pdn-gpios:
55 pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
Dtas5805m.yaml29 pdn-gpios:
50 pdn-gpios = <&tlmm 160 0>;

12345