Lines Matching full:its
338 static inline int sys_timer_gettime(kernel_timer_t timerid, void *its) in sys_timer_gettime() argument
340 return tst_syscall(__NR_timer_gettime, timerid, its); in sys_timer_gettime()
343 static inline int sys_timer_gettime64(kernel_timer_t timerid, void *its) in sys_timer_gettime64() argument
345 return tst_syscall(__NR_timer_gettime64, timerid, its); in sys_timer_gettime64()
348 static inline int sys_timer_settime(kernel_timer_t timerid, int flags, void *its, in sys_timer_settime() argument
351 return tst_syscall(__NR_timer_settime, timerid, flags, its, old_its); in sys_timer_settime()
354 static inline int sys_timer_settime64(kernel_timer_t timerid, int flags, void *its, in sys_timer_settime64() argument
357 return tst_syscall(__NR_timer_settime64, timerid, flags, its, old_its); in sys_timer_settime64()
360 static inline int sys_timerfd_gettime(int fd, void *its) in sys_timerfd_gettime() argument
362 return tst_syscall(__NR_timerfd_gettime, fd, its); in sys_timerfd_gettime()
365 static inline int sys_timerfd_gettime64(int fd, void *its) in sys_timerfd_gettime64() argument
367 return tst_syscall(__NR_timerfd_gettime64, fd, its); in sys_timerfd_gettime64()
370 static inline int sys_timerfd_settime(int fd, int flags, void *its, in sys_timerfd_settime() argument
373 return tst_syscall(__NR_timerfd_settime, fd, flags, its, old_its); in sys_timerfd_settime()
376 static inline int sys_timerfd_settime64(int fd, int flags, void *its, in sys_timerfd_settime64() argument
379 return tst_syscall(__NR_timerfd_settime64, fd, flags, its, old_its); in sys_timerfd_settime64()
466 static inline long long tst_its_get_interval_sec(struct tst_its its) in tst_its_get_interval_sec() argument
468 switch (its.type) { in tst_its_get_interval_sec()
470 return its.ts.kern_old_its.it_interval.tv_sec; in tst_its_get_interval_sec()
472 return its.ts.kern_its.it_interval.tv_sec; in tst_its_get_interval_sec()
474 tst_brk(TBROK, "Invalid type: %d", its.type); in tst_its_get_interval_sec()
482 static inline long long tst_its_get_interval_nsec(struct tst_its its) in tst_its_get_interval_nsec() argument
484 switch (its.type) { in tst_its_get_interval_nsec()
486 return its.ts.kern_old_its.it_interval.tv_nsec; in tst_its_get_interval_nsec()
488 return its.ts.kern_its.it_interval.tv_nsec; in tst_its_get_interval_nsec()
490 tst_brk(TBROK, "Invalid type: %d", its.type); in tst_its_get_interval_nsec()
498 static inline void tst_its_set_interval_sec(struct tst_its *its, long long sec) in tst_its_set_interval_sec() argument
500 switch (its->type) { in tst_its_set_interval_sec()
503 its->ts.kern_old_its.it_interval.tv_sec = sec; in tst_its_set_interval_sec()
506 its->ts.kern_its.it_interval.tv_sec = sec; in tst_its_set_interval_sec()
509 tst_brk(TBROK, "Invalid type: %d", its->type); in tst_its_set_interval_sec()
516 static inline void tst_its_set_interval_nsec(struct tst_its *its, long long nsec) in tst_its_set_interval_nsec() argument
518 switch (its->type) { in tst_its_set_interval_nsec()
521 its->ts.kern_old_its.it_interval.tv_nsec = nsec; in tst_its_set_interval_nsec()
524 its->ts.kern_its.it_interval.tv_nsec = nsec; in tst_its_set_interval_nsec()
527 tst_brk(TBROK, "Invalid type: %d", its->type); in tst_its_set_interval_nsec()
534 static inline long long tst_its_get_value_sec(struct tst_its its) in tst_its_get_value_sec() argument
536 switch (its.type) { in tst_its_get_value_sec()
538 return its.ts.kern_old_its.it_value.tv_sec; in tst_its_get_value_sec()
540 return its.ts.kern_its.it_value.tv_sec; in tst_its_get_value_sec()
542 tst_brk(TBROK, "Invalid type: %d", its.type); in tst_its_get_value_sec()
550 static inline long long tst_its_get_value_nsec(struct tst_its its) in tst_its_get_value_nsec() argument
552 switch (its.type) { in tst_its_get_value_nsec()
554 return its.ts.kern_old_its.it_value.tv_nsec; in tst_its_get_value_nsec()
556 return its.ts.kern_its.it_value.tv_nsec; in tst_its_get_value_nsec()
558 tst_brk(TBROK, "Invalid type: %d", its.type); in tst_its_get_value_nsec()
566 static inline void tst_its_set_value_sec(struct tst_its *its, long long sec) in tst_its_set_value_sec() argument
568 switch (its->type) { in tst_its_set_value_sec()
571 its->ts.kern_old_its.it_value.tv_sec = sec; in tst_its_set_value_sec()
574 its->ts.kern_its.it_value.tv_sec = sec; in tst_its_set_value_sec()
577 tst_brk(TBROK, "Invalid type: %d", its->type); in tst_its_set_value_sec()
584 static inline void tst_its_set_value_nsec(struct tst_its *its, long long nsec) in tst_its_set_value_nsec() argument
586 switch (its->type) { in tst_its_set_value_nsec()
589 its->ts.kern_old_its.it_value.tv_nsec = nsec; in tst_its_set_value_nsec()
592 its->ts.kern_its.it_value.tv_nsec = nsec; in tst_its_set_value_nsec()
595 tst_brk(TBROK, "Invalid type: %d", its->type); in tst_its_set_value_nsec()
747 static inline void tst_its_set_interval_from_us(struct tst_its *its, long long usec) in tst_its_set_interval_from_us() argument
751 tst_its_set_interval_sec(its, tp.tv_sec); in tst_its_set_interval_from_us()
752 tst_its_set_interval_nsec(its, tp.tv_nsec); in tst_its_set_interval_from_us()
758 static inline void tst_its_set_value_from_us(struct tst_its *its, long long usec) in tst_its_set_value_from_us() argument
762 tst_its_set_value_sec(its, tp.tv_sec); in tst_its_set_value_from_us()
763 tst_its_set_value_nsec(its, tp.tv_nsec); in tst_its_set_value_from_us()
769 static inline void tst_its_set_interval_from_ts(struct tst_its *its, struct tst_ts ts) in tst_its_set_interval_from_ts() argument
771 tst_its_set_interval_sec(its, tst_ts_get_sec(ts)); in tst_its_set_interval_from_ts()
772 tst_its_set_interval_nsec(its, tst_ts_get_nsec(ts)); in tst_its_set_interval_from_ts()
778 static inline void tst_its_set_value_from_ts(struct tst_its *its, struct tst_ts ts) in tst_its_set_value_from_ts() argument
780 tst_its_set_value_sec(its, tst_ts_get_sec(ts)); in tst_its_set_value_from_ts()
781 tst_its_set_value_nsec(its, tst_ts_get_nsec(ts)); in tst_its_set_value_from_ts()