/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-sun4v.c | 21 unsigned long ret, time; in hypervisor_get_time() local 25 ret = sun4v_tod_get(&time); in hypervisor_get_time() 27 return time; in hypervisor_get_time()
|
H A D | rtc-lpc32xx.c | 55 static int lpc32xx_rtc_read_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_read_time() argument 61 rtc_time64_to_tm(elapsed_sec, time); in lpc32xx_rtc_read_time() 66 static int lpc32xx_rtc_set_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_set_time() argument 69 u32 secs = rtc_tm_to_time64(time); in lpc32xx_rtc_set_time() 91 rtc_time64_to_tm(rtc_readl(rtc, LPC32XX_RTC_MATCH0), &wkalrm->time); in lpc32xx_rtc_read_alarm() 96 return rtc_valid_tm(&wkalrm->time); in lpc32xx_rtc_read_alarm() 106 alarmsecs = rtc_tm_to_time64(&wkalrm->time); in lpc32xx_rtc_set_alarm() 205 * setup, then set it up now for the first time. in lpc32xx_rtc_probe()
|
/kernel/linux/linux-6.6/include/clocksource/ |
H A D | hyperv_timer.h | 43 u64 *cur_tsc, u64 *time) in hv_read_tsc_page_tsc() 51 * reference time we must do the following: in hv_read_tsc_page_tsc() 53 * A special '0' value indicates the time source is unreliable and we in hv_read_tsc_page_tsc() 86 *time = mul_u64_u64_shr(*cur_tsc, scale, 64) + offset; in hv_read_tsc_page_tsc() 102 hv_read_tsc_page_tsc(const struct ms_hyperv_tsc_page *tsc_pg, u64 *cur_tsc, u64 *time) in hv_read_tsc_page_tsc() argument 42 hv_read_tsc_page_tsc(const struct ms_hyperv_tsc_page *tsc_pg, u64 *cur_tsc, u64 *time) hv_read_tsc_page_tsc() argument
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-sun4v.c | 21 unsigned long ret, time; in hypervisor_get_time() local 25 ret = sun4v_tod_get(&time); in hypervisor_get_time() 27 return time; in hypervisor_get_time()
|
H A D | rtc-lpc32xx.c | 55 static int lpc32xx_rtc_read_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_read_time() argument 61 rtc_time64_to_tm(elapsed_sec, time); in lpc32xx_rtc_read_time() 66 static int lpc32xx_rtc_set_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_set_time() argument 69 u32 secs = rtc_tm_to_time64(time); in lpc32xx_rtc_set_time() 91 rtc_time64_to_tm(rtc_readl(rtc, LPC32XX_RTC_MATCH0), &wkalrm->time); in lpc32xx_rtc_read_alarm() 96 return rtc_valid_tm(&wkalrm->time); in lpc32xx_rtc_read_alarm() 106 alarmsecs = rtc_tm_to_time64(&wkalrm->time); in lpc32xx_rtc_set_alarm() 205 * setup, then set it up now for the first time. in lpc32xx_rtc_probe()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | core907d.c | 37 s64 time; in core907d_caps_init() local 47 time = nvif_msec(core->chan.base.device, 2000ULL, in core907d_caps_init() 53 if (time < 0) in core907d_caps_init()
|
/kernel/linux/linux-6.6/drivers/iio/common/ssp_sensors/ |
H A D | ssp_iio_sensor.h | 46 /* Converts time in ms to frequency */ 47 static inline void ssp_convert_to_freq(u32 time, int *integer_part, in ssp_convert_to_freq() argument 50 if (time == 0) { in ssp_convert_to_freq() 56 *integer_part = SSP_FACTOR_WITH_MS / time; in ssp_convert_to_freq() 61 /* Converts frequency to time in ms */
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | recalc_apic_map_test.c | 8 #include <time.h> 63 for (t = time(NULL) + TIMEOUT; time(NULL) < t;) { in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/ |
H A D | bench_bpf_hashmap_full_update.c | 71 u64 time = ctx.skel->bss->percpu_time[i]; in hashmap_report_final() local 73 if (!time) in hashmap_report_final() 77 i, ctx.skel->bss->nr_loops * 1000000000ll / time); in hashmap_report_final()
|
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | leapcrash.c | 20 #include <time.h> 21 #include <sys/time.h> 74 /* Get the current time */ in main() 85 /* set the time to 2 seconds before the leap */ in main() 96 while (tx.time.tv_sec < next_leap + 1) { in main()
|
/third_party/ltp/testcases/kernel/fs/lftest/ |
H A D | lftest.c | 7 * of a filesystem. It writes one buffer at a time and lseeks from 18 #include <time.h> 47 time1 = time(NULL); in run() 62 time2 = time(NULL); in run() 65 tst_res(TINFO, "total time for test to run: %d minute(s) and %d seconds", in run()
|
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | verbose.py | 29 import time namespace 88 return time.strftime("%M:%S.", time.gmtime(d)) + ("%03i" % millis) 95 sys.stderr.write("--- Total time: %s ---\n" % FormatTime(overall_time))
|
/third_party/ntfs-3g/include/ntfs-3g/ |
H A D | ntfstime.h | 2 * ntfstime.h - NTFS time related functions. Originated from the Linux-NTFS project. 28 #include <time.h> 34 #include <sys/time.h> 60 * ntfs2timespec - Convert an NTFS time to Unix time 61 * @ntfs_time: An NTFS time in 100ns units since 1601 66 * Return: A Unix time (number of seconds since 1970, and nanoseconds) 84 * timespec2ntfs - Convert Linux time to NTFS time 85 * @utc_time: Linux time t [all...] |
/third_party/ninja/src/ |
H A D | depfile_parser_perftest.cc | 54 float time = delta*1000 / (float)limit; in main() local 55 printf("%s: %.1fus\n", filename, time); in main() 56 times.push_back(time); in main()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmapstress06.c | 28 * run with waves or at the same time as a test which does cause swapping (i.e. 54 extern time_t time(time_t *); 77 (void)time(&t); in main() 98 (void)time(&t); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/ |
H A D | 10-1.c | 11 * the time() function. 22 #include <time.h> 53 ts.tv_sec = time(NULL); in main() 65 /* Check the time */ in main() 72 ts_2.tv_sec = time(NULL); in main()
|
H A D | 11-1.c | 23 #include <time.h> 45 ts[i].tv_sec = time(NULL) + TIMEOUT; in main() 48 ts[i].tv_sec = time(NULL) + NEGATIVETIMEOUT; in main()
|
/third_party/python/Tools/scripts/ |
H A D | byteyears.py | 9 import sys, os, time namespace 34 now = time.time() # Current time, for age computations
|
/third_party/python/Doc/includes/ |
H A D | mp_workers.py | 1 import time namespace 29 time.sleep(0.5*random.random()) 33 time.sleep(0.5*random.random())
|
/third_party/rust/crates/nix/test/ |
H A D | test_time.rs | 8 use nix::time::clock_getcpuclockid; 9 use nix::time::{clock_gettime, ClockId}; 14 nix::time::clock_getres(ClockId::CLOCK_REALTIME).expect("assertion failed"); in test_clock_getres()
|
/drivers/peripheral/audio/test/unittest/common/capture/ |
H A D | audio_capture_mmap_test.cpp | 222 struct AudioTimeStamp time = {0};
in HWTEST_F() local 233 ret = mmapCapture_->GetMmapPosition(mmapCapture_, &frames, &time);
in HWTEST_F() 244 struct AudioTimeStamp time = {0};
in HWTEST_F() local 255 ret = mmapCapture_->GetMmapPosition(nullptr, &frames, &time);
in HWTEST_F() 258 ret = mmapCapture_->GetMmapPosition(mmapCapture_, nullptr, &time);
in HWTEST_F() 268 struct AudioTimeStamp time = {0};
in HWTEST_F() local 270 int32_t ret = mmapCapture_->GetMmapPosition(mmapCapture_, &frames, &time);
in HWTEST_F()
|
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
H A D | user_idm_funcs_test.cpp | 34 uint64_t time; member 104 session.time = GetSystemTime(); in HWTEST_F() 138 session.time = GetSystemTime(); in HWTEST_F() 177 session.time = UINT64_MAX; in HWTEST_F() 185 session.time = GetSystemTime(); in HWTEST_F() 268 session.time = UINT64_MAX; in HWTEST_F() 275 session.time = GetSystemTime(); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_ps.c | 75 void rtl92e_enter_sleep(struct net_device *dev, u64 time) in rtl92e_enter_sleep() argument 85 time -= msecs_to_jiffies(8 + 16 + 7); in rtl92e_enter_sleep() 88 if (time_before((unsigned long)time, timeout)) { in rtl92e_enter_sleep() 91 time - jiffies, msecs_to_jiffies(MIN_SLEEP_TIME)); in rtl92e_enter_sleep() 95 if (time_after((unsigned long)time, timeout)) { in rtl92e_enter_sleep() 97 time - jiffies, msecs_to_jiffies(MAX_SLEEP_TIME)); in rtl92e_enter_sleep() 101 tmp = time - jiffies; in rtl92e_enter_sleep()
|
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | meson-ir-tx.c | 112 static u32 meson_irtx_prepare_pulse(struct meson_irtx *ir, unsigned int time) in meson_irtx_prepare_pulse() argument 118 delay = (DIV_ROUND_CLOSEST(time, tb_us) - 1) & IRB_DELAY_MASK; in meson_irtx_prepare_pulse() 123 static u32 meson_irtx_prepare_space(struct meson_irtx *ir, unsigned int time) in meson_irtx_prepare_space() argument 129 if (time <= IRB_MAX_DELAY) { in meson_irtx_prepare_space() 132 } else if (time <= 10 * IRB_MAX_DELAY) { in meson_irtx_prepare_space() 135 } else if (time <= 100 * IRB_MAX_DELAY) { in meson_irtx_prepare_space() 140 delay = (DIV_ROUND_CLOSEST(time, tb_us) - 1) & IRB_DELAY_MASK; in meson_irtx_prepare_space()
|
/kernel/linux/linux-6.6/include/uapi/sound/ |
H A D | asequencer.h | 49 #define SNDRV_SEQ_EVENT_QFRAME 22 /* midi time code quarter frame */ 161 #define SNDRV_SEQ_TIME_STAMP_REAL (1<<0) /* timestamp in real time */ 165 #define SNDRV_SEQ_TIME_MODE_REL (1<<1) /* relative to current time */ 227 struct snd_seq_real_time time; member 241 union snd_seq_timestamp time; /* time */ member 263 union snd_seq_timestamp time; member 277 union snd_seq_timestamp time; /* schedule time */ member 291 union snd_seq_timestamp time; /* schedul member 405 union snd_seq_timestamp time; global() member 516 struct snd_seq_real_time time; /* current time */ global() member [all...] |