/xen/xen/arch/x86/pv/ |
A D | ro-page-fault.c | 42 unsigned int rc = bytes; in ptwr_emulated_read() 76 (addr & (bytes - 1))) ) in ptwr_emulated_update() 84 if ( bytes != sizeof(val) ) in ptwr_emulated_update() 212 if ( (bytes > sizeof(val)) || (bytes & (bytes - 1)) || !bytes ) in ptwr_emulated_write() 215 offset, bytes); in ptwr_emulated_write() 219 memcpy(&val, p_data, bytes); in ptwr_emulated_write() 231 if ( (bytes > sizeof(new)) || (bytes & (bytes - 1)) ) in ptwr_emulated_cmpxchg() 234 offset, bytes); in ptwr_emulated_cmpxchg() 238 memcpy(&old, p_old, bytes); in ptwr_emulated_cmpxchg() 239 memcpy(&new, p_new, bytes); in ptwr_emulated_cmpxchg() [all …]
|
A D | emul-priv-op.c | 184 default: x.bytes[0] = ~0; in guest_io_okay() 186 case 1: x.bytes[1] = ~0; in guest_io_okay() 209 if ( (port == 0xcf8) && (bytes == 4) ) in admin_io_okay() 266 switch ( bytes ) in guest_io_read() 274 while ( bytes != 0 ) in guest_io_read() 307 bytes -= size; in guest_io_read() 381 switch ( bytes ) in guest_io_write() 398 while ( bytes != 0 ) in guest_io_write() 428 bytes -= size; in guest_io_write() 563 if ( limit < bytes - 1 || offset > limit - bytes + 1 ) in pv_emul_virt_to_linear() [all …]
|
A D | emul-gate-op.c | 100 unsigned int bytes, struct x86_emulate_ctxt *ctxt) in read_mem() argument 104 unsigned int rc = bytes, sel = 0; in read_mem() 147 if ( limit < bytes - 1 || offset > limit - bytes + 1 ) in read_mem() 152 if ( (rc = __copy_from_user(p_data, (void *)addr, bytes)) ) in read_mem() 159 x86_emul_pagefault(0, addr + bytes - rc, ctxt); in read_mem()
|
/xen/xen/arch/x86/mm/shadow/ |
A D | hvm.c | 76 unsigned int bytes, in hvm_translate_virtual_addr() argument 113 unsigned int bytes, in hvm_read() argument 123 if ( rc || !bytes ) in hvm_read() 207 if ( rc || !bytes ) in hvm_emulate_write() 221 switch ( bytes ) in hvm_emulate_write() 256 if ( bytes > sizeof(long) ) in hvm_emulate_cmpxchg() 273 memcpy(&old, p_old, bytes); in hvm_emulate_cmpxchg() 277 switch ( bytes ) in hvm_emulate_cmpxchg() 484 if ( vaddr & (bytes - 1) ) in sh_emulate_map_dest() 650 && bytes <= 8) in sh_emulate_unmap_dest() [all …]
|
/xen/tools/xenstore/ |
A D | utils.c | 28 int bytes; in barf() local 34 bytes = vasprintf(&str, fmt, arglist); in barf() 37 if (bytes >= 0) { in barf() 47 int bytes, err = errno; in barf_perror() local 53 bytes = vasprintf(&str, fmt, arglist); in barf_perror() 56 if (bytes >= 0) { in barf_perror()
|
/xen/xen/arch/x86/hvm/ |
A D | emulate.c | 580 unsigned int nr_frames = ((linear + bytes - !!bytes) >> PAGE_SHIFT) - in hvmemul_map_linear_addr() 712 unsigned int nr_frames = ((linear + bytes - !!bytes) >> PAGE_SHIFT) - in hvmemul_unmap_linear_addr() 1255 unsigned int bytes, in __hvmemul_read() argument 1282 unsigned int bytes, in hvmemul_read() argument 1300 unsigned int bytes, in hvmemul_insn_fetch() argument 1312 if ( !bytes || in hvmemul_insn_fetch() 1347 unsigned int bytes, in hvmemul_write() argument 1378 switch ( bytes ) in hvmemul_write() 1394 unsigned int bytes, in hvmemul_rmw() argument 1448 unsigned int bytes, in hvmemul_blk() argument [all …]
|
A D | pmtimer.c | 156 int dir, unsigned int port, unsigned int bytes, uint32_t *val) in handle_evt_io() argument 174 for ( i = bytes, data = *val; in handle_evt_io() 197 bytes, *val, port); in handle_evt_io() 207 if ( bytes == 1 ) data &= 0xff; in handle_evt_io() 208 else if ( bytes == 2 ) data &= 0xffff; in handle_evt_io() 220 int dir, unsigned int port, unsigned int bytes, uint32_t *val) in handle_pmt_io() argument 226 if ( bytes != 4 || dir != IOREQ_READ ) in handle_pmt_io()
|
/xen/xen/arch/x86/ |
A D | pci.c | 14 uint32_t pci_conf_read(uint32_t cf8, uint8_t offset, uint8_t bytes) in pci_conf_read() argument 19 BUG_ON((offset + bytes) > 4); in pci_conf_read() 25 switch ( bytes ) in pci_conf_read() 46 void pci_conf_write(uint32_t cf8, uint8_t offset, uint8_t bytes, uint32_t data) in pci_conf_write() argument 50 BUG_ON((offset + bytes) > 4); in pci_conf_write() 56 switch ( bytes ) in pci_conf_write()
|
/xen/tools/xenpaging/ |
A D | file_ops.c | 30 int bytes; in file_op() local 38 bytes = fn(fd, page + total, PAGE_SIZE - total); in file_op() 39 if ( bytes <= 0 ) in file_op() 42 total += bytes; in file_op()
|
/xen/xen/arch/arm/arm32/lib/ |
A D | memzero.S | 21 blt 5f @ 1 bytes to align with? 40 blt 4f @ 1 have < 16 bytes 52 3: subs r1, r1, #64 @ 1 write 32 bytes out per loop 65 tst r1, #16 @ 1 16 bytes or more? 110 4: tst r1, #8 @ 1 8 bytes or more? 112 tst r1, #4 @ 1 4 bytes or more? 118 5: tst r1, #2 @ 1 2 bytes or more?
|
A D | memset.S | 40 stmgeia ip!, {r1, r3, r8, lr} @ 64 bytes at a time. 45 ldmeqfd sp!, {r8, pc} @ Now <64 bytes to go. 115 blt 5b @ 1 bytes to align with?
|
/xen/xen/arch/x86/x86_emulate/ |
A D | x86_emulate.h | 252 unsigned int bytes, 266 unsigned int bytes, 277 unsigned int bytes, 289 unsigned int bytes, 308 unsigned int bytes, 323 unsigned int bytes, 417 unsigned int bytes, 427 unsigned int bytes, 746 unsigned int bytes, 809 unsigned int bytes, [all …]
|
A D | x86_emulate.c | 794 unsigned int bytes; member 1843 unsigned int bytes, in ioport_access_check() argument 2527 unsigned int bytes, in x86emul_unhandleable_rw() argument 3514 bytes = 1; in x86_decode() 3780 ea.bytes = 2; in x86_emulate() 3815 src.bytes = 2; in x86_emulate() 4630 src.bytes = dst.bytes = (d & ByteOp) ? 1 : op_bytes; in x86_emulate() 4650 dst.bytes = src.bytes; in x86_emulate() 4689 dst.bytes = src.bytes; in x86_emulate() 5377 dst.bytes = src.bytes; in x86_emulate() [all …]
|
/xen/tools/libxl/ |
A D | libxl_genid.c | 38 ret = libxl__random_bytes(gc, id->bytes, LIBXL_MS_VM_GENID_LEN); in libxl_ms_vm_genid_generate() 51 return memcmp(id->bytes, zero.bytes, LIBXL_MS_VM_GENID_LEN) == 0; in libxl_ms_vm_genid_is_zero() 69 memcpy(genid, id->bytes, LIBXL_MS_VM_GENID_LEN); in libxl__ms_vm_genid_set()
|
A D | libxlu_vif.c | 13 static int vif_parse_rate_bytes_per_sec(XLU_Config *cfg, const char *bytes, in vif_parse_rate_bytes_per_sec() argument 22 if (regexec(&rec, bytes, 0, NULL, 0)) { in vif_parse_rate_bytes_per_sec() 23 xlu__vif_err(cfg, "invalid rate", bytes); in vif_parse_rate_bytes_per_sec() 28 p = bytes; in vif_parse_rate_bytes_per_sec() 31 xlu__vif_err(cfg, "rate overflow", bytes); in vif_parse_rate_bytes_per_sec()
|
/xen/tools/fuzz/x86_instruction_emulator/ |
A D | fuzz-emul.c | 137 if ( !input_avail(s, bytes) ) in data_read() 155 input_read(s, dst, bytes); in data_read() 158 for ( i = 0; i < bytes; i++ ) in data_read() 170 unsigned int bytes, in fuzz_read() argument 187 return data_read(ctxt, seg, "read", p_data, bytes); in fuzz_read() 192 unsigned int bytes, in fuzz_read_io() argument 203 unsigned int bytes, in fuzz_insn_fetch() argument 219 if ( bytes == 0 ) in fuzz_insn_fetch() 342 unsigned int bytes, in fuzz_write() argument 357 unsigned int bytes, in fuzz_cmpxchg() argument [all …]
|
/xen/xen/arch/arm/ |
A D | vsmc.c | 48 const uint8_t *bytes = uuid.a + n * 4; in fill_uid() local 51 r = bytes[0]; in fill_uid() 52 r |= bytes[1] << 8; in fill_uid() 53 r |= bytes[2] << 16; in fill_uid() 54 r |= bytes[3] << 24; in fill_uid()
|
/xen/xen/xsm/flask/ss/ |
A D | policydb.h | 284 static inline int next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry() argument 286 if ( bytes > fp->len ) in next_entry() 289 memcpy(buf, fp->data, bytes); in next_entry() 290 fp->data += bytes; in next_entry() 291 fp->len -= bytes; in next_entry()
|
/xen/xen/arch/x86/boot/ |
A D | reloc.c | 40 static u32 alloc_mem(u32 bytes) in alloc_mem() argument 42 return alloc -= ALIGN_UP(bytes, 16); in alloc_mem() 45 static void zero_mem(u32 s, u32 bytes) in zero_mem() argument 47 while ( bytes-- ) in zero_mem() 51 static u32 copy_mem(u32 src, u32 bytes) in copy_mem() argument 55 dst = alloc_mem(bytes); in copy_mem() 58 while ( bytes-- ) in copy_mem()
|
A D | mkelf32.c | 264 int bytes, todo, i = 1; in main() local 430 if ( (bytes = RAW_OFFSET - sizeof(out_ehdr) - (num_phdrs * sizeof(out_phdr)) ) < 0 ) in main() 435 do_write(outfd, buffer, bytes); in main() 437 for ( bytes = 0; bytes < dat_siz; bytes += todo ) in main() 439 todo = ((dat_siz - bytes) > sizeof(buffer)) ? in main() 440 sizeof(buffer) : (dat_siz - bytes); in main()
|
/xen/tools/libxc/ |
A D | xg_private.c | 32 unsigned int bytes; in xc_read_image() local 63 bytes = gzread(kernel_gfd, image + *size, CHUNK); in xc_read_image() 64 switch (bytes) in xc_read_image() 80 *size += bytes; in xc_read_image()
|
/xen/xen/common/ |
A D | debugtrace.c | 43 unsigned long bytes; in debugtrace_parse_param() local 50 bytes = parse_size_and_unit(s, &s); in debugtrace_parse_param() 55 debugtrace_bytes = MAX(bytes, PAGE_SIZE); in debugtrace_parse_param() 58 while ( (bytes = (debugtrace_bytes & (debugtrace_bytes - 1))) != 0 ) in debugtrace_parse_param() 59 debugtrace_bytes = bytes; in debugtrace_parse_param()
|
/xen/tools/ocaml/libs/xb/ |
A D | xb.mli | 68 type partial_buf = HaveHdr of Partial.pkt | NoHdr of int * bytes 79 val read_fd : backend_fd -> 'a -> bytes -> int -> int 80 val read_mmap : backend_mmap -> 'a -> bytes -> int -> int 81 val read : t -> bytes -> int -> int
|
/xen/stubdom/vtpmmgr/ |
A D | vtpmmgr.h | 104 inline TPM_RESULT vtpmmgr_rand(unsigned char* bytes, size_t num_bytes) { in vtpmmgr_rand() argument 105 return ctr_drbg_random(&vtpm_globals.ctr_drbg, bytes, num_bytes) == 0 ? 0 : TPM_FAIL; in vtpmmgr_rand()
|
/xen/stubdom/grub.patches/ |
A D | 30savedefault.diff | 44 + size_t bytes = 10; 45 + char line[bytes]; 47 + char buf[bytes]; 85 + fgets(line, bytes, fp);
|