/kernel/linux/linux-5.10/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 in pci_get_pdn_by_devfn() 98 struct pci_dn *parent, *pdn; pci_get_pdn() local 128 eeh_dev_init(struct pci_dn *pdn) eeh_dev_init() argument 151 struct pci_dn *pdn; add_one_sriov_vf_pdn() local 175 struct pci_dn *parent, *pdn; add_sriov_vf_pdns() local 220 struct pci_dn *pdn, *tmp; remove_sriov_vf_pdns() local 288 struct pci_dn *pdn; pci_add_device_node_info() local 343 struct pci_dn *pdn = dn ? PCI_DN(dn) : NULL; pci_remove_device_node_info() local 447 pci_dn_next_one(struct pci_dn *root, struct pci_dn *pdn) pci_dn_next_one() argument 473 struct pci_dn *pdn = root; traverse_pci_dn() local 490 struct pci_dn *pdn; add_pdn() local 510 struct pci_dn *pdn; pci_devs_phb_init_dynamic() local 549 struct pci_dn *pdn; pci_dev_pdn_setup() local [all...] |
H A D | rtas_pci.c | 45 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 97 rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) rtas_write_config() argument 131 struct pci_dn *pdn; rtas_pci_write_config() local [all...] |
H A D | pci-hotplug.c | 40 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() [all...] |
/kernel/linux/linux-6.6/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 in pci_get_pdn_by_devfn() 98 struct pci_dn *parent, *pdn; pci_get_pdn() local 128 eeh_dev_init(struct pci_dn *pdn) eeh_dev_init() argument 151 struct pci_dn *pdn; add_one_sriov_vf_pdn() local 175 struct pci_dn *parent, *pdn; add_sriov_vf_pdns() local 220 struct pci_dn *pdn, *tmp; remove_sriov_vf_pdns() local 288 struct pci_dn *pdn; pci_add_device_node_info() local 343 struct pci_dn *pdn = dn ? PCI_DN(dn) : NULL; pci_remove_device_node_info() local 450 struct pci_dn *pdn; add_pdn() local 470 struct pci_dn *pdn; pci_devs_phb_init_dynamic() local 487 struct pci_dn *pdn; pci_dev_pdn_setup() local [all...] |
H A D | rtas_pci.c | 46 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 98 rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) rtas_write_config() argument 132 struct pci_dn *pdn; rtas_pci_write_config() local [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() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | eeh_pseries.c | 46 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 in pseries_pcibios_bus_add_device() 101 pseries_eeh_get_pe_config_addr(struct pci_dn *pdn) pseries_eeh_get_pe_config_addr() argument 248 pseries_eeh_cap_start(struct pci_dn *pdn) pseries_eeh_cap_start() argument 263 pseries_eeh_find_cap(struct pci_dn *pdn, int cap) pseries_eeh_find_cap() argument 288 pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) pseries_eeh_find_ecap() argument 328 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pseries_eeh_pe_get_parent() local 364 pseries_eeh_init_edev(struct pci_dn *pdn) pseries_eeh_init_edev() argument 462 struct pci_dn *pdn; pseries_eeh_probe() local 487 pseries_eeh_init_edev_recursive(struct pci_dn *pdn) pseries_eeh_init_edev_recursive() argument 677 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pseries_eeh_read_config() local 693 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pseries_eeh_write_config() local 699 pseries_send_allow_unfreeze(struct pci_dn *pdn, u16 *vf_pe_array, int cur_vfs) pseries_send_allow_unfreeze() argument 725 struct pci_dn *pdn, *tmp, *parent, *physfn_pdn; pseries_call_allow_unfreeze() local 814 struct pci_dn *pdn; eeh_pseries_init() local [all...] |
H 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() 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 149 struct pci_dn *pdn; pseries_pci_sriov_enable() local 199 struct pci_dn *pdn; pseries_pcibios_sriov_disable() local 289 struct device_node *dn, *pdn; pseries_root_bridge_prepare() local [all...] |
H A D | iommu.c | 774 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, nam in find_existing_ddw_windows_named() 1078 struct pci_dn *pdn; query_ddw() local 1137 struct pci_dn *pdn; create_ddw() local 1170 struct device_node *pdn; global() member 1205 struct pci_dn *pdn; reset_dma_window() local 1292 enable_ddw(struct pci_dev *dev, struct device_node *pdn) enable_ddw() argument 1567 struct device_node *pdn, *dn; pci_dma_dev_setup_pSeriesLP() local 1625 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; iommu_bypass_supported_pSeriesLP() local 1778 struct device_node *pdn, *dn = pdev->dev.of_node; pSeries_pci_device_group() local [all...] |
H A D | msi.c | 32 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, in argument 345 struct pci_dn *pdn; rtas_prepare_msi_irqs() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | eeh_pseries.c | 48 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 99 pseries_eeh_get_pe_config_addr(struct pci_dn *pdn) pseries_eeh_get_pe_config_addr() argument 246 pseries_eeh_cap_start(struct pci_dn *pdn) pseries_eeh_cap_start() argument 261 pseries_eeh_find_cap(struct pci_dn *pdn, int cap) pseries_eeh_find_cap() argument 286 pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) pseries_eeh_find_ecap() argument 326 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pseries_eeh_pe_get_parent() local 362 pseries_eeh_init_edev(struct pci_dn *pdn) pseries_eeh_init_edev() argument 460 struct pci_dn *pdn; pseries_eeh_probe() local 485 pseries_eeh_init_edev_recursive(struct pci_dn *pdn) pseries_eeh_init_edev_recursive() argument 675 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pseries_eeh_read_config() local 691 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pseries_eeh_write_config() local 697 pseries_send_allow_unfreeze(struct pci_dn *pdn, u16 *vf_pe_array, int cur_vfs) pseries_send_allow_unfreeze() argument 724 struct pci_dn *pdn, *tmp, *parent, *physfn_pdn; pseries_call_allow_unfreeze() local 813 struct pci_dn *pdn; eeh_pseries_init() local [all...] |
H A D | pci.c | 62 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 151 struct pci_dn *pdn; pseries_pci_sriov_enable() local 201 struct pci_dn *pdn; pseries_pcibios_sriov_disable() local 295 struct device_node *dn, *pdn; pseries_root_bridge_prepare() local [all...] |
H A D | iommu.c | 691 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 865 struct device_node *pdn; find_existing_ddw_windows() local 936 struct pci_dn *pdn; query_ddw() local 993 struct pci_dn *pdn; create_ddw() local 1026 struct device_node *pdn; global() member 1072 struct pci_dn *pdn; reset_dma_window() local 1103 enable_ddw(struct pci_dev *dev, struct device_node *pdn) enable_ddw() argument 1298 struct device_node *pdn, *dn; pci_dma_dev_setup_pSeriesLP() local 1350 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; iommu_bypass_supported_pSeriesLP() local [all...] |
H A D | msi.c | 30 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, in argument 373 struct pci_dn *pdn; rtas_setup_msi_irqs() local [all...] |
/kernel/linux/linux-5.10/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 in pnv_eeh_probe() local 803 struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); __pnv_eeh_bridge_reset() local 908 pnv_eeh_wait_for_pending(struct pci_dn *pdn, const char *type, int pos, u16 mask) pnv_eeh_wait_for_pending() argument 929 pnv_eeh_do_flr(struct pci_dn *pdn, int option) pnv_eeh_do_flr() argument 967 pnv_eeh_do_af_flr(struct pci_dn *pdn, int option) pnv_eeh_do_af_flr() argument 1006 struct pci_dn *pdn; pnv_eeh_reset_vf_pe() local 1208 pnv_eeh_cfg_blocked(struct pci_dn *pdn) pnv_eeh_cfg_blocked() argument 1232 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pnv_eeh_read_config() local 1248 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pnv_eeh_write_config() local 1646 struct pci_dn *pdn = pci_get_pdn(pdev); pnv_pci_fixup_vf_mps() local [all...] |
H A D | pci.c | 598 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 in pnv_pci_cfg_read() 689 pnv_pci_cfg_write(struct pci_dn *pdn, int where, int size, u32 val) pnv_pci_cfg_write() argument 715 pnv_pci_cfg_check(struct pci_dn *pdn) pnv_pci_cfg_check() argument 738 pnv_pci_cfg_check(struct pci_dn *pdn) pnv_pci_cfg_check() argument 748 struct pci_dn *pdn; pnv_pci_read_config() local 777 struct pci_dn *pdn; pnv_pci_write_config() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | eeh-powernv.c | 231 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 in pnv_eeh_probe() local 804 struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); __pnv_eeh_bridge_reset() local 908 pnv_eeh_wait_for_pending(struct pci_dn *pdn, const char *type, int pos, u16 mask) pnv_eeh_wait_for_pending() argument 929 pnv_eeh_do_flr(struct pci_dn *pdn, int option) pnv_eeh_do_flr() argument 967 pnv_eeh_do_af_flr(struct pci_dn *pdn, int option) pnv_eeh_do_af_flr() argument 1006 struct pci_dn *pdn; pnv_eeh_reset_vf_pe() local 1208 pnv_eeh_cfg_blocked(struct pci_dn *pdn) pnv_eeh_cfg_blocked() argument 1232 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pnv_eeh_read_config() local 1248 struct pci_dn *pdn = eeh_dev_to_pdn(edev); pnv_eeh_write_config() local [all...] |
H A D | pci.c | 530 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 in pnv_pci_cfg_read() 621 pnv_pci_cfg_write(struct pci_dn *pdn, int where, int size, u32 val) pnv_pci_cfg_write() argument 647 pnv_pci_cfg_check(struct pci_dn *pdn) pnv_pci_cfg_check() argument 670 pnv_pci_cfg_check(struct pci_dn *pdn) pnv_pci_cfg_check() argument 680 struct pci_dn *pdn; pnv_pci_read_config() local 709 struct pci_dn *pdn; pnv_pci_write_config() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_pd.c | 38 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-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | pd.c | 38 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()
|
H A D | en_common.c | 73 static int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5e_create_mkey() argument 90 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey() 105 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources() 117 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources() 139 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources() 150 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
|
/kernel/linux/linux-6.6/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()
|
H A D | en_common.c | 51 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()
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | rpadlpar_core.c | 139 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 in dlpar_remove_phb() [all...] |
/kernel/linux/linux-6.6/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 in dlpar_remove_phb() [all...] |