• Home
  • Raw
  • Download

Lines Matching refs:val

2464 	unsigned int old, val, grow, grow_start;  in grow_halt_poll_ns()  local
2466 old = val = vcpu->halt_poll_ns; in grow_halt_poll_ns()
2472 val *= grow; in grow_halt_poll_ns()
2473 if (val < grow_start) in grow_halt_poll_ns()
2474 val = grow_start; in grow_halt_poll_ns()
2476 if (val > halt_poll_ns) in grow_halt_poll_ns()
2477 val = halt_poll_ns; in grow_halt_poll_ns()
2479 vcpu->halt_poll_ns = val; in grow_halt_poll_ns()
2481 trace_kvm_halt_poll_ns_grow(vcpu->vcpu_id, val, old); in grow_halt_poll_ns()
2486 unsigned int old, val, shrink, grow_start; in shrink_halt_poll_ns() local
2488 old = val = vcpu->halt_poll_ns; in shrink_halt_poll_ns()
2492 val = 0; in shrink_halt_poll_ns()
2494 val /= shrink; in shrink_halt_poll_ns()
2496 if (val < grow_start) in shrink_halt_poll_ns()
2497 val = 0; in shrink_halt_poll_ns()
2499 vcpu->halt_poll_ns = val; in shrink_halt_poll_ns()
2500 trace_kvm_halt_poll_ns_shrink(vcpu->vcpu_id, val, old); in shrink_halt_poll_ns()
3857 static int kvm_reboot(struct notifier_block *notifier, unsigned long val, in kvm_reboot() argument
3944 struct kvm_io_range *range, const void *val) in __kvm_io_bus_write() argument
3955 range->len, val)) in __kvm_io_bus_write()
3965 int len, const void *val) in kvm_io_bus_write() argument
3979 r = __kvm_io_bus_write(vcpu, bus, &range, val); in kvm_io_bus_write()
3986 gpa_t addr, int len, const void *val, long cookie) in kvm_io_bus_write_cookie() argument
4004 val)) in kvm_io_bus_write_cookie()
4011 return __kvm_io_bus_write(vcpu, bus, &range, val); in kvm_io_bus_write_cookie()
4015 struct kvm_io_range *range, void *val) in __kvm_io_bus_read() argument
4026 range->len, val)) in __kvm_io_bus_read()
4036 int len, void *val) in kvm_io_bus_read() argument
4050 r = __kvm_io_bus_read(vcpu, bus, &range, val); in kvm_io_bus_read()
4200 static int vm_stat_get_per_vm(void *data, u64 *val) in vm_stat_get_per_vm() argument
4204 *val = *(ulong *)((void *)stat_data->kvm + stat_data->offset); in vm_stat_get_per_vm()
4209 static int vm_stat_clear_per_vm(void *data, u64 val) in vm_stat_clear_per_vm() argument
4213 if (val) in vm_stat_clear_per_vm()
4237 static int vcpu_stat_get_per_vm(void *data, u64 *val) in vcpu_stat_get_per_vm() argument
4243 *val = 0; in vcpu_stat_get_per_vm()
4246 *val += *(u64 *)((void *)vcpu + stat_data->offset); in vcpu_stat_get_per_vm()
4251 static int vcpu_stat_clear_per_vm(void *data, u64 val) in vcpu_stat_clear_per_vm() argument
4257 if (val) in vcpu_stat_clear_per_vm()
4287 static int vm_stat_get(void *_offset, u64 *val) in vm_stat_get() argument
4294 *val = 0; in vm_stat_get()
4299 *val += tmp_val; in vm_stat_get()
4305 static int vm_stat_clear(void *_offset, u64 val) in vm_stat_clear() argument
4311 if (val) in vm_stat_clear()
4326 static int vcpu_stat_get(void *_offset, u64 *val) in vcpu_stat_get() argument
4333 *val = 0; in vcpu_stat_get()
4338 *val += tmp_val; in vcpu_stat_get()
4344 static int vcpu_stat_clear(void *_offset, u64 val) in vcpu_stat_clear() argument
4350 if (val) in vcpu_stat_clear()