/xen-4.10.0-shim-comet/xen/arch/x86/pv/ |
A D | ro-page-fault.c | 55 unsigned int rc = bytes; in ptwr_emulated_read() 83 (addr & (bytes - 1))) ) in ptwr_emulated_update() 86 ptwr_ctxt->cr2, addr, bytes); in ptwr_emulated_update() 91 if ( bytes != sizeof(paddr_t) ) in ptwr_emulated_update() 205 if ( (bytes > sizeof(paddr_t)) || (bytes & (bytes - 1)) || !bytes ) in ptwr_emulated_write() 208 offset, bytes); in ptwr_emulated_write() 212 memcpy(&val, p_data, bytes); in ptwr_emulated_write() 223 if ( (bytes > sizeof(paddr_t)) || (bytes & (bytes - 1)) ) in ptwr_emulated_cmpxchg() 226 offset, bytes); in ptwr_emulated_cmpxchg() 230 memcpy(&old, p_old, bytes); in ptwr_emulated_cmpxchg() [all …]
|
A D | emul-priv-op.c | 145 default: x.bytes[0] = ~0; in guest_io_okay() 147 case 1: x.bytes[1] = ~0; in guest_io_okay() 170 if ( (port == 0xcf8) && (bytes == 4) ) in admin_io_okay() 227 switch ( bytes ) in guest_io_read() 235 while ( bytes != 0 ) in guest_io_read() 278 bytes -= size; in guest_io_read() 355 switch ( bytes ) in guest_io_write() 372 while ( bytes != 0 ) in guest_io_write() 414 bytes -= size; in guest_io_write() 550 if ( limit < bytes - 1 || offset > limit - bytes + 1 ) in pv_emul_virt_to_linear() [all …]
|
A D | emul-gate-op.c | 121 unsigned int bytes, struct x86_emulate_ctxt *ctxt) in read_mem() argument 125 unsigned int rc = bytes, sel = 0; in read_mem() 168 if ( limit < bytes - 1 || offset > limit - bytes + 1 ) in read_mem() 173 if ( (rc = __copy_from_user(p_data, (void *)addr, bytes)) ) in read_mem() 180 x86_emul_pagefault(0, addr + bytes - rc, ctxt); in read_mem()
|
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/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-4.10.0-shim-comet/xen/arch/x86/hvm/ |
A D | emulate.c | 526 unsigned int nr_frames = ((linear + bytes - !!bytes) >> PAGE_SHIFT) - in hvmemul_map_linear_addr() 545 if ( bytes == 0 || in hvmemul_map_linear_addr() 635 unsigned int nr_frames = ((linear + bytes - !!bytes) >> PAGE_SHIFT) - in hvmemul_unmap_linear_addr() 640 ASSERT(bytes > 0); in hvmemul_unmap_linear_addr() 1029 unsigned int bytes, in __hvmemul_read() argument 1085 unsigned int bytes, in hvmemul_read() argument 1103 unsigned int bytes, in hvmemul_insn_fetch() argument 1115 if ( !bytes || in hvmemul_insn_fetch() 1150 unsigned int bytes, in hvmemul_write() argument 1194 unsigned int bytes, in hvmemul_write_discard() 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-4.10.0-shim-comet/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-4.10.0-shim-comet/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-4.10.0-shim-comet/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-4.10.0-shim-comet/xen/arch/x86/boot/ |
A D | reloc.c | 37 static u32 alloc_mem(u32 bytes) in alloc_mem() argument 39 return alloc -= ALIGN_UP(bytes, 16); in alloc_mem() 42 static void zero_mem(u32 s, u32 bytes) in zero_mem() argument 44 while ( bytes-- ) in zero_mem() 48 static u32 copy_mem(u32 src, u32 bytes) in copy_mem() argument 52 dst = alloc_mem(bytes); in copy_mem() 55 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-4.10.0-shim-comet/tools/blktap2/include/ |
A D | libvhd.h | 157 secs_round_up(uint64_t bytes) in secs_round_up() argument 159 return ((bytes + (VHD_SECTOR_SIZE - 1)) >> VHD_SECTOR_SHIFT); in secs_round_up() 163 secs_round_up_no_zero(uint64_t bytes) in secs_round_up_no_zero() argument 165 return (secs_round_up(bytes) ? : 1); in secs_round_up_no_zero() 175 vhd_bytes_padded(uint64_t bytes) in vhd_bytes_padded() argument 177 return vhd_sectors_to_bytes(secs_round_up_no_zero(bytes)); in vhd_bytes_padded() 251 int vhd_create(const char *name, uint64_t bytes, int type, vhd_flag_creat_t); 254 int vhd_snapshot(const char *snapshot, uint64_t bytes, const char *parent,
|
/xen-4.10.0-shim-comet/tools/fuzz/x86_instruction_emulator/ |
A D | fuzz-emul.c | 128 if ( !input_avail(s, bytes) ) in data_read() 146 input_read(s, dst, bytes); in data_read() 149 for ( i = 0; i < bytes; i++ ) in data_read() 161 unsigned int bytes, in fuzz_read() argument 178 return data_read(ctxt, seg, "read", p_data, bytes); in fuzz_read() 183 unsigned int bytes, in fuzz_read_io() argument 194 unsigned int bytes, in fuzz_insn_fetch() argument 210 if ( bytes == 0 ) in fuzz_insn_fetch() 333 unsigned int bytes, in fuzz_write() argument 348 unsigned int bytes, in fuzz_cmpxchg() argument [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/x86_emulate/ |
A D | x86_emulate.h | 211 unsigned int bytes, 225 unsigned int bytes, 236 unsigned int bytes, 250 unsigned int bytes, 342 unsigned int bytes, 352 unsigned int bytes, 619 unsigned int bytes, 629 void *p_data, unsigned int bytes,
|
A D | x86_emulate.c | 540 unsigned int bytes; member 1472 unsigned int bytes, in ioport_access_check() argument 2053 unsigned int bytes, in x86emul_unhandleable_rw() argument 2851 bytes = 1; in x86_decode() 2854 switch ( bytes ) in x86_decode() 3066 ea.bytes = 2; in x86_emulate() 3101 src.bytes = 2; in x86_emulate() 3810 src.bytes = dst.bytes = (d & ByteOp) ? 1 : op_bytes; in x86_emulate() 3830 dst.bytes = src.bytes; in x86_emulate() 3869 dst.bytes = src.bytes; in x86_emulate() [all …]
|
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/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-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | traps.h | 24 uint32_t guest_io_read(unsigned int port, unsigned int bytes, 26 void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/svm/ |
A D | svmdebug.c | 46 vmcb->tlb_control, vmcb_get_vintr(vmcb).bytes, in svm_vmcb_dump() 49 vmcb->eventinj.bytes, vmcb->eventinj.fields.v, in svm_vmcb_dump() 53 vmcb->exitcode, vmcb->exitintinfo.bytes); in svm_vmcb_dump() 75 vmcb_get_h_cr3(vmcb), vmcb->cleanbits.bytes); in svm_vmcb_dump() 159 vmcb->eventinj.bytes); in svm_vmcb_isvalid()
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | vsmc.c | 44 const uint8_t *bytes = uuid.a + n * 4; in fill_uid() local 47 r = bytes[0]; in fill_uid() 48 r |= bytes[1] << 8; in fill_uid() 49 r |= bytes[2] << 16; in fill_uid() 50 r |= bytes[3] << 24; in fill_uid()
|
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | tapdisk-interface.c | 235 td_prep_read(struct tiocb *tiocb, int fd, char *buf, size_t bytes, in td_prep_read() argument 238 tapdisk_prep_tiocb(tiocb, fd, 0, buf, bytes, offset, cb, arg); in td_prep_read() 242 td_prep_write(struct tiocb *tiocb, int fd, char *buf, size_t bytes, in td_prep_write() argument 245 tapdisk_prep_tiocb(tiocb, fd, 1, buf, bytes, offset, cb, arg); in td_prep_write()
|
/xen-4.10.0-shim-comet/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);
|