Searched refs:secs (Results 1 - 25 of 110) sorted by relevance

12345

/linux-master/drivers/watchdog/
H A Domap_wdt.h29 #define TIMER_MARGIN_DEFAULT 60 /* 60 secs */
33 #define GET_WLDR_VAL(secs) (0xffffffff - ((secs) * (32768/(1<<PTV))) + 1)
/linux-master/drivers/rtc/
H A Dlib_test.c48 time64_t secs; local
51 for (secs = 0; secs <= total_secs; secs += 86400) {
53 rtc_time64_to_tm(secs, &result);
55 days = div_s64(secs, 86400);
H A Drtc-pcap.c44 unsigned long secs; local
49 secs = tod & PCAP_RTC_TOD_MASK;
52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY;
54 rtc_time64_to_tm(secs, tm);
62 unsigned long secs = rtc_tm_to_time64(&alrm->time); local
65 tod = secs % SEC_PER_DAY;
68 days = secs / SEC_PER_DAY;
77 unsigned long secs; local
81 secs = tod & PCAP_RTC_TOD_MASK;
84 secs
94 unsigned long secs = rtc_tm_to_time64(tm); local
[all...]
H A Dlib.c54 unsigned int secs; local
63 days = div_s64_rem(time, 86400, &secs);
135 tm->tm_hour = secs / 3600;
136 secs -= tm->tm_hour * 3600;
137 tm->tm_min = secs / 60;
138 tm->tm_sec = secs - tm->tm_min * 60;
H A Drtc-pm8xxx.c121 static int pm8xxx_rtc_read_raw(struct pm8xxx_rtc *rtc_dd, u32 *secs) argument
147 *secs = get_unaligned_le32(value);
152 static int pm8xxx_rtc_update_offset(struct pm8xxx_rtc *rtc_dd, u32 secs) argument
165 offset = secs - raw_secs;
188 static int __pm8xxx_rtc_set_time(struct pm8xxx_rtc *rtc_dd, u32 secs) argument
195 put_unaligned_le32(secs, value);
242 u32 secs; local
245 secs = rtc_tm_to_time64(tm);
248 rc = __pm8xxx_rtc_set_time(rtc_dd, secs);
250 rc = pm8xxx_rtc_update_offset(rtc_dd, secs);
263 u32 secs; local
283 u32 secs; local
318 u32 secs; local
[all...]
H A Drtc-ds1672.c86 unsigned long secs = rtc_tm_to_time64(tm); local
89 buf[1] = secs & 0x000000FF;
90 buf[2] = (secs & 0x0000FF00) >> 8;
91 buf[3] = (secs & 0x00FF0000) >> 16;
92 buf[4] = (secs & 0xFF000000) >> 24;
H A Drtc-ab8500.c65 unsigned long mins, secs; local
99 secs = (buf[3] << 8) | buf[4];
100 secs = secs / COUNTS_PER_SEC;
101 secs = secs + (mins * 60);
103 rtc_time64_to_tm(secs, tm);
111 unsigned long no_secs, no_mins, secs = 0; local
113 secs = rtc_tm_to_time64(tm);
115 no_mins = secs / 6
145 unsigned long secs, mins; local
[all...]
H A Drtc-at91sam9.c106 u32 secs, secs2; local
115 secs = rtt_readl(rtc, VR);
117 if (secs != secs2)
118 secs = rtt_readl(rtc, VR);
120 rtc_time64_to_tm(offset + secs, tm);
134 unsigned long secs; local
138 secs = rtc_tm_to_time64(tm);
149 secs += 1;
150 gpbr_writel(rtc, secs);
155 if (offset > secs) {
203 unsigned long secs; local
[all...]
H A Drtc-sunplus.c65 static void sp_get_seconds(struct device *dev, unsigned long *secs) argument
69 *secs = (unsigned long)readl(sp_rtc->reg_base + RTC_TIMER_OUT);
72 static void sp_set_seconds(struct device *dev, unsigned long secs) argument
76 writel((u32)secs, sp_rtc->reg_base + RTC_TIMER_SET);
81 unsigned long secs; local
83 sp_get_seconds(dev, &secs);
84 rtc_time64_to_tm(secs, tm);
91 unsigned long secs; local
93 secs = rtc_tm_to_time64(tm);
94 dev_dbg(dev, "%s, secs
[all...]
H A Drtc-sun4v.c46 static int hypervisor_set_time(unsigned long secs) argument
52 ret = sun4v_tod_set(secs);
/linux-master/kernel/time/
H A Dtime_test.c67 time64_t secs; local
70 for (secs = -total_secs; secs <= total_secs; secs += 86400) {
72 time64_to_tm(secs, 0, &result);
74 days = div_s64(secs, 86400);
H A Dntp_internal.h10 extern int second_overflow(time64_t secs);
/linux-master/include/trace/events/
H A Drtc.h12 TP_PROTO(time64_t secs, int err),
14 TP_ARGS(secs, err),
17 __field(time64_t, secs)
22 __entry->secs = secs;
27 __entry->secs, __entry->err
33 TP_PROTO(time64_t secs, int err),
35 TP_ARGS(secs, err)
40 TP_PROTO(time64_t secs, int err),
42 TP_ARGS(secs, er
[all...]
/linux-master/arch/x86/um/vdso/
H A Dum_vdso.c46 long secs; local
49 : "=a" (secs)
52 return secs;
/linux-master/crypto/asymmetric_keys/
H A Dverify_pefile.h20 const struct section_header *secs; member in struct:pefile_context
/linux-master/arch/mips/mti-malta/
H A Dmalta-time.c66 int secs; local
106 secs = secs2 - secs1;
107 if (secs < 1)
108 secs += 60;
111 count /= secs;
115 giccount = div_u64(giccount - gicstart, secs);
/linux-master/arch/x86/kernel/cpu/sgx/
H A Dencls.h140 static inline int __ecreate(struct sgx_pageinfo *pginfo, void *secs) argument
142 return __encls_2(ECREATE, pginfo, secs);
146 static inline int __eextend(void *secs, void *addr) argument
148 return __encls_2(EEXTEND, secs, addr);
161 static inline int __einit(void *sigstruct, void *token, void *secs) argument
163 return __encls_ret_3(EINIT, sigstruct, secs, token);
H A Dvirt.c323 * @secs: Userspace pointer to SECS page
334 int sgx_virt_ecreate(struct sgx_pageinfo *pageinfo, void __user *secs, argument
340 * @secs is an untrusted, userspace-provided address. It comes from
343 * userspace mapping @secs doesn't exist.
345 * Add a WARN() to make sure @secs is already valid userspace pointer
348 * such as alignment of @secs, are deferred to ENCLS itself.
350 if (WARN_ON_ONCE(!access_ok(secs, PAGE_SIZE)))
354 ret = __ecreate(pageinfo, (void *)secs);
369 void __user *secs)
376 * for @secs i
368 __sgx_virt_einit(void __user *sigstruct, void __user *token, void __user *secs) argument
408 sgx_virt_einit(void __user *sigstruct, void __user *token, void __user *secs, u64 *lepubkeyhash, int *trapnr) argument
[all...]
/linux-master/tools/testing/selftests/rtc/
H A Drtctest.c198 time_t secs, new; local
208 secs = timegm((struct tm *)&tm) + ALARM_DELTA;
209 gmtime_r(&secs, (struct tm *)&tm);
247 ASSERT_EQ(new, secs);
256 time_t secs, new; local
266 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA;
267 gmtime_r(&secs, (struct tm *)&alarm.time);
300 ASSERT_EQ(new, secs);
308 time_t secs, new; variable
318 secs
366 time_t secs, new; variable
[all...]
/linux-master/tools/testing/selftests/sgx/
H A Dload.c82 struct sgx_secs *secs = &encl->secs; local
88 memset(secs, 0, sizeof(*secs));
89 secs->ssa_frame_size = 1;
90 secs->attributes = SGX_ATTR_MODE64BIT;
91 secs->xfrm = 3;
92 secs->base = encl->encl_base;
93 secs->size = encl->encl_size;
95 ioc.src = (unsigned long)secs;
[all...]
/linux-master/arch/sh/boards/mach-dreamcast/
H A Drtc.c64 time64_t secs = rtc_tm_to_time64(tm); local
65 u32 adj = secs + TWENTY_YEARS;
/linux-master/tools/perf/scripts/python/
H A Dcheck-perf-trace.py60 def print_header(event_name, cpu, secs, nsecs, pid, comm):
62 (event_name, cpu, secs, nsecs, pid, comm),
/linux-master/tools/perf/scripts/perl/
H A Dcheck-perf-trace.pl102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_;
105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
/linux-master/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DUtil.py23 def nsecs(secs, nsecs):
24 return secs * NSECS_PER_SEC + nsecs
/linux-master/samples/bpf/
H A Dsampleip_user.c141 int opt, freq = DEFAULT_FREQ, secs = DEFAULT_SECS, error = 1; local
160 secs = atoi(argv[optind]);
161 if (freq == 0 || secs == 0) {
218 freq, secs);
222 sleep(secs);

Completed in 365 milliseconds

12345