Lines Matching refs:gtod
1089 struct kvm_s390_vm_tod_clock gtod; in kvm_s390_set_tod_ext() local
1091 if (copy_from_user(>od, (void __user *)attr->addr, sizeof(gtod))) in kvm_s390_set_tod_ext()
1094 if (!test_kvm_facility(kvm, 139) && gtod.epoch_idx) in kvm_s390_set_tod_ext()
1096 kvm_s390_set_tod_clock(kvm, >od); in kvm_s390_set_tod_ext()
1099 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext()
1121 struct kvm_s390_vm_tod_clock gtod = { 0 }; in kvm_s390_set_tod_low() local
1123 if (copy_from_user(>od.tod, (void __user *)attr->addr, in kvm_s390_set_tod_low()
1124 sizeof(gtod.tod))) in kvm_s390_set_tod_low()
1127 kvm_s390_set_tod_clock(kvm, >od); in kvm_s390_set_tod_low()
1128 VM_EVENT(kvm, 3, "SET: TOD base: 0x%llx", gtod.tod); in kvm_s390_set_tod_low()
1157 struct kvm_s390_vm_tod_clock *gtod) in kvm_s390_get_tod_clock() argument
1165 gtod->tod = htod.tod + kvm->arch.epoch; in kvm_s390_get_tod_clock()
1166 gtod->epoch_idx = 0; in kvm_s390_get_tod_clock()
1168 gtod->epoch_idx = htod.epoch_idx + kvm->arch.epdx; in kvm_s390_get_tod_clock()
1169 if (gtod->tod < htod.tod) in kvm_s390_get_tod_clock()
1170 gtod->epoch_idx += 1; in kvm_s390_get_tod_clock()
1178 struct kvm_s390_vm_tod_clock gtod; in kvm_s390_get_tod_ext() local
1180 memset(>od, 0, sizeof(gtod)); in kvm_s390_get_tod_ext()
1181 kvm_s390_get_tod_clock(kvm, >od); in kvm_s390_get_tod_ext()
1182 if (copy_to_user((void __user *)attr->addr, >od, sizeof(gtod))) in kvm_s390_get_tod_ext()
1186 gtod.epoch_idx, gtod.tod); in kvm_s390_get_tod_ext()
1204 u64 gtod; in kvm_s390_get_tod_low() local
1206 gtod = kvm_s390_get_tod_clock_fast(kvm); in kvm_s390_get_tod_low()
1207 if (copy_to_user((void __user *)attr->addr, >od, sizeof(gtod))) in kvm_s390_get_tod_low()
1209 VM_EVENT(kvm, 3, "QUERY: TOD base: 0x%llx", gtod); in kvm_s390_get_tod_low()
3572 const struct kvm_s390_vm_tod_clock *gtod) in kvm_s390_set_tod_clock() argument
3583 kvm->arch.epoch = gtod->tod - htod.tod; in kvm_s390_set_tod_clock()
3586 kvm->arch.epdx = gtod->epoch_idx - htod.epoch_idx; in kvm_s390_set_tod_clock()
3587 if (kvm->arch.epoch > gtod->tod) in kvm_s390_set_tod_clock()