Searched refs:fst_off (Results 1 – 1 of 1) sorted by relevance
| /hypervisor/dm/vpci/ |
| A D | vsriov.c | 42 static inline uint8_t get_vf_devfun(const struct pci_vdev *pf_vdev, uint16_t fst_off, uint16_t stri… in get_vf_devfun() argument 44 return ((uint8_t)((pf_vdev->bdf.fields.devfun + fst_off + (stride * id)) & 0xFFU)); in get_vf_devfun() 50 static inline uint8_t get_vf_bus(const struct pci_vdev *pf_vdev, uint16_t fst_off, uint16_t stride,… in get_vf_bus() argument 52 …return ((uint8_t)(pf_vdev->bdf.fields.bus + ((pf_vdev->bdf.fields.devfun + fst_off + (stride * id)… in get_vf_bus() 160 uint16_t num_vfs, stride, fst_off; in enable_vfs() local 193 fst_off = read_sriov_reg(pf_vdev, PCIR_SRIOV_FST_VF_OFF); in enable_vfs() 195 vf_bdf.fields.bus = get_vf_bus(pf_vdev, fst_off, stride, 0U); in enable_vfs() 196 vf_bdf.fields.devfun = get_vf_devfun(pf_vdev, fst_off, stride, 0U); in enable_vfs() 203 vf_bdf.fields.bus = get_vf_bus(pf_vdev, fst_off, stride, idx); in enable_vfs() 204 vf_bdf.fields.devfun = get_vf_devfun(pf_vdev, fst_off, stride, idx); in enable_vfs()
|
Completed in 5 milliseconds