Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 224) sorted by relevance

123456789

/qemu/util/
A Dqht.c341 return map != ht->map; in qht_map_is_stale__locked()
356 map = qatomic_rcu_read(&ht->map); in qht_map_lock_buckets__no_stale()
366 map = ht->map; in qht_map_lock_buckets__no_stale()
388 map = qatomic_rcu_read(&ht->map); in qht_bucket_lock__no_stale()
400 map = ht->map; in qht_bucket_lock__no_stale()
445 map = g_malloc(sizeof(*map)); in qht_map_create()
476 qatomic_rcu_set(&ht->map, map); in qht_init()
545 map = ht->map; in qht_reset_size()
604 map = qatomic_rcu_read(&ht->map); in qht_lookup_custom()
685 map = ht->map; in qht_grow_maybe()
[all …]
A Diova-tree.c86 return g_tree_lookup(tree->tree, map); in iova_tree_find()
92 const DMAMap *map = key; in iova_tree_find_address_iterator() local
99 if (map->translated_addr + map->size < needle->translated_addr || in iova_tree_find_address_iterator()
104 args->result = map; in iova_tree_find_address_iterator()
111 .needle = map, in iova_tree_find_iova()
128 if (map->iova + map->size < map->iova || map->perm == IOMMU_NONE) { in iova_tree_insert()
133 if (iova_tree_find(tree, map)) { in iova_tree_insert()
138 memcpy(new, map, sizeof(*new)); in iova_tree_insert()
217 .new_size = map->size, in iova_tree_alloc_map()
251 map->iova = args.iova_result; in iova_tree_alloc_map()
[all …]
A Dbitmap.c160 void bitmap_set(unsigned long *map, long start, long nr) in bitmap_set() argument
162 unsigned long *p = map + BIT_WORD(start); in bitmap_set()
182 void bitmap_set_atomic(unsigned long *map, long start, long nr) in bitmap_set_atomic() argument
184 unsigned long *p = map + BIT_WORD(start); in bitmap_set_atomic()
221 void bitmap_clear(unsigned long *map, long start, long nr) in bitmap_clear() argument
223 unsigned long *p = map + BIT_WORD(start); in bitmap_clear()
245 unsigned long *p = map + BIT_WORD(start); in bitmap_test_and_clear()
290 unsigned long *p = map + BIT_WORD(start); in bitmap_test_and_clear_atomic()
360 unsigned long bitmap_find_next_zero_area(unsigned long *map, in bitmap_find_next_zero_area() argument
368 index = find_next_zero_bit(map, size, start); in bitmap_find_next_zero_area()
[all …]
/qemu/hw/virtio/
A Dcbor-helpers.c21 success = cbor_map_add(map, pair); in qemu_cbor_map_add()
55 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_bool_to_map()
85 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_uint8_to_map()
101 bool qemu_cbor_add_map_to_map(cbor_item_t *map, const char *key, in qemu_cbor_add_map_to_map() argument
116 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_map_to_map()
147 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_bytestring_to_map()
176 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_null_to_map()
206 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_string_to_map()
247 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_uint8_array_to_map()
277 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_uint8_key_bytestring_to_map()
[all …]
A Dvhost-iova-tree.c68 const DMAMap *map) in vhost_iova_tree_find_iova() argument
70 return iova_tree_find_iova(tree->iova_taddr_map, map); in vhost_iova_tree_find_iova()
86 int vhost_iova_tree_map_alloc(VhostIOVATree *tree, DMAMap *map) in vhost_iova_tree_map_alloc() argument
91 if (map->translated_addr + map->size < map->translated_addr || in vhost_iova_tree_map_alloc()
92 map->perm == IOMMU_NONE) { in vhost_iova_tree_map_alloc()
97 return iova_tree_alloc_map(tree->iova_taddr_map, map, iova_first, in vhost_iova_tree_map_alloc()
107 void vhost_iova_tree_remove(VhostIOVATree *iova_tree, DMAMap map) in vhost_iova_tree_remove() argument
109 iova_tree_remove(iova_tree->iova_taddr_map, map); in vhost_iova_tree_remove()
A Dvhost-iova-tree.h23 const DMAMap *map);
24 int vhost_iova_tree_map_alloc(VhostIOVATree *iova_tree, DMAMap *map);
25 void vhost_iova_tree_remove(VhostIOVATree *iova_tree, DMAMap map);
/qemu/
A Dgitdm.config26 EmailMap contrib/gitdm/domain-map
29 # Use GroupMap to map a file full of addresses to the
34 GroupMap contrib/gitdm/group-map-alibaba Alibaba
35 GroupMap contrib/gitdm/group-map-amd AMD
37 GroupMap contrib/gitdm/group-map-codeweavers CodeWeavers
38 GroupMap contrib/gitdm/group-map-facebook Facebook
39 GroupMap contrib/gitdm/group-map-ibm IBM
41 GroupMap contrib/gitdm/group-map-netflix Netflix
42 GroupMap contrib/gitdm/group-map-redhat Red Hat
43 GroupMap contrib/gitdm/group-map-wavecomp Wave Computing
[all …]
A Dqemu-keymap.c148 mod = xkb_keymap_mod_get_index(map, name); in get_mod()
158 struct xkb_keymap *map; in main() local
217 if (!map) { in main()
223 xkb_keymap_layout_get_name(map, 0)); in main()
225 mods = xkb_keymap_num_mods(map); in main()
231 shift = get_mod(map, "Shift"); in main()
232 ctrl = get_mod(map, "Control"); in main()
233 altgr = get_mod(map, "AltGr"); in main()
234 numlock = get_mod(map, "NumLock"); in main()
236 state = xkb_state_new(map); in main()
[all …]
/qemu/include/hw/virtio/
A Dcbor-helpers.h16 bool qemu_cbor_map_add(cbor_item_t *map, cbor_item_t *key, cbor_item_t *value);
20 bool qemu_cbor_add_bool_to_map(cbor_item_t *map, const char *key, bool value);
22 bool qemu_cbor_add_uint8_to_map(cbor_item_t *map, const char *key,
25 bool qemu_cbor_add_map_to_map(cbor_item_t *map, const char *key,
29 bool qemu_cbor_add_bytestring_to_map(cbor_item_t *map, const char *key,
32 bool qemu_cbor_add_null_to_map(cbor_item_t *map, const char *key);
34 bool qemu_cbor_add_string_to_map(cbor_item_t *map, const char *key,
37 bool qemu_cbor_add_uint8_array_to_map(cbor_item_t *map, const char *key,
40 bool qemu_cbor_add_uint8_key_bytestring_to_map(cbor_item_t *map, uint8_t key,
43 bool qemu_cbor_add_uint64_to_map(cbor_item_t *map, const char *key,
/qemu/tests/qemu-iotests/
A D14655 $QEMU_IMG map --output=json --image-opts \
63 $QEMU_IMG map --output=json --image-opts \
71 $QEMU_IMG map --output=json --image-opts \
82 $QEMU_IMG map --output=json --image-opts \
90 $QEMU_IMG map --output=json --image-opts \
98 $QEMU_IMG map --output=json --image-opts \
109 $QEMU_IMG map --output=json --image-opts \
117 $QEMU_IMG map --output=json --image-opts \
125 $QEMU_IMG map --output=json --image-opts \
143 $QEMU_IMG map --output=json --image-opts \
[all …]
A D15472 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
95 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
118 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
158 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
188 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
218 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
237 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
253 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
268 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
284 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
[all …]
A D24162 $QEMU_IMG map -f raw --output=json "$TEST_IMG" | _filter_qemu_img_map
63 $QEMU_IO -f raw -c map "$TEST_IMG"
75 $QEMU_IMG map -f raw --output=json "$TEST_IMG" | _filter_qemu_img_map
76 $QEMU_IO -f raw -c map "$TEST_IMG"
88 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
89 $QEMU_IO -c map "$TEST_IMG"
A D12260 $QEMU_IMG map "$TEST_IMG".orig | _filter_qemu_img_map
109 $QEMU_IMG map "$TEST_IMG".orig | _filter_qemu_img_map
121 $QEMU_IMG map "$TEST_IMG".orig | _filter_qemu_img_map
141 $QEMU_IMG map "$TEST_IMG" | _filter_qemu_img_map
147 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
170 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
195 $QEMU_IMG map --output=json "$TEST_IMG".orig | _filter_qemu_img_map
202 $QEMU_IMG map --output=json "$TEST_IMG".orig | _filter_qemu_img_map
217 $QEMU_IMG map --output=json "$TEST_IMG".orig | _filter_qemu_img_map
297 $QEMU_IMG map --output=json "$TEST_IMG"
[all …]
A D223176 $QEMU_IMG map --output=json --image-opts \
178 $QEMU_IMG map --output=json --image-opts \
186 $QEMU_IMG map --output=json --image-opts \
194 $QEMU_IMG map --output=json --image-opts \
221 $QEMU_IMG map --output=json --image-opts \
226 $QEMU_IMG map --output=json --image-opts --max-length=12345 \
228 $QEMU_IMG map --output=json --image-opts --start-offset=12345 \
A D17963 $QEMU_IMG map --output=json "$TEST_IMG.base" | _filter_qemu_img_map
70 $QEMU_IMG map --output=json "$TEST_IMG.base" | _filter_qemu_img_map
78 $QEMU_IMG map --output=json "$TEST_IMG.base" | _filter_qemu_img_map
84 $QEMU_IMG map --output=json "$TEST_IMG.base" | _filter_qemu_img_map
91 $QEMU_IMG map --output=json "$TEST_IMG.base" | _filter_qemu_img_map
103 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
A D06664 $QEMU_IMG map "$TEST_IMG"
77 orig_map=$($QEMU_IMG map --output=json "$TEST_IMG")
97 new_map=$($QEMU_IMG map --output=json "$TEST_IMG")
146 orig_map=$($QEMU_IMG map --output=json "$TEST_IMG")
175 new_map=$($QEMU_IMG map --output=json "$TEST_IMG")
A D22157 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
60 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
63 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
66 $QEMU_IMG map --output=json "$TEST_IMG" | _filter_qemu_img_map
A D25355 $QEMU_IMG map --output=json --image-opts \
61 $QEMU_IMG map --output=json --image-opts \
70 $QEMU_IMG map --output=json --image-opts \
78 $QEMU_IMG map --output=json --image-opts \
/qemu/system/
A Dmemory_mapping.c59 return phys_addr == map->phys_addr + map->length && in mapping_contiguous()
60 virt_addr == map->virt_addr + map->length; in mapping_contiguous()
71 return !(phys_addr + length < map->phys_addr || in mapping_have_same_region()
72 phys_addr >= map->phys_addr + map->length); in mapping_have_same_region()
84 return virt_addr - map->virt_addr != phys_addr - map->phys_addr; in mapping_conflict()
92 static inline void mapping_merge(MemoryMapping *map, in mapping_merge() argument
96 if (virt_addr < map->virt_addr) { in mapping_merge()
97 map->length += map->virt_addr - virt_addr; in mapping_merge()
98 map->virt_addr = virt_addr; in mapping_merge()
102 (map->virt_addr + map->length)) { in mapping_merge()
[all …]
/qemu/contrib/elf2dmp/
A Dqemu_elf.c24 Elf64_Phdr *elf64_getphdr(void *map) in elf64_getphdr() argument
26 Elf64_Ehdr *ehdr = map; in elf64_getphdr()
32 Elf64_Half elf_getphdrnum(void *map) in elf_getphdrnum() argument
34 Elf64_Ehdr *ehdr = map; in elf_getphdrnum()
60 Elf64_Phdr *phdr = elf64_getphdr(qe->map); in init_states()
84 nhdr = (void *)((uint8_t *)qe->map + offset); in init_states()
90 name = (char *)qe->map + offset; in init_states()
134 Elf64_Ehdr *ehdr = qe->map; in check_ehdr()
210 if (qe->map == MAP_FAILED) { in QEMU_Elf_map()
229 qe->map = g_mapped_file_get_contents(qe->gmf); in QEMU_Elf_map()
[all …]
/qemu/audio/
A Dpaaudio.c439 map.map[0] = PA_CHANNEL_POSITION_MONO; in qpa_simple_new()
443 map.map[0] = PA_CHANNEL_POSITION_LEFT; in qpa_simple_new()
444 map.map[1] = PA_CHANNEL_POSITION_RIGHT; in qpa_simple_new()
448 map.map[0] = PA_CHANNEL_POSITION_FRONT_LEFT; in qpa_simple_new()
450 map.map[2] = PA_CHANNEL_POSITION_CENTER; in qpa_simple_new()
451 map.map[3] = PA_CHANNEL_POSITION_LFE; in qpa_simple_new()
452 map.map[4] = PA_CHANNEL_POSITION_REAR_LEFT; in qpa_simple_new()
459 map.map[2] = PA_CHANNEL_POSITION_CENTER; in qpa_simple_new()
460 map.map[3] = PA_CHANNEL_POSITION_LFE; in qpa_simple_new()
461 map.map[4] = PA_CHANNEL_POSITION_REAR_LEFT; in qpa_simple_new()
[all …]
/qemu/hw/arm/
A Dvexpress.c497 const hwaddr *map = daughterboard->motherboard_map; in vexpress_modify_dtb() local
553 const hwaddr *map = daughterboard->motherboard_map; in vexpress_common_init() local
643 pl011_create(map[VE_UART0], pic[5], serial_hd(0)); in vexpress_common_init()
644 pl011_create(map[VE_UART1], pic[6], serial_hd(1)); in vexpress_common_init()
645 pl011_create(map[VE_UART2], pic[7], serial_hd(2)); in vexpress_common_init()
646 pl011_create(map[VE_UART3], pic[8], serial_hd(3)); in vexpress_common_init()
648 sysbus_create_simple("sp804", map[VE_TIMER01], pic[2]); in vexpress_common_init()
649 sysbus_create_simple("sp804", map[VE_TIMER23], pic[3]); in vexpress_common_init()
663 sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, map[VE_CLCD]); in vexpress_common_init()
670 if (map[VE_NORFLASHALIAS] != -1) { in vexpress_common_init()
[all …]
/qemu/include/qemu/
A Diova-tree.h41 typedef gboolean (*iova_tree_iterator)(DMAMap *map);
63 int iova_tree_insert(IOVATree *tree, const DMAMap *map);
76 void iova_tree_remove(IOVATree *tree, DMAMap map);
94 const DMAMap *iova_tree_find(const IOVATree *tree, const DMAMap *map);
112 const DMAMap *iova_tree_find_iova(const IOVATree *tree, const DMAMap *map);
128 int iova_tree_alloc_map(IOVATree *tree, DMAMap *map, hwaddr iova_begin,
/qemu/ui/
A Dx_keymap.c59 const guint16 *map; in qemu_xkeymap_mapping_table() local
87 map = qemu_input_map_xorgxwin_to_qcode; in qemu_xkeymap_mapping_table()
91 map = qemu_input_map_xorgxquartz_to_qcode; in qemu_xkeymap_mapping_table()
96 map = qemu_input_map_xorgevdev_to_qcode; in qemu_xkeymap_mapping_table()
101 map = qemu_input_map_xorgkbd_to_qcode; in qemu_xkeymap_mapping_table()
113 map = NULL; in qemu_xkeymap_mapping_table()
118 return map; in qemu_xkeymap_mapping_table()
/qemu/hw/mips/
A Dloongson3_bootp.c53 emap->map[0].node_id = cpu_to_le32(0); in init_memory_map()
54 emap->map[0].mem_type = cpu_to_le32(1); in init_memory_map()
55 emap->map[0].mem_start = cpu_to_le64(0x0); in init_memory_map()
56 emap->map[0].mem_size = cpu_to_le32(240); in init_memory_map()
58 emap->map[1].node_id = cpu_to_le32(0); in init_memory_map()
59 emap->map[1].mem_type = cpu_to_le32(2); in init_memory_map()
60 emap->map[1].mem_start = cpu_to_le64(0x90000000); in init_memory_map()
61 emap->map[1].mem_size = cpu_to_le32((ram_size / MiB) - 256); in init_memory_map()

Completed in 691 milliseconds

123456789