Searched refs:fbit (Results 1 – 4 of 4) sorted by relevance
/qemu/include/hw/virtio/ |
H A D | virtio.h | 431 static inline void virtio_add_feature(uint64_t *features, unsigned int fbit) in virtio_add_feature() argument 433 assert(fbit < 64); in virtio_add_feature() 434 *features |= (1ULL << fbit); in virtio_add_feature() 437 static inline void virtio_clear_feature(uint64_t *features, unsigned int fbit) in virtio_clear_feature() argument 439 assert(fbit < 64); in virtio_clear_feature() 440 *features &= ~(1ULL << fbit); in virtio_clear_feature() 443 static inline bool virtio_has_feature(uint64_t features, unsigned int fbit) in virtio_has_feature() argument 445 assert(fbit < 64); in virtio_has_feature() 446 return !!(features & (1ULL << fbit)); in virtio_has_feature() 450 unsigned int fbit) in virtio_vdev_has_feature() argument [all …]
|
/qemu/hw/nvram/ |
H A D | xlnx-zynqmp-efuse.c | 290 unsigned int fbit, wbits = 0, u32_off = 0; in cache_sync_u32() local 298 for (fbit = f_start; fbit <= f_end; fbit++, wbits++) { in cache_sync_u32() 304 u32[u32_off] |= xlnx_efuse_get_bit(s->efuse, fbit) << wbits; in cache_sync_u32()
|
/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 165 static inline bool has_feature(uint64_t features, unsigned int fbit) in has_feature() argument 167 assert(fbit < 64); in has_feature() 168 return !!(features & (1ULL << fbit)); in has_feature() 171 static inline bool vduse_dev_has_feature(VduseDev *dev, unsigned int fbit) in vduse_dev_has_feature() argument 173 return has_feature(dev->features, fbit); in vduse_dev_has_feature()
|
/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 107 bool has_feature(uint64_t features, unsigned int fbit) in has_feature() argument 109 assert(fbit < 64); in has_feature() 110 return !!(features & (1ULL << fbit)); in has_feature() 115 unsigned int fbit) in vu_has_feature() argument 117 return has_feature(dev->features, fbit); in vu_has_feature() 120 static inline bool vu_has_protocol_feature(VuDev *dev, unsigned int fbit) in vu_has_protocol_feature() argument 122 return has_feature(dev->protocol_features, fbit); in vu_has_protocol_feature()
|