/freebsd/contrib/bc/src/ |
H A D | vm.c | 78 BcVm* vm = &vm_data; variable 93 BcVm* vm = bcl_getspecific(); local 96 assert(BC_SIG_EXC(vm)); 101 bc_file_puts(&vm->ferr, bc_flush_none, "Longjmp: "); 102 bc_file_puts(&vm->ferr, bc_flush_none, f); 103 bc_file_putchar(&vm->ferr, bc_flush_none, '\n'); 104 bc_file_flush(&vm->ferr, bc_flush_none); 108 assert(vm->jmp_bufs.len - (size_t) vm->sig_pop); 111 if (vm->jmp_bufs.len == 0) abort(); 112 if (vm->sig_pop) bc_vec_pop(&vm->jmp_bufs); [all …]
|
H A D | library.c | 46 #include <vm.h> 119 * @param vm The @a BcVm to set as the thread data. 123 bcl_setspecific(BcVm* vm) in bcl_setspecific() argument 131 r = pthread_setspecific(tls_real, vm); in bcl_setspecific() 140 r = TlsSetValue(tls_real, vm); in bcl_setspecific() 151 BcVm* vm; in bcl_getspecific() local 155 vm = pthread_getspecific(tls_real); in bcl_getspecific() 159 vm = TlsGetValue(tls_real); in bcl_getspecific() 163 return vm; in bcl_getspecific() 170 BcVm* vm; in bcl_init() local 249 BcVm* vm = bcl_getspecific(); bcl_pushContext() local 264 BcVm* vm = bcl_getspecific(); bcl_popContext() local 270 bcl_contextHelper(BcVm * vm) bcl_contextHelper() argument 279 BcVm* vm = bcl_getspecific(); bcl_context() local 287 BcVm* vm = bcl_getspecific(); bcl_free() local 338 BcVm* vm = bcl_getspecific(); bcl_abortOnFatalError() local 346 BcVm* vm = bcl_getspecific(); bcl_setAbortOnFatalError() local 354 BcVm* vm = bcl_getspecific(); bcl_leadingZeroes() local 362 BcVm* vm = bcl_getspecific(); bcl_setLeadingZeroes() local 370 BcVm* vm = bcl_getspecific(); bcl_digitClamp() local 378 BcVm* vm = bcl_getspecific(); bcl_setDigitClamp() local 386 BcVm* vm = bcl_getspecific(); bcl_ctxt_create() local 473 BcVm* vm = bcl_getspecific(); bcl_err() local 551 BcVm* vm = bcl_getspecific(); bcl_num_create() local 595 BcVm* vm = bcl_getspecific(); bcl_num_free() local 615 BcVm* vm = bcl_getspecific(); bcl_copy() local 649 BcVm* vm = bcl_getspecific(); bcl_dup() local 695 BcVm* vm = bcl_getspecific(); bcl_num_neg() local 715 BcVm* vm = bcl_getspecific(); bcl_num_setNeg() local 735 BcVm* vm = bcl_getspecific(); bcl_num_scale() local 756 BcVm* vm = bcl_getspecific(); bcl_num_setScale() local 793 BcVm* vm = bcl_getspecific(); bcl_num_len() local 814 BcVm* vm = bcl_getspecific(); bcl_bigdig_helper() local 862 BcVm* vm = bcl_getspecific(); bcl_bigdig2num() local 900 BcVm* vm = bcl_getspecific(); bcl_binary() local 1045 BcVm* vm = bcl_getspecific(); bcl_sqrt_helper() local 1096 BcVm* vm = bcl_getspecific(); bcl_divmod_helper() local 1186 BcVm* vm = bcl_getspecific(); bcl_modexp_helper() local 1254 BcVm* vm = bcl_getspecific(); bcl_cmp() local 1277 BcVm* vm = bcl_getspecific(); bcl_zero() local 1297 BcVm* vm = bcl_getspecific(); bcl_one() local 1319 BcVm* vm = bcl_getspecific(); bcl_parse() local 1369 BcVm* vm = bcl_getspecific(); bcl_string_helper() local 1430 BcVm* vm = bcl_getspecific(); bcl_irand_helper() local 1490 BcVm* vm = bcl_getspecific(); bcl_frandHelper() local 1529 BcVm* vm = bcl_getspecific(); bcl_frand() local 1562 BcVm* vm = bcl_getspecific(); bcl_ifrandHelper() local 1594 BcVm* vm = bcl_getspecific(); bcl_ifrand_helper() local 1647 BcVm* vm = bcl_getspecific(); bcl_rand_seedWithNum_helper() local 1693 BcVm* vm = bcl_getspecific(); bcl_rand_seed() local 1717 BcVm* vm = bcl_getspecific(); bcl_rand_reseed() local 1729 BcVm* vm = bcl_getspecific(); bcl_rand_seed2num() local 1752 BcVm* vm = bcl_getspecific(); bcl_rand_int() local 1760 BcVm* vm = bcl_getspecific(); bcl_rand_bounded() local [all...] |
H A D | args.c | 62 if (vm->exprs.v == NULL) in bc_args_exprs() 64 bc_vec_init(&vm->exprs, sizeof(uchar), BC_DTOR_NONE); in bc_args_exprs() 67 bc_vec_concat(&vm->exprs, str); in bc_args_exprs() 68 bc_vec_concat(&vm->exprs, "\n"); in bc_args_exprs() 83 vm->file = file; in bc_args_file() 140 vm->redefined_kws[i] = true; in bc_args_redefine() 175 vm->flags |= BC_FLAG_DIGIT_CLAMP; in bc_args() 181 vm->flags &= ~BC_FLAG_DIGIT_CLAMP; in bc_args() 188 if (vm->no_exprs) in bc_args() 195 vm->exit_exprs = (exit_exprs || vm->exit_exprs); in bc_args() [all …]
|
H A D | read.c | 54 #include <vm.h> 146 bc_file_puts(&vm->fout, bc_flush_none, prompt); in bc_read_chars() 147 bc_file_flush(&vm->fout, bc_flush_none); in bc_read_chars() 151 if (bc_read_buf(vec, vm->buf, &vm->buf_len)) in bc_read_chars() 165 r = read(STDIN_FILENO, vm->buf + vm->buf_len, in bc_read_chars() 166 BC_VM_STDIN_BUF_SIZE - vm->buf_len); in bc_read_chars() 178 if (vm->status == (sig_atomic_t) BC_STATUS_QUIT) BC_JMP; in bc_read_chars() 180 assert(vm in bc_read_chars() [all...] |
/freebsd/sys/kern/ |
H A D | subr_vmem.c | 64 #include <vm/uma.h> 65 #include <vm/vm.h> 66 #include <vm/pmap.h> 67 #include <vm/vm_map.h> 68 #include <vm/vm_object.h> 69 #include <vm/vm_kern.h> 70 #include <vm/vm_extern.h> 71 #include <vm/vm_param.h> 72 #include <vm/vm_pag 197 VMEM_CONDVAR_INIT(vm,wchan) global() argument 198 VMEM_CONDVAR_DESTROY(vm) global() argument 199 VMEM_CONDVAR_WAIT(vm) global() argument 200 VMEM_CONDVAR_BROADCAST(vm) global() argument 202 VMEM_LOCK(vm) global() argument 203 VMEM_TRYLOCK(vm) global() argument 204 VMEM_UNLOCK(vm) global() argument 205 VMEM_LOCK_INIT(vm,name) global() argument 206 VMEM_LOCK_DESTROY(vm) global() argument 207 VMEM_ASSERT_LOCKED(vm) global() argument 268 _bt_fill(vmem_t * vm,int flags) _bt_fill() argument 309 bt_fill(vmem_t * vm,int flags) bt_fill() argument 320 bt_alloc(vmem_t * vm) bt_alloc() argument 338 bt_freetrim(vmem_t * vm,int freelimit) bt_freetrim() argument 359 bt_free(vmem_t * vm,bt_t * bt) bt_free() argument 373 bt_save(vmem_t * vm) bt_save() argument 381 bt_restore(vmem_t * vm) bt_restore() argument 400 bt_freehead_tofree(vmem_t * vm,vmem_size_t size) bt_freehead_tofree() argument 422 bt_freehead_toalloc(vmem_t * vm,vmem_size_t size,int strat) bt_freehead_toalloc() argument 443 bt_hashhead(vmem_t * vm,vmem_addr_t addr) bt_hashhead() argument 455 bt_lookupbusy(vmem_t * vm,vmem_addr_t addr) bt_lookupbusy() argument 472 bt_rembusy(vmem_t * vm,bt_t * bt) bt_rembusy() argument 483 bt_insbusy(vmem_t * vm,bt_t * bt) bt_insbusy() argument 499 bt_remseg(vmem_t * vm,bt_t * bt) bt_remseg() argument 508 bt_insseg(vmem_t * vm,bt_t * bt,bt_t * prev) bt_insseg() argument 515 bt_insseg_tail(vmem_t * vm,bt_t * bt) bt_insseg_tail() argument 531 bt_insfree(vmem_t * vm,bt_t * bt) bt_insfree() argument 581 qc_init(vmem_t * vm,vmem_size_t qcache_max) qc_init() argument 606 qc_destroy(vmem_t * vm) qc_destroy() argument 617 qc_drain(vmem_t * vm) qc_drain() argument 728 vmem_rehash(vmem_t * vm,vmem_size_t newhashsize) vmem_rehash() argument 778 vmem_t *vm; vmem_periodic() local 826 vmem_add1(vmem_t * vm,vmem_addr_t addr,vmem_size_t size,int type) vmem_add1() argument 875 vmem_destroy1(vmem_t * vm) vmem_destroy1() argument 905 vmem_import(vmem_t * vm,vmem_size_t size,vmem_size_t align,int flags) vmem_import() argument 994 vmem_clip(vmem_t * vm,bt_t * bt,vmem_addr_t start,vmem_size_t size) vmem_clip() argument 1036 vmem_try_fetch(vmem_t * vm,const vmem_size_t size,vmem_size_t align,int flags) vmem_try_fetch() argument 1077 vmem_try_release(vmem_t * vm,struct vmem_btag * bt,const bool remfree) vmem_try_release() argument 1111 vmem_xalloc_nextfit(vmem_t * vm,const vmem_size_t size,vmem_size_t align,const vmem_size_t phase,const vmem_size_t nocross,int flags,vmem_addr_t * addrp) vmem_xalloc_nextfit() argument 1199 vmem_set_import(vmem_t * vm,vmem_import_t * importfn,vmem_release_t * releasefn,void * arg,vmem_size_t import_quantum) vmem_set_import() argument 1213 vmem_set_limit(vmem_t * vm,vmem_size_t limit) vmem_set_limit() argument 1222 vmem_set_reclaim(vmem_t * vm,vmem_reclaim_t * reclaimfn) vmem_set_reclaim() argument 1234 vmem_init(vmem_t * vm,const char * name,vmem_addr_t base,vmem_size_t size,vmem_size_t quantum,vmem_size_t qcache_max,int flags) vmem_init() argument 1291 vmem_t *vm; vmem_create() local 1303 vmem_destroy(vmem_t * vm) vmem_destroy() argument 1314 vmem_roundup_size(vmem_t * vm,vmem_size_t size) vmem_roundup_size() argument 1324 vmem_alloc(vmem_t * vm,vmem_size_t size,int flags,vmem_addr_t * addrp) vmem_alloc() argument 1353 vmem_xalloc(vmem_t * vm,const vmem_size_t size0,vmem_size_t align,const vmem_size_t phase,const vmem_size_t nocross,const vmem_addr_t minaddr,const vmem_addr_t maxaddr,int flags,vmem_addr_t * addrp) vmem_xalloc() argument 1464 vmem_free(vmem_t * vm,vmem_addr_t addr,vmem_size_t size) vmem_free() argument 1478 vmem_xfree(vmem_t * vm,vmem_addr_t addr,vmem_size_t size __unused) vmem_xfree() argument 1524 vmem_add(vmem_t * vm,vmem_addr_t addr,vmem_size_t size,int flags) vmem_add() argument 1543 vmem_size(vmem_t * vm,int typemask) vmem_size() argument 1638 vmem_whatis_lookup(vmem_t * vm,vmem_addr_t addr) vmem_whatis_lookup() argument 1657 vmem_t *vm; vmem_whatis() local 1676 const vmem_t *vm; vmem_printall() local 1686 const vmem_t *vm = (const void *)addr; vmem_print() local 1704 const vmem_t *vm; DB_SHOW_ALL_COMMAND() local 1712 const vmem_t *vm = (const void *)addr; DB_SHOW_COMMAND() local 1757 const vmem_t *vm; DB_SHOW_ALL_COMMAND() local 1769 vmem_check_sanity(vmem_t * vm) vmem_check_sanity() argument 1814 vmem_check(vmem_t * vm) vmem_check() argument [all...] |
/freebsd/sys/riscv/vmm/ |
H A D | vmm.c | 89 struct vm *vm; /* (o) */ member 134 struct vm { struct 175 static void vm_free_memmap(struct vm *vm, int ident); argument 176 static bool sysmem_mapping(struct vm *vm, struct mem_map *mm); 203 vcpu_alloc(struct vm *vm, int vcpu_id) in vcpu_alloc() argument 207 KASSERT(vcpu_id >= 0 && vcpu_id < vm->maxcpus, in vcpu_alloc() 215 vcpu->vm = vm; in vcpu_alloc() 224 vcpu->cookie = vmmops_vcpu_init(vcpu->vm->cookie, vcpu, vcpu->vcpuid); in vcpu_init() 301 vm_init(struct vm *vm, bool create) in vm_init() argument 305 vm->cookie = vmmops_init(vm, vmspace_pmap(vm->vmspace)); in vm_init() [all …]
|
/freebsd/sys/arm64/vmm/ |
H A D | vmm.c | 85 struct vm *vm; /* (o) */ member 139 struct vm { struct 238 static void vm_free_memmap(struct vm *vm, int ident); 239 static bool sysmem_mapping(struct vm *vm, struct mem_map *mm); 302 vcpu_alloc(struct vm *vm, int vcpu_id) in vcpu_alloc() argument 306 KASSERT(vcpu_id >= 0 && vcpu_id < vm->maxcpus, in vcpu_alloc() 314 vcpu->vm = vm; in vcpu_alloc() 323 vcpu->cookie = vmmops_vcpu_init(vcpu->vm->cookie, vcpu, vcpu->vcpuid); in vcpu_init() 405 vm_init(struct vm *vm, bool create) in vm_init() argument 409 vm->cookie = vmmops_init(vm, vmspace_pmap(vm->vmspace)); in vm_init() [all …]
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm.c | 108 struct vm *vm; /* (o) */ member 162 struct vm { struct 198 VCPU_CTR0((vcpu)->vm, (vcpu)->vcpuid, format) argument 201 VCPU_CTR1((vcpu)->vm, (vcpu)->vcpuid, format, p1) 204 VCPU_CTR2((vcpu)->vm, (vcpu)->vcpuid, format, p1, p2) 207 VCPU_CTR3((vcpu)->vm, (vcpu)->vcpuid, format, p1, p2, p3) 210 VCPU_CTR4((vcpu)->vm, (vcpu)->vcpuid, format, p1, p2, p3, p4) 237 DEFINE_VMMOPS_IFUNC(void *, init, (struct vm *vm, struct pmap *pmap)) 297 static void vm_free_memmap(struct vm *vm, int ident); 298 static bool sysmem_mapping(struct vm *vm, struct mem_map *mm); [all …]
|
/freebsd/sys/riscv/include/ |
H A D | vmm.h | 110 struct vm; 125 int vm_create(const char *name, struct vm **retvm); 126 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 127 void vm_disable_vcpu_creation(struct vm *vm); 128 void vm_slock_vcpus(struct vm *vm); 129 void vm_unlock_vcpus(struct vm *vm); 130 void vm_destroy(struct vm *vm); 131 int vm_reinit(struct vm *vm); 132 const char *vm_name(struct vm *vm); 137 void vm_slock_memsegs(struct vm *vm); [all …]
|
/freebsd/sys/arm64/include/ |
H A D | vmm.h | 129 struct vm; 144 int vm_create(const char *name, struct vm **retvm); 145 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 146 void vm_disable_vcpu_creation(struct vm *vm); 147 void vm_slock_vcpus(struct vm *vm); 148 void vm_unlock_vcpus(struct vm *vm); 149 void vm_destroy(struct vm *vm); 150 int vm_reinit(struct vm *vm); 151 const char *vm_name(struct vm *vm); 156 void vm_slock_memsegs(struct vm *vm); [all …]
|
/freebsd/lib/libkvm/ |
H A D | kvm_powerpc.c | 94 struct vmstate *vm; in powerpc_maphdrs() local 97 vm = kd->vmst; in powerpc_maphdrs() 99 vm->mapsz = sizeof(*vm->eh) + sizeof(struct kerneldumpheader); in powerpc_maphdrs() 100 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 101 if (vm->map == MAP_FAILED) { in powerpc_maphdrs() 105 vm->dmphdrsz = 0; in powerpc_maphdrs() 106 vm->eh = vm->map; in powerpc_maphdrs() 107 if (!valid_elf_header(vm->eh)) { in powerpc_maphdrs() 114 vm->dmphdrsz = dump_header_size(vm->map); in powerpc_maphdrs() 115 if (vm->dmphdrsz == 0) in powerpc_maphdrs() [all …]
|
H A D | kvm_powerpc64.c | 96 struct vmstate *vm; in powerpc_maphdrs() local 99 vm = kd->vmst; in powerpc_maphdrs() 101 vm->mapsz = sizeof(*vm->eh) + sizeof(struct kerneldumpheader); in powerpc_maphdrs() 102 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 103 if (vm->map == MAP_FAILED) { in powerpc_maphdrs() 107 vm->dmphdrsz = 0; in powerpc_maphdrs() 108 vm->eh = vm->map; in powerpc_maphdrs() 109 if (!valid_elf_header(kd, vm->eh)) { in powerpc_maphdrs() 116 vm->dmphdrsz = dump_header_size(vm->map); in powerpc_maphdrs() 117 if (vm->dmphdrsz == 0) in powerpc_maphdrs() [all …]
|
H A D | kvm_arm.c | 67 struct vmstate *vm = kd->vmst; in _kvm_pa2off() local 71 p = vm->phdr; in _kvm_pa2off() 72 n = vm->phnum; in _kvm_pa2off() 87 struct vmstate *vm = kd->vmst; in _arm_freevtop() local 89 free(vm->phdr); in _arm_freevtop() 90 free(vm); in _arm_freevtop() 105 struct vmstate *vm; in _arm_initvtop() local 118 vm = _kvm_malloc(kd, sizeof(*vm)); in _arm_initvtop() 119 if (vm == NULL) { in _arm_initvtop() 123 kd->vmst = vm; in _arm_initvtop() [all …]
|
/freebsd/sys/amd64/include/ |
H A D | vmm.h | 151 struct vm; 175 typedef void * (*vmi_init_func_t)(struct vm *vm, struct pmap *pmap); 227 int vm_create(const char *name, struct vm **retvm); 228 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 229 void vm_disable_vcpu_creation(struct vm *vm); 230 void vm_slock_vcpus(struct vm *vm); 231 void vm_unlock_vcpus(struct vm *vm); 232 void vm_destroy(struct vm *vm); 233 int vm_reinit(struct vm *vm); 234 const char *vm_name(struct vm *vm); [all …]
|
/freebsd/contrib/bc/include/ |
H A D | status.h | 679 #define BC_SIG_EXC(vm) \ argument 680 BC_UNLIKELY((vm)->status != (sig_atomic_t) BC_STATUS_SUCCESS || (vm)->sig) 683 #define BC_NO_SIG_EXC(vm) \ argument 684 BC_LIKELY((vm)->status == (sig_atomic_t) BC_STATUS_SUCCESS && !(vm)->sig) 687 #define BC_SIG_INTERRUPT(vm) \ argument 688 BC_UNLIKELY((vm)->sig != 0 && (vm)->sig != SIGWINCH) 690 #define BC_SIG_INTERRUPT(vm) BC_UNLIKELY((vm)->sig != 0) argument 702 assert(vm->sig_lock); \ 713 assert(vm->sig_lock == 0); \ 738 vm->sig_lock = 1; \ [all …]
|
/freebsd/sys/amd64/vmm/io/ |
H A D | vatpic.h | 39 struct vatpic *vatpic_init(struct vm *vm); 42 int vatpic_master_handler(struct vm *vm, bool in, int port, int bytes, 44 int vatpic_slave_handler(struct vm *vm, bool in, int port, int bytes, 46 int vatpic_elc_handler(struct vm *vm, bool in, int port, int bytes, 49 int vatpic_assert_irq(struct vm *vm, int irq); 50 int vatpic_deassert_irq(struct vm *vm, int irq); 51 int vatpic_pulse_irq(struct vm *vm, int irq); 52 int vatpic_set_irq_trigger(struct vm *vm, int irq, enum vm_intr_trigger trigger); 54 void vatpic_pending_intr(struct vm *vm, int *vecptr); 55 void vatpic_intr_accepted(struct vm *vm, int vector);
|
H A D | ppt.h | 32 int ppt_unassign_all(struct vm *vm); 33 int ppt_map_mmio(struct vm *vm, int bus, int slot, int func, 35 int ppt_unmap_mmio(struct vm *vm, int bus, int slot, int func, 37 int ppt_setup_msi(struct vm *vm, int bus, int slot, int func, 39 int ppt_setup_msix(struct vm *vm, int bus, int slot, int func, 41 int ppt_disable_msix(struct vm *vm, int bus, int slot, int func); 42 int ppt_assigned_devices(struct vm *vm); 43 bool ppt_is_mmio(struct vm *vm, vm_paddr_t gpa); 55 int ppt_assign_device(struct vm *vm, int bus, int slot, int func); 56 int ppt_unassign_device(struct vm *vm, int bus, int slot, int func);
|
H A D | vrtc.h | 37 struct vrtc *vrtc_init(struct vm *vm); 41 time_t vrtc_get_time(struct vm *vm); 42 int vrtc_set_time(struct vm *vm, time_t secs); 43 int vrtc_nvram_write(struct vm *vm, int offset, uint8_t value); 44 int vrtc_nvram_read(struct vm *vm, int offset, uint8_t *retval); 46 int vrtc_addr_handler(struct vm *vm, bool in, int port, int bytes, 48 int vrtc_data_handler(struct vm *vm, bool in, int port, int bytes,
|
H A D | vioapic.h | 39 struct vioapic *vioapic_init(struct vm *vm); 42 int vioapic_assert_irq(struct vm *vm, int irq); 43 int vioapic_deassert_irq(struct vm *vm, int irq); 44 int vioapic_pulse_irq(struct vm *vm, int irq); 51 int vioapic_pincount(struct vm *vm); 52 void vioapic_process_eoi(struct vm *vm, int vector);
|
H A D | vrtc.c | 77 struct vm *vm; member 288 struct vm *vm = vrtc->vm; in rtc_to_secs() local 300 VM_CTR2(vm, "Invalid RTC sec %#x/%d", rtc->sec, ct.sec); in rtc_to_secs() 306 VM_CTR2(vm, "Invalid RTC min %#x/%d", rtc->min, ct.min); in rtc_to_secs() 336 VM_CTR2(vm, "Invalid RTC 12-hour format %#x/%d", in rtc_to_secs() 343 VM_CTR2(vm, "Invalid RTC hour %#x/%d", rtc->hour, ct.hour); in rtc_to_secs() 357 VM_CTR2(vm, "Invalid RTC mday %#x/%d", rtc->day_of_month, in rtc_to_secs() 364 VM_CTR2(vm, "Invalid RTC month %#x/%d", rtc->month, ct.mon); in rtc_to_secs() 370 VM_CTR2(vm, "Invalid RTC year %#x/%d", rtc->year, year); in rtc_to_secs() 377 VM_CTR2(vm, "Invalid RTC century %#x/%d", rtc->century, in rtc_to_secs() [all …]
|
H A D | ppt.c | 84 struct vm *vm; /* owner of this device */ member 179 if (ppt->vm != NULL) in ppt_detach() 202 ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp) in ppt_find() argument 219 if (ppt->vm != vm) /* Make sure we own this device */ in ppt_find() 226 ppt_unmap_all_mmio(struct vm *vm, struct pptdev *ppt) in ppt_unmap_all_mmio() argument 235 (void)vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_all_mmio() 335 ppt_assigned_devices(struct vm *vm) in ppt_assigned_devices() argument 342 if (ppt->vm == vm) in ppt_assigned_devices() 349 ppt_is_mmio(struct vm *vm, vm_paddr_t gpa) in ppt_is_mmio() argument 356 if (ppt->vm != vm) in ppt_is_mmio() [all …]
|
H A D | vatpic.c | 87 struct vm *vm; member 94 VM_CTR0((vatpic)->vm, fmt) 97 VM_CTR1((vatpic)->vm, fmt, a1) 100 VM_CTR2((vatpic)->vm, fmt, a1, a2) 103 VM_CTR3((vatpic)->vm, fmt, a1, a2, a3) 106 VM_CTR4((vatpic)->vm, fmt, a1, a2, a3, a4) 263 lapic_set_local_intr(vatpic->vm, NULL, APIC_LVT_LINT0); in vatpic_notify_intr() 264 vioapic_pulse_irq(vatpic->vm, 0); in vatpic_notify_intr() 462 vatpic_set_irqstate(struct vm *vm, int irq, enum irqstate irqstate) in vatpic_set_irqstate() argument 470 vatpic = vm_atpic(vm); in vatpic_set_irqstate() [all …]
|
/freebsd/sys/dev/vmm/ |
H A D | vmm_ktr.h | 39 #define VCPU_CTR0(vm, vcpuid, format) \ argument 40 CTR2(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid)) 42 #define VCPU_CTR1(vm, vcpuid, format, p1) \ argument 43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1)) 45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ argument 46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2)) 48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ argument 49 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3)) 51 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ argument 52 CTR6(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), \ [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEInstrIntrinsicVL.gen.td | 67 …ssml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTrrvml i64:$sy, i64:$sz, v256f64:$vx,… 68 …ml v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTirvml (LO7 $I), i64:$sz, v256f64:$vx,… 71 …sml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCrrvml i64:$sy, i64:$sz, v256f64:$vx… 72 …l v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCirvml (LO7 $I), i64:$sz, v256f64:$vx… 75 …sml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTOTrrvml i64:$sy, i64:$sz, v256f64:$vx… 76 …l v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTOTirvml (LO7 $I), i64:$sz, v256f64:$vx… 79 …ml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCOTrrvml i64:$sy, i64:$sz, v256f64:$v… 80 … v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCOTirvml (LO7 $I), i64:$sz, v256f64:$v… 83 …sml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTUrrvml i64:$sy, i64:$sz, v256f64:$vx,… 84 …ml v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTUirvml (LO7 $I), i64:$sz, v256f64:$vx… [all …]
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_vc_iflib.c | 130 struct virtchnl_irq_map_info *vm; in iavf_map_queues() local 146 vm = malloc(len, M_IAVF, M_NOWAIT); in iavf_map_queues() 147 if (!vm) { in iavf_map_queues() 152 vm->num_vectors = scctx->isc_vectors; in iavf_map_queues() 155 vm->vecmap[i].vsi_id = sc->vsi_res->vsi_id; in iavf_map_queues() 156 vm->vecmap[i].vector_id = i + 1; /* first is adminq */ in iavf_map_queues() 158 vm->vecmap[i].txq_map = (1 << rx_que->rxr.me); in iavf_map_queues() 159 vm->vecmap[i].rxq_map = (1 << rx_que->rxr.me); in iavf_map_queues() 160 vm->vecmap[i].rxitr_idx = 0; in iavf_map_queues() 161 vm->vecmap[i].txitr_idx = 1; in iavf_map_queues() [all …]
|