Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 41) sorted by relevance

12

/drivers/rtc/
Drtc-tps6586x.c74 unsigned long seconds; in tps6586x_rtc_read_time() local
90 seconds = ticks >> 10; in tps6586x_rtc_read_time()
91 seconds += rtc->epoch_start; in tps6586x_rtc_read_time()
92 rtc_time_to_tm(seconds, tm); in tps6586x_rtc_read_time()
101 unsigned long seconds; in tps6586x_rtc_set_time() local
105 rtc_tm_to_time(tm, &seconds); in tps6586x_rtc_set_time()
106 if (seconds < rtc->epoch_start) { in tps6586x_rtc_set_time()
110 seconds -= rtc->epoch_start; in tps6586x_rtc_set_time()
112 ticks = (unsigned long long)seconds << 10; in tps6586x_rtc_set_time()
160 unsigned long seconds; in tps6586x_rtc_set_alarm() local
[all …]
Drtc-mc13xxx.c65 unsigned int seconds, days1, days2; in mc13xxx_rtc_read_time() local
77 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds); in mc13xxx_rtc_read_time()
86 rtc_time64_to_tm((time64_t)days1 * SEC_PER_DAY + seconds, tm); in mc13xxx_rtc_read_time()
94 unsigned int seconds, days; in mc13xxx_rtc_set_mmss() local
98 days = div_s64_rem(secs, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_mmss()
129 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCTOD, seconds); in mc13xxx_rtc_set_mmss()
160 unsigned seconds, days; in mc13xxx_rtc_read_alarm() local
167 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTODA, &seconds); in mc13xxx_rtc_read_alarm()
170 if (seconds >= SEC_PER_DAY) { in mc13xxx_rtc_read_alarm()
191 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm()
[all …]
Drtc-ds1685.c255 u8 seconds, minutes, hours, wday, mday, month, years; in ds1685_rtc_read_time() local
259 seconds = rtc->read(rtc, RTC_SECS); in ds1685_rtc_read_time()
275 tm->tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, RTC_SECS_BCD_MASK, in ds1685_rtc_read_time()
304 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; in ds1685_rtc_set_time() local
307 seconds = ds1685_rtc_bin2bcd(rtc, tm->tm_sec, RTC_SECS_BIN_MASK, in ds1685_rtc_set_time()
351 rtc->write(rtc, RTC_SECS, seconds); in ds1685_rtc_set_time()
381 u8 seconds, minutes, hours, mday, ctrlb, ctrlc; in ds1685_rtc_read_alarm() local
385 seconds = rtc->read(rtc, RTC_SECS_ALARM); in ds1685_rtc_read_alarm()
404 if (unlikely(seconds >= 0xc0)) in ds1685_rtc_read_alarm()
407 alrm->time.tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, in ds1685_rtc_read_alarm()
[all …]
Drtc-bq32k.c39 uint8_t seconds; member
96 tm->tm_sec = bcd2bin(regs.seconds & BQ32K_SECONDS_MASK); in bq32k_rtc_read_time()
112 regs.seconds = bin2bcd(tm->tm_sec); in bq32k_rtc_set_time()
/drivers/staging/lustre/include/linux/libcfs/linux/
Dlinux-time.h71 static inline long cfs_time_seconds(int seconds) in cfs_time_seconds() argument
73 return ((long)seconds) * HZ; in cfs_time_seconds()
88 static inline __u64 cfs_time_shift_64(int seconds) in cfs_time_shift_64() argument
91 cfs_time_seconds(seconds)); in cfs_time_shift_64()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_time.h66 static inline unsigned long cfs_time_shift(int seconds) in cfs_time_shift() argument
68 return cfs_time_add(cfs_time_current(), cfs_time_seconds(seconds)); in cfs_time_shift()
/drivers/ptp/
Dptp_clock.c58 s64 seconds; in enqueue_external_timestamp() local
61 seconds = div_u64_rem(src->timestamp, 1000000000, &remainder); in enqueue_external_timestamp()
67 dst->t.sec = seconds; in enqueue_external_timestamp()
/drivers/scsi/qla4xxx/
Dql4_nvram.c207 unsigned int seconds = 30; in ql4xxx_sem_spinlock() local
223 } while (--seconds); in ql4xxx_sem_spinlock()
/drivers/scsi/csiostor/
Dcsio_attr.c323 uint64_t seconds; in csio_get_stats() local
352 seconds = jiffies_to_msecs(jiffies) - hw->stats.n_reset_start; in csio_get_stats()
353 do_div(seconds, 1000); in csio_get_stats()
354 fhs->seconds_since_last_reset = seconds; in csio_get_stats()
/drivers/platform/x86/
Ddell-laptop.c1242 u8 seconds; member
1317 info->seconds = (buffer->output[3] >> 0) & 0xFF; in kbd_get_info()
1533 if (kbd_info.seconds > 63) in kbd_init_info()
1534 kbd_info.seconds = 63; in kbd_init_info()
1641 if (value > kbd_info.seconds) in kbd_led_timeout_store()
1688 if (value <= kbd_info.seconds && kbd_info.seconds) { in kbd_led_timeout_store()
/drivers/scsi/aic7xxx/
DKconfig.aic79xx37 int "Initial bus reset delay in milli-seconds"
45 Default: 5000 (5 seconds)
DKconfig.aic7xxx42 int "Initial bus reset delay in milli-seconds"
50 Default: 5000 (5 seconds)
/drivers/watchdog/
Dnv_tco.c72 static inline unsigned char seconds_to_ticks(int seconds) in seconds_to_ticks() argument
76 return (seconds * 10) / 6; in seconds_to_ticks()
/drivers/staging/lustre/
Dsysfs-fs-lustre53 Unit: seconds, default: 100
97 Controls minimum adaptive timeout in seconds. If you encounter
108 Controls maximum adaptive timeout in seconds. If at_max timeout
121 in processing in seconds. Normally a server-side parameter, it
135 seconds..
142 Controls for how many seconds to remember slowest events
416 values (in seconds).
569 Number of seconds with no write activity for this target
/drivers/scsi/
D3w-9xxx.c144 static int twa_poll_response(TW_Device_Extension *tw_dev, int request_id, int seconds);
145 static int twa_poll_status_gone(TW_Device_Extension *tw_dev, u32 flag, int seconds);
1422 static int twa_poll_response(TW_Device_Extension *tw_dev, int request_id, int seconds) in twa_poll_response() argument
1428 if (twa_poll_status_gone(tw_dev, TW_STATUS_RESPONSE_QUEUE_EMPTY, seconds) == 0) { in twa_poll_response()
1459 static int twa_poll_status(TW_Device_Extension *tw_dev, u32 flag, int seconds) in twa_poll_status() argument
1477 if (time_after(jiffies, before + HZ * seconds)) in twa_poll_status()
1488 static int twa_poll_status_gone(TW_Device_Extension *tw_dev, u32 flag, int seconds) in twa_poll_status_gone() argument
1505 if (time_after(jiffies, before + HZ * seconds)) in twa_poll_status_gone()
DBusLogic.h1209 static inline void blogic_delay(int seconds) in blogic_delay() argument
1211 mdelay(1000 * seconds); in blogic_delay()
D3w-sas.c525 static int twl_poll_response(TW_Device_Extension *tw_dev, int request_id, int seconds) in twl_poll_response() argument
549 if (time_after(jiffies, before + HZ * seconds)) in twl_poll_response()
1242 …c int twl_poll_register(TW_Device_Extension *tw_dev, void *reg, u32 value, u32 result, int seconds) in twl_poll_register() argument
1253 if (time_after(jiffies, before + HZ * seconds)) in twl_poll_register()
D3w-xxxx.c300 static int tw_poll_status(TW_Device_Extension *tw_dev, u32 flag, int seconds) in tw_poll_status() argument
318 if (time_after(jiffies, before + HZ * seconds)) in tw_poll_status()
329 static int tw_poll_status_gone(TW_Device_Extension *tw_dev, u32 flag, int seconds) in tw_poll_status_gone() argument
347 if (time_after(jiffies, before + HZ * seconds)) in tw_poll_status_gone()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_init.c160 int seconds; in qlcnic_83xx_idc_update_audit_reg() local
171 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_update_audit_reg()
173 seconds = jiffies / HZ; in qlcnic_83xx_idc_update_audit_reg()
175 val |= seconds << 8; in qlcnic_83xx_idc_update_audit_reg()
309 u64 seconds; in qlcnic_83xx_idc_check_timeout() local
311 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_check_timeout()
312 if (seconds <= time_limit) in qlcnic_83xx_idc_check_timeout()
/drivers/rapidio/
DKconfig7 int "Discovery timeout duration (seconds)"
/drivers/staging/dgnc/
Ddgnc_driver.h127 int (*drain)(struct tty_struct *tty, uint seconds);
Ddgnc_cls.c42 static int cls_drain(struct tty_struct *tty, uint seconds);
898 static int cls_drain(struct tty_struct *tty, uint seconds) in cls_drain() argument
Ddgnc_neo.c44 static int neo_drain(struct tty_struct *tty, uint seconds);
1284 static int neo_drain(struct tty_struct *tty, uint seconds) in neo_drain() argument
/drivers/net/wireless/ath/ath9k/
DKconfig141 seconds. Turn off to save power, but enable it if you have
/drivers/scsi/lpfc/
Dlpfc_attr.c5358 unsigned long seconds; in lpfc_get_stats() local
5459 seconds = get_seconds(); in lpfc_get_stats()
5460 if (seconds < psli->stats_start) in lpfc_get_stats()
5461 hs->seconds_since_last_reset = seconds + in lpfc_get_stats()
5464 hs->seconds_since_last_reset = seconds - psli->stats_start; in lpfc_get_stats()

12