Home
last modified time | relevance | path

Searched refs:time (Results 76 - 100 of 3928) sorted by relevance

12345678910>>...158

/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-cmos.c236 dev_err_ratelimited(dev, "unable to read current time\n"); in cmos_read_time()
254 struct rtc_time *time; member
263 struct rtc_time *time = p->time; in cmos_read_alarm_callback() local
265 time->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm_callback()
266 time->tm_min = CMOS_READ(RTC_MINUTES_ALARM); in cmos_read_alarm_callback()
267 time->tm_hour = CMOS_READ(RTC_HOURS_ALARM); in cmos_read_alarm_callback()
271 time->tm_mday = CMOS_READ(p->cmos->day_alrm) & 0x3f; in cmos_read_alarm_callback()
272 if (!time->tm_mday) in cmos_read_alarm_callback()
273 time in cmos_read_alarm_callback()
[all...]
H A Drtc-vt8500.c65 #define VT8500_RTC_CR_12H (1 << 1) /* 12h time format */
104 u32 date, time; in vt8500_rtc_read_time() local
107 time = readl(vt8500_rtc->regbase + VT8500_RTC_TR); in vt8500_rtc_read_time()
109 tm->tm_sec = bcd2bin(time & TIME_SEC_MASK); in vt8500_rtc_read_time()
110 tm->tm_min = bcd2bin((time & TIME_MIN_MASK) >> TIME_MIN_S); in vt8500_rtc_read_time()
111 tm->tm_hour = bcd2bin((time & TIME_HOUR_MASK) >> TIME_HOUR_S); in vt8500_rtc_read_time()
116 tm->tm_wday = (time & TIME_DOW_MASK) >> TIME_DOW_S; in vt8500_rtc_read_time()
147 alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); in vt8500_rtc_read_alarm()
148 alrm->time.tm_hour = bcd2bin((alarm & TIME_HOUR_MASK) >> TIME_HOUR_S); in vt8500_rtc_read_alarm()
149 alrm->time in vt8500_rtc_read_alarm()
[all...]
H A Drtc-pcf8563.c211 "low voltage detected, date/time is not reliable.\n"); in pcf8563_rtc_read_time()
309 tm->time.tm_sec = 0; in pcf8563_rtc_read_alarm()
310 tm->time.tm_min = bcd2bin(buf[0] & 0x7F); in pcf8563_rtc_read_alarm()
311 tm->time.tm_hour = bcd2bin(buf[1] & 0x3F); in pcf8563_rtc_read_alarm()
312 tm->time.tm_mday = bcd2bin(buf[2] & 0x3F); in pcf8563_rtc_read_alarm()
313 tm->time.tm_wday = bcd2bin(buf[3] & 0x7); in pcf8563_rtc_read_alarm()
320 " enabled=%d, pending=%d\n", __func__, tm->time.tm_min, in pcf8563_rtc_read_alarm()
321 tm->time.tm_hour, tm->time.tm_mday, tm->time in pcf8563_rtc_read_alarm()
[all...]
H A Drtc-s35390a.c114 * this information in the hardware to know later that the time isn't in s35390a_init()
284 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_rtc_set_alarm()
285 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, in s35390a_rtc_set_alarm()
286 alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); in s35390a_rtc_set_alarm()
288 if (alm->time.tm_sec != 0) in s35390a_rtc_set_alarm()
311 if (alm->time in s35390a_rtc_set_alarm()
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-cmos.c236 dev_err_ratelimited(dev, "unable to read current time\n"); in cmos_read_time()
254 struct rtc_time *time; member
263 struct rtc_time *time = p->time; in cmos_read_alarm_callback() local
265 time->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm_callback()
266 time->tm_min = CMOS_READ(RTC_MINUTES_ALARM); in cmos_read_alarm_callback()
267 time->tm_hour = CMOS_READ(RTC_HOURS_ALARM); in cmos_read_alarm_callback()
271 time->tm_mday = CMOS_READ(p->cmos->day_alrm) & 0x3f; in cmos_read_alarm_callback()
272 if (!time->tm_mday) in cmos_read_alarm_callback()
273 time in cmos_read_alarm_callback()
[all...]
H A Drtc-vt8500.c65 #define VT8500_RTC_CR_12H (1 << 1) /* 12h time format */
104 u32 date, time; in vt8500_rtc_read_time() local
107 time = readl(vt8500_rtc->regbase + VT8500_RTC_TR); in vt8500_rtc_read_time()
109 tm->tm_sec = bcd2bin(time & TIME_SEC_MASK); in vt8500_rtc_read_time()
110 tm->tm_min = bcd2bin((time & TIME_MIN_MASK) >> TIME_MIN_S); in vt8500_rtc_read_time()
111 tm->tm_hour = bcd2bin((time & TIME_HOUR_MASK) >> TIME_HOUR_S); in vt8500_rtc_read_time()
116 tm->tm_wday = (time & TIME_DOW_MASK) >> TIME_DOW_S; in vt8500_rtc_read_time()
147 alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); in vt8500_rtc_read_alarm()
148 alrm->time.tm_hour = bcd2bin((alarm & TIME_HOUR_MASK) >> TIME_HOUR_S); in vt8500_rtc_read_alarm()
149 alrm->time in vt8500_rtc_read_alarm()
[all...]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
H A Dnetdev-times.py1 # Display a process of packets and processed time.
27 net_rx_dic = {}; # key is cpu and value include time of NET_RX softirq-entry
59 # Calculate a time interval(msec) from src(nsec) to dst(nsec)
116 (diff_msec(base_t, irq_event['time']),
179 # order all events in time
308 (name, context, cpu, time, pid, comm, irq, irq_name) = event_info
311 irq_record = {'irq':irq, 'name':irq_name, 'cpu':cpu, 'irq_ent_t':time}
315 (name, context, cpu, time, pid, comm, irq, ret) = event_info
321 irq_record.update({'irq_ext_t':time})
327 (name, context, cpu, time, pi
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dnetdev-times.py1 # Display a process of packets and processed time.
27 net_rx_dic = {}; # key is cpu and value include time of NET_RX softirq-entry
59 # Calculate a time interval(msec) from src(nsec) to dst(nsec)
116 (diff_msec(base_t, irq_event['time']),
179 # order all events in time
308 (name, context, cpu, time, pid, comm, irq, irq_name) = event_info
311 irq_record = {'irq':irq, 'name':irq_name, 'cpu':cpu, 'irq_ent_t':time}
315 (name, context, cpu, time, pid, comm, irq, ret) = event_info
321 irq_record.update({'irq_ext_t':time})
327 (name, context, cpu, time, pi
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/
H A Dobject.c183 s64 time; in nvkm_object_fini() local
187 time = ktime_to_us(ktime_get()); in nvkm_object_fini()
204 time = ktime_to_us(ktime_get()) - time; in nvkm_object_fini()
205 nvif_debug(object, "%s completed in %lldus\n", action, time); in nvkm_object_fini()
225 s64 time; in nvkm_object_init() local
229 time = ktime_to_us(ktime_get()); in nvkm_object_init()
243 time = ktime_to_us(ktime_get()) - time; in nvkm_object_init()
244 nvif_debug(object, "init completed in %lldus\n", time); in nvkm_object_init()
262 s64 time; nvkm_object_dtor() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/
H A Dobject.c183 s64 time; in nvkm_object_fini() local
187 time = ktime_to_us(ktime_get()); in nvkm_object_fini()
204 time = ktime_to_us(ktime_get()) - time; in nvkm_object_fini()
205 nvif_debug(object, "%s completed in %lldus\n", action, time); in nvkm_object_fini()
225 s64 time; in nvkm_object_init() local
229 time = ktime_to_us(ktime_get()); in nvkm_object_init()
243 time = ktime_to_us(ktime_get()) - time; in nvkm_object_init()
244 nvif_debug(object, "init completed in %lldus\n", time); in nvkm_object_init()
262 s64 time; nvkm_object_dtor() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/rtc/
H A Drtctest.c14 #include <sys/time.h>
16 #include <time.h>
43 /* Read the RTC time/date */ in TEST_F()
47 TH_LOG("Current RTC date/time is %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
136 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
174 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
177 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
178 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
192 TH_LOG("Alarm time now set to %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
193 alarm.time in TEST_F()
[all...]
/kernel/linux/linux-5.10/drivers/input/misc/
H A Daxp20x-pek.c48 unsigned int time; member
53 { .time = 128, .idx = 0 },
54 { .time = 1000, .idx = 2 },
55 { .time = 3000, .idx = 1 },
56 { .time = 2000, .idx = 3 },
60 { .time = 128, .idx = 0 },
61 { .time = 1000, .idx = 1 },
62 { .time = 2000, .idx = 2 },
63 { .time = 3000, .idx = 3 },
67 { .time
87 axp20x_show_attr(struct device *dev, const struct axp20x_time *time, unsigned int mask, char *buf) axp20x_show_attr() argument
129 axp20x_store_attr(struct device *dev, const struct axp20x_time *time, unsigned int mask, const char *buf, size_t count) axp20x_store_attr() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/rtc/
H A Drtctest.c14 #include <sys/time.h>
16 #include <time.h>
48 /* Read the RTC time/date */ in TEST_F()
52 TH_LOG("Current RTC date/time is %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
95 TH_LOG("Continuously reading RTC time for %ds (with %dms breaks after every read).",
112 /* Time should not increase more then 1s at a time */
122 TH_LOG("Performed %ld RTC time reads.", iter_count);
221 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
263 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
266 secs = timegm((struct tm *)&alarm.time) in TEST_F()
[all...]
/kernel/linux/linux-5.10/drivers/firmware/efi/
H A Defi-pstore.c52 u64 time; in efi_pstore_read_func() local
61 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func()
62 record->id = generic_id(time, part, cnt); in efi_pstore_read_func()
65 record->time.tv_sec = time; in efi_pstore_read_func()
66 record->time.tv_nsec = 0; in efi_pstore_read_func()
73 &record->type, &part, &cnt, &time) == 4) { in efi_pstore_read_func()
74 record->id = generic_id(time, part, cnt); in efi_pstore_read_func()
77 record->time.tv_sec = time; in efi_pstore_read_func()
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dppc_cbe_cpufreq_pmi.c23 #include <asm/time.h>
40 long time; in cbe_cpufreq_set_pmode_pmi() local
47 time = jiffies; in cbe_cpufreq_set_pmode_pmi()
52 time = jiffies - time; in cbe_cpufreq_set_pmode_pmi()
53 time = jiffies_to_msecs(time); in cbe_cpufreq_set_pmode_pmi()
55 "PMI\n", time); in cbe_cpufreq_set_pmode_pmi()
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
H A Dsmttimer.c58 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, in smt_timer_start() argument
65 time /= 16 ; /* input is uS, clock ticks are 16uS */ in smt_timer_start()
66 if (!time) in smt_timer_start()
67 time = 1 ; in smt_timer_start()
75 timer->tm_delta = time ; in smt_timer_start()
76 hwt_start(smc,time) ; in smt_timer_start()
89 if (delta + tm->tm_delta > time) { in smt_timer_start()
97 timer->tm_delta = time - delta ; in smt_timer_start()
/kernel/linux/linux-5.10/drivers/xen/
H A Dtime.c26 /* return an consistent snapshot of 64-bit time/counter value */
81 res->time[i] += per_cpu(old_runstate_time, cpu)[i]; in xen_get_runstate_snapshot_cpu()
91 case -1: /* backup runstate time before suspend */ in xen_manage_runstate_time()
107 memcpy(runstate_delta[cpu].time, state.time, in xen_manage_runstate_time()
108 sizeof(runstate_delta[cpu].time)); in xen_manage_runstate_time()
113 case 0: /* backup runstate time after resume */ in xen_manage_runstate_time()
115 pr_warn("%s: cannot accumulate runstate time as runstate_delta is NULL\n", in xen_manage_runstate_time()
123 runstate_delta[cpu].time[i]; in xen_manage_runstate_time()
128 default: /* do not accumulate runstate time fo in xen_manage_runstate_time()
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dppc_cbe_cpufreq_pmi.c22 #include <asm/time.h>
39 long time; in cbe_cpufreq_set_pmode_pmi() local
46 time = jiffies; in cbe_cpufreq_set_pmode_pmi()
51 time = jiffies - time; in cbe_cpufreq_set_pmode_pmi()
52 time = jiffies_to_msecs(time); in cbe_cpufreq_set_pmode_pmi()
54 "PMI\n", time); in cbe_cpufreq_set_pmode_pmi()
/kernel/linux/linux-6.6/drivers/net/fddi/skfp/
H A Dsmttimer.c54 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, in smt_timer_start() argument
61 time /= 16 ; /* input is uS, clock ticks are 16uS */ in smt_timer_start()
62 if (!time) in smt_timer_start()
63 time = 1 ; in smt_timer_start()
71 timer->tm_delta = time ; in smt_timer_start()
72 hwt_start(smc,time) ; in smt_timer_start()
85 if (delta + tm->tm_delta > time) { in smt_timer_start()
93 timer->tm_delta = time - delta ; in smt_timer_start()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dmpic_timer.h17 #include <linux/time.h>
28 time64_t time);
31 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time);
35 time64_t time) { return NULL; } in mpic_request_timer()
38 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) { } in mpic_get_remain_time() argument
34 mpic_request_timer(irq_handler_t fn, void *dev, time64_t time) mpic_request_timer() argument
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dmpic_timer.h17 #include <linux/time.h>
28 time64_t time);
31 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time);
35 time64_t time) { return NULL; } in mpic_request_timer()
38 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) { } in mpic_get_remain_time() argument
34 mpic_request_timer(irq_handler_t fn, void *dev, time64_t time) mpic_request_timer() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/
H A Dtimer.c28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test() local
31 wait->time0 = time; in nvif_timer_wait_test()
32 wait->time1 = time; in nvif_timer_wait_test()
35 if (wait->time1 == time) { in nvif_timer_wait_test()
39 wait->time1 = time; in nvif_timer_wait_test()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/
H A Dtimer.c28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test() local
31 wait->time0 = time; in nvif_timer_wait_test()
32 wait->time1 = time; in nvif_timer_wait_test()
35 if (wait->time1 == time) { in nvif_timer_wait_test()
39 wait->time1 = time; in nvif_timer_wait_test()
/kernel/liteos_a/kernel/base/include/
H A Dlos_sys_pri.h104 #define OS_US_TO_CYCLE(time, freq) ((((time) / OS_SYS_US_PER_SECOND) * (freq)) + \
105 (((time) % OS_SYS_US_PER_SECOND) * (freq) / OS_SYS_US_PER_SECOND))
107 #define OS_SYS_US_TO_CYCLE(time) OS_US_TO_CYCLE((time), OS_SYS_CLOCK)
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A Dleap-a-day.c18 * time by 24 hours every ~16 seconds, it may cause application
44 #include <time.h>
45 #include <sys/time.h>
138 if (tx.time.tv_sec < next_leap) { in sigalarm()
142 tx.time.tv_sec, in sigalarm()
143 tx.time.tv_usec, in sigalarm()
151 tx.time.tv_sec, in sigalarm()
152 tx.time.tv_usec, in sigalarm()
192 printf("Only setting leap-flag, not changing time. It could take up to a day for leap to trigger.\n"); in main()
204 printf(" (default sets time t in main()
[all...]

Completed in 12 milliseconds

12345678910>>...158