/drivers/rtc/ |
D | rtc-ab8500.c | 74 unsigned long secs; in get_elapsed_seconds() local 84 rtc_tm_to_time(&tm, &secs); in get_elapsed_seconds() 85 return secs; in get_elapsed_seconds() 92 unsigned long mins, secs; in ab8500_rtc_read_time() local 126 secs = (buf[3] << 8) | buf[4]; in ab8500_rtc_read_time() 127 secs = secs / COUNTS_PER_SEC; in ab8500_rtc_read_time() 128 secs = secs + (mins * 60); in ab8500_rtc_read_time() 131 secs += get_elapsed_seconds(AB8500_RTC_EPOCH); in ab8500_rtc_read_time() 133 rtc_time_to_tm(secs, tm); in ab8500_rtc_read_time() 141 unsigned long no_secs, no_mins, secs = 0; in ab8500_rtc_set_time() local [all …]
|
D | rtc-pcap.c | 49 unsigned long secs; in pcap_rtc_read_alarm() local 54 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_alarm() 57 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm() 59 rtc_time_to_tm(secs, tm); in pcap_rtc_read_alarm() 69 unsigned long secs; in pcap_rtc_set_alarm() local 72 rtc_tm_to_time(tm, &secs); in pcap_rtc_set_alarm() 74 tod = secs % SEC_PER_DAY; in pcap_rtc_set_alarm() 77 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm() 87 unsigned long secs; in pcap_rtc_read_time() local 91 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_time() [all …]
|
D | rtc-jz4740.c | 107 uint32_t secs, secs2; in jz4740_rtc_read_time() local 114 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC); in jz4740_rtc_read_time() 117 while (secs != secs2 && --timeout) { in jz4740_rtc_read_time() 118 secs = secs2; in jz4740_rtc_read_time() 125 rtc_time_to_tm(secs, time); in jz4740_rtc_read_time() 130 static int jz4740_rtc_set_mmss(struct device *dev, unsigned long secs) in jz4740_rtc_set_mmss() argument 134 return jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC, secs); in jz4740_rtc_set_mmss() 140 uint32_t secs; in jz4740_rtc_read_alarm() local 143 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC_ALARM); in jz4740_rtc_read_alarm() 150 rtc_time_to_tm(secs, &alrm->time); in jz4740_rtc_read_alarm() [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-pm8xxx.c | 84 unsigned long secs, irq_flags; in pm8xxx_rtc_set_time() local 93 rtc_tm_to_time(tm, &secs); in pm8xxx_rtc_set_time() 96 value[i] = secs & 0xFF; in pm8xxx_rtc_set_time() 97 secs >>= 8; in pm8xxx_rtc_set_time() 100 dev_dbg(dev, "Seconds value to be written to RTC = %lu\n", secs); in pm8xxx_rtc_set_time() 159 unsigned long secs; in pm8xxx_rtc_read_time() local 189 secs = value[0] | (value[1] << 8) | (value[2] << 16) | (value[3] << 24); in pm8xxx_rtc_read_time() 191 rtc_time_to_tm(secs, tm); in pm8xxx_rtc_read_time() 200 secs, tm->tm_hour, tm->tm_min, tm->tm_sec, in pm8xxx_rtc_read_time() 211 unsigned long secs, irq_flags; in pm8xxx_rtc_set_alarm() local [all …]
|
D | rtc-lib.c | 56 unsigned long secs; in rtc_time64_to_tm() local 61 secs = time - (unsigned int) days * 86400; in rtc_time64_to_tm() 88 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 89 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm() 90 tm->tm_min = secs / 60; in rtc_time64_to_tm() 91 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
|
D | rtc-sun4v.c | 44 static int hypervisor_set_time(unsigned long secs) in hypervisor_set_time() argument 50 ret = sun4v_tod_set(secs); in hypervisor_set_time() 67 unsigned long secs; in sun4v_set_time() local 70 err = rtc_tm_to_time(tm, &secs); in sun4v_set_time() 74 return hypervisor_set_time(secs); in sun4v_set_time()
|
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()
|
D | rtc-test.c | 41 static int test_rtc_set_mmss64(struct device *dev, time64_t secs) in test_rtc_set_mmss64() argument 43 dev_info(dev, "%s, secs = %lld\n", __func__, (long long)secs); in test_rtc_set_mmss64() 47 static int test_rtc_set_mmss(struct device *dev, unsigned long secs) in test_rtc_set_mmss() argument 49 dev_info(dev, "%s, secs = %lu\n", __func__, secs); in test_rtc_set_mmss()
|
D | rtc-tx4939.c | 45 static int tx4939_rtc_set_mmss(struct device *dev, unsigned long secs) in tx4939_rtc_set_mmss() argument 54 buf[2] = secs; in tx4939_rtc_set_mmss() 55 buf[3] = secs >> 8; in tx4939_rtc_set_mmss() 56 buf[4] = secs >> 16; in tx4939_rtc_set_mmss() 57 buf[5] = secs >> 24; in tx4939_rtc_set_mmss()
|
D | rtc-ep93xx.c | 70 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()
|
D | rtc-st-lpc.c | 111 unsigned long secs, flags; in st_rtc_set_time() local 114 ret = rtc_tm_to_time(tm, &secs); in st_rtc_set_time() 118 lpt = (unsigned long long)secs * rtc->clkrate; in st_rtc_set_time()
|
D | rtc-ab-b5ze-s3.c | 301 static inline void sec_to_timer_a(u8 secs, u8 *taq, u8 *timer_a) in sec_to_timer_a() argument 304 *timer_a = secs; in sec_to_timer_a() 311 static inline int sec_from_timer_a(u8 *secs, u8 taq, u8 timer_a) in sec_from_timer_a() argument 316 *secs = timer_a; in sec_from_timer_a() 558 u8 secs) in _abb5zes3_rtc_set_timer() argument 566 sec_to_timer_a(secs, ®s[0], ®s[1]); in _abb5zes3_rtc_set_timer()
|
D | rtc-lpc32xx.c | 76 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()
|
/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_fail.h | 135 #define CFS_FAIL_TIMEOUT(id, secs) \ argument 136 cfs_fail_timeout_set(id, 0, secs * 1000, CFS_FAIL_LOC_NOSET) 143 #define CFS_FAIL_TIMEOUT_ORSET(id, value, secs) \ argument 144 cfs_fail_timeout_set(id, value, secs * 1000, CFS_FAIL_LOC_ORSET) 146 #define CFS_FAIL_TIMEOUT_RESET(id, value, secs) \ argument 147 cfs_fail_timeout_set(id, value, secs * 1000, CFS_FAIL_LOC_RESET)
|
/drivers/scsi/ |
D | scsicam.c | 25 unsigned int *secs); 126 unsigned int *cyls, unsigned int *hds, unsigned int *secs) in scsi_partsize() argument 182 *secs = end_sector; in scsi_partsize() 231 unsigned int *secs) in setsize() argument 256 *secs = (unsigned int) sectors; in setsize()
|
/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()
|
D | omap_wdt.h | 52 #define GET_WLDR_VAL(secs) (0xffffffff - ((secs) * (32768/(1<<PTV))) + 1) argument
|
D | da9063_wdt.c | 44 static unsigned int da9063_wdt_timeout_to_sel(unsigned int secs) in da9063_wdt_timeout_to_sel() argument 49 if (wdt_timeout[i] >= secs) in da9063_wdt_timeout_to_sel()
|
D | da9062_wdt.c | 65 static unsigned int da9062_wdt_timeout_to_sel(unsigned int secs) in da9062_wdt_timeout_to_sel() argument 70 if (wdt_timeout[i] >= secs) in da9062_wdt_timeout_to_sel()
|
/drivers/staging/lustre/lustre/include/ |
D | lprocfs_status.h | 351 unsigned int secs; in s2dhms() local 353 ts->d = div_u64_rem(secs64, 86400, &secs); in s2dhms() 354 ts->h = secs / 3600; in s2dhms() 355 secs = secs % 3600; in s2dhms() 356 ts->m = secs / 60; in s2dhms() 357 ts->s = secs % 60; in s2dhms()
|
D | obd_support.h | 498 #define OBD_FAIL_TIMEOUT(id, secs) CFS_FAIL_TIMEOUT(id, secs) argument 500 #define OBD_FAIL_TIMEOUT_ORSET(id, value, secs) CFS_FAIL_TIMEOUT_ORSET(id, value, secs) argument
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | recover.c | 347 int secs = cfs_time_seconds(obd_timeout); in ptlrpc_recover_import() local 350 obd2cli_tgt(imp->imp_obd), secs); in ptlrpc_recover_import() 352 lwi = LWI_TIMEOUT(secs, NULL, NULL); in ptlrpc_recover_import()
|
/drivers/staging/lustre/lnet/lnet/ |
D | router.c | 973 int secs; in lnet_router_check_interval() local 975 secs = rtr->lp_alive ? live_router_check_interval : in lnet_router_check_interval() 977 if (secs < 0) in lnet_router_check_interval() 978 secs = 0; in lnet_router_check_interval() 980 return secs; in lnet_router_check_interval() 988 int secs; in lnet_ping_router_locked() local 1012 secs = lnet_router_check_interval(rtr); in lnet_ping_router_locked() 1016 libcfs_nid2str(rtr->lp_nid), secs, in lnet_ping_router_locked() 1020 if (secs && !rtr->lp_ping_notsent && in lnet_ping_router_locked() 1022 cfs_time_seconds(secs)))) { in lnet_ping_router_locked()
|