Lines Matching refs:value
54 uint64_t value = backend->size; in host_memory_backend_get_size() local
56 visit_type_size(v, name, &value, errp); in host_memory_backend_get_size()
64 uint64_t value; in host_memory_backend_set_size() local
72 if (!visit_type_size(v, name, &value, errp)) { in host_memory_backend_set_size()
75 if (!value) { in host_memory_backend_set_size()
78 name, object_get_typename(obj), value); in host_memory_backend_set_size()
81 backend->size = value; in host_memory_backend_set_size()
91 unsigned long value; in host_memory_backend_get_host_nodes() local
93 value = find_first_bit(backend->host_nodes, MAX_NODES); in host_memory_backend_get_host_nodes()
94 if (value == MAX_NODES) { in host_memory_backend_get_host_nodes()
98 QAPI_LIST_APPEND(tail, value); in host_memory_backend_get_host_nodes()
101 value = find_next_bit(backend->host_nodes, MAX_NODES, value + 1); in host_memory_backend_get_host_nodes()
102 if (value == MAX_NODES) { in host_memory_backend_get_host_nodes()
106 QAPI_LIST_APPEND(tail, value); in host_memory_backend_get_host_nodes()
125 if (l->value >= MAX_NODES) { in host_memory_backend_set_host_nodes()
126 error_setg(errp, "Invalid host-nodes value: %d", l->value); in host_memory_backend_set_host_nodes()
132 bitmap_set(backend->host_nodes, l->value, 1); in host_memory_backend_set_host_nodes()
169 static void host_memory_backend_set_merge(Object *obj, bool value, Error **errp) in host_memory_backend_set_merge() argument
174 if (value) { in host_memory_backend_set_merge()
182 value != backend->merge) { in host_memory_backend_set_merge()
187 value ? QEMU_MADV_MERGEABLE : QEMU_MADV_UNMERGEABLE); in host_memory_backend_set_merge()
190 backend->merge = value; in host_memory_backend_set_merge()
200 static void host_memory_backend_set_dump(Object *obj, bool value, Error **errp) in host_memory_backend_set_dump() argument
205 if (!value) { in host_memory_backend_set_dump()
213 value != backend->dump) { in host_memory_backend_set_dump()
218 value ? QEMU_MADV_DODUMP : QEMU_MADV_DONTDUMP); in host_memory_backend_set_dump()
221 backend->dump = value; in host_memory_backend_set_dump()
231 static void host_memory_backend_set_prealloc(Object *obj, bool value, in host_memory_backend_set_prealloc() argument
236 if (!backend->reserve && value) { in host_memory_backend_set_prealloc()
242 backend->prealloc = value; in host_memory_backend_set_prealloc()
246 if (value && !backend->prealloc) { in host_memory_backend_set_prealloc()
270 uint32_t value; in host_memory_backend_set_prealloc_threads() local
272 if (!visit_type_uint32(v, name, &value, errp)) { in host_memory_backend_set_prealloc_threads()
275 if (value <= 0) { in host_memory_backend_set_prealloc_threads()
277 object_get_typename(obj), value); in host_memory_backend_set_prealloc_threads()
280 backend->prealloc_threads = value; in host_memory_backend_set_prealloc_threads()
451 static void host_memory_backend_set_share(Object *o, bool value, Error **errp) in host_memory_backend_set_share() argument
459 backend->share = value; in host_memory_backend_set_share()
470 static void host_memory_backend_set_reserve(Object *o, bool value, Error **errp) in host_memory_backend_set_reserve() argument
478 if (backend->prealloc && !value) { in host_memory_backend_set_reserve()
482 backend->reserve = value; in host_memory_backend_set_reserve()
495 host_memory_backend_set_use_canonical_path(Object *obj, bool value, in host_memory_backend_set_use_canonical_path() argument
500 backend->use_canonical_path = value; in host_memory_backend_set_use_canonical_path()