/linux-master/drivers/watchdog/ |
H A D | omap_wdt.h | 29 #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 D | lib_test.c | 48 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 D | rtc-pcap.c | 44 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 D | lib.c | 54 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 D | rtc-pm8xxx.c | 121 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 D | rtc-ds1672.c | 86 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 D | rtc-ab8500.c | 65 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 D | rtc-at91sam9.c | 106 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 D | rtc-sunplus.c | 65 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 D | rtc-sun4v.c | 46 static int hypervisor_set_time(unsigned long secs) argument 52 ret = sun4v_tod_set(secs);
|
/linux-master/kernel/time/ |
H A D | time_test.c | 67 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 D | ntp_internal.h | 10 extern int second_overflow(time64_t secs);
|
/linux-master/include/trace/events/ |
H A D | rtc.h | 12 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 D | um_vdso.c | 46 long secs; local 49 : "=a" (secs) 52 return secs;
|
/linux-master/crypto/asymmetric_keys/ |
H A D | verify_pefile.h | 20 const struct section_header *secs; member in struct:pefile_context
|
/linux-master/arch/mips/mti-malta/ |
H A D | malta-time.c | 66 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 D | encls.h | 140 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 D | virt.c | 323 * @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 D | rtctest.c | 198 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 D | load.c | 82 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 D | rtc.c | 64 time64_t secs = rtc_tm_to_time64(tm); local 65 u32 adj = secs + TWENTY_YEARS;
|
/linux-master/tools/perf/scripts/python/ |
H A D | check-perf-trace.py | 60 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 D | check-perf-trace.pl | 102 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 D | Util.py | 23 def nsecs(secs, nsecs): 24 return secs * NSECS_PER_SEC + nsecs
|
/linux-master/samples/bpf/ |
H A D | sampleip_user.c | 141 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);
|