Lines Matching full:space
33 VFIOAddressSpace *space; in vfio_address_space_get() local
35 QLIST_FOREACH(space, &vfio_address_spaces, list) { in vfio_address_space_get()
36 if (space->as == as) { in vfio_address_space_get()
37 return space; in vfio_address_space_get()
42 space = g_malloc0(sizeof(*space)); in vfio_address_space_get()
43 space->as = as; in vfio_address_space_get()
44 QLIST_INIT(&space->containers); in vfio_address_space_get()
50 QLIST_INSERT_HEAD(&vfio_address_spaces, space, list); in vfio_address_space_get()
52 return space; in vfio_address_space_get()
55 void vfio_address_space_put(VFIOAddressSpace *space) in vfio_address_space_put() argument
57 if (!QLIST_EMPTY(&space->containers)) { in vfio_address_space_put()
61 QLIST_REMOVE(space, list); in vfio_address_space_put()
62 g_free(space); in vfio_address_space_put()
69 void vfio_address_space_insert(VFIOAddressSpace *space, in vfio_address_space_insert() argument
72 QLIST_INSERT_HEAD(&space->containers, bcontainer, next); in vfio_address_space_insert()
73 bcontainer->space = space; in vfio_address_space_insert()