/Linux-v4.19/drivers/rtc/ |
D | rtc-ab8500.c | 65 unsigned long secs; in get_elapsed_seconds() local 75 rtc_tm_to_time(&tm, &secs); in get_elapsed_seconds() 76 return secs; in get_elapsed_seconds() 83 unsigned long mins, secs; in ab8500_rtc_read_time() local 117 secs = (buf[3] << 8) | buf[4]; in ab8500_rtc_read_time() 118 secs = secs / COUNTS_PER_SEC; in ab8500_rtc_read_time() 119 secs = secs + (mins * 60); in ab8500_rtc_read_time() 122 secs += get_elapsed_seconds(AB8500_RTC_EPOCH); in ab8500_rtc_read_time() 124 rtc_time_to_tm(secs, tm); in ab8500_rtc_read_time() 132 unsigned long no_secs, no_mins, secs = 0; in ab8500_rtc_set_time() local [all …]
|
D | rtc-pcap.c | 48 unsigned long secs; in pcap_rtc_read_alarm() local 53 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_alarm() 56 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm() 58 rtc_time_to_tm(secs, tm); in pcap_rtc_read_alarm() 67 unsigned long secs; in pcap_rtc_set_alarm() local 70 rtc_tm_to_time(tm, &secs); in pcap_rtc_set_alarm() 72 tod = secs % SEC_PER_DAY; in pcap_rtc_set_alarm() 75 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm() 84 unsigned long secs; in pcap_rtc_read_time() local 88 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_time() [all …]
|
D | rtc-sun4v.c | 46 static int hypervisor_set_time(unsigned long secs) in hypervisor_set_time() argument 52 ret = sun4v_tod_set(secs); in hypervisor_set_time() 69 unsigned long secs; in sun4v_set_time() local 72 err = rtc_tm_to_time(tm, &secs); in sun4v_set_time() 76 return hypervisor_set_time(secs); in sun4v_set_time()
|
D | rtc-jz4740.c | 156 uint32_t secs, secs2; in jz4740_rtc_read_time() local 163 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC); in jz4740_rtc_read_time() 166 while (secs != secs2 && --timeout) { in jz4740_rtc_read_time() 167 secs = secs2; in jz4740_rtc_read_time() 174 rtc_time_to_tm(secs, time); in jz4740_rtc_read_time() 179 static int jz4740_rtc_set_mmss(struct device *dev, unsigned long secs) in jz4740_rtc_set_mmss() argument 183 return jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC, secs); in jz4740_rtc_set_mmss() 189 uint32_t secs; in jz4740_rtc_read_alarm() local 192 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC_ALARM); in jz4740_rtc_read_alarm() 199 rtc_time_to_tm(secs, &alrm->time); in jz4740_rtc_read_alarm() [all …]
|
D | rtc-pm8xxx.c | 86 unsigned long secs, irq_flags; in pm8xxx_rtc_set_time() local 95 rtc_tm_to_time(tm, &secs); in pm8xxx_rtc_set_time() 97 dev_dbg(dev, "Seconds value to be written to RTC = %lu\n", secs); in pm8xxx_rtc_set_time() 100 value[i] = secs & 0xFF; in pm8xxx_rtc_set_time() 101 secs >>= 8; in pm8xxx_rtc_set_time() 186 unsigned long secs; in pm8xxx_rtc_read_time() local 216 secs = value[0] | (value[1] << 8) | (value[2] << 16) | (value[3] << 24); in pm8xxx_rtc_read_time() 218 rtc_time_to_tm(secs, tm); in pm8xxx_rtc_read_time() 221 secs, tm->tm_hour, tm->tm_min, tm->tm_sec, in pm8xxx_rtc_read_time() 232 unsigned long secs, irq_flags; in pm8xxx_rtc_set_alarm() local [all …]
|
D | rtc-at91sam9.c | 111 u32 secs, secs2; in at91_rtc_readtime() local 120 secs = rtt_readl(rtc, VR); in at91_rtc_readtime() 122 if (secs != secs2) in at91_rtc_readtime() 123 secs = rtt_readl(rtc, VR); in at91_rtc_readtime() 125 rtc_time_to_tm(offset + secs, tm); in at91_rtc_readtime() 142 unsigned long secs; in at91_rtc_settime() local 148 err = rtc_tm_to_time(tm, &secs); in at91_rtc_settime() 161 secs += 1; in at91_rtc_settime() 162 gpbr_writel(rtc, secs); in at91_rtc_settime() 167 if (offset > secs) { in at91_rtc_settime() [all …]
|
D | rtc-sc27xx.c | 179 time64_t *secs) in sprd_rtc_get_secs() argument 231 *secs = (((time64_t)(day * 24) + hour) * 60 + min) * 60 + sec; in sprd_rtc_get_secs() 236 time64_t secs) in sprd_rtc_set_secs() argument 243 day = div_s64_rem(secs, 86400, &rem); in sprd_rtc_set_secs() 317 time64_t secs; in sprd_rtc_read_aux_alarm() local 321 ret = sprd_rtc_get_secs(rtc, SPRD_RTC_AUX_ALARM, &secs); in sprd_rtc_read_aux_alarm() 325 rtc_time64_to_tm(secs, &alrm->time); in sprd_rtc_read_aux_alarm() 344 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_aux_alarm() local 353 ret = sprd_rtc_set_secs(rtc, SPRD_RTC_AUX_ALARM, secs); in sprd_rtc_set_aux_alarm() 374 time64_t secs; in sprd_rtc_read_time() local [all …]
|
D | rtc-lib.c | 55 unsigned int month, year, secs; in rtc_time64_to_tm() local 59 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm() 86 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 87 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm() 88 tm->tm_min = secs / 60; in rtc_time64_to_tm() 89 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
|
D | rtc-ds1672.c | 73 static int ds1672_set_mmss(struct i2c_client *client, unsigned long secs) in ds1672_set_mmss() argument 79 buf[1] = secs & 0x000000FF; in ds1672_set_mmss() 80 buf[2] = (secs & 0x0000FF00) >> 8; in ds1672_set_mmss() 81 buf[3] = (secs & 0x00FF0000) >> 16; in ds1672_set_mmss() 82 buf[4] = (secs & 0xFF000000) >> 24; in ds1672_set_mmss() 99 static int ds1672_rtc_set_mmss(struct device *dev, unsigned long secs) in ds1672_rtc_set_mmss() argument 101 return ds1672_set_mmss(to_i2c_client(dev), secs); in ds1672_rtc_set_mmss()
|
D | rtc-ab3100.c | 46 static int ab3100_rtc_set_mmss(struct device *dev, time64_t secs) in ab3100_rtc_set_mmss() argument 51 u64 hw_counter = secs * AB3100_RTC_CLOCK_RATE * 2; in ab3100_rtc_set_mmss() 149 time64_t secs; in ab3100_rtc_set_alarm() local 154 secs = rtc_tm_to_time64(&alarm->time); in ab3100_rtc_set_alarm() 155 hw_counter = secs * AB3100_RTC_CLOCK_RATE * 2; in ab3100_rtc_set_alarm()
|
/Linux-v4.19/include/trace/events/ |
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, err) 47 TP_PROTO(time64_t secs, int err), [all …]
|
/Linux-v4.19/kernel/time/ |
D | ntp.c | 280 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) in ntp_update_offset_fll() argument 284 if (secs < MINSEC) in ntp_update_offset_fll() 287 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll() 292 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll() 299 long secs; in ntp_update_offset() local 320 secs = (long)(__ktime_get_real_seconds() - time_reftime); in ntp_update_offset() 322 secs = 0; in ntp_update_offset() 327 freq_adj = ntp_update_offset_fll(offset64, secs); in ntp_update_offset() 334 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + time_constant))) in ntp_update_offset() 335 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset() [all …]
|
/Linux-v4.19/tools/testing/selftests/rtc/ |
D | rtctest.c | 117 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() 165 ASSERT_EQ(new, secs); in TEST_F() 174 time_t secs, new; in TEST_F() local 180 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F() 181 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F() 214 ASSERT_EQ(new, secs); in TEST_F()
|
/Linux-v4.19/arch/mips/mti-malta/ |
D | malta-time.c | 78 int secs; in estimate_frequencies() local 123 secs = secs2 - secs1; in estimate_frequencies() 124 if (secs < 1) in estimate_frequencies() 125 secs += 60; in estimate_frequencies() 128 count /= secs; in estimate_frequencies() 132 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
|
/Linux-v4.19/arch/sh/kernel/ |
D | time.c | 32 static int null_rtc_set_time(const time_t secs) in null_rtc_set_time() argument 63 unsigned long secs; in rtc_generic_set_time() local 65 rtc_tm_to_time(tm, &secs); in rtc_generic_set_time() 67 (rtc_sh_set_time(secs) < 0)) in rtc_generic_set_time()
|
/Linux-v4.19/samples/bpf/ |
D | sampleip_user.c | 137 int *pmu_fd, opt, freq = DEFAULT_FREQ, secs = DEFAULT_SECS; in main() local 152 secs = atoi(argv[optind]); in main() 153 if (freq == 0 || secs == 0) { in main() 188 freq, secs); in main() 191 sleep(secs); in main()
|
/Linux-v4.19/crypto/ |
D | tcrypt.c | 187 int blen, int secs, u32 num_mb) in test_mb_aead_jiffies() argument 198 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_mb_aead_jiffies() 206 bcount * num_mb, secs, (long)bcount * blen * num_mb); in test_mb_aead_jiffies() 254 static void test_mb_aead_speed(const char *algo, int enc, int secs, in test_mb_aead_speed() argument 418 if (secs) { in test_mb_aead_speed() 420 secs, num_mb); in test_mb_aead_speed() 458 int blen, int secs) in test_aead_jiffies() argument 464 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_aead_jiffies() 476 bcount, secs, (long)bcount * blen); in test_aead_jiffies() 522 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() argument [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | scsicam.c | 26 unsigned int *secs); 127 unsigned int *cyls, unsigned int *hds, unsigned int *secs) in scsi_partsize() argument 183 *secs = end_sector; in scsi_partsize() 232 unsigned int *secs) in setsize() argument 257 *secs = (unsigned int) sectors; in setsize()
|
/Linux-v4.19/crypto/asymmetric_keys/ |
D | verify_pefile.c | 35 const struct section_header *secs, *sec; in pefile_parse_binary() local 117 ctx->secs = secs = pebuf + cursor; in pefile_parse_binary() 280 if (pefile_compare_shdrs(&ctx->secs[canon[i]], in pefile_digest_pe_contents() 281 &ctx->secs[loop]) > 0) { in pefile_digest_pe_contents() 293 if (ctx->secs[i].raw_data_size == 0) in pefile_digest_pe_contents() 296 pebuf + ctx->secs[i].data_addr, in pefile_digest_pe_contents() 297 ctx->secs[i].raw_data_size); in pefile_digest_pe_contents() 302 hashed_bytes += ctx->secs[i].raw_data_size; in pefile_digest_pe_contents()
|
/Linux-v4.19/kernel/trace/ |
D | trace_mmiotrace.c | 175 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()
|
/Linux-v4.19/arch/x86/um/vdso/ |
D | um_vdso.c | 45 long secs; in __vdso_time() local 48 : "=a" (secs) in __vdso_time() 51 return secs; in __vdso_time()
|
/Linux-v4.19/arch/mips/boot/tools/ |
D | relocs.c | 32 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-v4.19/arch/x86/tools/ |
D | relocs.c | 36 static struct section *secs; variable 243 sec_strtab = secs[ehdr.e_shstrndx].strtab; in sec_name() 246 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name() 274 struct section *sec = &secs[i]; in sym_lookup() 396 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs() 397 if (!secs) { in read_shdrs() 406 struct section *sec = &secs[i]; in read_shdrs() 421 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs() 430 struct section *sec = &secs[i]; in read_strtabs() 455 struct section *sec = &secs[i]; in read_symtabs() [all …]
|
/Linux-v4.19/drivers/watchdog/ |
D | booke_wdt.c | 78 static unsigned int sec_to_period(unsigned int secs) in sec_to_period() argument 82 if (period_to_sec(period) >= secs) in sec_to_period() 97 static unsigned int sec_to_period(unsigned int secs) in sec_to_period() argument 99 return secs; in sec_to_period()
|
/Linux-v4.19/tools/perf/scripts/python/ |
D | compaction-times.py | 96 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)
|