Home
last modified time | relevance | path

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

12

/drivers/rtc/
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 …]
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 …]
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 …]
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()
Drtc-pm8xxx.c79 unsigned long secs, irq_flags; in pm8xxx_rtc_set_time() local
88 secs = rtc_tm_to_time64(tm); in pm8xxx_rtc_set_time()
90 dev_dbg(dev, "Seconds value to be written to RTC = %lu\n", secs); in pm8xxx_rtc_set_time()
93 value[i] = secs & 0xFF; in pm8xxx_rtc_set_time()
94 secs >>= 8; in pm8xxx_rtc_set_time()
179 unsigned long secs; in pm8xxx_rtc_read_time() local
209 secs = value[0] | (value[1] << 8) | (value[2] << 16) | in pm8xxx_rtc_read_time()
212 rtc_time64_to_tm(secs, tm); in pm8xxx_rtc_read_time()
214 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 …]
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 …]
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()
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()
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()
Dinterface.c25 time64_t secs; in rtc_add_offset() local
30 secs = rtc_tm_to_time64(tm); in rtc_add_offset()
38 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || in rtc_add_offset()
40 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) in rtc_add_offset()
43 rtc_time64_to_tm(secs + rtc->offset_secs, tm); in rtc_add_offset()
48 time64_t secs; in rtc_subtract_offset() local
53 secs = rtc_tm_to_time64(tm); in rtc_subtract_offset()
61 if (secs >= rtc->range_min && secs <= rtc->range_max) in rtc_subtract_offset()
64 rtc_time64_to_tm(secs - rtc->offset_secs, tm); in rtc_subtract_offset()
Drtc-ds1347.c53 unsigned int status, century, secs; in ds1347_read_time() local
73 err = regmap_read(map, DS1347_SECONDS_REG, &secs); in ds1347_read_time()
76 } while (buf[0] != secs); in ds1347_read_time()
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()
Drtc-ab-b5ze-s3.c273 static inline void sec_to_timer_a(u8 secs, u8 *taq, u8 *timer_a) in sec_to_timer_a() argument
276 *timer_a = secs; in sec_to_timer_a()
283 static inline int sec_from_timer_a(u8 *secs, u8 taq, u8 timer_a) in sec_from_timer_a() argument
288 *secs = timer_a; in sec_from_timer_a()
506 u8 secs) in _abb5zes3_rtc_set_timer() argument
514 sec_to_timer_a(secs, &regs[0], &regs[1]); in _abb5zes3_rtc_set_timer()
Drtc-ep93xx.c66 unsigned long secs = rtc_tm_to_time64(tm); in ep93xx_rtc_set_time() local
68 writel(secs + 1, ep93xx_rtc->mmio_base + EP93XX_RTC_LOAD); in ep93xx_rtc_set_time()
Drtc-st-lpc.c105 unsigned long long lpt, secs; in st_rtc_set_time() local
108 secs = rtc_tm_to_time64(tm); in st_rtc_set_time()
110 lpt = (unsigned long long)secs * rtc->clkrate; in st_rtc_set_time()
Drtc-lpc32xx.c69 u32 secs = rtc_tm_to_time64(time); in lpc32xx_rtc_set_time() local
77 rtc_writel(rtc, LPC32XX_RTC_UCOUNT, secs); in lpc32xx_rtc_set_time()
78 rtc_writel(rtc, LPC32XX_RTC_DCOUNT, 0xFFFFFFFF - secs); in lpc32xx_rtc_set_time()
Drtc-brcmstb-waketimer.c51 unsigned int secs) in brcmstb_waketmr_set_alarm() argument
58 writel_relaxed(secs + 1, timer->base + BRCMSTB_WKTMR_ALARM); in brcmstb_waketmr_set_alarm()
/drivers/watchdog/
Dbooke_wdt.c79 static unsigned int sec_to_period(unsigned int secs) in sec_to_period() argument
83 if (period_to_sec(period) >= secs) in sec_to_period()
98 static unsigned int sec_to_period(unsigned int secs) in sec_to_period() argument
100 return secs; in sec_to_period()
Domap_wdt.h33 #define GET_WLDR_VAL(secs) (0xffffffff - ((secs) * (32768/(1<<PTV))) + 1) argument
Dda9063_wdt.c36 static unsigned int da9063_wdt_timeout_to_sel(unsigned int secs) in da9063_wdt_timeout_to_sel() argument
41 if (wdt_timeout[i] >= secs) in da9063_wdt_timeout_to_sel()
Dda9062_wdt.c47 static unsigned int da9062_wdt_timeout_to_sel(unsigned int secs) in da9062_wdt_timeout_to_sel() argument
52 if (wdt_timeout[i] >= secs) in da9062_wdt_timeout_to_sel()
Dhpwdt.c27 #define SECS_TO_TICKS(secs) ((secs) * 1000 / 128) argument
/drivers/mfd/
Dgateworks-gsc.c76 static int gsc_powerdown(struct gsc_dev *gsc, unsigned long secs) in gsc_powerdown() argument
82 secs); in gsc_powerdown()
84 put_unaligned_le32(secs, regs); in gsc_powerdown()
/drivers/scsi/
Dscsicam.c178 unsigned int *secs) in setsize() argument
203 *secs = (unsigned int) sectors; in setsize()
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_resource.c231 int nfp_resource_wait(struct nfp_cpp *cpp, const char *name, unsigned int secs) in nfp_resource_wait() argument
234 unsigned long err_at = jiffies + secs * HZ; in nfp_resource_wait()

12