Lines Matching refs:sriov_cap

37     dev->exp.sriov_cap = offset;  in pcie_sriov_pf_init()
86 uint16_t sriov_cap = dev->exp.sriov_cap; in pcie_sriov_pf_init_vf_bar() local
88 assert(sriov_cap > 0); in pcie_sriov_pf_init_vf_bar()
94 addr = sriov_cap + PCI_SRIOV_BAR + region_num * 4; in pcie_sriov_pf_init_vf_bar()
170 uint16_t sriov_cap = dev->exp.sriov_cap; in register_vfs() local
172 pci_get_word(dev->config + sriov_cap + PCI_SRIOV_VF_OFFSET); in register_vfs()
174 pci_get_word(dev->config + sriov_cap + PCI_SRIOV_VF_STRIDE); in register_vfs()
177 assert(sriov_cap > 0); in register_vfs()
178 num_vfs = pci_get_word(dev->config + sriov_cap + PCI_SRIOV_NUM_VF); in register_vfs()
179 if (num_vfs > pci_get_word(dev->config + sriov_cap + PCI_SRIOV_TOTAL_VF)) { in register_vfs()
224 uint16_t sriov_cap = dev->exp.sriov_cap; in pcie_sriov_config_write() local
226 if (!sriov_cap || address < sriov_cap) { in pcie_sriov_config_write()
229 off = address - sriov_cap; in pcie_sriov_config_write()
254 uint16_t sriov_cap = dev->exp.sriov_cap; in pcie_sriov_pf_reset() local
255 if (!sriov_cap) { in pcie_sriov_pf_reset()
259 pci_set_word(dev->config + sriov_cap + PCI_SRIOV_CTRL, 0); in pcie_sriov_pf_reset()
262 pci_set_word(dev->config + sriov_cap + PCI_SRIOV_NUM_VF, 0); in pcie_sriov_pf_reset()
268 pci_set_word(dev->config + sriov_cap + PCI_SRIOV_SYS_PGSIZE, 0x1); in pcie_sriov_pf_reset()
271 pci_set_quad(dev->config + sriov_cap + PCI_SRIOV_BAR + i * 4, in pcie_sriov_pf_reset()
279 uint8_t *cfg = dev->config + dev->exp.sriov_cap; in pcie_sriov_pf_add_sup_pgsize()
280 uint8_t *wmask = dev->wmask + dev->exp.sriov_cap; in pcie_sriov_pf_add_sup_pgsize()