Lines Matching defs:now

199 		/* And now the FPA/cp1 branch instructions. */
327 static u32 kvm_mips_ktime_to_count(struct kvm_vcpu *vcpu, ktime_t now)
332 now_ns = ktime_to_ns(now);
377 * @now: Kernel time to read CP0_Count at.
379 * Returns the current guest CP0_Count register at time @now and handles if the
384 static u32 kvm_mips_read_count_running(struct kvm_vcpu *vcpu, ktime_t now)
392 count = vcpu->arch.count_bias + kvm_mips_ktime_to_count(vcpu, now);
409 threshold = ktime_add_ns(now, vcpu->arch.count_period / 4);
473 ktime_t now;
477 now = ktime_get();
480 *count = kvm_mips_read_count_running(vcpu, now);
482 return now;
488 * @now: ktime at point of resume.
491 * Resumes the timer and updates the timer expiry based on @now and @count.
502 ktime_t now, u32 count)
513 expire = ktime_add_ns(now, delta);
545 ktime_t now, count_time;
569 /* Calculate expected count right now */
570 now = ktime_get();
571 now_count = vcpu->arch.count_bias + kvm_mips_ktime_to_count(vcpu, now);
579 count_time = now;
588 count_time = ktime_sub_ns(now, delta);
606 ktime_t now;
609 now = kvm_mips_count_time(vcpu);
610 vcpu->arch.count_bias = count - kvm_mips_ktime_to_count(vcpu, now);
617 kvm_mips_resume_hrtimer(vcpu, now, count);
653 ktime_t now;
666 now = kvm_mips_count_time(vcpu);
669 now = kvm_mips_freeze_hrtimer(vcpu, &count);
678 vcpu->arch.count_bias = count - kvm_mips_ktime_to_count(vcpu, now);
682 kvm_mips_resume_hrtimer(vcpu, now, count);
703 ktime_t now = ktime_set(0, 0); /* silence bogus GCC warning */
733 now = kvm_mips_freeze_hrtimer(vcpu, &count);
758 kvm_mips_resume_hrtimer(vcpu, now, count);
776 * Assumes CP0_Count was previously enabled but now Guest.CP0_Cause.DC or
785 ktime_t now;
791 now = ktime_get();
792 count = kvm_mips_read_count_running(vcpu, now);
795 return now;
859 ktime_t expire, now;
892 now = ktime_get();
893 if (ktime_compare(now, expire) >= 0)
898 count = kvm_mips_read_count_running(vcpu, now);
899 kvm_mips_resume_hrtimer(vcpu, now, count);
913 * Returns: -EINVAL if out of valid range (0..now).
1911 * Find the resume PC now while we have safe and easy access to the
3278 * OK we have a Guest TLB entry, now inject it into the