/linux-master/arch/parisc/kernel/ |
H A D | time.c | 66 unsigned long now; local 79 now = mfctl(16); 83 } while (next_tick - now > cpt); 85 /* Store (in CR16 cycles) up to when we are accounting right now. */ 101 * "next_tick - now" will always give the difference regardless 102 * if one or the other wrapped. If "now" is "bigger" we'll end up 105 now = mfctl(16); 106 while (next_tick - now > cpt) 115 if (next_tick - now <= 8000)
|
/linux-master/tools/perf/util/bpf_skel/ |
H A D | func_latency.bpf.c | 47 __u64 key, now; local 72 now = bpf_ktime_get_ns(); 75 bpf_map_update_elem(&functime, &key, &now, BPF_ANY);
|
/linux-master/net/sunrpc/auth_gss/ |
H A D | gss_krb5_seal.c | 115 time64_t now; local 131 now = ktime_get_real_seconds(); 132 return (ctx->endtime < now) ? GSS_S_CONTEXT_EXPIRED : GSS_S_COMPLETE;
|
/linux-master/tools/testing/selftests/timers/ |
H A D | inconsistency-check.c | 98 long now, then; local 103 now = then = list[0].tv_sec; 109 while (seconds == -1 || now - then < seconds) { 145 now = list[0].tv_sec;
|
H A D | leap-a-day.c | 162 struct timespec now, target; local 164 clock_gettime(CLOCK_REALTIME, &now); 165 target = timespec_add(now, NSEC_PER_SEC/2); 167 clock_gettime(CLOCK_REALTIME, &now); 169 if (!in_order(target, now)) { 240 time_t now; local 328 now = tx.time.tv_sec; 329 while (now < next_leap + 2) { 353 now = tx.time.tv_sec;
|
H A D | threadtest.c | 123 time_t start, now, runtime; local 172 while (time(&now) < start + runtime) { 176 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&now));
|
/linux-master/drivers/gpu/drm/sti/ |
H A D | sti_plane.c | 47 ktime_t now; local 51 now = ktime_get(); 64 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); 70 fps->last_timestamp = now;
|
/linux-master/arch/x86/lib/ |
H A D | delay.c | 65 u64 bclock, now; local 72 now = rdtsc_ordered(); 73 if ((now - bclock) >= cycles) 91 cycles -= (now - bclock);
|
/linux-master/include/net/ |
H A D | busy_poll.h | 85 unsigned long now = busy_loop_current_time(); local 87 return time_after(now, end_time); 101 unsigned long now = busy_loop_current_time(); local 103 return time_after(now, end_time);
|
/linux-master/lib/ |
H A D | dynamic_queue_limits.c | 21 unsigned long now; local 27 now = jiffies; 29 if (time_after_eq(now, dql->last_reap + stall_thrs)) { 53 /* Shrink the search space to [start, (now - start_thrs/2)] if 56 if (time_before(now, end + stall_thrs / 2)) 57 end = now - stall_thrs / 2; 74 dql->stall_max = max_t(unsigned short, dql->stall_max, now - t); 76 trace_dql_stall_detected(dql->stall_thrs, now - t, 78 now, dql->history); 81 dql->last_reap = now; [all...] |
/linux-master/net/dccp/ccids/ |
H A D | ccid3.c | 95 static u32 ccid3_hc_tx_idle_rtt(struct ccid3_hc_tx_sock *hc, ktime_t now) argument 97 u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count); 119 ktime_t now = stamp ? *stamp : ktime_get_real(); local 127 if (ccid3_hc_tx_idle_rtt(hc, now) >= 2) { 137 } else if (ktime_us_delta(now, hc->tx_t_ld) - (s64)hc->tx_rtt >= 0) { 142 hc->tx_t_ld = now; 177 ktime_t now) 179 u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count), 183 hc->tx_t_last_win_count = now; 276 ktime_t now local 176 ccid3_hc_tx_update_win_count(struct ccid3_hc_tx_sock *hc, ktime_t now) argument 363 ktime_t now; local 595 ktime_t now = ktime_get(); local [all...] |
/linux-master/kernel/time/ |
H A D | posix-timers.h | 25 s64 (*timer_forward)(struct k_itimer *timr, ktime_t now); 26 ktime_t (*timer_remaining)(struct k_itimer *timr, ktime_t now);
|
H A D | alarmtimer.c | 243 ktime_t min, now, expires; local 292 now = rtc_tm_to_ktime(tm); 304 now = ktime_add(now, min); 307 ret = rtc_timer_start(rtc, &rtctimer, now, 0); 384 * @start: time relative to now to run the alarm 451 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval) argument 456 delta = ktime_sub(now, alarm->node.expires); 469 if (alarm->node.expires > now) 486 ktime_t now local 570 alarm_handle_timer(struct alarm *alarm, ktime_t now) argument 618 alarm_timer_forward(struct k_itimer *timr, ktime_t now) argument 630 alarm_timer_remaining(struct k_itimer *timr, ktime_t now) argument 762 alarmtimer_nsleep_wakeup(struct alarm *alarm, ktime_t now) argument 877 ktime_t now = alarm_bases[type].get_ktime(); local [all...] |
/linux-master/include/linux/ |
H A D | alarmtimer.h | 45 enum alarmtimer_restart (*function)(struct alarm *, ktime_t now); 59 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);
|
/linux-master/drivers/clk/rockchip/ |
H A D | clk-half-divider.c | 13 static bool _is_best_half_div(unsigned long rate, unsigned long now, argument 17 return abs(rate - now) < abs(rate - best); 19 return now <= rate && now > best; 40 unsigned long parent_rate, best = 0, now, maxdiv; local 77 now = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), 80 if (_is_best_half_div(rate, now, best, flags)) { 82 best = now;
|
/linux-master/arch/x86/kernel/ |
H A D | tsc_sync.c | 269 cycles_t start, now, prev, end, cur_max_warp = 0; local 286 now = rdtsc_ordered(); 287 last_tsc = now; 291 * Be nice every now and then (and also check whether 297 if (now > end || i > 10000000) 303 * Outside the critical section we can now see whether 306 if (unlikely(prev > now)) { 308 max_warp = max(max_warp, prev - now); 321 WARN(!(now-start), 323 now [all...] |
/linux-master/drivers/net/wireless/silabs/wfx/ |
H A D | fwio.c | 149 ktime_t now, start; local 158 now = ktime_get(); 161 if (ktime_after(now, ktime_add_ms(start, DCA_TIMEOUT))) 164 if (ktime_compare(now, start)) 165 dev_dbg(wdev->dev, "chip answer after %lldus\n", ktime_us_delta(now, start)); 175 ktime_t now, start; local 185 now = ktime_get(); 188 if (ktime_after(now, ktime_add_ms(start, DCA_TIMEOUT))) 194 if (ktime_compare(now, start)) 195 dev_dbg(wdev->dev, "answer after %lldus\n", ktime_us_delta(now, star 323 ktime_t now, start; local [all...] |
/linux-master/drivers/clocksource/ |
H A D | timer-goldfish.c | 75 u64 now; local 77 now = goldfish_timer_read(&timerdrv->cs); 79 now += delta; 81 gf_iowrite32(upper_32_bits(now), base + TIMER_ALARM_HIGH); 82 gf_iowrite32(lower_32_bits(now), base + TIMER_ALARM_LOW);
|
/linux-master/drivers/clk/meson/ |
H A D | clk-dualdiv.c | 68 unsigned long best = 0, now = 0; local 75 now = __dualdiv_param_to_rate(parent_rate, &table[i]); 78 if (now == rate) { 80 } else if (abs(now - rate) < abs(best - rate)) { 81 best = now;
|
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 33 unsigned long start_jiffies, now; local 52 while ((now = jiffies) == start_jiffies) 59 while (time_before(jiffies, now + (1 << MISALIGNED_ACCESS_JIFFIES_LG2))) { 74 while ((now = jiffies) == start_jiffies) 77 while (time_before(jiffies, now + (1 << MISALIGNED_ACCESS_JIFFIES_LG2))) {
|
/linux-master/fs/xfs/ |
H A D | xfs_mru_cache.c | 128 unsigned long now) 139 while (mru->time_zero <= now - mru->grp_count * mru->grp_time) { 158 * lists have been migrated to the reap list, it's now empty. 195 unsigned long now = jiffies; local 202 if (!_xfs_mru_cache_migrate(mru, now)) { 203 mru->time_zero = now; 210 grp = (now - mru->time_zero) / mru->grp_time; 270 unsigned long now, next; local 282 now = jiffies; 283 if (next <= now) 126 _xfs_mru_cache_migrate( struct xfs_mru_cache *mru, unsigned long now) argument [all...] |
/linux-master/drivers/rtc/ |
H A D | interface.c | 215 struct rtc_time before, now; local 268 memcpy(&before, &now, sizeof(struct rtc_time)); 283 err = rtc_read_time(rtc, &now); 288 } while (before.tm_min != now.tm_min || 289 before.tm_hour != now.tm_hour || 290 before.tm_mon != now.tm_mon || 291 before.tm_year != now.tm_year); 297 alarm->time.tm_sec = now.tm_sec; 299 alarm->time.tm_min = now.tm_min; 301 alarm->time.tm_hour = now 412 time64_t now, scheduled; local 496 struct rtc_time now; local 586 ktime_t now, onesec; local 806 ktime_t now; local 904 ktime_t now; local [all...] |
/linux-master/arch/mips/kvm/ |
H A D | emulate.c | 198 /* And now the FPA/cp1 branch instructions. */ 328 static u32 kvm_mips_ktime_to_count(struct kvm_vcpu *vcpu, ktime_t now) argument 333 now_ns = ktime_to_ns(now); 378 * @now: Kernel time to read CP0_Count at. 380 * Returns the current guest CP0_Count register at time @now and handles if the 385 static u32 kvm_mips_read_count_running(struct kvm_vcpu *vcpu, ktime_t now) argument 393 count = vcpu->arch.count_bias + kvm_mips_ktime_to_count(vcpu, now); 410 threshold = ktime_add_ns(now, vcpu->arch.count_period / 4); 474 ktime_t now; local 478 now 502 kvm_mips_resume_hrtimer(struct kvm_vcpu *vcpu, ktime_t now, u32 count) argument 546 ktime_t now, count_time; local 607 ktime_t now; local 654 ktime_t now; local 704 ktime_t now = ktime_set(0, 0); /* silence bogus GCC warning */ local 784 ktime_t now; local 858 ktime_t expire, now; local [all...] |
/linux-master/drivers/net/wireguard/ |
H A D | ratelimiter.c | 57 const u64 now = ktime_get_coarse_boottime_ns(); local 66 now - entry->last_time_ns > NSEC_PER_SEC) 72 now - entry->last_time_ns > NSEC_PER_SEC) 113 u64 now, tokens; local 121 now = ktime_get_coarse_boottime_ns(); 123 entry->tokens + now - 125 entry->last_time_ns = now;
|
/linux-master/tools/testing/selftests/timens/ |
H A D | timer.c | 18 int run_test(int clockid, struct timespec now) argument 38 new_value.it_value.tv_sec += now.tv_sec; 39 new_value.it_value.tv_nsec += now.tv_nsec;
|