Home
last modified time | relevance | path

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

12345678

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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-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-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 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; in sprd_rtc_read_aux_alarm() local
309 ret = sprd_rtc_get_secs(rtc, SPRD_RTC_AUX_ALARM, &secs); in sprd_rtc_read_aux_alarm()
313 rtc_time64_to_tm(secs, &alrm->time); in sprd_rtc_read_aux_alarm()
332 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_aux_alarm() local
341 ret = sprd_rtc_set_secs(rtc, SPRD_RTC_AUX_ALARM, secs); in sprd_rtc_set_aux_alarm()
362 time64_t secs; in sprd_rtc_read_time() local
[all …]
H A Drtc-pm8xxx.c78 unsigned long secs, irq_flags; in pm8xxx_rtc_set_time() local
87 secs = rtc_tm_to_time64(tm); in pm8xxx_rtc_set_time()
89 dev_dbg(dev, "Seconds value to be written to RTC = %lu\n", secs); in pm8xxx_rtc_set_time()
92 value[i] = secs & 0xFF; in pm8xxx_rtc_set_time()
93 secs >>= 8; in pm8xxx_rtc_set_time()
178 unsigned long secs; in pm8xxx_rtc_read_time() local
208 secs = value[0] | (value[1] << 8) | (value[2] << 16) | in pm8xxx_rtc_read_time()
211 rtc_time64_to_tm(secs, tm); in pm8xxx_rtc_read_time()
213 dev_dbg(dev, "secs = %lu, h:m:s == %ptRt, y-m-d = %ptRdr\n", secs, tm, tm); in pm8xxx_rtc_read_time()
223 unsigned long secs, irq_flags; in pm8xxx_rtc_set_alarm() local
[all …]
H A Dlib.c51 unsigned int month, year, secs; in rtc_time64_to_tm() local
55 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
82 tm->tm_hour = secs / 3600; in rtc_time64_to_tm()
83 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm()
84 tm->tm_min = secs / 60; in rtc_time64_to_tm()
85 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
H A Drtc-jz4740.c143 uint32_t secs, secs2; in jz4740_rtc_read_time() local
153 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC); in jz4740_rtc_read_time()
156 while (secs != secs2 && --timeout) { in jz4740_rtc_read_time()
157 secs = secs2; in jz4740_rtc_read_time()
164 rtc_time64_to_tm(secs, time); in jz4740_rtc_read_time()
184 uint32_t secs; in jz4740_rtc_read_alarm() local
187 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC_ALARM); in jz4740_rtc_read_alarm()
194 rtc_time64_to_tm(secs, &alrm->time); in jz4740_rtc_read_alarm()
203 uint32_t secs = lower_32_bits(rtc_tm_to_time64(&alrm->time)); in jz4740_rtc_set_alarm() local
205 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()
/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dmxsrtc.c19 int mxs_rtc_set_time(uint32_t secs) in mxs_rtc_set_time() argument
24 writel(secs, &rtc_regs->hw_rtc_seconds); in mxs_rtc_set_time()
43 uint32_t secs; in rtc_get() local
45 secs = readl(&rtc_regs->hw_rtc_seconds); in rtc_get()
46 rtc_to_tm(secs, time); in rtc_get()
53 uint32_t secs; in rtc_set() local
55 secs = rtc_mktime(time); in rtc_set()
57 return mxs_rtc_set_time(secs); in rtc_set()
/OK3568_Linux_fs/kernel/tools/testing/selftests/rtc/
H A Drtctest.c117 time_t secs, new; in TEST_F() local
123 secs = timegm((struct tm *)&tm) + ALARM_DELTA; in TEST_F()
124 gmtime_r(&secs, (struct tm *)&tm); in TEST_F()
162 ASSERT_EQ(new, secs); in TEST_F()
171 time_t secs, new; in TEST_F() local
177 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
178 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
211 ASSERT_EQ(new, secs); in TEST_F()
219 time_t secs, new; variable
225 secs = timegm((struct tm *)&tm) + 60 - tm.tm_sec;
[all …]
/OK3568_Linux_fs/kernel/kernel/time/
H A Dntp.c281 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) in ntp_update_offset_fll() argument
285 if (secs < MINSEC) in ntp_update_offset_fll()
288 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
293 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
300 long secs; in ntp_update_offset() local
321 secs = (long)(__ktime_get_real_seconds() - time_reftime); in ntp_update_offset()
323 secs = 0; in ntp_update_offset()
328 freq_adj = ntp_update_offset_fll(offset64, secs); in ntp_update_offset()
335 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + time_constant))) in ntp_update_offset()
336 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/mti-malta/
H A Dmalta-time.c66 int secs; in estimate_frequencies() local
111 secs = secs2 - secs1; in estimate_frequencies()
112 if (secs < 1) in estimate_frequencies()
113 secs += 60; in estimate_frequencies()
116 count /= secs; in estimate_frequencies()
120 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
/OK3568_Linux_fs/u-boot/board/gateworks/gw_ventana/
H A Dgsc.c180 unsigned long secs = 0; in do_gsc_sleep() local
185 secs = simple_strtoul(argv[1], NULL, 10); in do_gsc_sleep()
186 printf("GSC Sleeping for %ld seconds\n", secs); in do_gsc_sleep()
189 reg = (secs >> 24) & 0xff; in do_gsc_sleep()
192 reg = (secs >> 16) & 0xff; in do_gsc_sleep()
195 reg = (secs >> 8) & 0xff; in do_gsc_sleep()
198 reg = secs & 0xff; in do_gsc_sleep()
/OK3568_Linux_fs/kernel/crypto/
H A Dtcrypt.c184 int blen, int secs, u32 num_mb) in test_mb_aead_jiffies() argument
195 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_mb_aead_jiffies()
203 bcount * num_mb, secs, (u64)bcount * blen * num_mb); in test_mb_aead_jiffies()
251 static void test_mb_aead_speed(const char *algo, int enc, int secs, in test_mb_aead_speed() argument
415 if (secs) { in test_mb_aead_speed()
417 secs, num_mb); in test_mb_aead_speed()
455 int blen, int secs) in test_aead_jiffies() argument
461 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_aead_jiffies()
473 bcount, secs, (u64)bcount * blen); in test_aead_jiffies()
519 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() argument
[all …]
/OK3568_Linux_fs/kernel/crypto/asymmetric_keys/
H A Dverify_pefile.c31 const struct section_header *secs, *sec; in pefile_parse_binary() local
113 ctx->secs = secs = pebuf + cursor; in pefile_parse_binary()
276 if (pefile_compare_shdrs(&ctx->secs[canon[i]], in pefile_digest_pe_contents()
277 &ctx->secs[loop]) > 0) { in pefile_digest_pe_contents()
289 if (ctx->secs[i].raw_data_size == 0) in pefile_digest_pe_contents()
292 pebuf + ctx->secs[i].data_addr, in pefile_digest_pe_contents()
293 ctx->secs[i].raw_data_size); in pefile_digest_pe_contents()
298 hashed_bytes += ctx->secs[i].raw_data_size; in pefile_digest_pe_contents()
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace_mmiotrace.c175 unsigned secs = (unsigned long)t; in mmio_print_rw() local
184 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
191 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
199 secs, usec_rem, rw->map_id, in mmio_print_rw()
220 unsigned secs = (unsigned long)t; in mmio_print_map() local
229 secs, usec_rem, m->map_id, in mmio_print_map()
236 secs, usec_rem, m->map_id, 0UL, 0); in mmio_print_map()
254 unsigned secs = (unsigned long)t; in mmio_print_mark() local
257 trace_seq_printf(s, "MARK %u.%06lu %s", secs, usec_rem, msg); in mmio_print_mark()
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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()
211 freq, secs); in main()
215 sleep(secs); in main()
/OK3568_Linux_fs/kernel/arch/x86/tools/
H A Drelocs.c38 static struct section *secs; variable
247 sec_strtab = secs[shstrndx].strtab; in sec_name()
250 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
278 struct section *sec = &secs[i]; in sym_lookup()
414 secs = calloc(shnum, sizeof(struct section)); in read_shdrs()
415 if (!secs) { in read_shdrs()
424 struct section *sec = &secs[i]; in read_shdrs()
439 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
448 struct section *sec = &secs[i]; in read_strtabs()
473 struct section *sec = &secs[i]; in read_symtabs()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dbcm_app_utils.c77 if (input->secs[sec].duration) { in cca_per_chan_summary()
78 totals.duration += input->secs[sec].duration; in cca_per_chan_summary()
79 totals.congest_ibss += input->secs[sec].congest_ibss; in cca_per_chan_summary()
80 totals.congest_obss += input->secs[sec].congest_obss; in cca_per_chan_summary()
81 totals.interference += input->secs[sec].interference; in cca_per_chan_summary()
91 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
92 avg->secs[0].congest_ibss = totals.congest_ibss * 100/totals.duration; in cca_per_chan_summary()
93 avg->secs[0].congest_obss = totals.congest_obss * 100/totals.duration; in cca_per_chan_summary()
94 avg->secs[0].interference = totals.interference * 100/totals.duration; in cca_per_chan_summary()
96 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Dbcm_app_utils.c77 if (input->secs[sec].duration) { in cca_per_chan_summary()
78 totals.duration += input->secs[sec].duration; in cca_per_chan_summary()
79 totals.congest_ibss += input->secs[sec].congest_ibss; in cca_per_chan_summary()
80 totals.congest_obss += input->secs[sec].congest_obss; in cca_per_chan_summary()
81 totals.interference += input->secs[sec].interference; in cca_per_chan_summary()
91 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
92 avg->secs[0].congest_ibss = totals.congest_ibss * 100/totals.duration; in cca_per_chan_summary()
93 avg->secs[0].congest_obss = totals.congest_obss * 100/totals.duration; in cca_per_chan_summary()
94 avg->secs[0].interference = totals.interference * 100/totals.duration; in cca_per_chan_summary()
96 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Dbcm_app_utils.c77 if (input->secs[sec].duration) { in cca_per_chan_summary()
78 totals.duration += input->secs[sec].duration; in cca_per_chan_summary()
79 totals.congest_ibss += input->secs[sec].congest_ibss; in cca_per_chan_summary()
80 totals.congest_obss += input->secs[sec].congest_obss; in cca_per_chan_summary()
81 totals.interference += input->secs[sec].interference; in cca_per_chan_summary()
91 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
92 avg->secs[0].congest_ibss = totals.congest_ibss * 100/totals.duration; in cca_per_chan_summary()
93 avg->secs[0].congest_obss = totals.congest_obss * 100/totals.duration; in cca_per_chan_summary()
94 avg->secs[0].interference = totals.interference * 100/totals.duration; in cca_per_chan_summary()
96 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Dbcm_app_utils.c76 if (input->secs[sec].duration) { in cca_per_chan_summary()
77 totals.duration += input->secs[sec].duration; in cca_per_chan_summary()
78 totals.congest_ibss += input->secs[sec].congest_ibss; in cca_per_chan_summary()
79 totals.congest_obss += input->secs[sec].congest_obss; in cca_per_chan_summary()
80 totals.interference += input->secs[sec].interference; in cca_per_chan_summary()
90 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
91 avg->secs[0].congest_ibss = totals.congest_ibss * 100/totals.duration; in cca_per_chan_summary()
92 avg->secs[0].congest_obss = totals.congest_obss * 100/totals.duration; in cca_per_chan_summary()
93 avg->secs[0].interference = totals.interference * 100/totals.duration; in cca_per_chan_summary()
95 avg->secs[0].duration = totals.duration / avg->num_secs; in cca_per_chan_summary()
[all …]
/OK3568_Linux_fs/kernel/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)

12345678