Searched refs:cap_ptr (Results 1 - 19 of 19) sorted by relevance

/drivers/bcma/
H A Ddriver_pci_host.c277 u8 cap_ptr = 0; local
285 return cap_ptr;
291 return cap_ptr;
294 bcma_extpci_read_config(pc, dev, func, PCI_CAPABILITY_LIST, &cap_ptr,
296 if (cap_ptr == 0x00)
297 return cap_ptr;
301 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, sizeof(u8));
303 bcma_extpci_read_config(pc, dev, func, cap_ptr + 1, &cap_ptr,
305 if (cap_ptr
343 u8 cap_ptr, root_ctrl, root_cap, dev; local
[all...]
/drivers/net/wireless/brcm80211/brcmsmac/
H A Dnicpci.c254 u8 cap_ptr; local
255 cap_ptr = pcicore_find_pci_capability(pi->dev, PCI_CAP_ID_EXP,
257 pi->pciecap_lcreg_offset = cap_ptr + PCIE_CAP_LINKCTRL_OFFSET;
274 u8 cap_ptr = 0; local
288 pci_read_config_byte(dev, PCI_CAPABILITY_LIST, &cap_ptr);
290 if (cap_ptr == 0x00)
297 pci_read_config_byte(dev, cap_ptr, &cap_id);
300 pci_read_config_byte(dev, cap_ptr + 1, &cap_ptr);
301 if (cap_ptr
[all...]
H A Daiutils.c460 u8 cap_ptr; local
462 cap_ptr =
465 if (!cap_ptr)
/drivers/char/agp/
H A Defficeon-agp.c350 u8 cap_ptr; local
353 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
354 if (!cap_ptr)
372 bridge->capndx = cap_ptr;
400 if (cap_ptr) {
H A Dali-agp.c307 u8 hidden_1621_id, cap_ptr; local
310 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
311 if (!cap_ptr)
331 bridge->capndx = cap_ptr;
H A Dsgi-agp.c297 u8 cap_ptr; local
301 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
302 if (!cap_ptr)
H A Damd-k7-agp.c412 u8 cap_ptr; local
415 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
416 if (!cap_ptr)
430 bridge->capndx = cap_ptr;
439 cap_ptr = 0;
440 while (!cap_ptr) {
446 cap_ptr = pci_find_capability(gfxcard, PCI_CAP_ID_AGP);
H A Damd64-agp.c329 static __devinit int cache_nbs(struct pci_dev *pdev, u32 cap_ptr) argument
342 if (fix_northbridge(dev, pdev, cap_ptr) < 0) {
520 u8 cap_ptr; local
527 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
528 if (!cap_ptr)
547 bridge->capndx = cap_ptr;
552 if (cache_nbs(pdev, cap_ptr) == -1) {
H A Dnvidia-agp.c339 u8 cap_ptr; local
354 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
355 if (!cap_ptr)
380 bridge->capndx = cap_ptr;
H A Dsis-agp.c187 u8 cap_ptr; local
189 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
190 if (!cap_ptr)
202 bridge->capndx = cap_ptr;
H A Dvia-agp.c447 u8 cap_ptr; local
449 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
450 if (!cap_ptr)
461 bridge->capndx = cap_ptr;
H A Duninorth-agp.c601 u8 cap_ptr; local
604 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
605 if (cap_ptr == 0)
656 bridge->capndx = cap_ptr;
660 pci_read_config_dword(pdev, cap_ptr+PCI_AGP_STATUS, &bridge->mode);
H A Dati-agp.c498 u8 cap_ptr; local
501 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
502 if (!cap_ptr)
521 bridge->capndx = cap_ptr;
H A Di460-agp.c594 u8 cap_ptr; local
596 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
597 if (!cap_ptr)
606 bridge->capndx = cap_ptr;
H A Dintel-agp.c738 u8 cap_ptr = 0; local
742 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
748 bridge->capndx = cap_ptr;
764 if (cap_ptr)
807 if (cap_ptr) {
H A Dsworks-agp.c454 u8 cap_ptr = 0; local
456 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
469 if (cap_ptr)
H A Dgeneric.c740 u8 cap_ptr; local
748 cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP);
749 if (cap_ptr)
757 pci_read_config_dword(device, cap_ptr+PCI_AGP_STATUS, &vga_agpstat);
/drivers/iommu/
H A Damd_iommu_init.c90 u16 cap_ptr; member in struct:ivhd_header
331 dev_name(&iommu->dev->dev), iommu->cap_ptr);
401 static int __init find_last_devid_on_pci(int bus, int dev, int fn, int cap_ptr) argument
405 cap = read_pci_config(bus, dev, fn, cap_ptr+MMIO_RANGE_OFFSET);
426 h->cap_ptr);
735 int cap_ptr = iommu->cap_ptr; local
739 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_CAP_HDR_OFFSET,
741 pci_read_config_dword(iommu->dev, cap_ptr + MMIO_RANGE_OFFSET,
743 pci_read_config_dword(iommu->dev, cap_ptr
[all...]
H A Damd_iommu_types.h509 u16 cap_ptr; member in struct:amd_iommu

Completed in 352 milliseconds