Lines Matching defs:pos
233 int pos = PCI_CAPABILITY_LIST;
246 pnv_pci_cfg_read(pdn, pos, 1, &pos);
247 if (pos < 0x40)
250 pos &= ~3;
251 pnv_pci_cfg_read(pdn, pos + PCI_CAP_LIST_ID, 1, &id);
257 return pos;
260 pos += PCI_CAP_LIST_NEXT;
270 int pos = 256, ttl = (4096 - 256) / 8;
274 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL)
280 if (PCI_EXT_CAP_ID(header) == cap && pos)
281 return pos;
283 pos = PCI_EXT_CAP_NEXT(header);
284 if (pos < 256)
287 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL)
909 int pos, u16 mask)
916 eeh_ops->read_config(edev, pos, 2, &status);