/kernel/linux/linux-6.6/drivers/rtc/ |
H 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() 86 writew((seconds & 0xFFFF), priv->rtc_base + REG_RTC_MATCH_VAL_L); in msc313_rtc_set_alarm() 87 writew((seconds >> 16) & 0xFFFF, priv->rtc_base + REG_RTC_MATCH_VAL_H); 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, t in msc313_rtc_read_time() 135 unsigned long seconds; msc313_rtc_set_time() local [all...] |
H 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() 92 ticks = (unsigned long long)seconds << 10; 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() 169 if ((seconds - rtc_current_time) > ALM1_VALID_RANGE_IN_SEC) in tps6586x_rtc_set_alarm() 170 seconds in tps6586x_rtc_set_alarm() 188 time64_t seconds; tps6586x_rtc_read_alarm() local [all...] |
H 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() 116 * write seconds=0 to prevent a day switch between writing days in mc13xxx_rtc_set_time() 117 * and seconds below 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 165 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTODA, &seconds); in mc13xxx_rtc_read_alarm() 201 u32 seconds, days; mc13xxx_rtc_set_alarm() local [all...] |
H 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() 70 * whether the seconds value has changed which indicates that 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()
|
H A D | rtc-ti-k3.c | 248 * FMODE setting: Reading lower seconds will freeze value on higher in k3rtc_configure() 249 * seconds. This also implies that we must *ALWAYS* read lower seconds in k3rtc_configure() 250 * prior to reading higher seconds in k3rtc_configure() 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 in ti_k3_rtc_set_alarm() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/dma/ |
H A D | dma_map_benchmark.c | 28 /* default single thread, run 20 seconds on NUMA_NO_NODE */ in main() 29 int threads = 1, seconds = 20, node = -1; in main() local 44 seconds = atoi(optarg); in main() 72 if (seconds <= 0 || seconds > DMA_MAP_MAX_SECONDS) { in main() 73 fprintf(stderr, "invalid number of seconds, must be in 1-%d\n", in main() 108 map.seconds = seconds; in main() 121 printf("dma mapping benchmark: threads:%d seconds:%d node:%d dir:%s granule: %d\n", in main() 122 threads, seconds, nod in main() [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-tps6586x.c | 73 time64_t seconds; in tps6586x_rtc_read_time() local 89 seconds = ticks >> 10; in tps6586x_rtc_read_time() 90 rtc_time64_to_tm(seconds, tm); in tps6586x_rtc_read_time() 99 time64_t seconds; in tps6586x_rtc_set_time() local 103 seconds = rtc_tm_to_time64(tm); in tps6586x_rtc_set_time() 105 ticks = (unsigned long long)seconds << 10; in tps6586x_rtc_set_time() 152 time64_t seconds; in tps6586x_rtc_set_alarm() local 161 seconds = rtc_tm_to_time64(&alrm->time); in tps6586x_rtc_set_alarm() 182 if ((seconds - rtc_current_time) > ALM1_VALID_RANGE_IN_SEC) in tps6586x_rtc_set_alarm() 183 seconds in tps6586x_rtc_set_alarm() 201 time64_t seconds; tps6586x_rtc_read_alarm() local [all...] |
H 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() 116 * write seconds=0 to prevent a day switch between writing days in mc13xxx_rtc_set_time() 117 * and seconds below 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 165 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTODA, &seconds); in mc13xxx_rtc_read_alarm() 201 u32 seconds, days; mc13xxx_rtc_set_alarm() local [all...] |
H A D | rtc-mc146818-lib.c | 17 bool mc146818_avoid_UIP(void (*callback)(unsigned char seconds, void *param), in mc146818_avoid_UIP() argument 22 unsigned char seconds; in mc146818_avoid_UIP() local 36 seconds = CMOS_READ(RTC_SECONDS); in mc146818_avoid_UIP() 45 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP() 51 callback(seconds, param); in mc146818_avoid_UIP() 65 * whether the seconds value has changed which indicates that in mc146818_avoid_UIP() 69 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP() 177 * the seconds value has changed which indicates that the NMI took in mc146818_get_time()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 25 u32 seconds, u32 nano_seconds, 66 u32 seconds, u32 nano_seconds, in lan743x_ptp_tx_ts_enqueue_ts() 73 ptp->tx_ts_seconds_queue[ptp->tx_ts_queue_size] = seconds; in lan743x_ptp_tx_ts_enqueue_ts() 88 u32 header, nseconds, seconds; in lan743x_ptp_tx_ts_complete() local 106 seconds = ptp->tx_ts_seconds_queue[i]; in lan743x_ptp_tx_ts_complete() 110 tstamps.hwtstamp = ktime_set(seconds, nseconds); in lan743x_ptp_tx_ts_complete() 180 u32 *seconds, u32 *nano_seconds, 408 u32 seconds = 0; in lan743x_ptpci_gettime64() local 410 lan743x_ptp_clock_get(adapter, &seconds, &nano_seconds, NULL); in lan743x_ptpci_gettime64() 411 ts->tv_sec = seconds; in lan743x_ptpci_gettime64() 65 lan743x_ptp_tx_ts_enqueue_ts(struct lan743x_adapter *adapter, u32 seconds, u32 nano_seconds, u32 header) lan743x_ptp_tx_ts_enqueue_ts() argument 425 u32 seconds = 0; lan743x_ptpci_settime64() local 665 u32 cap_info, cause, header, nsec, seconds; lan743x_ptpci_do_aux_work() local 712 lan743x_ptp_clock_get(struct lan743x_adapter *adapter, u32 *seconds, u32 *nano_seconds, u32 *sub_nano_seconds) lan743x_ptp_clock_get() argument 745 s32 seconds = 0; lan743x_ptp_clock_step() local 1170 lan743x_ptp_clock_set(struct lan743x_adapter *adapter, u32 seconds, u32 nano_seconds, u32 sub_nano_seconds) lan743x_ptp_clock_set() argument [all...] |
/kernel/linux/linux-6.6/drivers/ptp/ |
H 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-test-1-run.sh | 10 # Usage: kvm-test-1-run.sh config builddir resdir seconds qemu-args boot_args 124 seconds=$4 155 boot_args="`per_version_boot_params "$boot_args" $resdir/.config $seconds`" 209 if test $kruntime -ge $seconds -o -f "$TORTURE_STOPFILE" 216 if test $kruntime -lt $seconds 218 echo Completed in $kruntime vs. $seconds >> $resdir/Warnings 2>&1 269 if test "$newline" != "$oldline" -a "$last_ts" -lt $((seconds + $TORTURE_SHUTDOWN_GRACE)) 273 if test $must_continue = no -a $kruntime -ge $((seconds + $TORTURE_SHUTDOWN_GRACE)) 275 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds" >> [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | bd70528_wdt.c | 15 * Max time we can set is 1 hour, 59 minutes and 59 seconds 168 unsigned int seconds; in bd70528_wdt_set_timeout() local 172 seconds = timeout; in bd70528_wdt_set_timeout() 176 seconds -= (60 * 60); in bd70528_wdt_set_timeout() 177 minutes = seconds / 60; in bd70528_wdt_set_timeout() 178 seconds = seconds % 60; in bd70528_wdt_set_timeout() 199 BD70528_MASK_WDT_SEC, bin2bcd(seconds)); in bd70528_wdt_set_timeout() 201 dev_err(w->dev, "Failed to set WDT seconds\n"); in bd70528_wdt_set_timeout()
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
H A D | cmm.c | 229 static void cmm_set_timeout(long nr, long seconds) in cmm_set_timeout() argument 232 cmm_timeout_seconds = seconds; in cmm_set_timeout() 289 long nr, seconds; in cmm_timeout_handler() local 304 seconds = simple_strtoul(p, &p, 0); in cmm_timeout_handler() 305 cmm_set_timeout(nr, seconds); in cmm_timeout_handler() 352 long nr, seconds; in cmm_smsg_target() local 378 seconds = simple_strtoul(msg, &msg, 0); in cmm_smsg_target() 381 cmm_set_timeout(nr, seconds); in cmm_smsg_target()
|
/kernel/linux/linux-6.6/arch/s390/mm/ |
H A D | cmm.c | 229 static void cmm_set_timeout(long nr, long seconds) in cmm_set_timeout() argument 232 cmm_timeout_seconds = seconds; in cmm_set_timeout() 289 long nr, seconds; in cmm_timeout_handler() local 304 seconds = simple_strtoul(p, &p, 0); in cmm_timeout_handler() 305 cmm_set_timeout(nr, seconds); in cmm_timeout_handler() 342 long nr, seconds; in cmm_smsg_target() local 368 seconds = simple_strtoul(msg, &msg, 0); in cmm_smsg_target() 371 cmm_set_timeout(nr, seconds); in cmm_smsg_target()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 25 u32 seconds, u32 nano_seconds, 78 u32 seconds, u32 nano_seconds, in lan743x_ptp_tx_ts_enqueue_ts() 85 ptp->tx_ts_seconds_queue[ptp->tx_ts_queue_size] = seconds; in lan743x_ptp_tx_ts_enqueue_ts() 100 u32 header, nseconds, seconds; in lan743x_ptp_tx_ts_complete() local 118 seconds = ptp->tx_ts_seconds_queue[i]; in lan743x_ptp_tx_ts_complete() 122 tstamps.hwtstamp = ktime_set(seconds, nseconds); in lan743x_ptp_tx_ts_complete() 192 u32 *seconds, u32 *nano_seconds, 381 u32 seconds = 0; in lan743x_ptpci_gettime64() local 384 lan743x_ptp_io_clock_get(adapter, &seconds, &nano_seconds, in lan743x_ptpci_gettime64() 387 lan743x_ptp_clock_get(adapter, &seconds, in lan743x_ptpci_gettime64() 77 lan743x_ptp_tx_ts_enqueue_ts(struct lan743x_adapter *adapter, u32 seconds, u32 nano_seconds, u32 header) lan743x_ptp_tx_ts_enqueue_ts() argument 402 u32 seconds = 0; lan743x_ptpci_settime64() local 1069 u32 cap_info, cause, header, nsec, seconds; lan743x_ptpci_do_aux_work() local 1196 lan743x_ptp_clock_get(struct lan743x_adapter *adapter, u32 *seconds, u32 *nano_seconds, u32 *sub_nano_seconds) lan743x_ptp_clock_get() argument 1251 s32 seconds = 0; lan743x_ptp_clock_step() local 1686 lan743x_ptp_clock_set(struct lan743x_adapter *adapter, u32 seconds, u32 nano_seconds, u32 sub_nano_seconds) lan743x_ptp_clock_set() argument [all...] |
/kernel/liteos_m/kal/posix/src/ |
H A D | time.c | 67 * Time zone information, stored in seconds, 531 * offset OFFSET seconds east of UTC, 646 time_t seconds = 0; in ConvertUtc2Secs() local 652 seconds += SECS_PER_NORMAL_YEAR; in ConvertUtc2Secs() 654 seconds += SECS_PER_DAY; in ConvertUtc2Secs() 664 seconds += (g_montbl[month] + 1) * SECS_PER_DAY; in ConvertUtc2Secs() 666 seconds += g_montbl[month] * SECS_PER_DAY; in ConvertUtc2Secs() 671 seconds += (tm->tm_mday - 1) * SECS_PER_DAY; in ConvertUtc2Secs() 672 seconds += tm->tm_hour * SECS_PER_HOUR + tm->tm_min * SECS_PER_MIN + tm->tm_sec; in ConvertUtc2Secs() 677 seconds in ConvertUtc2Secs() 817 sleep(unsigned seconds) sleep() argument [all...] |
/kernel/linux/linux-5.10/fs/udf/ |
H A D | udftime.c | 32 * We don't take into account leap seconds. This may be correct or incorrect. 33 * For more NIST information (especially dealing with leap seconds), see: 75 time64_t seconds; in udf_time_to_disk_stamp() local 83 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp() 84 time64_to_tm(seconds, 0, &tm); in udf_time_to_disk_stamp()
|
/kernel/linux/linux-6.6/fs/udf/ |
H A D | udftime.c | 18 * We don't take into account leap seconds. This may be correct or incorrect. 19 * For more NIST information (especially dealing with leap seconds), see: 61 time64_t seconds; in udf_time_to_disk_stamp() local 69 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp() 70 time64_to_tm(seconds, 0, &tm); in udf_time_to_disk_stamp()
|
/kernel/linux/linux-5.10/tools/testing/vsock/ |
H A D | timeout.c | 41 void timeout_begin(unsigned int seconds) in timeout_begin() argument 43 alarm(seconds); in timeout_begin()
|
/kernel/linux/linux-6.6/tools/testing/vsock/ |
H A D | timeout.c | 41 void timeout_begin(unsigned int seconds) in timeout_begin() argument 43 alarm(seconds); in timeout_begin()
|
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/ |
H A D | xt_recent.h | 29 __u32 seconds; member 38 __u32 seconds; member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | delay.h | 63 static inline void ssleep(unsigned int seconds) in ssleep() argument 65 msleep(seconds * 1000); in ssleep()
|
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/ |
H A D | xt_recent.h | 29 __u32 seconds; member 38 __u32 seconds; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter/ |
H A D | xt_recent.h | 37 __u32 seconds; member 45 __u32 seconds; member
|