Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 4091) sorted by relevance

12345678910>>...164

/linux/kernel/time/
A D.built-in.a.cmd1time/built-in.a := echo >/dev/null; rm -f kernel/time/built-in.a; /usr/bin/ccache /home/test/works…
/linux/drivers/rtc/
A Drtc-mc146818-lib.c27 memset(time, 0xff, sizeof(*time)); in mc146818_get_time()
94 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time()
95 time->tm_min = bcd2bin(time->tm_min); in mc146818_get_time()
96 time->tm_hour = bcd2bin(time->tm_hour); in mc146818_get_time()
97 time->tm_mday = bcd2bin(time->tm_mday); in mc146818_get_time()
98 time->tm_mon = bcd2bin(time->tm_mon); in mc146818_get_time()
99 time->tm_year = bcd2bin(time->tm_year); in mc146818_get_time()
117 time->tm_mon--; in mc146818_get_time()
135 yrs = time->tm_year; in mc146818_set_time()
139 min = time->tm_min; in mc146818_set_time()
[all …]
A Drtc-pcf50633.c113 &pcf_tm.time[0]); in pcf50633_rtc_read_time()
120 pcf_tm.time[PCF50633_TI_DAY], in pcf50633_rtc_read_time()
122 pcf_tm.time[PCF50633_TI_YEAR], in pcf50633_rtc_read_time()
123 pcf_tm.time[PCF50633_TI_HOUR], in pcf50633_rtc_read_time()
124 pcf_tm.time[PCF50633_TI_MIN], in pcf50633_rtc_read_time()
125 pcf_tm.time[PCF50633_TI_SEC]); in pcf50633_rtc_read_time()
147 pcf_tm.time[PCF50633_TI_DAY], in pcf50633_rtc_set_time()
149 pcf_tm.time[PCF50633_TI_YEAR], in pcf50633_rtc_set_time()
150 pcf_tm.time[PCF50633_TI_HOUR], in pcf50633_rtc_set_time()
151 pcf_tm.time[PCF50633_TI_MIN], in pcf50633_rtc_set_time()
[all …]
A Drtc-wm8350.c93 u16 time[4]; in wm8350_rtc_settime() local
97 time[0] = tm->tm_sec; in wm8350_rtc_settime()
99 time[1] = tm->tm_hour; in wm8350_rtc_settime()
101 time[2] = tm->tm_mday; in wm8350_rtc_settime()
107 time[0], time[1], time[2], time[3]); in wm8350_rtc_settime()
143 u16 time[4]; in wm8350_rtc_readalarm() local
247 u16 time[3]; in wm8350_rtc_setalarm() local
250 memset(time, 0, sizeof(time)); in wm8350_rtc_setalarm()
253 time[0] |= tm->tm_sec; in wm8350_rtc_setalarm()
263 time[1] |= tm->tm_hour; in wm8350_rtc_setalarm()
[all …]
A Drtc-dm355evm.c35 union evm_time time; in dm355evm_rtc_read_time() local
48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time()
50 time.bytes[0] = status; in dm355evm_rtc_read_time()
55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time()
57 time.bytes[1] = status; in dm355evm_rtc_read_time()
62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time()
64 time.bytes[2] = status; in dm355evm_rtc_read_time()
69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time()
71 time.bytes[3] = status; in dm355evm_rtc_read_time()
83 union evm_time time; in dm355evm_rtc_set_time() local
[all …]
A Dinterface.c77 if (time < range_min || time > range_max) in rtc_valid_range()
194 alarm->time.tm_sec = -1; in rtc_read_alarm_internal()
195 alarm->time.tm_min = -1; in rtc_read_alarm_internal()
196 alarm->time.tm_hour = -1; in rtc_read_alarm_internal()
197 alarm->time.tm_mday = -1; in rtc_read_alarm_internal()
198 alarm->time.tm_mon = -1; in rtc_read_alarm_internal()
199 alarm->time.tm_year = -1; in rtc_read_alarm_internal()
304 if (alarm->time.tm_mday < 1 || alarm->time.tm_mday > 31) { in __rtc_read_alarm()
353 alarm->time.tm_mon++; in __rtc_read_alarm()
367 alarm->time.tm_year++; in __rtc_read_alarm()
[all …]
A Drtc-ds1305.c198 "read", time->tm_sec, time->tm_min, in ds1305_get_time()
199 time->tm_hour, time->tm_mday, in ds1305_get_time()
200 time->tm_mon, time->tm_year, time->tm_wday); in ds1305_get_time()
213 "write", time->tm_sec, time->tm_min, in ds1305_set_time()
214 time->tm_hour, time->tm_mday, in ds1305_set_time()
215 time->tm_mon, time->tm_year, time->tm_wday); in ds1305_set_time()
220 *bp++ = bin2bcd(time->tm_sec); in ds1305_set_time()
221 *bp++ = bin2bcd(time->tm_min); in ds1305_set_time()
223 *bp++ = (time->tm_wday < 7) ? (time->tm_wday + 1) : 1; in ds1305_set_time()
224 *bp++ = bin2bcd(time->tm_mday); in ds1305_set_time()
[all …]
A Drtc-spear.c202 unsigned int time, date; in spear_rtc_read_time() local
231 unsigned int time, date; in spear_rtc_set_time() local
257 unsigned int time, date; in spear_rtc_read_alarm() local
263 alm->time.tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_alarm()
264 alm->time.tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_alarm()
265 alm->time.tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_alarm()
270 bcd2tm(&alm->time); in spear_rtc_read_alarm()
287 unsigned int time, date; in spear_rtc_set_alarm() local
290 tm2bcd(&alm->time); in spear_rtc_set_alarm()
294 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm()
[all …]
A Drtc-mcp795.c274 later = rtc_tm_to_time64(&alm->time); in mcp795_set_alarm()
290 alm->time.tm_year = -1; in mcp795_set_alarm()
291 alm->time.tm_isdst = -1; in mcp795_set_alarm()
292 alm->time.tm_yday = -1; in mcp795_set_alarm()
315 &alm->time, alm->time.tm_wday, &alm->time); in mcp795_set_alarm()
329 alm->time.tm_sec = bcd2bin(data[0] & 0x7F); in mcp795_read_alarm()
330 alm->time.tm_min = bcd2bin(data[1] & 0x7F); in mcp795_read_alarm()
335 alm->time.tm_year = -1; in mcp795_read_alarm()
336 alm->time.tm_isdst = -1; in mcp795_read_alarm()
337 alm->time.tm_yday = -1; in mcp795_read_alarm()
[all …]
A Drtc-ds1302.c58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time()
59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time()
60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time()
61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time()
62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time()
63 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time()
64 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time()
88 time->tm_sec = bcd2bin(buf[RTC_ADDR_SEC]); in ds1302_rtc_get_time()
89 time->tm_min = bcd2bin(buf[RTC_ADDR_MIN]); in ds1302_rtc_get_time()
90 time->tm_hour = bcd2bin(buf[RTC_ADDR_HOUR]); in ds1302_rtc_get_time()
[all …]
A Drtc-rk808.c77 time64_t time = rtc_tm_to_time64(tm); in rockchip_to_gregorian() local
84 time64_t time = rtc_tm_to_time64(tm); in gregorian_to_rockchip() local
85 rtc_time64_to_tm(time - extra_days * 86400, tm); in gregorian_to_rockchip()
213 rockchip_to_gregorian(&alrm->time); in rk808_rtc_readalarm()
222 &alrm->time, alrm->time.tm_wday, &alrm->time); in rk808_rtc_readalarm()
265 &alrm->time, alrm->time.tm_wday, &alrm->time); in rk808_rtc_setalarm()
267 gregorian_to_rockchip(&alrm->time); in rk808_rtc_setalarm()
268 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()
269 alrm_data[1] = bin2bcd(alrm->time.tm_min); in rk808_rtc_setalarm()
270 alrm_data[2] = bin2bcd(alrm->time.tm_hour); in rk808_rtc_setalarm()
[all …]
/linux/tools/perf/scripts/python/
A Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
11 return "%d-%s-%d-%d" % (time, event, cpu, thread)
13 def store_key(time, cpu, thread): argument
14 if (time not in times):
15 times.append(time)
23 def store(time, event, cpu, thread, val, ena, run): argument
27 store_key(time, cpu, thread)
28 key = get_key(time, event, cpu, thread)
31 def get(time, event, cpu, thread): argument
32 key = get_key(time, event, cpu, thread)
[all …]
/linux/sound/core/seq/
A Dseq_prioq.c94 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp()
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
116 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel()
118 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel()
119 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel()
121 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel()
266 if (cell->event.time.time.tv_sec || in prioq_match()
267 cell->event.time.time.tv_nsec) in prioq_match()
349 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
[all …]
/linux/lib/
A Dfind_bit_benchmark.c39 ktime_t time; in test_find_first_bit() local
41 time = ktime_get(); in test_find_first_bit()
46 time = ktime_get() - time; in test_find_first_bit()
55 ktime_t time; in test_find_next_bit() local
60 time = ktime_get() - time; in test_find_next_bit()
69 ktime_t time; in test_find_next_zero_bit() local
74 time = ktime_get() - time; in test_find_next_zero_bit()
83 ktime_t time; in test_find_last_bit() local
93 time = ktime_get() - time; in test_find_last_bit()
103 ktime_t time; in test_find_next_and_bit() local
[all …]
A Drbtree_test.c267 time = time2 - time1; in rbtree_test_init()
269 time = div_u64(time, perf_loops); in rbtree_test_init()
283 time = time2 - time1; in rbtree_test_init()
285 time = div_u64(time, perf_loops); in rbtree_test_init()
300 time = time2 - time1; in rbtree_test_init()
302 time = div_u64(time, perf_loops); in rbtree_test_init()
312 time = time2 - time1; in rbtree_test_init()
314 time = div_u64(time, perf_loops); in rbtree_test_init()
326 time = div_u64(time, perf_loops); in rbtree_test_init()
362 time = div_u64(time, perf_loops); in rbtree_test_init()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/core/
A Dsubdev.c58 s64 time; in nvkm_subdev_fini() local
61 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini()
74 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini()
82 s64 time; in nvkm_subdev_preinit() local
95 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit()
103 s64 time; in nvkm_subdev_init() local
110 s64 time; in nvkm_subdev_init() local
120 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_init()
132 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_init()
141 s64 time; in nvkm_subdev_del() local
[all …]
/linux/Documentation/sound/designs/
A Dtimestamping.rst7 - Trigger_tstamp is the system time snapshot taken when the .trigger
19 The difference (tstamp - trigger_tstamp) defines the elapsed time.
34 along with a snapshot of system time. Applications can select from
51 time time time time time
62 are pushed on a link. The link time can be directly measured if
70 The app time corresponds to the time tracked by an application after
79 time with dedicated hardware, possibly synchronized with system time,
90 streams and to the DMA time (hw_ptr) in all other cases.
108 precise start time (patches WIP)
181 ahead of the actual playback time (as a side time this sort of
[all …]
/linux/kernel/
A Dbuilt-in.a117 time/time.o/
118 time/timer.o/
119 time/hrtimer.o/
121 time/ntp.o/
123 time/jiffies.o/
124 time/timer_list.o/
125 time/timeconv.o/
127 time/alarmtimer.o/
131 time/itimer.o/
139 time/vsyscall.o/
[all …]
/linux/arch/um/kernel/
A Dtime.c97 time_travel_set_time(msg->time); in time_travel_handle_message()
115 .time = time, in time_travel_ext_req()
146 time_travel_set_time(msg.time); in time_travel_ext_req()
149 return msg.time; in time_travel_ext_req()
269 unsigned long long time) in __time_travel_add_event() argument
279 e->time = time; in __time_travel_add_event()
290 if ((tmp->time > e->time) || in __time_travel_add_event()
291 (tmp->time == e->time && tmp->onstack && e->onstack)) { in __time_travel_add_event()
303 time_travel_next_event = tmp->time; in __time_travel_add_event()
308 unsigned long long time) in time_travel_add_event() argument
[all …]
/linux/fs/fat/
A Dfat_test.c26 __le16 time; member
36 .time = cpu_to_le16(0),
52 .time = cpu_to_le16(0),
68 .time = cpu_to_le16(0),
76 .time = cpu_to_le16(0),
84 .time = cpu_to_le16(0),
116 .time = cpu_to_le16(0),
142 testcase->time, in fat_time_fat2unix_test()
158 __le16 date, time; in fat_time_unix2fat_test() local
167 &time, &date, &cs); in fat_time_unix2fat_test()
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
A Dxen_shinfo_test.c60 uint64_t time[4]; member
73 struct pvclock_vcpu_time_info time; member
103 GUEST_ASSERT(rs->time[RUNSTATE_runnable] != 0); in guest_code()
107 GUEST_ASSERT(rs->time[RUNSTATE_blocked] != 0); in guest_code()
111 GUEST_ASSERT(rs->time[RUNSTATE_offline] != 0); in guest_code()
116 GUEST_ASSERT(rs->time[RUNSTATE_blocked] == 0x5a); in guest_code()
122 GUEST_ASSERT(rs->time[RUNSTATE_runnable] == 0); in guest_code()
246 rs->time[1] + rs->time[2] + rs->time[3], in main()
268 0x5a - rs->time[RUNSTATE_blocked]; in main()
270 0x6b6b - rs->time[RUNSTATE_offline]; in main()
[all …]
/linux/drivers/base/power/
A Dtrace.c91 static struct rtc_time time = { in set_magic_time() local
103 time.tm_year = (n % 100); in set_magic_time()
105 time.tm_mon = (n % 12); in set_magic_time()
107 time.tm_mday = (n % 28) + 1; in set_magic_time()
109 time.tm_hour = (n % 24); in set_magic_time()
111 time.tm_min = (n % 20) * 3; in set_magic_time()
113 mc146818_set_time(&time); in set_magic_time()
120 struct rtc_time time; in read_magic_time() local
123 mc146818_get_time(&time); in read_magic_time()
124 pr_info("RTC time: %ptRt, date: %ptRd\n", &time, &time); in read_magic_time()
[all …]
/linux/tools/testing/selftests/timers/
A Dvalid-adjtimex.c205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
208 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
209 tmx.time.tv_sec -= 1; in set_offset()
210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
216 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
217 tmx.time.tv_sec -= 1; in set_offset()
218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset()
224 printf("(sec: %ld usec: %ld) ", tmx.time.tv_sec, tmx.time.tv_usec); in set_offset()
240 tmx.time.tv_sec = sec; in set_bad_offset()
241 tmx.time.tv_usec = usec; in set_bad_offset()
[all …]
/linux/drivers/input/misc/
A Daxp20x-pek.c49 unsigned int time; member
54 { .time = 128, .idx = 0 },
55 { .time = 1000, .idx = 2 },
56 { .time = 3000, .idx = 1 },
57 { .time = 2000, .idx = 3 },
61 { .time = 128, .idx = 0 },
62 { .time = 1000, .idx = 1 },
104 if (val == time[i].idx) in axp20x_show_attr()
105 val = time[i].time; in axp20x_show_attr()
156 err = abs(time[i].time - val); in axp20x_store_attr()
[all …]
/linux/crypto/
A Djitterentropy.c328 __u64 time = 0; in jent_loop_shuffle() local
333 jent_get_nstime(&time); in jent_loop_shuffle()
339 time ^= ec->data; in jent_loop_shuffle()
346 time = time >> bits; in jent_loop_shuffle()
518 __u64 time = 0; in jent_measure_jitter() local
529 jent_get_nstime(&time); in jent_measure_jitter()
531 ec->prev_time = time; in jent_measure_jitter()
739 __u64 time = 0; in jent_entropy_init() local
747 ec.prev_time = time; in jent_entropy_init()
752 if (!time || !time2) in jent_entropy_init()
[all …]

Completed in 128 milliseconds

12345678910>>...164