Home
last modified time | relevance | path

Searched full:pdn (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/kernel/linux/linux-6.6/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()
89 /* Validity of pdn is checked in here */ 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()
66 pci_dbg(dev, "freeing dead pdn\n"); in pcibios_release_device()
67 kfree(pdn); in pcibios_release_device()
/kernel/linux/linux-5.10/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.c45 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() argument
51 if (!pdn) in rtas_read_config()
53 if (!config_access_valid(pdn, where)) in rtas_read_config()
56 if (pdn->edev && pdn->edev->pe && in rtas_read_config()
57 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_read_config()
61 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config()
62 buid = pdn->phb->buid; in rtas_read_config()
81 struct pci_dn *pdn; in rtas_pci_read_config() local
86 pdn = pci_get_pdn_by_devfn(bus, devfn); in rtas_pci_read_config()
88 /* Validity of pdn is checked in here */ in rtas_pci_read_config()
[all …]
Dpci-hotplug.c40 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node() local
42 if (!pdn || !pdn->phb || !pdn->phb->bus) in pci_find_bus_by_node()
45 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node()
58 struct pci_dn *pdn = pci_get_pdn(dev); in pcibios_release_device() local
64 if (pdn && (pdn->flags & PCI_DN_FLAG_DEAD)) { in pcibios_release_device()
65 pci_dbg(dev, "freeing dead pdn\n"); in pcibios_release_device()
66 kfree(pdn); in pcibios_release_device()
/kernel/linux/linux-6.6/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()
90 * @pdn: pci_dn of the input device
[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()
794 if (!pdn) { in pci_dma_bus_setup_pSeriesLP()
799 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
802 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
961 static bool find_existing_ddw(struct device_node *pdn, u64 *dma_addr, int *window_shift, in find_existing_ddw() argument
971 if (window->device == pdn) { in find_existing_ddw()
985 static struct dma_win *ddw_list_new_entry(struct device_node *pdn, in ddw_list_new_entry() argument
994 window->device = pdn; in ddw_list_new_entry()
1004 struct device_node *pdn; in find_existing_ddw_windows_named() local
[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 …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Deeh_pseries.c48 struct pci_dn *pdn = pci_get_pdn(pdev); in pseries_pcibios_bus_add_device() local
56 pdn->device_id = pdev->device; in pseries_pcibios_bus_add_device()
57 pdn->vendor_id = pdev->vendor; in pseries_pcibios_bus_add_device()
58 pdn->class_code = pdev->class; in pseries_pcibios_bus_add_device()
64 pdn->last_allow_rc = 0; in pseries_pcibios_bus_add_device()
67 pseries_eeh_init_edev(pdn); in pseries_pcibios_bus_add_device()
75 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_pcibios_bus_add_device()
77 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device()
88 * @pdn: pci_dn of the input device
99 static int pseries_eeh_get_pe_config_addr(struct pci_dn *pdn) in pseries_eeh_get_pe_config_addr() argument
[all …]
Dpci.c62 struct pci_dn *pdn; in pseries_send_map_pe() local
70 pdn = pci_get_pdn(pdev); in pseries_send_map_pe()
71 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe()
72 buid = pdn->phb->buid; in pseries_send_map_pe()
93 struct pci_dn *pdn; in pseries_set_pe_num() local
95 pdn = pci_get_pdn(pdev); in pseries_set_pe_num()
96 pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); in pseries_set_pe_num()
102 pdn->pe_num_map[vf_index]); in pseries_set_pe_num()
107 struct pci_dn *pdn; in pseries_associate_pes() local
117 pdn = pci_get_pdn(pdev); in pseries_associate_pes()
[all …]
Diommu.c691 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local
701 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP()
702 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP()
712 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
715 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
720 iommu_table_setparms_lpar(ppci->phb, pdn, tbl, in pci_dma_bus_setup_pSeriesLP()
842 static u64 find_existing_ddw(struct device_node *pdn) in find_existing_ddw() argument
851 if (window->device == pdn) { in find_existing_ddw()
865 struct device_node *pdn; in find_existing_ddw_windows() local
872 for_each_node_with_property(pdn, DIRECT64_PROPNAME) { in find_existing_ddw_windows()
[all …]
Dmsi.c30 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument
36 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi()
37 buid = pdn->phb->buid; in rtas_change_msi()
71 struct pci_dn *pdn; in rtas_disable_msi() local
73 pdn = pci_get_pdn(pdev); in rtas_disable_msi()
74 if (!pdn) in rtas_disable_msi()
80 if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { in rtas_disable_msi()
85 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi()
91 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() argument
97 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
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 …]
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 …]
/kernel/linux/linux-5.10/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.c598 static void pnv_pci_config_check_eeh(struct pci_dn *pdn) in pnv_pci_config_check_eeh() argument
600 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_config_check_eeh()
611 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh()
636 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh()
653 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() argument
656 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_read()
657 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read()
685 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read()
689 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() argument
692 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_write()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_pd.c38 static int hns_roce_pd_alloc(struct hns_roce_dev *hr_dev, unsigned long *pdn) in hns_roce_pd_alloc() argument
40 return hns_roce_bitmap_alloc(&hr_dev->pd_bitmap, pdn) ? -ENOMEM : 0; in hns_roce_pd_alloc()
43 static void hns_roce_pd_free(struct hns_roce_dev *hr_dev, unsigned long pdn) in hns_roce_pd_free() argument
45 hns_roce_bitmap_free(&hr_dev->pd_bitmap, pdn, BITMAP_NO_RR); in hns_roce_pd_free()
66 ret = hns_roce_pd_alloc(to_hr_dev(ib_dev), &pd->pdn); in hns_roce_alloc_pd()
73 struct hns_roce_ib_alloc_pd_resp resp = {.pdn = pd->pdn}; in hns_roce_alloc_pd()
78 hns_roce_pd_free(to_hr_dev(ib_dev), pd->pdn); in hns_roce_alloc_pd()
88 hns_roce_pd_free(to_hr_dev(pd->device), to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Drpadlpar_core.c139 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() local
140 struct pci_controller *phb = pdn->phb; in dlpar_pci_add_bus()
143 pseries_eeh_init_edev_recursive(pdn); in dlpar_pci_add_bus()
146 dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); in dlpar_pci_add_bus()
207 struct pci_dn *pdn; in dlpar_remove_phb() local
221 pdn = dn->data; in dlpar_remove_phb()
222 BUG_ON(!pdn || !pdn->phb); in dlpar_remove_phb()
223 rc = remove_phb_dynamic(pdn->phb); in dlpar_remove_phb()
227 pdn->phb = NULL; in dlpar_remove_phb()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dpd.c38 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) in mlx5_core_alloc_pd() argument
47 *pdn = MLX5_GET(alloc_pd_out, out, pd); in mlx5_core_alloc_pd()
52 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) in mlx5_core_dealloc_pd() argument
57 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_core_dealloc_pd()
/kernel/linux/linux-6.6/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()

12345678910>>...14