/linux-master/net/sched/ |
H A D | sch_cbs.c | 180 s64 now = ktime_get_ns(); local 186 if (now < q->last) { 191 credits = timediff_to_credits(now - q->last, q->idleslope); 200 qdisc_watchdog_schedule_ns(&q->watchdog, now + delay); 202 q->last = now; 223 q->last = now; 225 q->last = now + div64_s64(len * NSEC_PER_SEC,
|
/linux-master/block/ |
H A D | bfq-cgroup.c | 125 u64 now; local 130 now = blk_time_get_ns(); 131 if (now > stats->start_group_wait_time) 133 now - stats->start_group_wait_time); 154 u64 now; local 159 now = blk_time_get_ns(); 160 if (now > stats->start_empty_time) 162 now - stats->start_empty_time); 195 u64 now = blk_time_get_ns(); local 197 if (now > stat 245 u64 now = blk_time_get_ns(); local [all...] |
/linux-master/kernel/time/ |
H A D | timekeeping.c | 243 u64 now, last, mask, max, delta; local 255 now = tk_clock_read(tkr); 261 delta = clocksource_delta(now, last, mask); 446 u64 now; local 451 now = ktime_to_ns(tkr->base); 452 now += fast_tk_get_delta_ns(tkr); 455 return now; 464 * now = base_mono + clock_delta * slope 733 * nsec = (xtime_sec + wtm_sec) * 1e9 + wtm_nsec + now(); 735 * nsec = base_mono + now(); 1063 u64 now; local 1217 u64 cycles, now, interval_start; local 2272 struct timespec64 now, mono; local [all...] |
H A D | tick-broadcast.c | 305 * switched off now. 377 * have different broadcast functions. For now, just use the 693 ktime_t now, next_event; local 701 now = ktime_get(); 713 if (td->evtdev->next_event <= now) { 802 ktime_t now; local 917 now = ktime_get(); 918 if (dev->next_event <= now) {
|
H A D | posix-timers.c | 332 ktime_t now = hrtimer_cb_get_time(timer); local 340 * For now let timers with an interval less than a 348 * Moving now ahead of time by one jiffie tricks 363 now = ktime_add(now, kj); 366 timr->it_overrun += hrtimer_forward(timer, now, timr->it_interval); 506 * now but not yet valid because new_timer::signal is still NULL. 611 static ktime_t common_hrtimer_remaining(struct k_itimer *timr, ktime_t now) argument 615 return __hrtimer_expires_remaining_adjusted(timer, now); 618 static s64 common_hrtimer_forward(struct k_itimer *timr, ktime_t now) argument 640 ktime_t now, remaining, iv; local [all...] |
/linux-master/mm/ |
H A D | page-writeback.c | 1260 unsigned long now) 1267 if (time_before(now, dom->dirty_limit_tstamp + BANDWIDTH_INTERVAL)) 1271 if (time_after_eq(now, dom->dirty_limit_tstamp + BANDWIDTH_INTERVAL)) { 1273 dom->dirty_limit_tstamp = now; 1447 unsigned long now = jiffies; local 1460 elapsed = max(now - wb->bw_time_stamp, 1UL); 1465 domain_update_dirty_limit(gdtc, now); 1473 domain_update_dirty_limit(mdtc, now); 1481 WRITE_ONCE(wb->bw_time_stamp, now); 1497 unsigned long now local 1259 domain_update_dirty_limit(struct dirty_throttle_control *dtc, unsigned long now) argument 1693 unsigned long now = jiffies; local [all...] |
/linux-master/net/sunrpc/ |
H A D | sched.c | 81 unsigned long now = jiffies; local 82 if (time_before(now, timeout)) 83 return timeout - now; 108 unsigned long now = jiffies; local 110 if (time_before_eq(expires, now)) 113 expires -= now; 771 unsigned long expires, now, timeo; local 774 expires = now = jiffies; 777 if (time_after_eq(now, timeo)) { 783 if (expires == now || time_afte [all...] |
H A D | stats.c | 158 ktime_t backlog, execute, now; local 163 now = ktime_get(); 182 execute = ktime_sub(now, task->tk_start);
|
/linux-master/drivers/rtc/ |
H A D | rtc-stm32.c | 435 static struct rtc_time now; local 447 stm32_rtc_read_time(dev, &now); 453 next_month = now.tm_mon + 1; 456 next_year = now.tm_year + 1; 458 next_year = now.tm_year; 462 max_day_forward = rtc_month_days(now.tm_mon, now.tm_year) 463 - now.tm_mday 464 + min(rtc_month_days(next_month, next_year), now.tm_mday); 467 max_alarm_time64 = rtc_tm_to_time64(&now) [all...] |
H A D | rtc-st-lpc.c | 155 struct rtc_time now; local 160 st_rtc_read_time(dev, &now); 161 now_secs = rtc_tm_to_time64(&now);
|
/linux-master/kernel/trace/ |
H A D | trace_osnoise.c | 775 * now = time_get() 779 * duration = now - delta_start; 790 u64 int_counter, now; local 798 now = time_get(); 799 duration = (now - *delta_start); 1732 u64 now; local 1742 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); 1786 diff = now - tlat->abs_period; 1832 ktime_t next_abs_period, now; local 1835 now 1868 u64 now, diff; local 2472 u64 now; local [all...] |
/linux-master/drivers/media/rc/ |
H A D | rc-ir-raw.c | 102 ktime_t now; local 108 now = ktime_get(); 109 ev.duration = ktime_to_us(ktime_sub(now, dev->raw->last_event)); 129 ktime_t now; local 135 now = ktime_get(); 140 dev->raw->last_event = now;
|
/linux-master/arch/arm/mach-ep93xx/ |
H A D | clock.c | 202 static bool is_best(unsigned long rate, unsigned long now, argument 205 return abs(rate - now) < abs(rate - best); 372 unsigned long best = 0, now, maxdiv; local 381 now = DIV_ROUND_UP_ULL((u64)*parent_rate, psc->div[i]); 383 if (is_best(rate, now, best)) 384 best = now;
|
/linux-master/include/net/ |
H A D | neighbour.h | 327 unsigned long now = jiffies; local 330 if (READ_ONCE(n->confirmed) != now) 331 WRITE_ONCE(n->confirmed, now); 461 unsigned long now = jiffies; local 463 if (READ_ONCE(neigh->used) != now) 464 WRITE_ONCE(neigh->used, now);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_counters.c | 240 unsigned long now = jiffies; local 245 time_before(now, fc_stats->next_bulk_query_alloc)) 256 now + MLX5_FC_BULK_QUERY_ALLOC_PERIOD; 282 unsigned long now = jiffies; local 304 if (time_before(now, fc_stats->next_query) || 314 fc_stats->next_query = now + fc_stats->sampling_interval;
|
/linux-master/kernel/ |
H A D | watchdog.c | 434 unsigned long now) 438 if (time_after(now, period_ts + get_softlockup_thresh())) 439 return now - touch_ts; 467 unsigned long touch_ts, period_ts, now; local 494 now = get_timestamp(); 501 * The stored timestamp is comparable with @now only when not touched. 524 duration = is_softlockup(touch_ts, period_ts, now); 432 is_softlockup(unsigned long touch_ts, unsigned long period_ts, unsigned long now) argument
|
/linux-master/include/trace/events/ |
H A D | rpcgss.h | 598 unsigned long now, 604 TP_ARGS(window_size, expiry, now, timeout, len, data), 608 __field(unsigned long, now) 617 __entry->now = now; 624 TP_printk("win_size=%u expiry=%lu now=%lu timeout=%u acceptor=%.*s", 625 __entry->window_size, __entry->expiry, __entry->now,
|
/linux-master/drivers/usb/host/ |
H A D | ehci-timer.c | 401 ktime_t now; local 416 now = ktime_get(); 418 if (ktime_compare(now, ehci->hr_timeouts[e]) >= 0)
|
/linux-master/drivers/net/wireless/silabs/wfx/ |
H A D | bh.c | 294 ktime_t now, start; local 302 now = ktime_get(); 305 if (ktime_after(now, ktime_add_ms(start, 1000))) {
|
/linux-master/net/ipv4/ |
H A D | tcp_nv.c | 244 unsigned long now = jiffies; local 322 if (time_after_eq(now, ca->nv_min_rtt_reset_jiffies)) { 329 now + ((nv_reset_period * (384 + rand) * HZ) >> 9); 444 * (it wasn't before, if it is now is because nv
|
/linux-master/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835-pcm.c | 279 ktime_t now = ktime_get(); local 287 (ktime_compare(alsa_stream->interpolate_start, now) < 0)) { 289 (ktime_to_ns(ktime_sub(now,
|
/linux-master/sound/soc/meson/ |
H A D | axg-spdifout.c | 355 enum snd_soc_bias_level now = local 361 if (now == SND_SOC_BIAS_STANDBY) 366 if (now == SND_SOC_BIAS_PREPARE)
|
/linux-master/drivers/ptp/ |
H A D | ptp_dfl_tod.c | 102 u64 seconds, now; local 113 now = seconds * NSEC_PER_SEC + nanosec + delta; 115 seconds = div_u64_rem(now, NSEC_PER_SEC, &nanosec);
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | smp.c | 395 long now; local 419 now = mftb(); 420 if (!notified && now - start > 1000000) {
|
/linux-master/drivers/iio/proximity/ |
H A D | srf04.c | 82 ktime_t now = ktime_get(); local 85 data->ts_rising = now; 88 data->ts_falling = now;
|