Lines Matching refs:where
38 int where; in pci_scan_trad_caps() local
44 where = pci_read_byte(d, PCI_CAPABILITY_LIST) & ~3; in pci_scan_trad_caps()
45 while (where) in pci_scan_trad_caps()
47 byte id = pci_read_byte(d, where + PCI_CAP_LIST_ID); in pci_scan_trad_caps()
48 byte next = pci_read_byte(d, where + PCI_CAP_LIST_NEXT) & ~3; in pci_scan_trad_caps()
49 if (been_there[where]++) in pci_scan_trad_caps()
53 pci_add_cap(d, where, id, PCI_CAP_NORMAL); in pci_scan_trad_caps()
54 where = next; in pci_scan_trad_caps()
62 int where = 0x100; in pci_scan_ext_caps() local
73 header = pci_read_long(d, where); in pci_scan_ext_caps()
77 if (been_there[where]++) in pci_scan_ext_caps()
79 pci_add_cap(d, where, id, PCI_CAP_EXTENDED); in pci_scan_ext_caps()
80 where = (header >> 20) & ~3; in pci_scan_ext_caps()
82 while (where); in pci_scan_ext_caps()