/arch/mips/vdso/ |
D | gettimeofday.c | 48 register struct timespec *ts asm("a1") = _ts; in clock_gettime_fallback() 57 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback() 64 static __always_inline int do_realtime_coarse(struct timespec *ts, in do_realtime_coarse() argument 72 ts->tv_sec = data->xtime_sec; in do_realtime_coarse() 73 ts->tv_nsec = data->xtime_nsec >> data->cs_shift; in do_realtime_coarse() 79 static __always_inline int do_monotonic_coarse(struct timespec *ts, in do_monotonic_coarse() argument 89 ts->tv_sec = data->xtime_sec; in do_monotonic_coarse() 90 ts->tv_nsec = data->xtime_nsec >> data->cs_shift; in do_monotonic_coarse() 96 ts->tv_sec += to_mono_sec; in do_monotonic_coarse() 97 timespec_add_ns(ts, to_mono_nsec); in do_monotonic_coarse() [all …]
|
/arch/arm/vdso/ |
D | vgettimeofday.c | 65 register struct timespec *ts asm("r1") = _ts; in clock_gettime_fallback() 73 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback() 79 static notrace int do_realtime_coarse(struct timespec *ts, in do_realtime_coarse() argument 87 ts->tv_sec = vdata->xtime_coarse_sec; in do_realtime_coarse() 88 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_realtime_coarse() 95 static notrace int do_monotonic_coarse(struct timespec *ts, in do_monotonic_coarse() argument 104 ts->tv_sec = vdata->xtime_coarse_sec; in do_monotonic_coarse() 105 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_monotonic_coarse() 112 ts->tv_sec += tomono.tv_sec; in do_monotonic_coarse() 113 timespec_add_ns(ts, tomono.tv_nsec); in do_monotonic_coarse() [all …]
|
/arch/tile/kernel/vdso/ |
D | vgettimeofday.c | 64 static inline int do_realtime(struct vdso_data *vdso, struct timespec *ts) in do_realtime() argument 71 ts->tv_sec = vdso->wall_time_sec; in do_realtime() 77 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 78 ts->tv_nsec = ns; in do_realtime() 83 static inline int do_monotonic(struct vdso_data *vdso, struct timespec *ts) in do_monotonic() argument 90 ts->tv_sec = vdso->monotonic_time_sec; in do_monotonic() 96 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic() 97 ts->tv_nsec = ns; in do_monotonic() 103 struct timespec *ts) in do_realtime_coarse() argument 109 ts->tv_sec = vdso->wall_time_coarse_sec; in do_realtime_coarse() [all …]
|
/arch/x86/vdso/ |
D | vclock_gettime.c | 25 extern int __vdso_clock_gettime(clockid_t clock, struct timespec *ts); 46 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime() argument 50 "0" (__NR_clock_gettime), "D" (clock), "S" (ts) : "memory"); in vdso_fallback_gettime() 135 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime() argument 145 : "0" (__NR_clock_gettime), "g" (clock), "c" (ts) in vdso_fallback_gettime() 230 notrace static int __always_inline do_realtime(struct timespec *ts) in do_realtime() argument 239 ts->tv_sec = gtod->wall_time_sec; in do_realtime() 245 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 246 ts->tv_nsec = ns; in do_realtime() 251 notrace static int __always_inline do_monotonic(struct timespec *ts) in do_monotonic() argument [all …]
|
/arch/um/os-Linux/ |
D | time.c | 83 static int after_sleep_interval(struct timespec *ts) in after_sleep_interval() argument 129 static inline long long timespec_to_us(const struct timespec *ts) in timespec_to_us() argument 131 return ((long long) ts->tv_sec * UM_USEC_PER_SEC) + in timespec_to_us() 132 ts->tv_nsec / UM_NSEC_PER_USEC; in timespec_to_us() 135 static int after_sleep_interval(struct timespec *ts) in after_sleep_interval() argument 138 long long start_usecs = timespec_to_us(ts); in after_sleep_interval() 169 struct timespec ts; in idle_sleep() local 180 ts = ((struct timespec) { .tv_sec = nsecs / UM_NSEC_PER_SEC, in idle_sleep() 183 if (nanosleep(&ts, &ts) == 0) in idle_sleep() 185 after_sleep_interval(&ts); in idle_sleep()
|
/arch/arm/kernel/ |
D | time.c | 79 static void dummy_clock_access(struct timespec *ts) in dummy_clock_access() argument 81 ts->tv_sec = 0; in dummy_clock_access() 82 ts->tv_nsec = 0; in dummy_clock_access() 88 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 90 __read_persistent_clock(ts); in read_persistent_clock() 93 void read_boot_clock(struct timespec *ts) in read_boot_clock() argument 95 __read_boot_clock(ts); in read_boot_clock()
|
/arch/mips/loongson/common/ |
D | time.c | 27 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 29 ts->tv_sec = mc146818_get_cmos_time(); in read_persistent_clock() 30 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/mn10300/kernel/ |
D | rtc.c | 26 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 32 ts->tv_nsec = 0; in read_persistent_clock() 33 ts->tv_sec = mktime(tm.tm_year, tm.tm_mon, tm.tm_mday, in read_persistent_clock() 37 if (ts->tv_sec < 0) in read_persistent_clock() 38 ts->tv_sec = mktime(2009, 1, 1, 12, 0, 0); in read_persistent_clock()
|
/arch/m68k/kernel/ |
D | time.c | 73 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 76 ts->tv_sec = 0; in read_persistent_clock() 77 ts->tv_nsec = 0; in read_persistent_clock() 84 ts->tv_sec = mktime(time.tm_year, time.tm_mon, time.tm_mday, in read_persistent_clock()
|
/arch/cris/kernel/ |
D | time.c | 60 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 62 ts->tv_sec = 0; in read_persistent_clock() 63 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/sh/boards/mach-dreamcast/ |
D | rtc.c | 33 static void aica_rtc_gettimeofday(struct timespec *ts) in aica_rtc_gettimeofday() argument 45 ts->tv_sec = val1 - TWENTY_YEARS; in aica_rtc_gettimeofday() 48 ts->tv_nsec = 0; in aica_rtc_gettimeofday()
|
/arch/arm/boot/dts/ |
D | spear320-hmi.dts | 258 stmpe610-ts { 259 compatible = "stmpe,ts"; 261 ts,sample-time = <4>; 262 ts,mod-12b = <1>; 263 ts,ref-sel = <0>; 264 ts,adc-freq = <1>; 265 ts,ave-ctrl = <1>; 266 ts,touch-det-delay = <3>; 267 ts,settling = <4>; 268 ts,fraction-z = <7>; [all …]
|
D | spear1310-evb.dts | 375 compatible = "st,stmpe-ts"; 376 ts,sample-time = <4>; 377 ts,mod-12b = <1>; 378 ts,ref-sel = <0>; 379 ts,adc-freq = <1>; 380 ts,ave-ctrl = <1>; 381 ts,touch-det-delay = <2>; 382 ts,settling = <2>; 383 ts,fraction-z = <7>; 384 ts,i-drive = <1>;
|
D | sama5d3xdm.dtsi | 26 atmel,adc-ts-wires = <4>; 27 atmel,adc-ts-pressure-threshold = <10000>;
|
/arch/parisc/kernel/ |
D | time.c | 249 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 253 ts->tv_sec = tod_data.tod_sec; in read_persistent_clock() 254 ts->tv_nsec = tod_data.tod_usec * 1000; in read_persistent_clock() 257 ts->tv_sec = 0; in read_persistent_clock() 258 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/mips/mti-sead3/ |
D | sead3-time.c | 78 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 80 ts->tv_sec = 0; in read_persistent_clock() 81 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/mips/goldfish/ |
D | goldfish-time.c | 104 struct timespec ts; in restore_time_delta() local 106 set_normalized_timespec(&ts, in restore_time_delta() 110 do_settimeofday(&ts); in restore_time_delta()
|
/arch/frv/kernel/ |
D | time.c | 88 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 104 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock() 105 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/mips/sibyte/swarm/ |
D | setup.c | 90 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 108 ts->tv_sec = sec; in read_persistent_clock() 109 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/blackfin/kernel/ |
D | time.c | 135 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 138 ts->tv_sec = secs_since_1970; in read_persistent_clock() 139 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/tile/gxio/ |
D | mpipe.c | 434 const struct timespec *ts) in gxio_mpipe_set_timestamp() argument 437 return gxio_mpipe_set_timestamp_aux(context, (uint64_t)ts->tv_sec, in gxio_mpipe_set_timestamp() 438 (uint64_t)ts->tv_nsec, in gxio_mpipe_set_timestamp() 443 struct timespec *ts) in gxio_mpipe_get_timestamp() argument 448 ret = gxio_mpipe_get_timestamp_aux(context, (uint64_t *)&ts->tv_sec, in gxio_mpipe_get_timestamp() 449 (uint64_t *)&ts->tv_nsec, in gxio_mpipe_get_timestamp() 456 ts->tv_nsec -= (cycles_now - cycles_prev) * 1000000000LL / clock_rate; in gxio_mpipe_get_timestamp() 457 if (ts->tv_nsec < 0) { in gxio_mpipe_get_timestamp() 458 ts->tv_nsec += 1000000000LL; in gxio_mpipe_get_timestamp() 459 ts->tv_sec -= 1; in gxio_mpipe_get_timestamp()
|
/arch/x86/um/vdso/ |
D | um_vdso.c | 19 int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime() argument 24 "0" (__NR_clock_gettime), "D" (clock), "S" (ts) : "memory"); in __vdso_clock_gettime()
|
/arch/avr32/kernel/ |
D | time.c | 124 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 126 ts->tv_sec = mktime(2007, 1, 1, 0, 0, 0); in read_persistent_clock() 127 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/mips/lasat/ |
D | ds1603.c | 138 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 150 ts->tv_sec = word; in read_persistent_clock() 151 ts->tv_nsec = 0; in read_persistent_clock()
|
/arch/mips/mti-malta/ |
D | malta-time.c | 118 void read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument 120 ts->tv_sec = mc146818_get_cmos_time(); in read_persistent_clock() 121 ts->tv_nsec = 0; in read_persistent_clock()
|