Home
last modified time | relevance | path

Searched refs:secs (Results 1 – 25 of 98) sorted by relevance

1234

/linux/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, err)
47 TP_PROTO(time64_t secs, int err),
[all …]
/linux/drivers/rtc/
H A Drtc-pcap.c44 unsigned long secs; in pcap_rtc_read_alarm() local
49 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_alarm()
52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm()
54 rtc_time64_to_tm(secs, tm); in pcap_rtc_read_alarm()
62 unsigned long secs = rtc_tm_to_time64(&alrm->time); in pcap_rtc_set_alarm() local
65 tod = secs % SEC_PER_DAY; in pcap_rtc_set_alarm()
68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm()
77 unsigned long secs; in pcap_rtc_read_time() local
81 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_time()
84 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_time()
[all …]
H A Drtc-pm8xxx.c212 static int pm8xxx_rtc_read_raw(struct pm8xxx_rtc *rtc_dd, u32 *secs) in pm8xxx_rtc_read_raw() argument
238 *secs = get_unaligned_le32(value); in pm8xxx_rtc_read_raw()
243 static int pm8xxx_rtc_update_offset(struct pm8xxx_rtc *rtc_dd, u32 secs) in pm8xxx_rtc_update_offset() argument
256 offset = secs - raw_secs; in pm8xxx_rtc_update_offset()
294 static int __pm8xxx_rtc_set_time(struct pm8xxx_rtc *rtc_dd, u32 secs) in __pm8xxx_rtc_set_time() argument
301 put_unaligned_le32(secs, value); in __pm8xxx_rtc_set_time()
348 u32 secs; in pm8xxx_rtc_set_time() local
351 secs = rtc_tm_to_time64(tm); in pm8xxx_rtc_set_time()
354 rc = __pm8xxx_rtc_set_time(rtc_dd, secs); in pm8xxx_rtc_set_time()
356 rc = pm8xxx_rtc_update_offset(rtc_dd, secs); in pm8xxx_rtc_set_time()
[all …]
H A Drtc-ab8500.c65 unsigned long mins, secs; in ab8500_rtc_read_time() local
99 secs = (buf[3] << 8) | buf[4]; in ab8500_rtc_read_time()
100 secs = secs / COUNTS_PER_SEC; in ab8500_rtc_read_time()
101 secs = secs + (mins * 60); in ab8500_rtc_read_time()
103 rtc_time64_to_tm(secs, tm); in ab8500_rtc_read_time()
111 unsigned long no_secs, no_mins, secs = 0; in ab8500_rtc_set_time() local
113 secs = rtc_tm_to_time64(tm); in ab8500_rtc_set_time()
115 no_mins = secs / 60; in ab8500_rtc_set_time()
117 no_secs = secs % 60; in ab8500_rtc_set_time()
145 unsigned long secs, mins; in ab8500_rtc_read_alarm() local
[all …]
H A Drtc-nvidia-vrs10.c179 time64_t secs = 0; in nvvrs_rtc_read_time() local
192 secs |= (time64_t)val << 24; in nvvrs_rtc_read_time()
199 secs |= (time64_t)val << 16; in nvvrs_rtc_read_time()
206 secs |= (time64_t)val << 8; in nvvrs_rtc_read_time()
213 secs |= val; in nvvrs_rtc_read_time()
215 rtc_time64_to_tm(secs, tm); in nvvrs_rtc_read_time()
223 time64_t secs; in nvvrs_rtc_set_time() local
227 secs = rtc_tm_to_time64(tm); in nvvrs_rtc_set_time()
228 time[0] = secs & 0xff; in nvvrs_rtc_set_time()
229 time[1] = (secs >> 8) & 0xff; in nvvrs_rtc_set_time()
[all …]
H A Drtc-at91sam9.c106 u32 secs, secs2; in at91_rtc_readtime() local
115 secs = rtt_readl(rtc, VR); in at91_rtc_readtime()
117 if (secs != secs2) in at91_rtc_readtime()
118 secs = rtt_readl(rtc, VR); in at91_rtc_readtime()
120 rtc_time64_to_tm(offset + secs, tm); in at91_rtc_readtime()
134 unsigned long secs; in at91_rtc_settime() local
138 secs = rtc_tm_to_time64(tm); in at91_rtc_settime()
149 secs += 1; in at91_rtc_settime()
150 gpbr_writel(rtc, secs); in at91_rtc_settime()
155 if (offset > secs) { in at91_rtc_settime()
[all …]
H A Dtest_rtc_lib.c51 time64_t secs; in rtc_time64_to_tm_test_date_range() local
54 for (secs = 0; secs <= total_secs; secs += 86400) { in rtc_time64_to_tm_test_date_range()
56 rtc_time64_to_tm(secs + sec_offset, &result); in rtc_time64_to_tm_test_date_range()
59 year, month, mday, yday, wday, secs + sec_offset in rtc_time64_to_tm_test_date_range()
H A Drtc-sunplus.c65 static void sp_get_seconds(struct device *dev, unsigned long *secs) in sp_get_seconds() argument
69 *secs = (unsigned long)readl(sp_rtc->reg_base + RTC_TIMER_OUT); in sp_get_seconds()
72 static void sp_set_seconds(struct device *dev, unsigned long secs) in sp_set_seconds() argument
76 writel((u32)secs, sp_rtc->reg_base + RTC_TIMER_SET); in sp_set_seconds()
81 unsigned long secs; in sp_rtc_read_time() local
83 sp_get_seconds(dev, &secs); in sp_rtc_read_time()
84 rtc_time64_to_tm(secs, tm); in sp_rtc_read_time()
91 unsigned long secs; in sp_rtc_set_time() local
93 secs = rtc_tm_to_time64(tm); in sp_rtc_set_time()
94 dev_dbg(dev, "%s, secs = %lu\n", __func__, secs); in sp_rtc_set_time()
[all …]
H A Drtc-sc27xx.c167 time64_t *secs) in sprd_rtc_get_secs() argument
219 *secs = (((time64_t)(day * 24) + hour) * 60 + min) * 60 + sec; in sprd_rtc_get_secs()
224 time64_t secs) in sprd_rtc_set_secs() argument
231 day = div_s64_rem(secs, 86400, &rem); in sprd_rtc_set_secs()
305 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_aux_alarm() local
314 ret = sprd_rtc_set_secs(rtc, SPRD_RTC_AUX_ALARM, secs); in sprd_rtc_set_aux_alarm()
335 time64_t secs; in sprd_rtc_read_time() local
343 ret = sprd_rtc_get_secs(rtc, SPRD_RTC_TIME, &secs); in sprd_rtc_read_time()
347 rtc_time64_to_tm(secs, tm); in sprd_rtc_read_time()
354 time64_t secs = rtc_tm_to_time64(tm); in sprd_rtc_set_time() local
[all …]
H A Dlib.c54 int secs; in rtc_time64_to_tm() local
72 udays = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
147 tm->tm_hour = secs / 3600; in rtc_time64_to_tm()
148 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm()
149 tm->tm_min = secs / 60; in rtc_time64_to_tm()
150 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
H A Drtc-jz4740.c145 uint32_t secs, secs2; in jz4740_rtc_read_time() local
155 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC); in jz4740_rtc_read_time()
158 while (secs != secs2 && --timeout) { in jz4740_rtc_read_time()
159 secs = secs2; in jz4740_rtc_read_time()
166 rtc_time64_to_tm(secs, time); in jz4740_rtc_read_time()
186 uint32_t secs; in jz4740_rtc_read_alarm() local
189 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC_ALARM); in jz4740_rtc_read_alarm()
196 rtc_time64_to_tm(secs, &alrm->time); in jz4740_rtc_read_alarm()
205 uint32_t secs = lower_32_bits(rtc_tm_to_time64(&alrm->time)); in jz4740_rtc_set_alarm() local
207 ret = jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC_ALARM, secs); in jz4740_rtc_set_alarm()
H A Drtc-ds1672.c86 unsigned long secs = rtc_tm_to_time64(tm); in ds1672_set_time() local
89 buf[1] = secs & 0x000000FF; in ds1672_set_time()
90 buf[2] = (secs & 0x0000FF00) >> 8; in ds1672_set_time()
91 buf[3] = (secs & 0x00FF0000) >> 16; in ds1672_set_time()
92 buf[4] = (secs & 0xFF000000) >> 24; in ds1672_set_time()
/linux/kernel/time/
H A Dtime_test.c67 time64_t secs; in time64_to_tm_test_date_range() local
70 for (secs = -total_secs; secs <= total_secs; secs += 86400) { in time64_to_tm_test_date_range()
72 time64_to_tm(secs, 0, &result); in time64_to_tm_test_date_range()
74 days = div_s64(secs, 86400); in time64_to_tm_test_date_range()
H A Dntp.c270 static inline s64 ntp_update_offset_fll(struct ntp_data *ntpdata, s64 offset64, long secs) in ntp_update_offset_fll() argument
274 if (secs < MINSEC) in ntp_update_offset_fll()
277 if (!(ntpdata->time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
282 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
288 long secs, real_secs; in ntp_update_offset() local
307 secs = (long)(real_secs - ntpdata->time_reftime); in ntp_update_offset()
309 secs = 0; in ntp_update_offset()
314 freq_adj = ntp_update_offset_fll(ntpdata, offset64, secs); in ntp_update_offset()
321 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + ntpdata->time_constant))) in ntp_update_offset()
322 secs = 1 << (SHIFT_PLL + 1 + ntpdata->time_constant); in ntp_update_offset()
[all …]
/linux/tools/testing/selftests/rtc/
H A Drtctest.c227 time_t secs, new; in TEST_F() local
244 secs = timegm((struct tm *)&tm) + ALARM_DELTA; in TEST_F()
245 gmtime_r(&secs, (struct tm *)&tm); in TEST_F()
288 ASSERT_EQ(new, secs); in TEST_F()
297 time_t secs, new; in TEST_F() local
314 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
315 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
353 ASSERT_EQ(new, secs); in TEST_F()
361 time_t secs, new; variable
376 secs = timegm((struct tm *)&tm) + 60 - tm.tm_sec;
[all …]
/linux/tools/testing/selftests/sgx/
H A Dload.c82 struct sgx_secs *secs = &encl->secs; in encl_ioc_create() local
88 memset(secs, 0, sizeof(*secs)); in encl_ioc_create()
89 secs->ssa_frame_size = 1; in encl_ioc_create()
90 secs->attributes = SGX_ATTR_MODE64BIT; in encl_ioc_create()
91 secs->xfrm = 3; in encl_ioc_create()
92 secs->base = encl->encl_base; in encl_ioc_create()
93 secs->size = encl->encl_size; in encl_ioc_create()
95 ioc.src = (unsigned long)secs; in encl_ioc_create()
99 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create()
/linux/arch/mips/mti-malta/
H A Dmalta-time.c66 int secs; in estimate_frequencies() local
106 secs = secs2 - secs1; in estimate_frequencies()
107 if (secs < 1) in estimate_frequencies()
108 secs += 60; in estimate_frequencies()
111 count /= secs; in estimate_frequencies()
115 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
/linux/drivers/net/dsa/microchip/
H A Dlan937x_main.c467 u32 secs = msecs; in lan937x_set_ageing_time() local
482 secs /= 1000; in lan937x_set_ageing_time()
483 if (!secs) in lan937x_set_ageing_time()
484 secs = 1; in lan937x_set_ageing_time()
487 else if (secs > 7 * MAX_TIMER_VAL) in lan937x_set_ageing_time()
508 max_val = DIV_ROUND_UP(secs, mult); in lan937x_set_ageing_time()
509 if (max_val > MAX_TIMER_VAL || max_val * mult != secs) in lan937x_set_ageing_time()
513 data = DIV_ROUND_UP(secs, max_val); in lan937x_set_ageing_time()
522 secs = DIV_ROUND_UP(secs, data); in lan937x_set_ageing_time()
524 value = FIELD_GET(SW_AGE_PERIOD_7_0_M, secs); in lan937x_set_ageing_time()
[all …]
/linux/kernel/trace/
H A Dtrace_mmiotrace.c173 unsigned secs = (unsigned long)t; in mmio_print_rw() local
182 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
189 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
197 secs, usec_rem, rw->map_id, in mmio_print_rw()
218 unsigned secs = (unsigned long)t; in mmio_print_map() local
227 secs, usec_rem, m->map_id, in mmio_print_map()
234 secs, usec_rem, m->map_id, 0UL, 0); in mmio_print_map()
252 unsigned secs = (unsigned long)t; in mmio_print_mark() local
255 trace_seq_printf(s, "MARK %u.%06lu %s", secs, usec_rem, msg); in mmio_print_mark()
/linux/arch/mips/boot/tools/
H A Drelocs.c32 static struct section *secs; variable
96 sec_strtab = secs[ehdr.e_shstrndx].strtab; in sec_name()
98 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
114 return &secs[i]; in sec_lookup()
265 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs()
266 if (!secs) in read_shdrs()
273 struct section *sec = &secs[i]; in read_shdrs()
290 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
299 struct section *sec = &secs[i]; in read_strtabs()
324 struct section *sec = &secs[i]; in read_symtabs()
[all …]
/linux/arch/x86/um/vdso/
H A Dum_vdso.c46 long secs; in __vdso_time() local
49 : "=a" (secs) in __vdso_time()
52 return secs; in __vdso_time()
/linux/samples/bpf/
H A Dsampleip_user.c141 int opt, freq = DEFAULT_FREQ, secs = DEFAULT_SECS, error = 1; in main() local
160 secs = atoi(argv[optind]); in main()
161 if (freq == 0 || secs == 0) { in main()
218 freq, secs); in main()
222 sleep(secs); in main()
/linux/arch/x86/tools/
H A Drelocs.c51 static struct section *secs; variable
264 sec_strtab = secs[shstrndx].strtab; in sec_name()
268 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
331 Elf_Sym *symtab = secs[shsymtabndx].symtab; in sym_index()
332 Elf32_Word *xsymtab = secs[shxsymtabndx].xsymtab; in sym_index()
416 secs = calloc(shnum, sizeof(struct section)); in read_shdrs()
417 if (!secs) in read_shdrs()
424 struct section *sec = &secs[i]; in read_shdrs()
440 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
450 struct section *sec = &secs[i]; in read_strtabs()
[all …]
/linux/crypto/
H A Dtcrypt.c176 int blen, int secs, u32 num_mb) in test_mb_aead_jiffies() argument
187 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_mb_aead_jiffies()
195 bcount * num_mb, secs, (u64)bcount * blen * num_mb); in test_mb_aead_jiffies()
243 static void test_mb_aead_speed(const char *algo, int enc, int secs, in test_mb_aead_speed() argument
414 if (secs) { in test_mb_aead_speed()
416 secs, num_mb); in test_mb_aead_speed()
454 int blen, int secs) in test_aead_jiffies() argument
460 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_aead_jiffies()
472 bcount, secs, (u64)bcount * blen); in test_aead_jiffies()
518 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() argument
[all …]
/linux/tools/perf/scripts/python/
H A Dcompaction-times.py96 def complete(self, secs, nsecs): argument
97 self.ns = ns(secs, nsecs) - self.ns
141 def complete_pending(cls, pid, secs, nsecs): argument
145 head.make_complete(secs, nsecs)
172 def mark_pending(self, secs, nsecs): argument
173 self.pending = cnode(ns(secs, nsecs))
178 def make_complete(self, secs, nsecs): argument
179 self.pending.complete(secs, nsecs)

1234