/openbmc/linux/drivers/bcma/ |
H A D | driver_pci_host.c | 276 u8 cap_ptr = 0; in bcma_find_pci_capability() local 284 return cap_ptr; in bcma_find_pci_capability() 290 return cap_ptr; in bcma_find_pci_capability() 295 if (cap_ptr == 0x00) in bcma_find_pci_capability() 296 return cap_ptr; in bcma_find_pci_capability() 302 bcma_extpci_read_config(pc, dev, func, cap_ptr + 1, &cap_ptr, in bcma_find_pci_capability() 304 if (cap_ptr == 0x00) in bcma_find_pci_capability() 305 return cap_ptr; in bcma_find_pci_capability() 316 return cap_ptr; in bcma_find_pci_capability() 321 cap_data = cap_ptr + 2; in bcma_find_pci_capability() [all …]
|
/openbmc/linux/drivers/char/agp/ |
H A D | amd-k7-agp.c | 412 u8 cap_ptr; in agp_amdk7_probe() local 415 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_amdk7_probe() 416 if (!cap_ptr) in agp_amdk7_probe() 430 bridge->capndx = cap_ptr; in agp_amdk7_probe() 439 cap_ptr = 0; in agp_amdk7_probe() 440 while (!cap_ptr) { in agp_amdk7_probe() 446 cap_ptr = pci_find_capability(gfxcard, PCI_CAP_ID_AGP); in agp_amdk7_probe()
|
H A D | efficeon-agp.c | 347 u8 cap_ptr; in agp_efficeon_probe() local 350 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_efficeon_probe() 351 if (!cap_ptr) in agp_efficeon_probe() 369 bridge->capndx = cap_ptr; in agp_efficeon_probe() 397 if (cap_ptr) { in agp_efficeon_probe()
|
H A D | amd64-agp.c | 326 static int cache_nbs(struct pci_dev *pdev, u32 cap_ptr) in cache_nbs() argument 339 if (fix_northbridge(dev, pdev, cap_ptr) < 0) { in cache_nbs() 517 u8 cap_ptr; in agp_amd64_probe() local 524 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_amd64_probe() 525 if (!cap_ptr) in agp_amd64_probe() 544 bridge->capndx = cap_ptr; in agp_amd64_probe() 549 if (cache_nbs(pdev, cap_ptr) == -1) { in agp_amd64_probe()
|
H A D | ali-agp.c | 306 u8 hidden_1621_id, cap_ptr; in agp_ali_probe() local 309 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_ali_probe() 310 if (!cap_ptr) in agp_ali_probe() 330 bridge->capndx = cap_ptr; in agp_ali_probe()
|
H A D | sis-agp.c | 185 u8 cap_ptr; in agp_sis_probe() local 187 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_sis_probe() 188 if (!cap_ptr) in agp_sis_probe() 200 bridge->capndx = cap_ptr; in agp_sis_probe()
|
H A D | via-agp.c | 443 u8 cap_ptr; in agp_via_probe() local 445 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_via_probe() 446 if (!cap_ptr) in agp_via_probe() 457 bridge->capndx = cap_ptr; in agp_via_probe()
|
H A D | uninorth-agp.c | 608 u8 cap_ptr; in agp_uninorth_probe() local 611 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_uninorth_probe() 612 if (cap_ptr == 0) in agp_uninorth_probe() 663 bridge->capndx = cap_ptr; in agp_uninorth_probe() 667 pci_read_config_dword(pdev, cap_ptr+PCI_AGP_STATUS, &bridge->mode); in agp_uninorth_probe()
|
H A D | nvidia-agp.c | 341 u8 cap_ptr; in agp_nvidia_probe() local 362 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_nvidia_probe() 363 if (!cap_ptr) in agp_nvidia_probe() 388 bridge->capndx = cap_ptr; in agp_nvidia_probe()
|
H A D | ati-agp.c | 489 u8 cap_ptr; in agp_ati_probe() local 492 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_ati_probe() 493 if (!cap_ptr) in agp_ati_probe() 512 bridge->capndx = cap_ptr; in agp_ati_probe()
|
H A D | i460-agp.c | 594 u8 cap_ptr; in agp_intel_i460_probe() local 596 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_intel_i460_probe() 597 if (!cap_ptr) in agp_intel_i460_probe() 606 bridge->capndx = cap_ptr; in agp_intel_i460_probe()
|
H A D | intel-agp.c | 728 u8 cap_ptr = 0; in agp_intel_probe() local 732 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_intel_probe() 738 bridge->capndx = cap_ptr; in agp_intel_probe() 754 if (cap_ptr) in agp_intel_probe() 797 if (cap_ptr) { in agp_intel_probe()
|
H A D | sworks-agp.c | 452 u8 cap_ptr = 0; in agp_serverworks_probe() local 454 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_serverworks_probe() 467 if (cap_ptr) in agp_serverworks_probe()
|
H A D | generic.c | 725 u8 cap_ptr; in agp_collect_device_status() local 733 cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP); in agp_collect_device_status() 734 if (cap_ptr) in agp_collect_device_status() 742 pci_read_config_dword(device, cap_ptr+PCI_AGP_STATUS, &vga_agpstat); in agp_collect_device_status()
|
/openbmc/linux/drivers/iommu/amd/ |
H A D | init.c | 107 u16 cap_ptr; member 1817 iommu->cap_ptr = h->cap_ptr; in init_iommu_one() 1964 h->cap_ptr, h->flags, h->info); in init_iommu_all() 2084 int cap_ptr = iommu->cap_ptr; in iommu_init_pci() local 2099 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_CAP_HDR_OFFSET, in iommu_init_pci() 2170 pci_read_config_dword(iommu->dev, iommu->cap_ptr + 4, in iommu_init_pci() 2172 pci_read_config_dword(iommu->dev, iommu->cap_ptr + 8, in iommu_init_pci() 2211 pci_info(pdev, "Found IOMMU cap 0x%x\n", iommu->cap_ptr); in print_iommu_info() 2748 pci_write_config_dword(iommu->dev, iommu->cap_ptr + 4, in iommu_apply_resume_quirks() 2750 pci_write_config_dword(iommu->dev, iommu->cap_ptr + 8, in iommu_apply_resume_quirks() [all …]
|
H A D | amd_iommu_types.h | 690 u16 cap_ptr; member
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pcie-designware-ep.c | 88 u8 cap_ptr, u8 cap) in __dw_pcie_ep_find_next_cap() argument 95 if (!cap_ptr) in __dw_pcie_ep_find_next_cap() 100 reg = dw_pcie_readw_dbi(pci, func_offset + cap_ptr); in __dw_pcie_ep_find_next_cap() 107 return cap_ptr; in __dw_pcie_ep_find_next_cap()
|
H A D | pcie-designware.c | 209 static u8 __dw_pcie_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_find_next_cap() argument 215 if (!cap_ptr) in __dw_pcie_find_next_cap() 218 reg = dw_pcie_readw_dbi(pci, cap_ptr); in __dw_pcie_find_next_cap() 225 return cap_ptr; in __dw_pcie_find_next_cap()
|