/linux-master/tools/testing/vsock/ |
H A D | timeout.h | 7 TIMEOUT = 10 /* seconds */ 11 void timeout_begin(unsigned int seconds);
|
H A D | timeout.c | 41 void timeout_begin(unsigned int seconds) argument 43 alarm(seconds);
|
/linux-master/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-transform.sh | 6 # Usage: kvm-transform.sh bzImage console.log jitter_dir seconds [ bootargs ] < qemu-cmd-in > qemu-cmd-out 12 # seconds: Run duaration for *.shutdown_secs module parameter. 45 seconds="$4" 46 if test -n "$seconds" && echo $seconds | grep -q '[^0-9]' 48 echo "Invalid duration, should be numeric in seconds: '$seconds'" 62 /^# seconds=/ { 63 if (seconds == "") 66 print "# seconds [all...] |
H A D | kvm-test-1-run-qemu.sh | 101 elif test $kruntime -ge $seconds || test -f "$resdir/../STOP.1" 108 if test $kruntime -lt $seconds 110 echo Completed in $kruntime vs. $seconds >> $resdir/Warnings 2>&1 161 if test "$newline" != "$oldline" && test "$last_ts" -lt $((seconds + $TORTURE_SHUTDOWN_GRACE)) && test "$last_ts" -gt "$TORTURE_SHUTDOWN_GRACE" 164 if test $kruntime -ge $((seconds + $TORTURE_SHUTDOWN_GRACE)) 169 if test $must_continue = no && test $kruntime -ge $((seconds + $TORTURE_SHUTDOWN_GRACE)) 171 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds `date`" >> $resdir/Warnings 2>&1
|
H A D | functions.sh | 140 print s " seconds"
|
/linux-master/tools/testing/selftests/dma/ |
H A D | dma_map_benchmark.c | 28 /* default single thread, run 20 seconds on NUMA_NO_NODE */ 29 int threads = 1, seconds = 20, node = -1; local 44 seconds = atoi(optarg); 72 if (seconds <= 0 || seconds > DMA_MAP_MAX_SECONDS) { 73 fprintf(stderr, "invalid number of seconds, must be in 1-%d\n", 108 map.seconds = seconds; 121 printf("dma mapping benchmark: threads:%d seconds:%d node:%d dir:%s granule: %d\n", 122 threads, seconds, nod [all...] |
/linux-master/include/uapi/linux/netfilter/ |
H A D | xt_recent.h | 29 __u32 seconds; member in struct:xt_recent_mtinfo 38 __u32 seconds; member in struct:xt_recent_mtinfo_v1
|
/linux-master/drivers/rtc/ |
H A D | rtc-msc313.c | 53 unsigned long seconds; local 55 seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) 58 rtc_time64_to_tm(seconds, &alarm->time); 83 unsigned long seconds; local 85 seconds = rtc_tm_to_time64(&alarm->time); 86 writew((seconds & 0xFFFF), priv->rtc_base + REG_RTC_MATCH_VAL_L); 87 writew((seconds >> 16) & 0xFFFF, priv->rtc_base + REG_RTC_MATCH_VAL_H); 111 u32 seconds; local 124 seconds = readw(priv->rtc_base + REG_RTC_CNT_VAL_L) 127 rtc_time64_to_tm(seconds, t 135 unsigned long seconds; local [all...] |
H A D | rtc-tps6586x.c | 60 time64_t seconds; local 76 seconds = ticks >> 10; 77 rtc_time64_to_tm(seconds, tm); 86 time64_t seconds; local 90 seconds = rtc_tm_to_time64(tm); 92 ticks = (unsigned long long)seconds << 10; 139 time64_t seconds; local 148 seconds = rtc_tm_to_time64(&alrm->time); 169 if ((seconds - rtc_current_time) > ALM1_VALID_RANGE_IN_SEC) 170 seconds 188 time64_t seconds; local [all...] |
H A D | rtc-mc13xxx.c | 63 unsigned int seconds, days1, days2; local 75 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds); 84 rtc_time64_to_tm((time64_t)days1 * SEC_PER_DAY + seconds, tm); 92 unsigned int seconds, days; local 96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); 116 * write seconds=0 to prevent a day switch between writing days 117 * and seconds below 127 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCTOD, seconds); 158 unsigned int seconds, days; local 165 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTODA, &seconds); 201 u32 seconds, days; local [all...] |
H A D | rtc-mc146818-lib.c | 21 bool mc146818_avoid_UIP(void (*callback)(unsigned char seconds, void *param), argument 27 unsigned char seconds; local 41 seconds = CMOS_READ(RTC_SECONDS); 50 if (seconds != CMOS_READ(RTC_SECONDS)) { 56 callback(seconds, param); 70 * whether the seconds value has changed which indicates that 74 if (seconds != CMOS_READ(RTC_SECONDS)) { 111 static void mc146818_get_time_callback(unsigned char seconds, void *param_in) argument 121 p->time->tm_sec = seconds;
|
H A D | rtc-ssd202d.c | 154 u32 seconds; local 169 seconds = base + counter; 171 rtc_time64_to_tm(seconds, tm); 192 unsigned long seconds = rtc_tm_to_time64(tm); local 194 ssd202d_rtc_write_reg(priv, REG_CTRL, BASE_WR_BIT, seconds);
|
H A D | rtc-ds1685.c | 265 u8 seconds, minutes, hours, wday, mday, month, years; local 269 seconds = rtc->read(rtc, RTC_SECS); 284 tm->tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, RTC_SECS_BCD_MASK, 312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; local 315 seconds = ds1685_rtc_bin2bcd(rtc, tm->tm_sec, RTC_SECS_BIN_MASK, 359 rtc->write(rtc, RTC_SECS, seconds); 377 * There are three primary alarm registers: seconds, minutes, and hours. 388 u8 seconds, minutes, hours, mday, ctrlb, ctrlc; local 393 seconds = rtc->read(rtc, RTC_SECS_ALARM); 413 if (likely(seconds < 446 u8 ctrlb, seconds, minutes, hours, mday; local [all...] |
/linux-master/include/linux/ |
H A D | delay.h | 76 static inline void ssleep(unsigned int seconds) argument 78 msleep(seconds * 1000);
|
H A D | map_benchmark.h | 24 __u32 seconds; /* how long the test will last */ member in struct:map_benchmark
|
/linux-master/include/uapi/scsi/ |
H A D | scsi_netlink_fc.h | 47 __u64 seconds; member in struct:fc_nl_event
|
/linux-master/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; local 69 seconds = ts.tv_sec + offset * 60; 70 time64_to_tm(seconds, 0, &tm);
|
/linux-master/tools/include/nolibc/ |
H A D | unistd.h | 35 unsigned int sleep(unsigned int seconds) argument 37 struct timeval my_timeval = { seconds, 0 };
|
/linux-master/drivers/ptp/ |
H A D | ptp_dfl_tod.c | 102 u64 seconds, now; local 112 seconds = CAL_SECONDS(seconds_msb, seconds_lsb); 113 now = seconds * NSEC_PER_SEC + nanosec + delta; 115 seconds = div_u64_rem(now, NSEC_PER_SEC, &nanosec); 116 seconds_msb = FIELD_GET(SECONDS_MSB, seconds); 117 seconds_lsb = FIELD_GET(SECONDS_LSB, seconds); 233 u64 seconds; local 243 seconds = CAL_SECONDS(seconds_msb, seconds_lsb); 246 ts->tv_sec = seconds;
|
/linux-master/tools/laptop/freefall/ |
H A D | freefall.c | 80 static void protect(int seconds) argument 82 const char *str = (seconds == 0) ? "Unparked" : "Parked"; 84 write_int(unload_heads_path, seconds*1000);
|
/linux-master/tools/testing/selftests/timers/ |
H A D | inconsistency-check.c | 94 int consistency_test(int clock_type, unsigned long seconds) argument 109 while (seconds == -1 || now - then < seconds) { 171 printf(" -t: Number of seconds to run\n");
|
/linux-master/arch/s390/mm/ |
H A D | cmm.c | 229 static void cmm_set_timeout(long nr, long seconds) argument 232 cmm_timeout_seconds = seconds; 289 long nr, seconds; local 304 seconds = simple_strtoul(p, &p, 0); 305 cmm_set_timeout(nr, seconds); 341 long nr, seconds; local 367 seconds = simple_strtoul(msg, &msg, 0); 370 cmm_set_timeout(nr, seconds);
|
/linux-master/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 25 u32 seconds, u32 nano_seconds, 78 u32 seconds, u32 nano_seconds, 85 ptp->tx_ts_seconds_queue[ptp->tx_ts_queue_size] = seconds; 100 u32 header, nseconds, seconds; local 118 seconds = ptp->tx_ts_seconds_queue[i]; 122 tstamps.hwtstamp = ktime_set(seconds, nseconds); 192 u32 *seconds, u32 *nano_seconds, 381 u32 seconds = 0; local 384 lan743x_ptp_io_clock_get(adapter, &seconds, &nano_seconds, 387 lan743x_ptp_clock_get(adapter, &seconds, 77 lan743x_ptp_tx_ts_enqueue_ts(struct lan743x_adapter *adapter, u32 seconds, u32 nano_seconds, u32 header) argument 402 u32 seconds = 0; local 1069 u32 cap_info, cause, header, nsec, seconds; local 1196 lan743x_ptp_clock_get(struct lan743x_adapter *adapter, u32 *seconds, u32 *nano_seconds, u32 *sub_nano_seconds) argument 1251 s32 seconds = 0; local 1693 lan743x_ptp_clock_set(struct lan743x_adapter *adapter, u32 seconds, u32 nano_seconds, u32 sub_nano_seconds) argument [all...] |
/linux-master/fs/fat/ |
H A D | misc.c | 203 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ 291 time64_t seconds = ts->tv_sec - fat_tz_offset(sbi); local 294 div_s64_rem(seconds, SECS_PER_DAY, &remainder); 296 seconds = seconds + fat_tz_offset(sbi) - remainder; 298 return (struct timespec64){ seconds, 0 };
|
/linux-master/kernel/time/ |
H A D | itimer.c | 266 * alarm_setitimer - set alarm in seconds 268 * @seconds: number of seconds until alarm 271 * Returns the remaining time in seconds of a pending timer or 0 when 274 * On 32 bit machines the seconds value is limited to (INT_MAX/2) to avoid 277 static unsigned int alarm_setitimer(unsigned int seconds) argument 282 if (seconds > INT_MAX) 283 seconds = INT_MAX; 285 it_new.it_value.tv_sec = seconds; 306 SYSCALL_DEFINE1(alarm, unsigned int, seconds) [all...] |