Lines Matching refs:val
3578 unsigned int old, val, grow, grow_start; in grow_halt_poll_ns() local
3580 old = val = vcpu->halt_poll_ns; in grow_halt_poll_ns()
3586 val *= grow; in grow_halt_poll_ns()
3587 if (val < grow_start) in grow_halt_poll_ns()
3588 val = grow_start; in grow_halt_poll_ns()
3590 vcpu->halt_poll_ns = val; in grow_halt_poll_ns()
3592 trace_kvm_halt_poll_ns_grow(vcpu->vcpu_id, val, old); in grow_halt_poll_ns()
3597 unsigned int old, val, shrink, grow_start; in shrink_halt_poll_ns() local
3599 old = val = vcpu->halt_poll_ns; in shrink_halt_poll_ns()
3603 val = 0; in shrink_halt_poll_ns()
3605 val /= shrink; in shrink_halt_poll_ns()
3607 if (val < grow_start) in shrink_halt_poll_ns()
3608 val = 0; in shrink_halt_poll_ns()
3610 vcpu->halt_poll_ns = val; in shrink_halt_poll_ns()
3611 trace_kvm_halt_poll_ns_shrink(vcpu->vcpu_id, val, old); in shrink_halt_poll_ns()
4115 static int vcpu_get_pid(void *data, u64 *val) in vcpu_get_pid() argument
4120 *val = pid_nr(vcpu->pid); in vcpu_get_pid()
5827 struct kvm_io_range *range, const void *val) in __kvm_io_bus_write() argument
5838 range->len, val)) in __kvm_io_bus_write()
5847 int len, const void *val) in kvm_io_bus_write() argument
5861 r = __kvm_io_bus_write(vcpu, bus, &range, val); in kvm_io_bus_write()
5867 gpa_t addr, int len, const void *val, long cookie) in kvm_io_bus_write_cookie() argument
5885 val)) in kvm_io_bus_write_cookie()
5892 return __kvm_io_bus_write(vcpu, bus, &range, val); in kvm_io_bus_write_cookie()
5896 struct kvm_io_range *range, void *val) in __kvm_io_bus_read() argument
5907 range->len, val)) in __kvm_io_bus_read()
5916 int len, void *val) in kvm_io_bus_read() argument
5930 r = __kvm_io_bus_read(vcpu, bus, &range, val); in kvm_io_bus_read()
6087 static int kvm_get_stat_per_vm(struct kvm *kvm, size_t offset, u64 *val) in kvm_get_stat_per_vm() argument
6089 *val = *(u64 *)((void *)(&kvm->stat) + offset); in kvm_get_stat_per_vm()
6101 static int kvm_get_stat_per_vcpu(struct kvm *kvm, size_t offset, u64 *val) in kvm_get_stat_per_vcpu() argument
6106 *val = 0; in kvm_get_stat_per_vcpu()
6109 *val += *(u64 *)((void *)(&vcpu->stat) + offset); in kvm_get_stat_per_vcpu()
6125 static int kvm_stat_data_get(void *data, u64 *val) in kvm_stat_data_get() argument
6133 stat_data->desc->desc.offset, val); in kvm_stat_data_get()
6137 stat_data->desc->desc.offset, val); in kvm_stat_data_get()
6144 static int kvm_stat_data_clear(void *data, u64 val) in kvm_stat_data_clear() argument
6149 if (val) in kvm_stat_data_clear()
6181 static int vm_stat_get(void *_offset, u64 *val) in vm_stat_get() argument
6187 *val = 0; in vm_stat_get()
6191 *val += tmp_val; in vm_stat_get()
6197 static int vm_stat_clear(void *_offset, u64 val) in vm_stat_clear() argument
6202 if (val) in vm_stat_clear()
6217 static int vcpu_stat_get(void *_offset, u64 *val) in vcpu_stat_get() argument
6223 *val = 0; in vcpu_stat_get()
6227 *val += tmp_val; in vcpu_stat_get()
6233 static int vcpu_stat_clear(void *_offset, u64 val) in vcpu_stat_clear() argument
6238 if (val) in vcpu_stat_clear()