Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 56) sorted by relevance

123

/xen/tools/tests/x86_emulator/
A Dsimd-sg.c65 # define BG(dt, it, reg, mem, idx, msk, scl) BG_(dt, it, reg, mem, idx, msk, scl) argument
66 # define BS(dt, it, mem, idx, reg, msk, scl) BS_(dt, it##i, mem, idx, reg, msk, scl) argument
89 # define gather(reg, mem, idx, msk, scl) BG(v16si, si, reg, mem, idx, msk, scl) argument
90 # define scatter(mem, idx, reg, msk, scl) BS(v16si, s, mem, idx, reg, msk, scl) argument
93 # define scatter(mem, idx, reg, msk, scl) BS(v8di, s, mem, idx, (vdi_t)(reg), msk, scl) argument
95 # define gather(reg, mem, idx, msk, scl) BG(v16sf, si, reg, mem, idx, msk, scl) argument
96 # define scatter(mem, idx, reg, msk, scl) BS(v16sf, s, mem, idx, reg, msk, scl) argument
98 # define gather(reg, mem, idx, msk, scl) BG(v8df, si, reg, mem, idx, msk, scl) argument
99 # define scatter(mem, idx, reg, msk, scl) BS(v8df, s, mem, idx, reg, msk, scl) argument
112 # define gather(reg, mem, idx, msk, scl) BG(v8df, di, reg, mem, (idi_t)(idx), msk, scl) argument
[all …]
A Dpredicates.c24 unsigned int mem:2; member
537 enum mem_access mem, struct x86_emulate_ctxt *ctxt, in do_test() argument
546 if ( !modrm || mem != mem_none ) in do_test()
556 if ( x86_insn_is_mem_access(s, ctxt) != (mem != mem_none) ) in do_test()
560 x86_insn_is_mem_access(s, ctxt), mem != mem_none); in do_test()
563 if ( x86_insn_is_mem_write(s, ctxt) != (mem == mem_write) ) in do_test()
567 x86_insn_is_mem_write(s, ctxt), mem == mem_write); in do_test()
629 do_test(instr, legacy[t].len[m], legacy[t].modrm, legacy[t].mem, in predicates_test()
648 legacy_0f[t].mem, ctxt, fetch); in predicates_test()
667 legacy_0f38[t].mem, ctxt, fetch); in predicates_test()
/xen/tools/xl/
A Dxl_mem.c25 static int set_memory_max(uint32_t domid, const char *mem) in set_memory_max() argument
29 memorykb = parse_mem_size_kb(mem); in set_memory_max()
31 fprintf(stderr, "invalid memory size: %s\n", mem); in set_memory_max()
47 char *mem; in main_memmax() local
54 mem = argv[optind + 1]; in main_memmax()
56 return set_memory_max(domid, mem); in main_memmax()
63 memorykb = parse_mem_size_kb(mem); in set_memory_target()
65 fprintf(stderr, "invalid memory size: %s\n", mem); in set_memory_target()
81 const char *mem; in main_memset() local
88 mem = argv[optind + 1]; in main_memset()
[all …]
/xen/xen/drivers/vpci/
A Dheader.c132 if ( v->vpci.mem ) in vpci_process_pending()
150 rangeset_destroy(v->vpci.mem); in vpci_process_pending()
151 v->vpci.mem = NULL; in vpci_process_pending()
174 rangeset_destroy(mem); in apply_map()
193 curr->vpci.mem = mem; in defer_map()
213 if ( !mem ) in modify_bars()
236 rc = rangeset_add_range(mem, start, end); in modify_bars()
241 rangeset_destroy(mem); in modify_bars()
253 rc = rangeset_remove_range(mem, start, end); in modify_bars()
259 rangeset_destroy(mem); in modify_bars()
[all …]
/xen/stubdom/
A Dlwip.patch-cvs19 + mem stats.
378 struct mem *mem;
416 - lwip_stats.mem.used -= mem->next - ((u8_t *)mem - ram);
442 struct mem *mem, *mem2;
473 mem2 = (struct mem *)&ram[mem->next];
490 struct mem *mem, *mem2;
514 + mem = (struct mem *)&ram[ptr];
531 - mem = (struct mem *)&ram[ptr];
601 + * also can't move mem->next directly behind mem, since mem->next
613 - * also can't move mem->next directly behind mem, since mem->next
[all …]
/xen/xen/arch/arm/
A Dsetup.c561 bank_start = bootinfo.mem.bank[bank].start; in init_pdx()
562 bank_size = bootinfo.mem.bank[bank].size; in init_pdx()
569 bank_start = bootinfo.mem.bank[bank].start; in init_pdx()
570 bank_size = bootinfo.mem.bank[bank].size; in init_pdx()
580 bank_start = bootinfo.mem.bank[bank].start; in init_pdx()
581 bank_size = bootinfo.mem.bank[bank].size; in init_pdx()
599 if ( !bootinfo.mem.nr_banks ) in setup_mm()
608 ram_start = bootinfo.mem.bank[0].start; in setup_mm()
609 ram_size = bootinfo.mem.bank[0].size; in setup_mm()
612 for ( i = 1; i < bootinfo.mem.nr_banks; i++ ) in setup_mm()
[all …]
A Ddomain_build.c184 if ( i == kinfo->mem.nr_banks && kinfo->mem.nr_banks < NR_MEM_BANKS ) in insert_11_bank()
186 struct membank *bank = &kinfo->mem.bank[kinfo->mem.nr_banks]; in insert_11_bank()
190 kinfo->mem.nr_banks++; in insert_11_bank()
280 kinfo->mem.nr_banks = 0; in allocate_memory_11()
377 kinfo->mem.bank[i].start + kinfo->mem.bank[i].size, in allocate_memory_11()
393 bank = &kinfo->mem.bank[kinfo->mem.nr_banks]; in allocate_bank_memory()
433 kinfo->mem.nr_banks++; in allocate_bank_memory()
448 kinfo->mem.nr_banks = 0; in allocate_memory()
468 kinfo->mem.bank[i].start + kinfo->mem.bank[i].size, in allocate_memory()
689 if ( mem->nr_banks == 0 ) in make_memory_node()
[all …]
A Dguest_atomics.c33 unsigned long mem = 0; in calibrate_safe_atomic() local
43 : "=&r" (res), "+Q" (mem), "=&r" (tmp)); in calibrate_safe_atomic()
48 : "=&r" (res), "+Q" (mem), "=&r" (tmp)); in calibrate_safe_atomic()
A Dbootfdt.c147 struct meminfo *mem = data; in process_memory_node() local
163 for ( i = 0; i < banks && mem->nr_banks < NR_MEM_BANKS; i++ ) in process_memory_node()
169 mem->bank[mem->nr_banks].start = start; in process_memory_node()
170 mem->bank[mem->nr_banks].size = size; in process_memory_node()
171 mem->nr_banks++; in process_memory_node()
339 address_cells, size_cells, &bootinfo.mem); in early_scan_node()
356 struct meminfo *mi = &bootinfo.mem; in early_print_info()
A Dkernel.c79 const paddr_t rambase = info->mem.bank[0].start; in place_modules()
80 const paddr_t ramsize = info->mem.bank[0].size; in place_modules()
129 return info->mem.bank[0].start + info->zimage.text_offset; in kernel_zimage_place()
142 load_end = info->mem.bank[0].start + info->mem.bank[0].size; in kernel_zimage_place()
143 load_end = MIN(info->mem.bank[0].start + MB(128), load_end); in kernel_zimage_place()
/xen/xen/arch/x86/guest/xen/
A Dxen.c42 static struct rangeset *mem; variable
148 mem = rangeset_new(NULL, "host memory map", 0); in init_memmap()
149 if ( !mem ) in init_memmap()
158 if ( rangeset_add_range(mem, 0, max_t(unsigned long, max_page - 1, in init_memmap()
166 if ( rangeset_add_range(mem, PFN_DOWN(e->addr), in init_memmap()
280 rc = rangeset_claim_range(mem, 1, &m); in xg_alloc_unused_page()
289 return rangeset_remove_range(mem, mfn_x(mfn), mfn_x(mfn)); in xg_free_unused_page()
/xen/xen/arch/arm/efi/
A Defi-dom0.c110 const struct meminfo *mem, in acpi_create_efi_mmap_table() argument
121 for ( i = 0; i < mem->nr_banks; i++, desc++ ) in acpi_create_efi_mmap_table()
123 mem->bank[i].start, mem->bank[i].size); in acpi_create_efi_mmap_table()
136 * (mem->nr_banks + bootinfo.acpi.nr_banks + 1); in acpi_create_efi_mmap_table()
A Defi-boot.h126 static bool __init meminfo_add_bank(struct meminfo *mem, in meminfo_add_bank() argument
131 if ( mem->nr_banks >= NR_MEM_BANKS ) in meminfo_add_bank()
134 bank = &mem->bank[mem->nr_banks]; in meminfo_add_bank()
138 mem->nr_banks++; in meminfo_add_bank()
160 if ( !meminfo_add_bank(&bootinfo.mem, desc_ptr) ) in efi_process_memory_map_bootinfo()
/xen/xen/arch/x86/x86_emulate/
A Dx86_emulate.c809 } mem; member
3580 ea.mem.off = truncate_ea(ea.mem.off); in x86_decode()
3912 ea.mem.off = truncate_ea(ea.mem.off); in x86_emulate()
3949 if ( (rc = read_ulong(dst.mem.seg, dst.mem.off, in x86_emulate()
4241 else if ( (rc = read_ulong(ea.mem.seg, ea.mem.off, in x86_emulate()
4608 ((rc = ops->rep_movs(ea.mem.seg, src.mem.off, in x86_emulate()
4612 if ( (rc = read_ulong(ea.mem.seg, src.mem.off, in x86_emulate()
5915 if ( (rc = read_ulong(ea.mem.seg, ea.mem.off, in x86_emulate()
6735 rc = ops->read(ea.mem.seg, ea.mem.off, mmvalp, in x86_emulate()
11403 dst.mem = ea.mem; in x86_emulate()
[all …]
/xen/xen/common/efi/
A Druntime.c257 if ( info->mem.addr >= desc->PhysicalStart && in efi_get_info()
258 info->mem.addr < desc->PhysicalStart + len ) in efi_get_info()
260 info->mem.type = desc->Type; in efi_get_info()
261 info->mem.attr = desc->Attribute; in efi_get_info()
262 if ( info->mem.addr + info->mem.size < info->mem.addr || in efi_get_info()
263 info->mem.addr + info->mem.size > in efi_get_info()
265 info->mem.size = desc->PhysicalStart + len - in efi_get_info()
266 info->mem.addr; in efi_get_info()
/xen/xen/common/
A Ddevice_tree.c127 *mem = ROUNDUP(*mem, align); in unflatten_dt_alloc()
128 res = (void *)*mem; in unflatten_dt_alloc()
129 *mem += size; in unflatten_dt_alloc()
1731 return mem; in unflatten_dt_node()
1934 mem = unflatten_dt_node(fdt, mem, p, np, allnextpp, fpsize); in unflatten_dt_node()
1940 return mem; in unflatten_dt_node()
1944 return mem; in unflatten_dt_node()
1960 unsigned long start, mem, size; in __unflatten_device_tree() local
1980 ((__be32 *)mem)[size / 4] = cpu_to_be32(0xdeadbeef); in __unflatten_device_tree()
1982 dt_dprintk(" unflattening %lx...\n", mem); in __unflatten_device_tree()
[all …]
/xen/tools/debugger/kdd/
A Dkdd.c983 uint32_t len = s->rxp.cmd.mem.length_req; in kdd_handle_read_ctrl()
984 uint64_t val, addr = s->rxp.cmd.mem.addr; in kdd_handle_read_ctrl()
1040 s->txp.cmd.mem.addr = addr; in kdd_handle_read_ctrl()
1041 s->txp.cmd.mem.length_req = s->rxp.cmd.mem.length_req; in kdd_handle_read_ctrl()
1042 s->txp.cmd.mem.length_rsp = len; in kdd_handle_read_ctrl()
1078 uint32_t len = s->rxp.cmd.mem.length_req; in kdd_handle_memory_access()
1079 uint64_t addr = s->rxp.cmd.mem.addr; in kdd_handle_memory_access()
1114 s->txp.cmd.mem.addr = addr; in kdd_handle_memory_access()
1115 s->txp.cmd.mem.length_req = s->rxp.cmd.mem.length_req; in kdd_handle_memory_access()
1116 s->txp.cmd.mem.length_rsp = len; in kdd_handle_memory_access()
[all …]
/xen/xen/include/asm-arm/
A Dsetup.h69 struct meminfo mem; member
90 const struct meminfo *mem,
A Dkernel.h21 struct meminfo mem; member
/xen/tools/libxc/
A Dxc_dom_core.c95 static void print_mem(struct xc_dom_image *dom, const char *name, size_t mem) in print_mem() argument
97 if ( mem > (32 * 1024 * 1024) ) in print_mem()
98 DOMPRINTF("%-24s : %zd MB", name, mem / (1024 * 1024)); in print_mem()
99 else if ( mem > (32 * 1024) ) in print_mem()
100 DOMPRINTF("%-24s : %zd kB", name, mem / 1024); in print_mem()
102 DOMPRINTF("%-24s : %zd bytes", name, mem); in print_mem()
862 dom->kernel_blob = (void *)mem; in xc_dom_kernel_mem()
867 int xc_dom_module_mem(struct xc_dom_image *dom, const void *mem, in xc_dom_module_mem() argument
874 dom->modules[mod].blob = (void *)mem; in xc_dom_module_mem()
892 int xc_dom_devicetree_mem(struct xc_dom_image *dom, const void *mem, in xc_dom_devicetree_mem() argument
[all …]
/xen/tools/ocaml/xenstored/
A Dquota.ml33 if Hashtbl.mem quota.cur domid
49 if id > 0 && Hashtbl.mem quota.cur id then
66 if Hashtbl.mem quota.cur id then
A Dhistory.ml64 (* The "mem" call is an optimisation, to avoid calling f if we have picked con already. *)
65 (* Using a hash table rather than a list is to optimise the "mem" call. *)
69 && not (Hashtbl.mem acc hist_rec.con)
A Dsymbol.ml28 if Hashtbl.mem int_string_tbl !count
38 if Hashtbl.mem string_int_tbl name
/xen/tools/libxl/
A Dlibxl_mem.c29 char *mem, *endptr; in libxl_domain_setmaxmem() local
46 mem = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/memory/target", dompath)); in libxl_domain_setmaxmem()
47 if (!mem) { in libxl_domain_setmaxmem()
52 memorykb = strtoull(mem, &endptr, 10); in libxl_domain_setmaxmem()
55 mem, dompath); in libxl_domain_setmaxmem()
/xen/tools/tests/
A DMakefile10 SUBDIRS-y += mem-sharing

Completed in 60 milliseconds

123