Lines Matching defs:ofs
608 unsigned int ofs;
619 ofs = PCI_CAPLISTPTR_REG;
622 ofs = PCI_CARDBUS_CAPLISTPTR_REG;
628 ofs = PCI_CAPLIST_PTR(pci_conf_read(pc, tag, ofs));
629 while (ofs != 0) {
635 if ((ofs & 3) || (ofs < 0x40))
637 reg = pci_conf_read(pc, tag, ofs);
640 *offset = ofs;
645 ofs = PCI_CAPLIST_NEXT(reg);
656 unsigned int ofs;
658 if (pci_get_capability(pc, tag, PCI_CAP_HT, &ofs, NULL) == 0)
661 while (ofs != 0) {
663 if ((ofs & 3) || (ofs < 0x40))
666 reg = pci_conf_read(pc, tag, ofs);
669 *offset = ofs;
674 ofs = PCI_CAPLIST_NEXT(reg);
685 unsigned int ofs;
692 ofs = PCI_PCIE_ECAP;
693 while (ofs != 0) {
695 if ((ofs & 3) || (ofs < PCI_PCIE_ECAP))
698 reg = pci_conf_read(pc, tag, ofs);
701 *offset = ofs;
706 ofs = PCI_PCIE_ECAP_NEXT(reg);
1107 int ofs, i, j;
1113 if (pci_get_capability(pc, tag, PCI_CAP_VPD, &ofs, ®) == 0)
1120 pci_conf_write(pc, tag, ofs, reg);
1131 reg = pci_conf_read(pc, tag, ofs);
1133 data[i] = pci_conf_read(pc, tag, PCI_VPD_DATAREG(ofs));
1144 int ofs, i, j;
1149 if (pci_get_capability(pc, tag, PCI_CAP_VPD, &ofs, ®) == 0)
1153 pci_conf_write(pc, tag, PCI_VPD_DATAREG(ofs), data[i]);
1158 pci_conf_write(pc, tag, ofs, reg);
1169 reg = pci_conf_read(pc, tag, ofs);