| /drivers/rtc/ |
| A D | rtc-msc313.c | 53 unsigned long seconds; in msc313_rtc_read_alarm() local 55 seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) in msc313_rtc_read_alarm() 58 rtc_time64_to_tm(seconds, &alarm->time); in msc313_rtc_read_alarm() 83 unsigned long seconds; in msc313_rtc_set_alarm() local 85 seconds = rtc_tm_to_time64(&alarm->time); in msc313_rtc_set_alarm() 111 u32 seconds; in msc313_rtc_read_time() local 124 seconds = readw(priv->rtc_base + REG_RTC_CNT_VAL_L) in msc313_rtc_read_time() 127 rtc_time64_to_tm(seconds, tm); in msc313_rtc_read_time() 135 unsigned long seconds; in msc313_rtc_set_time() local 138 seconds = rtc_tm_to_time64(tm); in msc313_rtc_set_time() [all …]
|
| A D | rtc-tps6586x.c | 60 time64_t seconds; in tps6586x_rtc_read_time() local 76 seconds = ticks >> 10; in tps6586x_rtc_read_time() 77 rtc_time64_to_tm(seconds, tm); in tps6586x_rtc_read_time() 86 time64_t seconds; in tps6586x_rtc_set_time() local 90 seconds = rtc_tm_to_time64(tm); in tps6586x_rtc_set_time() 139 time64_t seconds; in tps6586x_rtc_set_alarm() local 148 seconds = rtc_tm_to_time64(&alrm->time); in tps6586x_rtc_set_alarm() 170 seconds = rtc_current_time - 1; in tps6586x_rtc_set_alarm() 188 time64_t seconds; in tps6586x_rtc_read_alarm() local 199 seconds = ticks >> 10; in tps6586x_rtc_read_alarm() [all …]
|
| A D | rtc-mc13xxx.c | 63 unsigned int seconds, days1, days2; in mc13xxx_rtc_read_time() local 75 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds); in mc13xxx_rtc_read_time() 84 rtc_time64_to_tm((time64_t)days1 * SEC_PER_DAY + seconds, tm); in mc13xxx_rtc_read_time() 92 unsigned int seconds, days; in mc13xxx_rtc_set_time() local 96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time() 127 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCTOD, seconds); in mc13xxx_rtc_set_time() 158 unsigned int seconds, days; in mc13xxx_rtc_read_alarm() local 168 if (seconds >= SEC_PER_DAY) { in mc13xxx_rtc_read_alarm() 189 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm() 201 u32 seconds, days; in mc13xxx_rtc_set_alarm() local [all …]
|
| A D | rtc-mc146818-lib.c | 21 bool mc146818_avoid_UIP(void (*callback)(unsigned char seconds, void *param), in mc146818_avoid_UIP() argument 27 unsigned char seconds; in mc146818_avoid_UIP() local 41 seconds = CMOS_READ(RTC_SECONDS); in mc146818_avoid_UIP() 50 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP() 56 callback(seconds, param); in mc146818_avoid_UIP() 74 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP() 111 static void mc146818_get_time_callback(unsigned char seconds, void *param_in) in mc146818_get_time_callback() argument 121 p->time->tm_sec = seconds; in mc146818_get_time_callback()
|
| A D | rtc-ds1685.c | 265 u8 seconds, minutes, hours, wday, mday, month, years; in ds1685_rtc_read_time() local 269 seconds = rtc->read(rtc, RTC_SECS); in ds1685_rtc_read_time() 359 rtc->write(rtc, RTC_SECS, seconds); in ds1685_rtc_set_time() 388 u8 seconds, minutes, hours, mday, ctrlb, ctrlc; in ds1685_rtc_read_alarm() local 393 seconds = rtc->read(rtc, RTC_SECS_ALARM); in ds1685_rtc_read_alarm() 413 if (likely(seconds < 0xc0)) in ds1685_rtc_read_alarm() 446 u8 ctrlb, seconds, minutes, hours, mday; in ds1685_rtc_set_alarm() local 450 seconds = ds1685_rtc_bin2bcd(rtc, alrm->time.tm_sec, in ds1685_rtc_set_alarm() 476 if (unlikely(seconds >= 0xc0)) in ds1685_rtc_set_alarm() 477 seconds = 0xff; in ds1685_rtc_set_alarm() [all …]
|
| A D | rtc-ssd202d.c | 154 u32 seconds; in ssd202d_rtc_read_time() local 169 seconds = base + counter; in ssd202d_rtc_read_time() 171 rtc_time64_to_tm(seconds, tm); in ssd202d_rtc_read_time() 192 unsigned long seconds = rtc_tm_to_time64(tm); in ssd202d_rtc_set_time() local 194 ssd202d_rtc_write_reg(priv, REG_CTRL, BASE_WR_BIT, seconds); in ssd202d_rtc_set_time()
|
| A D | rtc-ti-k3.c | 281 time64_t seconds; in ti_k3_rtc_set_time() local 283 seconds = rtc_tm_to_time64(tm); in ti_k3_rtc_set_time() 290 regmap_write(priv->regmap, REG_K3RTC_S_CNT_LSW, seconds); in ti_k3_rtc_set_time() 291 regmap_write(priv->regmap, REG_K3RTC_S_CNT_MSW, seconds >> 32); in ti_k3_rtc_set_time() 334 time64_t seconds; in ti_k3_rtc_set_alarm() local 337 seconds = rtc_tm_to_time64(&alarm->time); in ti_k3_rtc_set_alarm() 339 k3rtc_field_write(priv, K3RTC_ALM_S_CNT_LSW, seconds); in ti_k3_rtc_set_alarm() 340 k3rtc_field_write(priv, K3RTC_ALM_S_CNT_MSW, (seconds >> 32)); in ti_k3_rtc_set_alarm()
|
| A D | rtc-bq32k.c | 42 uint8_t seconds; member 106 tm->tm_sec = bcd2bin(regs.seconds & BQ32K_SECONDS_MASK); in bq32k_rtc_read_time() 122 regs.seconds = bin2bcd(tm->tm_sec); in bq32k_rtc_set_time()
|
| /drivers/ptp/ |
| A D | ptp_dfl_tod.c | 102 u64 seconds, now; in coarse_adjust_tod_clock() local 112 seconds = CAL_SECONDS(seconds_msb, seconds_lsb); in coarse_adjust_tod_clock() 113 now = seconds * NSEC_PER_SEC + nanosec + delta; in coarse_adjust_tod_clock() 115 seconds = div_u64_rem(now, NSEC_PER_SEC, &nanosec); in coarse_adjust_tod_clock() 116 seconds_msb = FIELD_GET(SECONDS_MSB, seconds); in coarse_adjust_tod_clock() 117 seconds_lsb = FIELD_GET(SECONDS_LSB, seconds); in coarse_adjust_tod_clock() 233 u64 seconds; in dfl_tod_get_timex() local 243 seconds = CAL_SECONDS(seconds_msb, seconds_lsb); in dfl_tod_get_timex() 246 ts->tv_sec = seconds; in dfl_tod_get_timex()
|
| A D | ptp_clock.c | 52 s64 seconds; in enqueue_external_timestamp() local 56 seconds = div_u64_rem(src->timestamp, 1000000000, &remainder); in enqueue_external_timestamp() 59 seconds = offset_ts.tv_sec; in enqueue_external_timestamp() 71 dst->t.sec = seconds; in enqueue_external_timestamp()
|
| /drivers/net/ethernet/microchip/ |
| A D | lan743x_ptp.c | 381 u32 seconds = 0; in lan743x_ptpci_gettime64() local 388 ts->tv_sec = seconds; in lan743x_ptpci_gettime64() 402 u32 seconds = 0; in lan743x_ptpci_settime64() local 416 seconds = ts->tv_sec; in lan743x_ptpci_settime64() 1088 seconds, in lan743x_ptpci_do_aux_work() 1196 if (seconds) in lan743x_ptp_clock_get() 1240 s32 seconds = 0; in lan743x_ptp_clock_step() local 1300 seconds--; in lan743x_ptp_clock_step() 1312 seconds++; in lan743x_ptp_clock_step() 1316 while (seconds) { in lan743x_ptp_clock_step() [all …]
|
| /drivers/net/dsa/hirschmann/ |
| A D | hellcreek_ptp.c | 63 hellcreek->seconds++; in __hellcreek_ptp_gettime() 65 ns += hellcreek->seconds * NSEC_PER_SEC; in __hellcreek_ptp_gettime() 81 s = hellcreek->seconds * NSEC_PER_SEC; in hellcreek_ptp_gettime_seconds() 83 s = (hellcreek->seconds - 1) * NSEC_PER_SEC; in hellcreek_ptp_gettime_seconds() 117 hellcreek->seconds = ts->tv_sec; in hellcreek_ptp_settime()
|
| /drivers/hwmon/ |
| A D | ftsteutates.c | 59 seconds = 1, enumerator 233 if ((resolution == seconds && ret & BIT(1)) || in fts_wd_set_resolution() 239 if (resolution == seconds) in fts_wd_set_resolution() 255 enum WATCHDOG_RESOLUTION resolution = seconds; in fts_wd_set_timeout() 315 ret = fts_wd_set_resolution(data, seconds); in fts_watchdog_init() 324 data->resolution = ret & BIT(1) ? seconds : minutes; in fts_watchdog_init()
|
| /drivers/net/phy/ |
| A D | micrel.c | 402 u32 seconds; member 429 s64 seconds; member 2860 *seconds = (*seconds << 16) | in lan8814_ptp_rx_ts_get() 2874 *seconds = *seconds << 16 | in lan8814_ptp_tx_ts_get() 3138 time64_t seconds; in lan8814_ptpci_gettime64() local 3194 s32 seconds; in lan8814_ptp_clock_step() local 3243 seconds--; in lan8814_ptp_clock_step() 3255 seconds++; in lan8814_ptp_clock_step() 3259 while (seconds) { in lan8814_ptp_clock_step() 3262 if (seconds > 0) { in lan8814_ptp_clock_step() [all …]
|
| A D | microchip_rds_ptp.c | 394 shhwtstamps->hwtstamp = ktime_set(rx_ts->seconds, rx_ts->nsec); in mchp_rds_ptp_match_skb() 437 shhwtstamps->hwtstamp = ktime_set(rx_ts->seconds, rx_ts->nsec); in mchp_rds_ptp_match_rx_skb() 910 u32 seconds, u32 nsec, u16 seq_id) in mchp_rds_ptp_match_tx_skb() argument 933 shhwtstamps.hwtstamp = ktime_set(seconds, nsec); in mchp_rds_ptp_match_tx_skb() 983 rx_ts->seconds = sec; in mchp_rds_ptp_get_rx_ts()
|
| /drivers/usb/core/ |
| A D | Kconfig | 43 no more than 30 seconds (as required by the USB OTG spec). 46 occur within 30 seconds (as might be needed in an embedded 113 The default autosuspend delay in seconds. Can be overridden 116 The default value Linux has always had is 2 seconds. Change
|
| /drivers/scsi/csiostor/ |
| A D | csio_attr.c | 335 uint64_t seconds; in csio_get_stats() local 364 seconds = jiffies_to_msecs(jiffies) - hw->stats.n_reset_start; in csio_get_stats() 365 do_div(seconds, 1000); in csio_get_stats() 366 fhs->seconds_since_last_reset = seconds; in csio_get_stats()
|
| /drivers/scsi/qla4xxx/ |
| A D | ql4_nvram.c | 206 unsigned int seconds = 30; in ql4xxx_sem_spinlock() local 222 } while (--seconds); in ql4xxx_sem_spinlock()
|
| /drivers/scsi/aic7xxx/ |
| A D | Kconfig.aic79xx | 39 int "Initial bus reset delay in milli-seconds" 47 Default: 5000 (5 seconds)
|
| A D | Kconfig.aic7xxx | 44 int "Initial bus reset delay in milli-seconds" 52 Default: 5000 (5 seconds)
|
| /drivers/watchdog/ |
| A D | nv_tco.c | 68 static inline unsigned char seconds_to_ticks(int seconds) in seconds_to_ticks() argument 72 return (seconds * 10) / 6; in seconds_to_ticks()
|
| /drivers/platform/x86/dell/ |
| A D | dell-laptop.c | 1166 u8 seconds; member 1245 info->seconds = (buffer.output[3] >> 0) & 0xFF; in kbd_get_info() 1451 if (kbd_info.seconds > 63) in kbd_init_info() 1452 kbd_info.seconds = 63; in kbd_init_info() 1566 if (value > kbd_info.seconds) in kbd_led_timeout_store() 1615 if (value <= kbd_info.seconds && kbd_info.seconds) { in kbd_led_timeout_store()
|
| /drivers/scsi/ |
| A D | 3w-9xxx.c | 141 static int twa_poll_response(TW_Device_Extension *tw_dev, int request_id, int seconds); 142 static int twa_poll_status_gone(TW_Device_Extension *tw_dev, u32 flag, int seconds); 1419 static int twa_poll_response(TW_Device_Extension *tw_dev, int request_id, int seconds) in twa_poll_response() argument 1425 if (twa_poll_status_gone(tw_dev, TW_STATUS_RESPONSE_QUEUE_EMPTY, seconds) == 0) { in twa_poll_response() 1456 static int twa_poll_status(TW_Device_Extension *tw_dev, u32 flag, int seconds) in twa_poll_status() argument 1474 if (time_after(jiffies, before + HZ * seconds)) in twa_poll_status() 1485 static int twa_poll_status_gone(TW_Device_Extension *tw_dev, u32 flag, int seconds) in twa_poll_status_gone() argument 1502 if (time_after(jiffies, before + HZ * seconds)) in twa_poll_status_gone()
|
| /drivers/firmware/arm_scmi/vendors/imx/ |
| A D | imx95.rst | 559 - Read/write the RTC time in seconds and ticks 560 - Set an alarm (per LM) in seconds 701 |uint32 attributes |Bit[31:24] Bit width of RTC seconds. | 725 | |Set to 0 if the time is in seconds | 727 |uint32 time[2] |Lower word: Lower 32 bits of the time in seconds/ticks. | 728 | |Upper word: Upper 32 bits of the time in seconds/ticks. | 757 | |Set to 0 if the time is in seconds | 766 |uint32 time[2] |Lower word: Lower 32 bits of the time in seconds/ticks. | 767 | |Upper word: Upper 32 bits of the time in seconds/ticks. | 788 |uint32 time[2] |Lower word: Lower 32 bits of the time in seconds. | [all …]
|
| /drivers/ata/ |
| A D | libata-transport.c | 410 u64 seconds; in ata_show_ering() local 413 seconds = div_u64_rem(ent->timestamp, HZ, &rem); in ata_show_ering() 415 "[%5llu.%09lu]", seconds, in ata_show_ering()
|