Lines Matching refs:pos

82 	pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_DID, &virtfn->device);
190 pci_read_config_word(dev, iov->pos + PCI_SRIOV_INITIAL_VF, &initial);
199 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &offset);
200 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &stride);
246 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn);
249 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
274 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
275 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, 0);
298 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
306 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, 0);
309 static int sriov_init(struct pci_dev *dev, int pos)
324 pci_read_config_word(dev, pos + PCI_SRIOV_CTRL, &ctrl);
326 pci_write_config_word(dev, pos + PCI_SRIOV_CTRL, 0);
330 pci_read_config_word(dev, pos + PCI_SRIOV_TOTAL_VF, &total);
344 pci_write_config_word(dev, pos + PCI_SRIOV_CTRL, ctrl);
345 pci_write_config_word(dev, pos + PCI_SRIOV_NUM_VF, 0);
346 pci_read_config_word(dev, pos + PCI_SRIOV_VF_OFFSET, &offset);
347 pci_read_config_word(dev, pos + PCI_SRIOV_VF_STRIDE, &stride);
351 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &pgsz);
358 pci_write_config_dword(dev, pos + PCI_SRIOV_SYS_PGSIZE, pgsz);
364 pos + PCI_SRIOV_BAR + i * 4);
381 iov->pos = pos;
389 pci_read_config_dword(dev, pos + PCI_SRIOV_CAP, &iov->cap);
390 pci_read_config_byte(dev, pos + PCI_SRIOV_FUNC_LINK, &iov->link);
434 pci_read_config_word(dev, iov->pos + PCI_SRIOV_CTRL, &ctrl);
441 pci_write_config_dword(dev, iov->pos + PCI_SRIOV_SYS_PGSIZE, iov->pgsz);
442 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, iov->num_VFs);
443 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
456 int pos;
461 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_SRIOV);
462 if (pos)
463 return sriov_init(dev, pos);
496 return dev->sriov->pos + PCI_SRIOV_BAR +
626 pci_read_config_word(dev, dev->sriov->pos + PCI_SRIOV_VF_DID, &dev_id);