/linux-master/net/atm/ |
H A D | mpoa_caches.c | 229 time64_t now; local 231 now = ktime_get_seconds(); 238 if ((now - entry->time) > entry->ctrl_info.holding_time) { 254 time64_t now; local 257 now = ktime_get_seconds(); 264 if ((now - entry->hold_down) 269 if ((now - entry->reply_wait) > entry->retry_time) { 301 time64_t now; local 305 now = ktime_get_seconds(); 312 if ((now 503 time64_t now; local [all...] |
/linux-master/net/dccp/ccids/ |
H A D | ccid2.c | 165 /* if we were blocked before, we may now send cwnd=1 packet */ 198 static void ccid2_cwnd_application_limited(struct sock *sk, const u32 now) argument 211 hc->tx_cwnd_stamp = now; 217 static void ccid2_cwnd_restart(struct sock *sk, const u32 now) argument 222 s32 delta = now - hc->tx_lsndtime; 232 hc->tx_cwnd_stamp = now; 242 const u32 now = ccid2_jiffies32; local 247 (s32)(now - hc->tx_lsndtime) >= hc->tx_rto) 248 ccid2_cwnd_restart(sk, now); 250 hc->tx_lsndtime = now; [all...] |
/linux-master/drivers/clk/meson/ |
H A D | clk-pll.c | 122 unsigned long now, 127 if (abs(now - rate) < abs(best - rate)) 131 if (now <= rate && best < now) 220 unsigned long best = 0, now = 0; local 230 now = __pll_params_to_rate(parent_rate, m, n, 0, pll); 231 if (meson_clk_pll_is_better(rate, best, now, pll)) { 232 best = now; 236 if (now == rate) 282 /* Is the clock locked now 120 meson_clk_pll_is_better(unsigned long rate, unsigned long best, unsigned long now, struct meson_clk_pll_data *pll) argument [all...] |
/linux-master/net/ipv4/ |
H A D | tcp_cubic.c | 146 u32 now = tcp_jiffies32; local 149 delta = now - tcp_sk(sk)->lsndtime; 156 if (after(ca->epoch_start, now)) 157 ca->epoch_start = now; 396 u32 now = bictcp_clock_us(sk); local 399 if ((s32)(now - ca->last_ack) <= hystart_ack_delta_us) { 400 ca->last_ack = now; 412 if ((s32)(now - ca->round_start) > threshold) { 415 now - ca->round_start, threshold,
|
/linux-master/drivers/gpu/drm/lima/ |
H A D | lima_devfreq.c | 21 ktime_t now, last; local 23 now = ktime_get(); 27 devfreq->busy_time += ktime_sub(now, last); 29 devfreq->idle_time += ktime_sub(now, last); 31 devfreq->time_last_update = now;
|
/linux-master/drivers/gpu/drm/panfrost/ |
H A D | panfrost_devfreq.c | 16 ktime_t now, last; local 18 now = ktime_get(); 22 pfdevfreq->busy_time += ktime_sub(now, last); 24 pfdevfreq->idle_time += ktime_sub(now, last); 26 pfdevfreq->time_last_update = now;
|
/linux-master/drivers/s390/scsi/ |
H A D | zfcp_diag.c | 203 const unsigned long now = jiffies; variable 209 if (!time_after_eq(now, hdr->timestamp)) 212 if (jiffies_to_msecs(now - hdr->timestamp) >= diag->max_age)
|
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_ptp.h | 29 * future_base_time = base_time + N x cycle_time >= now, or 31 * now - base_time 39 static inline s64 future_base_time(s64 base_time, s64 cycle_time, s64 now) argument 43 if (base_time >= now) 46 a = now - base_time;
|
/linux-master/drivers/clocksource/ |
H A D | timer-imx-tpm.c | 86 unsigned long next, now; local 91 now = tpm_read_counter(); 99 return (int)(next - now) <= 0 ? -ETIME : 0;
|
/linux-master/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 110 g_plot('set title "{} : cpu perf busy vs. sample : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) 131 g_plot('set title "{} : perf busy : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) 148 g_plot('set title "{} : durations : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) 164 g_plot('set title "{} : loads : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) 181 g_plot('set title "{} : cpu pstate vs. sample : {:%F %H:%M}"'.format(testname, datetime.now())) 194 g_plot('set title "{} : cpu pstates : {:%F %H:%M}"'.format(testname, datetime.now())) 211 g_plot('set title "{} : cpu loads : {:%F %H:%M}"'.format(testname, datetime.now())) 225 g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(testname, datetime.now())) 239 g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now())) 253 g_plot('set title "{} : cpu scaled busy : {:%F %H:%M}"'.format(testname, datetime.now())) [all...] |
/linux-master/kernel/power/ |
H A D | suspend_test.c | 73 time64_t now; local 84 now = rtc_tm_to_time64(&alm.time); 87 rtc_time64_to_tm(now + TEST_SUSPEND_SECONDS, &alm.time); 188 /* PM is initialized by now; is that state testable? */ 203 /* RTCs have initialized by now too ... can we use one? */
|
/linux-master/drivers/clk/sunxi-ng/ |
H A D | ccu_mp.c | 49 unsigned long parent_rate, now; local 82 now = parent_rate / div; 84 if (now <= rate && now > best_rate) { 85 best_rate = now; 88 if (now == rate)
|
/linux-master/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 75 g_plot('set title "{} : frequency : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, datetime.now())) 91 g_plot('set title "{} : cpu des perf : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, datetime.now())) 107 g_plot('set title "{} : cpu load : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, datetime.now())) 119 g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(test_name, datetime.now())) 133 g_plot('set title "{} : cpu des perf : {:%F %H:%M}"'.format(test_name, datetime.now())) 148 g_plot('set title "{} : cpu load : {:%F %H:%M}"'.format(test_name, datetime.now()))
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | xapic_ipi_test.c | 258 time_t start_time, last_update, now; local 333 now = time(NULL); 334 if (((now - start_time) % interval_secs == 0) && 335 (now != last_update)) { 336 last_update = now; 340 now - start_time, data->migrations_attempted,
|
/linux-master/kernel/time/ |
H A D | hrtimer.c | 634 ktime_t now = ktime_get_update_offsets_now(&base->clock_was_set_seq, local 641 return now; 672 * T1 expires 50ms from now 673 * T2 expires 5s from now 676 * the hardware to 5s from now. Any hrtimer_start after that 1027 * @now: forward past this time 1043 u64 hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval) argument 1048 delta = ktime_sub(now, hrtimer_get_expires(timer)); 1064 if (hrtimer_get_expires_tv64(timer) > now) 1651 struct hrtimer *timer, ktime_t *now, 1724 __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now, unsigned long flags, unsigned int active_mask) argument 1767 ktime_t now; local 1791 ktime_t expires_next, now, entry_time, delta; local 1905 ktime_t now; local [all...] |
/linux-master/arch/mips/dec/ |
H A D | time.c | 68 int update_persistent_clock64(struct timespec64 now) argument 70 time64_t nowtime = now.tv_sec;
|
/linux-master/tools/testing/selftests/powerpc/mm/ |
H A D | tlbie_test.c | 48 time_t now; local 49 time(&now); 52 printf(" %s", ctime(&now)); 616 time_t now; local 680 time(&now); 683 printf(" %s", ctime(&now)); 724 time(&now); 727 printf(" %s", ctime(&now));
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 193 __u32 now = tcp_jiffies32; local 196 delta = now - tcp_sk(sk)->lsndtime; 203 if (after(ca->epoch_start, now)) 204 ca->epoch_start = now; 454 __u32 now = bictcp_clock_us(sk); local 457 if ((__s32)(now - ca->last_ack) <= hystart_ack_delta_us) { 458 ca->last_ack = now; 470 if ((__s32)(now - ca->round_start) > threshold) {
|
/linux-master/drivers/devfreq/event/ |
H A D | rockchip-dfi.c | 294 const struct dmc_count *now, 302 (u32)(now->c[i].read_access - last->c[i].read_access); 304 (u32)(now->c[i].write_access - last->c[i].write_access); 306 (u32)(now->c[i].access - last->c[i].access); 308 (u32)(now->c[i].clock_cycles - last->c[i].clock_cycles); 424 struct dmc_count total, now; local 429 rockchip_dfi_read_counters(dfi, &now); 433 rockchip_ddr_perf_counters_add(dfi, &now, &total); 483 u64 now; local 489 now 293 rockchip_ddr_perf_counters_add(struct rockchip_dfi *dfi, const struct dmc_count *now, struct dmc_count *res) argument 496 u64 now = rockchip_ddr_perf_event_get_count(event); local 539 struct dmc_count now, total; local [all...] |
/linux-master/arch/mips/sibyte/swarm/ |
H A D | setup.c | 99 int update_persistent_clock64(struct timespec64 now) argument 101 time64_t sec = now.tv_sec;
|
/linux-master/drivers/rtc/ |
H A D | rtc-brcmstb-waketimer.c | 78 unsigned int now; local 86 now = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER); 88 while ((int)(secs - now) <= 0 && 90 secs = now + 1; 92 now = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER); 191 struct wktmr_time now; local 193 wktmr_read(timer, &now); 195 rtc_time64_to_tm(now.sec, tm);
|
/linux-master/arch/x86/include/asm/ |
H A D | x86_init.h | 337 extern int set_rtc_noop(const struct timespec64 *now); 338 extern void get_rtc_noop(struct timespec64 *now);
|
/linux-master/net/rxrpc/ |
H A D | conn_object.c | 385 unsigned long expire_at, earliest, idle_timestamp, now; local 392 now = jiffies; 393 earliest = now + MAX_JIFFY_OFFSET; 411 (long)expire_at - (long)now); 413 if (time_before(now, expire_at)) { 437 if (earliest != now + MAX_JIFFY_OFFSET) { 438 _debug("reschedule reaper %ld", (long)earliest - (long)now); 439 ASSERT(time_after(earliest, now));
|
/linux-master/net/sched/ |
H A D | sch_fq.c | 310 u64 now) 315 if (fq_skb_cb(skb)->time_to_send > now) 346 u64 now) 384 if (fq_fastpath_check(sch, skb, now)) { 525 const struct fq_sched_data *q, u64 now) 527 return unlikely((s64)skb->tstamp > (s64)(now + q->horizon)); 535 u64 now; local 544 now = ktime_get_ns(); 546 fq_skb_cb(skb)->time_to_send = now; 549 if (fq_packet_beyond_horizon(skb, q, now)) { 309 fq_fastpath_check(const struct Qdisc *sch, struct sk_buff *skb, u64 now) argument 345 fq_classify(struct Qdisc *sch, struct sk_buff *skb, u64 now) argument 524 fq_packet_beyond_horizon(const struct sk_buff *skb, const struct fq_sched_data *q, u64 now) argument 591 fq_check_throttled(struct fq_sched_data *q, u64 now) argument 639 u64 now; local [all...] |
/linux-master/drivers/thermal/ |
H A D | thermal_debugfs.c | 431 ktime_t now = ktime_get(); local 432 ktime_t delta = ktime_sub(now, cdev_dbg->timestamp); 434 cdev_dbg->timestamp = now; 532 ktime_t now) 542 tze->timestamp = now; 560 ktime_t now = ktime_get(); local 603 tze = thermal_debugfs_tz_event_alloc(tz, now); 626 tze->trip_stats[trip_id].timestamp = now; 644 ktime_t delta, now = ktime_get(); local 680 delta = ktime_sub(now, tz 531 thermal_debugfs_tz_event_alloc(struct thermal_zone_device *tz, ktime_t now) argument [all...] |