/drivers/bcma/ |
D | driver_pci_host.c | 277 u8 cap_ptr = 0; in bcma_find_pci_capability() local 285 return cap_ptr; in bcma_find_pci_capability() 291 return cap_ptr; in bcma_find_pci_capability() 294 bcma_extpci_read_config(pc, dev, func, PCI_CAPABILITY_LIST, &cap_ptr, in bcma_find_pci_capability() 296 if (cap_ptr == 0x00) in bcma_find_pci_capability() 297 return cap_ptr; in bcma_find_pci_capability() 301 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, sizeof(u8)); in bcma_find_pci_capability() 303 bcma_extpci_read_config(pc, dev, func, cap_ptr + 1, &cap_ptr, in bcma_find_pci_capability() 305 if (cap_ptr == 0x00) in bcma_find_pci_capability() 306 return cap_ptr; in bcma_find_pci_capability() [all …]
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
D | nicpci.c | 254 u8 cap_ptr; in pcicore_init() local 255 cap_ptr = pcicore_find_pci_capability(pi->dev, PCI_CAP_ID_EXP, in pcicore_init() 257 pi->pciecap_lcreg_offset = cap_ptr + PCIE_CAP_LINKCTRL_OFFSET; in pcicore_init() 274 u8 cap_ptr = 0; in pcicore_find_pci_capability() local 288 pci_read_config_byte(dev, PCI_CAPABILITY_LIST, &cap_ptr); in pcicore_find_pci_capability() 290 if (cap_ptr == 0x00) in pcicore_find_pci_capability() 297 pci_read_config_byte(dev, cap_ptr, &cap_id); in pcicore_find_pci_capability() 300 pci_read_config_byte(dev, cap_ptr + 1, &cap_ptr); in pcicore_find_pci_capability() 301 if (cap_ptr == 0x00) in pcicore_find_pci_capability() 303 pci_read_config_byte(dev, cap_ptr, &cap_id); in pcicore_find_pci_capability() [all …]
|
D | aiutils.c | 460 u8 cap_ptr; in ai_ispcie() local 462 cap_ptr = in ai_ispcie() 465 if (!cap_ptr) in ai_ispcie()
|
/drivers/iommu/ |
D | amd_iommu_init.c | 90 u16 cap_ptr; member 331 dev_name(&iommu->dev->dev), iommu->cap_ptr); in iommu_enable() 401 static int __init find_last_devid_on_pci(int bus, int dev, int fn, int cap_ptr) in find_last_devid_on_pci() argument 405 cap = read_pci_config(bus, dev, fn, cap_ptr+MMIO_RANGE_OFFSET); in find_last_devid_on_pci() 426 h->cap_ptr); in find_last_devid_from_ivhd() 735 int cap_ptr = iommu->cap_ptr; in init_iommu_from_pci() local 739 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_CAP_HDR_OFFSET, in init_iommu_from_pci() 741 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_RANGE_OFFSET, in init_iommu_from_pci() 743 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_MISC_OFFSET, in init_iommu_from_pci() 796 pci_read_config_dword(iommu->dev, iommu->cap_ptr + 4, in init_iommu_from_pci() [all …]
|
D | amd_iommu_types.h | 510 u16 cap_ptr; member
|
/drivers/char/agp/ |
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()
|
D | efficeon-agp.c | 350 u8 cap_ptr; in agp_efficeon_probe() local 353 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_efficeon_probe() 354 if (!cap_ptr) in agp_efficeon_probe() 372 bridge->capndx = cap_ptr; in agp_efficeon_probe() 400 if (cap_ptr) { in agp_efficeon_probe()
|
D | amd64-agp.c | 329 static __devinit int cache_nbs(struct pci_dev *pdev, u32 cap_ptr) in cache_nbs() argument 342 if (fix_northbridge(dev, pdev, cap_ptr) < 0) { in cache_nbs() 520 u8 cap_ptr; in agp_amd64_probe() local 527 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_amd64_probe() 528 if (!cap_ptr) in agp_amd64_probe() 547 bridge->capndx = cap_ptr; in agp_amd64_probe() 552 if (cache_nbs(pdev, cap_ptr) == -1) { in agp_amd64_probe()
|
D | ali-agp.c | 307 u8 hidden_1621_id, cap_ptr; in agp_ali_probe() local 310 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_ali_probe() 311 if (!cap_ptr) in agp_ali_probe() 331 bridge->capndx = cap_ptr; in agp_ali_probe()
|
D | sis-agp.c | 187 u8 cap_ptr; in agp_sis_probe() local 189 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_sis_probe() 190 if (!cap_ptr) in agp_sis_probe() 202 bridge->capndx = cap_ptr; in agp_sis_probe()
|
D | sgi-agp.c | 297 u8 cap_ptr; in agp_sgi_init() local 301 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_sgi_init() 302 if (!cap_ptr) in agp_sgi_init()
|
D | via-agp.c | 447 u8 cap_ptr; in agp_via_probe() local 449 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_via_probe() 450 if (!cap_ptr) in agp_via_probe() 461 bridge->capndx = cap_ptr; in agp_via_probe()
|
D | uninorth-agp.c | 601 u8 cap_ptr; in agp_uninorth_probe() local 604 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_uninorth_probe() 605 if (cap_ptr == 0) in agp_uninorth_probe() 656 bridge->capndx = cap_ptr; in agp_uninorth_probe() 660 pci_read_config_dword(pdev, cap_ptr+PCI_AGP_STATUS, &bridge->mode); in agp_uninorth_probe()
|
D | nvidia-agp.c | 339 u8 cap_ptr; in agp_nvidia_probe() local 354 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_nvidia_probe() 355 if (!cap_ptr) in agp_nvidia_probe() 380 bridge->capndx = cap_ptr; in agp_nvidia_probe()
|
D | ati-agp.c | 498 u8 cap_ptr; in agp_ati_probe() local 501 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_ati_probe() 502 if (!cap_ptr) in agp_ati_probe() 521 bridge->capndx = cap_ptr; in agp_ati_probe()
|
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()
|
D | intel-agp.c | 738 u8 cap_ptr = 0; in agp_intel_probe() local 742 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_intel_probe() 748 bridge->capndx = cap_ptr; in agp_intel_probe() 764 if (cap_ptr) in agp_intel_probe() 807 if (cap_ptr) { in agp_intel_probe()
|
D | sworks-agp.c | 454 u8 cap_ptr = 0; in agp_serverworks_probe() local 456 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_serverworks_probe() 469 if (cap_ptr) in agp_serverworks_probe()
|
D | generic.c | 740 u8 cap_ptr; in agp_collect_device_status() local 748 cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP); in agp_collect_device_status() 749 if (cap_ptr) in agp_collect_device_status() 757 pci_read_config_dword(device, cap_ptr+PCI_AGP_STATUS, &vga_agpstat); in agp_collect_device_status()
|