Searched refs:baseDev (Results 1 - 4 of 4) sorted by relevance
/device/qemu/riscv32_virt/liteos_m/board/driver/ |
H A D | virtmmio.c | 88 static bool Negotiate(struct VirtmmioDev *baseDev, uint32_t nth, VirtioFeatureFn fn, void *dev) in Negotiate() argument 92 FENCE_WRITE_UINT32(nth, baseDev->base + VIRTMMIO_REG_DEVFEATURESEL); in Negotiate() 93 features = GET_UINT32(baseDev->base + VIRTMMIO_REG_DEVFEATURE); in Negotiate() 96 before = GET_UINT32(baseDev->base + VIRTMMIO_REG_CONFIGGENERATION); in Negotiate() 103 after = GET_UINT32(baseDev->base + VIRTMMIO_REG_CONFIGGENERATION); in Negotiate() 106 FENCE_WRITE_UINT32(nth, baseDev->base + VIRTMMIO_REG_DRVFEATURESEL); in Negotiate() 107 FENCE_WRITE_UINT32(supported, baseDev->base + VIRTMMIO_REG_DRVFEATURE); in Negotiate() 111 bool VirtmmioNegotiate(struct VirtmmioDev *baseDev, VirtioFeatureFn f0, VirtioFeatureFn f1, void *dev) in VirtmmioNegotiate() argument 113 if(!Negotiate(baseDev, VIRTIO_FEATURE_WORD0, f0, dev)) { in VirtmmioNegotiate() 117 if(!Negotiate(baseDev, VIRTIO_FEATURE_WORD in VirtmmioNegotiate() [all...] |
H A D | virtmmio.h | 151 /* negotiate 'baseDev' feature word 0 & 1 through 'f0' & 'f1'. 'dev' is passed to callbacks */ 152 bool VirtmmioNegotiate(struct VirtmmioDev *baseDev, VirtioFeatureFn f0, VirtioFeatureFn f1, void *dev);
|
/device/qemu/drivers/virtio/ |
H A D | virtmmio.c | 83 static bool Negotiate(struct VirtmmioDev *baseDev, uint32_t nth, VirtioFeatureFn fn, void *dev) in Negotiate() argument 87 WRITE_UINT32(nth, baseDev->base + VIRTMMIO_REG_DEVFEATURESEL); in Negotiate() 88 features = GET_UINT32(baseDev->base + VIRTMMIO_REG_DEVFEATURE); in Negotiate() 91 before = GET_UINT32(baseDev->base + VIRTMMIO_REG_CONFIGGENERATION); in Negotiate() 98 after = GET_UINT32(baseDev->base + VIRTMMIO_REG_CONFIGGENERATION); in Negotiate() 101 WRITE_UINT32(nth, baseDev->base + VIRTMMIO_REG_DRVFEATURESEL); in Negotiate() 102 WRITE_UINT32(supported, baseDev->base + VIRTMMIO_REG_DRVFEATURE); in Negotiate() 106 bool VirtmmioNegotiate(struct VirtmmioDev *baseDev, VirtioFeatureFn f0, VirtioFeatureFn f1, void *dev) in VirtmmioNegotiate() argument 108 if(!Negotiate(baseDev, VIRTIO_FEATURE_WORD0, f0, dev)) { in VirtmmioNegotiate() 112 if(!Negotiate(baseDev, VIRTIO_FEATURE_WORD in VirtmmioNegotiate() [all...] |
H A D | virtmmio.h | 140 /* negotiate 'baseDev' feature word 0 & 1 through 'f0' & 'f1'. 'dev' is passed to callbacks */ 141 bool VirtmmioNegotiate(struct VirtmmioDev *baseDev, VirtioFeatureFn f0, VirtioFeatureFn f1, void *dev);
|
Completed in 3 milliseconds