Home
last modified time | relevance | path

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

12

/linux-4.19.296/drivers/rtc/
Drtc-ab8500.c65 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 …]
Drtc-pcap.c48 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 …]
Drtc-sun4v.c46 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()
Drtc-lib.c55 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()
Drtc-jz4740.c156 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 …]
Drtc-pm8xxx.c86 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) | in pm8xxx_rtc_read_time()
219 rtc_time_to_tm(secs, tm); in pm8xxx_rtc_read_time()
222 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 …]
Drtc-at91sam9.c111 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 …]
Drtc-sc27xx.c179 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 …]
Drtc-ds1672.c74 static int ds1672_set_mmss(struct i2c_client *client, unsigned long secs) in ds1672_set_mmss() argument
80 buf[1] = secs & 0x000000FF; in ds1672_set_mmss()
81 buf[2] = (secs & 0x0000FF00) >> 8; in ds1672_set_mmss()
82 buf[3] = (secs & 0x00FF0000) >> 16; in ds1672_set_mmss()
83 buf[4] = (secs & 0xFF000000) >> 24; in ds1672_set_mmss()
100 static int ds1672_rtc_set_mmss(struct device *dev, unsigned long secs) in ds1672_rtc_set_mmss() argument
102 return ds1672_set_mmss(to_i2c_client(dev), secs); in ds1672_rtc_set_mmss()
Drtc-ab3100.c46 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()
Drtc-tx4939.c68 static int tx4939_rtc_set_mmss(struct device *dev, unsigned long secs) in tx4939_rtc_set_mmss() argument
77 buf[2] = secs; in tx4939_rtc_set_mmss()
78 buf[3] = secs >> 8; in tx4939_rtc_set_mmss()
79 buf[4] = secs >> 16; in tx4939_rtc_set_mmss()
80 buf[5] = secs >> 24; in tx4939_rtc_set_mmss()
Dinterface.c28 time64_t secs; in rtc_add_offset() local
33 secs = rtc_tm_to_time64(tm); in rtc_add_offset()
41 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || in rtc_add_offset()
43 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) in rtc_add_offset()
46 rtc_time64_to_tm(secs + rtc->offset_secs, tm); in rtc_add_offset()
51 time64_t secs; in rtc_subtract_offset() local
56 secs = rtc_tm_to_time64(tm); in rtc_subtract_offset()
64 if (secs >= rtc->range_min && secs <= rtc->range_max) in rtc_subtract_offset()
67 rtc_time64_to_tm(secs - rtc->offset_secs, tm); in rtc_subtract_offset()
Drtc-ep93xx.c70 static int ep93xx_rtc_set_mmss(struct device *dev, unsigned long secs) in ep93xx_rtc_set_mmss() argument
74 writel(secs + 1, ep93xx_rtc->mmio_base + EP93XX_RTC_LOAD); in ep93xx_rtc_set_mmss()
Drtc-lpc32xx.c76 static int lpc32xx_rtc_set_mmss(struct device *dev, unsigned long secs) in lpc32xx_rtc_set_mmss() argument
86 rtc_writel(rtc, LPC32XX_RTC_UCOUNT, secs); in lpc32xx_rtc_set_mmss()
87 rtc_writel(rtc, LPC32XX_RTC_DCOUNT, 0xFFFFFFFF - secs); in lpc32xx_rtc_set_mmss()
Drtc-st-lpc.c110 unsigned long long lpt, secs; in st_rtc_set_time() local
113 secs = rtc_tm_to_time64(tm); in st_rtc_set_time()
115 lpt = (unsigned long long)secs * rtc->clkrate; in st_rtc_set_time()
Drtc-test.c76 static int test_rtc_set_mmss64(struct device *dev, time64_t secs) in test_rtc_set_mmss64() argument
80 rtd->offset = secs - ktime_get_real_seconds(); in test_rtc_set_mmss64()
/linux-4.19.296/include/trace/events/
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 …]
Drcu.h680 unsigned long secs, unsigned long c_old, unsigned long c),
682 TP_ARGS(rcutorturename, rhp, secs, c_old, c),
687 __field(unsigned long, secs)
697 __entry->secs = secs;
704 __entry->secs, __entry->c_old, __entry->c)
781 #define trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
/linux-4.19.296/crypto/
Dtcrypt.c187 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, (u64)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, (u64)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-4.19.296/crypto/asymmetric_keys/
Dverify_pefile.c35 const struct section_header *secs, *sec; in pefile_parse_binary() local
117 ctx->secs = secs = pebuf + cursor; in pefile_parse_binary()
284 if (pefile_compare_shdrs(&ctx->secs[canon[i]], in pefile_digest_pe_contents()
285 &ctx->secs[loop]) > 0) { in pefile_digest_pe_contents()
297 if (ctx->secs[i].raw_data_size == 0) in pefile_digest_pe_contents()
300 pebuf + ctx->secs[i].data_addr, in pefile_digest_pe_contents()
301 ctx->secs[i].raw_data_size); in pefile_digest_pe_contents()
306 hashed_bytes += ctx->secs[i].raw_data_size; in pefile_digest_pe_contents()
Dverify_pefile.h24 const struct section_header *secs; member
/linux-4.19.296/fs/hpfs/
Danode.c399 void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) in hpfs_truncate_btree() argument
415 if (!secs) { in hpfs_truncate_btree()
430 if (le32_to_cpu(btree->u.internal[i].file_secno) >= secs) goto f; in hpfs_truncate_btree()
441 if (btree->u.internal[i].file_secno == cpu_to_le32(secs)) { in hpfs_truncate_btree()
455 …o_cpu(btree->u.external[i].file_secno) + le32_to_cpu(btree->u.external[i].length) >= secs) goto ff; in hpfs_truncate_btree()
459 if (secs <= le32_to_cpu(btree->u.external[i].file_secno)) { in hpfs_truncate_btree()
460 hpfs_error(s, "there is an allocation error in file %08x, sector %08x", f, secs); in hpfs_truncate_btree()
463 … (le32_to_cpu(btree->u.external[i].file_secno) + le32_to_cpu(btree->u.external[i].length) > secs) { in hpfs_truncate_btree()
464 hpfs_free_sectors(s, le32_to_cpu(btree->u.external[i].disk_secno) + secs - in hpfs_truncate_btree()
466 - secs + le32_to_cpu(btree->u.external[i].file_secno)); /* I hope gcc optimizes this :-) */ in hpfs_truncate_btree()
[all …]
/linux-4.19.296/include/linux/
Dktime.h37 static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs) in ktime_set() argument
39 if (unlikely(secs >= KTIME_SEC_MAX)) in ktime_set()
42 return secs * NSEC_PER_SEC + (s64)nsecs; in ktime_set()
/linux-4.19.296/include/scsi/
Dscsicam.h18 unsigned int *cyls, unsigned int *hds, unsigned int *secs);
/linux-4.19.296/fs/affs/
Damigaffs.c372 affs_secs_to_datestamp(time64_t secs, struct affs_date *ds) in affs_secs_to_datestamp() argument
378 secs -= sys_tz.tz_minuteswest * 60 + ((8 * 365 + 2) * 24 * 60 * 60); in affs_secs_to_datestamp()
379 if (secs < 0) in affs_secs_to_datestamp()
380 secs = 0; in affs_secs_to_datestamp()
381 days = div_s64_rem(secs, 86400, &rem); in affs_secs_to_datestamp()

12