Home
last modified time | relevance | path

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

123456

/linux-6.15/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)
49 TP_ARGS(secs, err)
[all …]
/linux-6.15/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()
54 rtc_time64_to_tm(secs, tm); in pcap_rtc_read_alarm()
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()
86 rtc_time64_to_tm(secs, tm); in pcap_rtc_read_time()
94 unsigned long secs = rtc_tm_to_time64(tm); in pcap_rtc_set_time() local
97 tod = secs % SEC_PER_DAY; in pcap_rtc_set_time()
[all …]
H A Drtc-pm8xxx.c256 offset = secs - raw_secs; in pm8xxx_rtc_update_offset()
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()
369 u32 secs; in pm8xxx_rtc_read_time() local
376 secs += rtc_dd->offset; in pm8xxx_rtc_read_time()
377 rtc_time64_to_tm(secs, tm); in pm8xxx_rtc_read_time()
389 u32 secs; in pm8xxx_rtc_set_alarm() local
393 secs -= rtc_dd->offset; in pm8xxx_rtc_set_alarm()
424 u32 secs; in pm8xxx_rtc_read_alarm() local
[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()
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
169 secs = mins * 60; in ab8500_rtc_read_alarm()
[all …]
H A Dlib_test.c48 time64_t secs; in rtc_time64_to_tm_test_date_range() local
51 for (secs = 0; secs <= total_secs; secs += 86400) { in rtc_time64_to_tm_test_date_range()
53 rtc_time64_to_tm(secs, &result); in rtc_time64_to_tm_test_date_range()
55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range()
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()
134 unsigned long secs; in at91_rtc_settime() local
149 secs += 1; in at91_rtc_settime()
150 gpbr_writel(rtc, secs); in at91_rtc_settime()
155 if (offset > secs) { in at91_rtc_settime()
157 alarm += (offset - secs); in at91_rtc_settime()
203 unsigned long secs; in at91_rtc_setalarm() local
[all …]
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 Dlib.c54 unsigned int secs; in rtc_time64_to_tm() local
63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
135 tm->tm_hour = secs / 3600; in rtc_time64_to_tm()
136 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm()
137 tm->tm_min = secs / 60; in rtc_time64_to_tm()
138 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
H A Drtc-sc27xx.c167 time64_t *secs) in sprd_rtc_get_secs() argument
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
335 time64_t secs; in sprd_rtc_read_time() local
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
357 ret = sprd_rtc_set_secs(rtc, SPRD_RTC_TIME, secs); in sprd_rtc_set_time()
386 time64_t secs; in sprd_rtc_read_alarm() local
398 rtc_time64_to_tm(secs, &alrm->time); in sprd_rtc_read_alarm()
[all …]
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()
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()
/linux-6.15/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.c271 if (secs < MINSEC) in ntp_update_offset_fll()
285 long secs, real_secs; in ntp_update_offset() local
304 secs = (long)(real_secs - ntpdata->time_reftime); in ntp_update_offset()
306 secs = 0; in ntp_update_offset()
319 secs = 1 << (SHIFT_PLL + 1 + ntpdata->time_constant); in ntp_update_offset()
321 freq_adj += (offset64 * secs) << in ntp_update_offset()
390 int second_overflow(time64_t secs) in second_overflow() argument
406 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow()
410 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow()
418 } else if (secs == ntpdata->ntp_next_leap_sec) { in second_overflow()
[all …]
/linux-6.15/arch/x86/kernel/cpu/sgx/
H A Dioctl.c71 if (!is_power_of_2(secs->size)) in sgx_encl_create()
99 encl->secs.epc_page = secs_epc; in sgx_encl_create()
104 pginfo.secs = 0; in sgx_encl_create()
116 encl->secs.encl = encl; in sgx_encl_create()
118 encl->base = secs->base; in sgx_encl_create()
119 encl->size = secs->size; in sgx_encl_create()
130 encl->secs.epc_page = NULL; in sgx_encl_create()
157 void *secs; in sgx_ioc_enclave_create() local
167 if (!secs) in sgx_ioc_enclave_create()
175 kfree(secs); in sgx_ioc_enclave_create()
[all …]
H A Dvirt.c334 int sgx_virt_ecreate(struct sgx_pageinfo *pageinfo, void __user *secs, in sgx_virt_ecreate() argument
350 if (WARN_ON_ONCE(!access_ok(secs, PAGE_SIZE))) in sgx_virt_ecreate()
354 ret = __ecreate(pageinfo, (void *)secs); in sgx_virt_ecreate()
369 void __user *secs) in __sgx_virt_einit() argument
381 !access_ok(secs, PAGE_SIZE))) in __sgx_virt_einit()
385 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit()
409 void __user *secs, u64 *lepubkeyhash, int *trapnr) in sgx_virt_einit() argument
414 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
420 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
H A Dencls.h140 static inline int __ecreate(struct sgx_pageinfo *pginfo, void *secs) in __ecreate() argument
142 return __encls_2(ECREATE, pginfo, secs); in __ecreate()
146 static inline int __eextend(void *secs, void *addr) in __eextend() argument
148 return __encls_2(EEXTEND, secs, addr); in __eextend()
161 static inline int __einit(void *sigstruct, void *token, void *secs) in __einit() argument
163 return __encls_ret_3(EINIT, sigstruct, secs, token); in __einit()
/linux-6.15/tools/testing/selftests/rtc/
H A Drtctest.c227 time_t secs, new; in TEST_F() local
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
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
377 gmtime_r(&secs, (struct tm *)&tm);
420 ASSERT_EQ(new, secs);
429 time_t secs, new; variable
[all …]
/linux-6.15/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-6.15/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-6.15/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-6.15/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-6.15/tools/lib/bpf/
H A Dlinker.c68 struct src_sec *secs; member
222 free(linker->secs); in bpf_linker__free()
314 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() local
317 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec()
318 if (!secs) in add_dst_sec()
324 linker->secs = secs; in add_dst_sec()
511 free(obj.secs); in bpf_linker_add_file()
645 struct src_sec *secs = obj->secs, *sec; in add_src_sec() local
648 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_src_sec()
649 if (!secs) in add_src_sec()
[all …]
/linux-6.15/arch/mips/boot/tools/
H A Drelocs.c32 static struct section *secs; variable
96 sec_strtab = secs[ehdr.e_shstrndx].strtab; in sec_name()
114 return &secs[i]; in sec_lookup()
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()
367 struct section *sec = &secs[i]; in read_relocs()
413 struct section *sec = &secs[i]; in remove_relocs()
[all …]
/linux-6.15/crypto/
H A Dtcrypt.c414 if (secs) { in test_mb_aead_speed()
454 int blen, int secs) in test_aead_jiffies() argument
667 if (secs) { in test_aead_speed()
669 secs); in test_aead_speed()
893 if (secs) { in test_mb_ahash_speed()
935 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies_digest()
967 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies()
1124 if (secs) { in test_ahash_speed_common()
1382 if (secs) { in test_mb_skcipher_speed()
1598 if (secs) { in test_skcipher_speed()
[all …]
/linux-6.15/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()

123456