Home
last modified time | relevance | path

Searched refs:cap_ptr (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/bcma/
Ddriver_pci_host.c276 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()
293 bcma_extpci_read_config(pc, dev, func, PCI_CAPABILITY_LIST, &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()
300 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, sizeof(u8)); 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()
[all …]
/kernel/linux/linux-5.10/drivers/char/agp/
Defficeon-agp.c347 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()
Damd-k7-agp.c412 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()
Damd64-agp.c326 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()
Dali-agp.c306 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()
Dvia-agp.c446 u8 cap_ptr; in agp_via_probe() local
448 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_via_probe()
449 if (!cap_ptr) in agp_via_probe()
460 bridge->capndx = cap_ptr; in agp_via_probe()
Dsis-agp.c185 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()
Duninorth-agp.c607 u8 cap_ptr; in agp_uninorth_probe() local
610 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_uninorth_probe()
611 if (cap_ptr == 0) in agp_uninorth_probe()
662 bridge->capndx = cap_ptr; in agp_uninorth_probe()
666 pci_read_config_dword(pdev, cap_ptr+PCI_AGP_STATUS, &bridge->mode); in agp_uninorth_probe()
Dnvidia-agp.c340 u8 cap_ptr; in agp_nvidia_probe() local
361 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_nvidia_probe()
362 if (!cap_ptr) in agp_nvidia_probe()
387 bridge->capndx = cap_ptr; in agp_nvidia_probe()
Dati-agp.c498 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()
Di460-agp.c594 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()
Dintel-agp.c728 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()
Dsworks-agp.c455 u8 cap_ptr = 0; in agp_serverworks_probe() local
457 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_serverworks_probe()
470 if (cap_ptr) in agp_serverworks_probe()
Dgeneric.c725 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()
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
Dpcie-designware.c24 static u8 __dw_pcie_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_find_next_cap() argument
30 if (!cap_ptr) in __dw_pcie_find_next_cap()
33 reg = dw_pcie_readw_dbi(pci, cap_ptr); in __dw_pcie_find_next_cap()
40 return cap_ptr; in __dw_pcie_find_next_cap()
Dpcie-designware-ep.c87 u8 cap_ptr, u8 cap) in __dw_pcie_ep_find_next_cap() argument
94 if (!cap_ptr) in __dw_pcie_ep_find_next_cap()
99 reg = dw_pcie_readw_dbi(pci, func_offset + cap_ptr); in __dw_pcie_ep_find_next_cap()
106 return cap_ptr; in __dw_pcie_ep_find_next_cap()
/kernel/linux/linux-5.10/drivers/iommu/amd/
Dinit.c110 u16 cap_ptr; member
1566 iommu->cap_ptr = h->cap_ptr; in init_iommu_one()
1714 PCI_FUNC(h->devid), h->cap_ptr, in init_iommu_all()
1819 int cap_ptr = iommu->cap_ptr; in iommu_init_pci() local
1830 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_CAP_HDR_OFFSET, in iommu_init_pci()
1890 pci_read_config_dword(iommu->dev, iommu->cap_ptr + 4, in iommu_init_pci()
1892 pci_read_config_dword(iommu->dev, iommu->cap_ptr + 8, in iommu_init_pci()
1929 pci_info(pdev, "Found IOMMU cap 0x%hx\n", iommu->cap_ptr); in print_iommu_info()
2316 pci_write_config_dword(iommu->dev, iommu->cap_ptr + 4, in iommu_apply_resume_quirks()
2318 pci_write_config_dword(iommu->dev, iommu->cap_ptr + 8, in iommu_apply_resume_quirks()
[all …]
Damd_iommu_types.h545 u16 cap_ptr; member