Searched refs:vhost_memory (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/drivers/vhost/ |
D | vhost.h | 103 struct vhost_memory *memory; 120 struct vhost_memory *memory; 136 struct vhost_memory *vhost_dev_reset_owner_prepare(void); 137 void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *);
|
D | vhost.c | 489 struct vhost_memory *vhost_dev_reset_owner_prepare(void) in vhost_dev_reset_owner_prepare() 491 return kmalloc(offsetof(struct vhost_memory, regions), GFP_KERNEL); in vhost_dev_reset_owner_prepare() 496 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_memory *memory) in vhost_dev_reset_owner() 579 static int vq_memory_access_ok(void __user *log_base, struct vhost_memory *mem, in vq_memory_access_ok() 605 static int memory_access_ok(struct vhost_dev *d, struct vhost_memory *mem, in memory_access_ok() 691 static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m) in vhost_set_memory() 693 struct vhost_memory mem, *newmem, *oldmem; in vhost_set_memory() 694 unsigned long size = offsetof(struct vhost_memory, regions); in vhost_set_memory() 1020 static const struct vhost_memory_region *find_region(struct vhost_memory *mem, in find_region() 1184 struct vhost_memory *mem; in translate_desc()
|
D | test.c | 223 struct vhost_memory *memory; in vhost_test_reset_owner()
|
D | net.c | 971 struct vhost_memory *memory; in vhost_net_reset_owner()
|
/linux-4.4.14/include/uapi/linux/ |
D | vhost.h | 60 struct vhost_memory { struct 84 #define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory) argument
|
/linux-4.4.14/tools/virtio/ |
D | virtio_test.c | 42 struct vhost_memory *mem; 125 dev->mem = malloc(offsetof(struct vhost_memory, regions) + in vdev_info_init() 128 memset(dev->mem, 0, offsetof(struct vhost_memory, regions) + in vdev_info_init()
|