Lines Matching defs:val
3418 unsigned int old, val, grow, grow_start;
3420 old = val = vcpu->halt_poll_ns;
3426 val *= grow;
3427 if (val < grow_start)
3428 val = grow_start;
3430 vcpu->halt_poll_ns = val;
3432 trace_kvm_halt_poll_ns_grow(vcpu->vcpu_id, val, old);
3437 unsigned int old, val, shrink, grow_start;
3439 old = val = vcpu->halt_poll_ns;
3443 val = 0;
3445 val /= shrink;
3447 if (val < grow_start)
3448 val = 0;
3450 vcpu->halt_poll_ns = val;
3451 trace_kvm_halt_poll_ns_shrink(vcpu->vcpu_id, val, old);
3910 static int vcpu_get_pid(void *data, u64 *val)
3915 *val = pid_nr(rcu_dereference(vcpu->pid));
5438 struct kvm_io_range *range, const void *val)
5449 range->len, val))
5459 int len, const void *val)
5473 r = __kvm_io_bus_write(vcpu, bus, &range, val);
5480 gpa_t addr, int len, const void *val, long cookie)
5498 val))
5505 return __kvm_io_bus_write(vcpu, bus, &range, val);
5509 struct kvm_io_range *range, void *val)
5520 range->len, val))
5530 int len, void *val)
5544 r = __kvm_io_bus_read(vcpu, bus, &range, val);
5699 static int kvm_get_stat_per_vm(struct kvm *kvm, size_t offset, u64 *val)
5701 *val = *(u64 *)((void *)(&kvm->stat) + offset);
5713 static int kvm_get_stat_per_vcpu(struct kvm *kvm, size_t offset, u64 *val)
5718 *val = 0;
5721 *val += *(u64 *)((void *)(&vcpu->stat) + offset);
5737 static int kvm_stat_data_get(void *data, u64 *val)
5745 stat_data->desc->desc.offset, val);
5749 stat_data->desc->desc.offset, val);
5756 static int kvm_stat_data_clear(void *data, u64 val)
5761 if (val)
5794 static int vm_stat_get(void *_offset, u64 *val)
5800 *val = 0;
5804 *val += tmp_val;
5810 static int vm_stat_clear(void *_offset, u64 val)
5815 if (val)
5830 static int vcpu_stat_get(void *_offset, u64 *val)
5836 *val = 0;
5840 *val += tmp_val;
5846 static int vcpu_stat_clear(void *_offset, u64 val)
5851 if (val)