Lines Matching refs:pos

22 	int pos;
26 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ATS);
27 if (!pos)
34 ats->pos = pos;
36 pci_read_config_word(dev, pos + PCI_ATS_CAP, &cap);
92 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl);
110 pci_read_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, &ctrl);
112 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl);
144 pci_write_config_word(dev, dev->ats->pos + PCI_ATS_CTRL, ctrl);
162 int pos;
171 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ATS);
172 if (!pos)
175 pci_read_config_word(dev, pos + PCI_ATS_CAP, &cap);
193 int pos;
195 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PRI);
196 if (!pos)
199 pci_read_config_word(pdev, pos + PCI_PRI_CTRL, &control);
200 pci_read_config_word(pdev, pos + PCI_PRI_STATUS, &status);
205 pci_read_config_dword(pdev, pos + PCI_PRI_MAX_REQ, &max_requests);
207 pci_write_config_dword(pdev, pos + PCI_PRI_ALLOC_REQ, reqs);
210 pci_write_config_word(pdev, pos + PCI_PRI_CTRL, control);
225 int pos;
227 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PRI);
228 if (!pos)
231 pci_read_config_word(pdev, pos + PCI_PRI_CTRL, &control);
233 pci_write_config_word(pdev, pos + PCI_PRI_CTRL, control);
247 int pos;
249 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PRI);
250 if (!pos)
253 pci_read_config_word(pdev, pos + PCI_PRI_CTRL, &control);
259 pci_write_config_word(pdev, pos + PCI_PRI_CTRL, control);
279 int pos;
281 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PASID);
282 if (!pos)
285 pci_read_config_word(pdev, pos + PCI_PASID_CTRL, &control);
286 pci_read_config_word(pdev, pos + PCI_PASID_CAP, &supported);
299 pci_write_config_word(pdev, pos + PCI_PASID_CTRL, control);
313 int pos;
315 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PASID);
316 if (!pos)
319 pci_write_config_word(pdev, pos + PCI_PASID_CTRL, control);
336 int pos;
338 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PASID);
339 if (!pos)
342 pci_read_config_word(pdev, pos + PCI_PASID_CAP, &supported);
362 int pos;
364 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PASID);
365 if (!pos)
368 pci_read_config_word(pdev, pos + PCI_PASID_CAP, &supported);