Lines Matching full:tmr

593 	struct kvm_xen_vcpu_attr tmr = {  in main()  local
623 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
808 memset(&tmr, 0, sizeof(tmr)); in main()
809 tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER; in main()
810 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main()
811 TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER, in main()
813 TEST_ASSERT(tmr.u.timer.priority == KVM_IRQ_ROUTING_XEN_EVTCHN_PRIO_2LEVEL, in main()
815 TEST_ASSERT(tmr.u.timer.expires_ns > rs->state_entry_time, in main()
829 tmr.u.timer.expires_ns = rs->state_entry_time + 100000000; in main()
830 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
856 tmr.u.timer.expires_ns = rs->state_entry_time + 100000000; in main()
857 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
867 tmr.u.timer.expires_ns = rs->state_entry_time + 100000000; in main()
868 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
871 tmr.u.timer.expires_ns = 0; in main()
872 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main()
873 TEST_ASSERT(tmr.u.timer.expires_ns == rs->state_entry_time + 100000000, in main()
892 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main()
893 TEST_ASSERT(!tmr.u.timer.expires_ns, "Timer still reported pending"); in main()
900 tmr.u.timer.expires_ns = rs->state_entry_time - 100000000ULL; in main()
901 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
937 tmr.u.timer.expires_ns = rs->state_entry_time + in main()
939 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
950 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main()
953 if (tmr.u.timer.expires_ns) in main()
960 tmr.u.timer.expires_ns = rs->state_entry_time + in main()
962 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()