| /xen/xen/arch/x86/pv/ |
| A D | ro-page-fault.c | 37 unsigned int rc = bytes; in ptwr_emulated_read() 86 (addr & (bytes - 1))) ) in ptwr_emulated_update() 94 if ( bytes != sizeof(val) ) in ptwr_emulated_update() 222 if ( (bytes > sizeof(val)) || (bytes & (bytes - 1)) || !bytes ) in ptwr_emulated_write() 225 offset, bytes); in ptwr_emulated_write() 229 memcpy(&val, p_data, bytes); in ptwr_emulated_write() 241 if ( (bytes > sizeof(new)) || (bytes & (bytes - 1)) ) in ptwr_emulated_cmpxchg() 244 offset, bytes); in ptwr_emulated_cmpxchg() 248 memcpy(&old, p_old, bytes); in ptwr_emulated_cmpxchg() 249 memcpy(&new, p_new, bytes); in ptwr_emulated_cmpxchg() [all …]
|
| A D | emul-priv-op.c | 182 default: x.bytes[0] = ~0; in guest_io_okay() 184 case 1: x.bytes[1] = ~0; in guest_io_okay() 211 if ( is_cmos_port(port, bytes, d) ) in admin_io_okay() 264 switch ( bytes ) in guest_io_read() 272 while ( bytes != 0 ) in guest_io_read() 316 bytes -= size; in guest_io_read() 389 switch ( bytes ) in _guest_io_write() 419 while ( bytes != 0 ) in guest_io_write() 456 bytes -= size; in guest_io_write() 592 if ( limit < bytes - 1 || offset > limit - bytes + 1 ) in pv_emul_virt_to_linear() [all …]
|
| A D | emul-gate-op.c | 89 unsigned int bytes, struct x86_emulate_ctxt *ctxt) in read_mem() argument 93 unsigned int rc = bytes, sel = 0; in read_mem() 136 if ( limit < bytes - 1 || offset > limit - bytes + 1 ) in read_mem() 141 if ( (rc = __copy_from_guest_pv(p_data, (void __user *)addr, bytes)) ) in read_mem() 148 x86_emul_pagefault(0, addr + bytes - rc, ctxt); in read_mem() 156 unsigned int bytes, struct x86_emulate_ctxt *ctxt) in fetch() argument 158 return read_mem(x86_seg_cs, offset, p_data, bytes, ctxt); in fetch()
|
| /xen/tools/xenstored/ |
| A D | utils.c | 29 int bytes; in barf() local 35 bytes = vasprintf(&str, fmt, arglist); in barf() 38 if (bytes >= 0) { in barf() 49 int bytes, err = errno; in barf_perror() local 55 bytes = vasprintf(&str, fmt, arglist); in barf_perror() 58 if (bytes >= 0) { in barf_perror()
|
| /xen/xen/arch/x86/mm/shadow/ |
| A D | hvm.c | 64 unsigned int bytes, in hvm_translate_virtual_addr() argument 101 unsigned int bytes, in hvm_read() argument 111 if ( rc || !bytes ) in hvm_read() 192 if ( rc || !bytes ) in hvm_emulate_write() 206 switch ( bytes ) in hvm_emulate_write() 241 if ( bytes > sizeof(long) ) in hvm_emulate_cmpxchg() 258 memcpy(&old, p_old, bytes); in hvm_emulate_cmpxchg() 262 switch ( bytes ) in hvm_emulate_cmpxchg() 469 if ( vaddr & (bytes - 1) ) in sh_emulate_map_dest() 635 && bytes <= 8) in sh_emulate_unmap_dest() [all …]
|
| /xen/xen/arch/x86/hvm/ |
| A D | emulate.c | 576 unsigned int nr_frames = ((linear + bytes - !!bytes) >> PAGE_SHIFT) - in hvmemul_map_linear_addr() 713 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 1299 unsigned int bytes, in hvmemul_insn_fetch() argument 1311 if ( !bytes || in hvmemul_insn_fetch() 1346 unsigned int bytes, in hvmemul_write() argument 1377 switch ( bytes ) in hvmemul_write() 1393 unsigned int bytes, in hvmemul_rmw() argument 1447 unsigned int bytes, in hvmemul_blk() argument [all …]
|
| A D | pmtimer.c | 146 int dir, unsigned int port, unsigned int bytes, uint32_t *val) in handle_evt_io() argument 164 for ( i = bytes, data = *val; in handle_evt_io() 187 bytes, *val, port); in handle_evt_io() 197 if ( bytes == 1 ) data &= 0xff; in handle_evt_io() 198 else if ( bytes == 2 ) data &= 0xffff; in handle_evt_io() 210 int dir, unsigned int port, unsigned int bytes, uint32_t *val) in handle_pmt_io() argument 216 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/xen/arch/x86/x86_emulate/ |
| A D | blk.c | 23 unsigned int bytes, in x86_emul_blk() argument 37 uint8_t bytes[10]; in x86_emul_blk() member 48 ASSERT(bytes == 64); in x86_emul_blk() 76 switch ( bytes ) in x86_emul_blk() 137 if ( bytes == sizeof(*env) ) in x86_emul_blk() 169 switch ( bytes ) in x86_emul_blk() 256 ASSERT(bytes == sizeof(*fxsr)); in x86_emul_blk() 257 ASSERT(s->op_bytes <= bytes); in x86_emul_blk() 303 ASSERT(bytes == sizeof(*fxsr)); in x86_emul_blk() 304 ASSERT(s->op_bytes <= bytes); in x86_emul_blk() [all …]
|
| A D | x86_emulate.h | 240 unsigned int bytes, 253 unsigned int bytes, 264 unsigned int bytes, 276 unsigned int bytes, 295 unsigned int bytes, 310 unsigned int bytes, 404 unsigned int bytes, 414 unsigned int bytes, 738 unsigned int bytes, 801 unsigned int bytes, [all …]
|
| A D | fpu.c | 52 #define emulate_fpu_insn_stub(bytes...) \ argument 54 unsigned int nr_ = sizeof((uint8_t[]){ bytes }); \ 55 memcpy(get_stub(stub), ((uint8_t[]){ bytes, 0xc3 }), nr_ + 1); \ 60 #define emulate_fpu_insn_stub_eflags(bytes...) \ argument 62 unsigned int nr_ = sizeof((uint8_t[]){ bytes }); \ 64 memcpy(get_stub(stub), ((uint8_t[]){ bytes, 0xc3 }), nr_ + 1); \ 174 dst->bytes = 4; in x86emul_fpu() 209 dst->bytes = 2; in x86emul_fpu() 354 dst->bytes = 8; in x86emul_fpu() 422 dst->bytes = 2; in x86emul_fpu()
|
| A D | x86_emulate.c | 725 unsigned int bytes, in ioport_access_check() argument 1204 unsigned int bytes, in x86emul_unhandleable_rw() argument 1306 src.bytes = 1; in x86_emulate() 1320 ea.bytes = 2; in x86_emulate() 1355 src.bytes = 2; in x86_emulate() 2174 src.bytes = dst.bytes = (d & ByteOp) ? 1 : op_bytes; in x86_emulate() 2194 dst.bytes = src.bytes; in x86_emulate() 2233 dst.bytes = src.bytes; in x86_emulate() 2554 dst.bytes = src.bytes; in x86_emulate() 4019 dst.bytes = 4; in x86_emulate() [all …]
|
| /xen/tools/xenpaging/ |
| A D | file_ops.c | 30 int bytes; in file_op() local 38 bytes = fn(fd, page + total, XC_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?
|
| /xen/tools/libs/light/ |
| 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()
|
| /xen/tools/libs/util/ |
| A D | libxlu_vif.c | 14 static int vif_parse_rate_bytes_per_sec(XLU_Config *cfg, const char *bytes, in vif_parse_rate_bytes_per_sec() argument 23 if (regexec(&rec, bytes, 0, NULL, 0)) { in vif_parse_rate_bytes_per_sec() 24 xlu__vif_err(cfg, "invalid rate", bytes); in vif_parse_rate_bytes_per_sec() 29 p = bytes; in vif_parse_rate_bytes_per_sec() 32 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 202 unsigned int bytes, in fuzz_insn_fetch() argument 216 if ( bytes == 0 ) in fuzz_insn_fetch() 339 unsigned int bytes, in fuzz_write() argument 354 unsigned int bytes, in fuzz_cmpxchg() argument [all …]
|
| /xen/xen/arch/arm/ |
| A D | vsmc.c | 41 const uint8_t *bytes = uuid.a + n * 4; in fill_uid() local 44 r = bytes[0]; in fill_uid() 45 r |= bytes[1] << 8; in fill_uid() 46 r |= bytes[2] << 16; in fill_uid() 47 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/tools/libs/guest/ |
| 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/xen/arch/x86/boot/ |
| A D | reloc.c | 75 static u32 alloc_mem(u32 bytes) in alloc_mem() argument 77 return alloc -= ALIGN_UP(bytes, 16); in alloc_mem() 80 static void zero_mem(u32 s, u32 bytes) in zero_mem() argument 82 while ( bytes-- ) in zero_mem() 86 static u32 copy_mem(u32 src, u32 bytes) in copy_mem() argument 90 dst = alloc_mem(bytes); in copy_mem() 93 while ( bytes-- ) in copy_mem()
|
| A D | mkelf32.c | 264 int bytes, todo, i = 1; in main() local 443 if ( (bytes = RAW_OFFSET - sizeof(out_ehdr) - (num_phdrs * sizeof(out_phdr)) ) < 0 ) in main() 448 do_write(outfd, buffer, bytes); in main() 450 for ( bytes = 0; bytes < dat_siz; bytes += todo ) in main() 452 todo = ((dat_siz - bytes) > sizeof(buffer)) ? in main() 453 sizeof(buffer) : (dat_siz - bytes); in main()
|
| /xen/tools/ocaml/libs/xb/ |
| A D | xb.mli | 68 type partial_buf = HaveHdr of Partial.pkt | NoHdr of int * bytes 74 val read_fd : backend_fd -> 'a -> bytes -> int -> int 75 val read_mmap : backend_mmap -> 'a -> bytes -> int -> int 76 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()
|