Home
last modified time | relevance | path

Searched refs:cur_time (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Dsched_policy.c75 static void vgpu_update_timeslice(struct intel_vgpu *vgpu, ktime_t cur_time) in vgpu_update_timeslice() argument
84 delta_ts = ktime_sub(cur_time, vgpu_data->sched_in_time); in vgpu_update_timeslice()
87 vgpu_data->sched_in_time = cur_time; in vgpu_update_timeslice()
138 ktime_t cur_time; in try_to_schedule_next_vgpu() local
160 cur_time = ktime_get(); in try_to_schedule_next_vgpu()
161 vgpu_update_timeslice(scheduler->current_vgpu, cur_time); in try_to_schedule_next_vgpu()
163 vgpu_data->sched_in_time = cur_time; in try_to_schedule_next_vgpu()
243 ktime_t cur_time; in intel_gvt_schedule() local
246 cur_time = ktime_get(); in intel_gvt_schedule()
250 if (cur_time >= sched_data->expire_time) { in intel_gvt_schedule()
[all …]
/linux-6.6.21/net/sched/
Dsch_hfsc.c218 eltree_get_mindl(struct hfsc_sched *q, u64 cur_time) in eltree_get_mindl() argument
225 if (p->cl_e > cur_time) in eltree_get_mindl()
282 vttree_firstfit(struct hfsc_class *cl, u64 cur_time) in vttree_firstfit() argument
289 if (p->cl_f <= cur_time) in vttree_firstfit()
299 vttree_get_minvt(struct hfsc_class *cl, u64 cur_time) in vttree_get_minvt() argument
302 if (cl->cl_cfmin > cur_time) in vttree_get_minvt()
306 cl = vttree_firstfit(cl, cur_time); in vttree_get_minvt()
611 u64 cur_time = psched_get_time(); in init_ed() local
614 rtsc_min(&cl->cl_deadline, &cl->cl_rsc, cur_time, cl->cl_cumul); in init_ed()
668 u64 vt, f, cur_time; in init_vf() local
[all …]
/linux-6.6.21/sound/core/seq/
Dseq_timer.c102 tmr->cur_time.tv_sec = 0; in seq_timer_reset()
103 tmr->cur_time.tv_nsec = 0; in seq_timer_reset()
147 snd_seq_inc_time_nsec(&tmr->cur_time, resolution); in snd_seq_timer_interrupt()
233 tmr->cur_time = position; in snd_seq_timer_set_position_time()
442 snd_seq_real_time_t cur_time; in snd_seq_timer_get_cur_time() local
446 cur_time = tmr->cur_time; in snd_seq_timer_get_cur_time()
452 cur_time.tv_nsec += tm.tv_nsec; in snd_seq_timer_get_cur_time()
453 cur_time.tv_sec += tm.tv_sec; in snd_seq_timer_get_cur_time()
454 snd_seq_sanity_real_time(&cur_time); in snd_seq_timer_get_cur_time()
457 return cur_time; in snd_seq_timer_get_cur_time()
Dseq_queue.c245 snd_seq_real_time_t cur_time; in snd_seq_check_queue() local
274 cur_time = snd_seq_timer_get_cur_time(q->timer, false); in snd_seq_check_queue()
276 cell = snd_seq_prioq_cell_out(q->timeq, &cur_time); in snd_seq_check_queue()
320 &q->timer->cur_time); in snd_seq_enqueue_event()
767 …snd_iprintf(buffer, "current time : %d.%09d s\n", tmr->cur_time.tv_sec, tmr->cur_time.tv_nse… in snd_seq_info_queues_read()
Dseq_timer.h27 snd_seq_real_time_t cur_time; /* current time */ member
/linux-6.6.21/drivers/char/hw_random/
Dcavium-rng-vf.c84 u64 cur_err, cur_time; in check_rng_health() local
103 cur_time = arch_timer_read_counter(); in check_rng_health()
125 time_elapsed = (cur_time - rng->prev_time) * 10; in check_rng_health()
135 rng->prev_time = cur_time; in check_rng_health()
141 rng->prev_time = cur_time; in check_rng_health()
/linux-6.6.21/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c148 unsigned long cur_time = 0; in rtw_handle_tkip_mic_err() local
153 cur_time = jiffies; in rtw_handle_tkip_mic_err()
155 if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) { in rtw_handle_tkip_mic_err()
158 psecuritypriv->btkip_countermeasure_time = cur_time; in rtw_handle_tkip_mic_err()
/linux-6.6.21/drivers/watchdog/
Dapple_wdt.c110 u32 cur_time, reset_time; in apple_wdt_get_timeleft() local
112 cur_time = readl_relaxed(wdt->regs + APPLE_WDT_WD1_CUR_TIME); in apple_wdt_get_timeleft()
115 return (reset_time - cur_time) / wdt->clk_rate; in apple_wdt_get_timeleft()
/linux-6.6.21/samples/bpf/
Dtracex3.bpf.c73 u64 cur_time = bpf_ktime_get_ns(); in bpf_prog2() local
74 u64 delta = cur_time - *value; in bpf_prog2()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_xdp_noinline.c516 __u64 cur_time; in get_packet_dst() local
543 cur_time = bpf_ktime_get_ns(); in get_packet_dst()
544 if ((cur_time - conn_rate_stats->v2) >> 32 > 0xffFFFF) { in get_packet_dst()
546 conn_rate_stats->v2 = cur_time; in get_packet_dst()
553 new_dst_lru.atime = cur_time; in get_packet_dst()
567 __u64 cur_time; in connection_table_lookup() local
574 cur_time = bpf_ktime_get_ns(); in connection_table_lookup()
575 if (cur_time - dst_lru->atime > 300000) in connection_table_lookup()
577 dst_lru->atime = cur_time; in connection_table_lookup()
/linux-6.6.21/scripts/
Dget_abi.pl798 my $cur_time = times;
800 if ($i == $next_i || $cur_time > $last_time + 1) {
803 my $tm = $cur_time - $start_time;
812 $last_time = $cur_time;
816 my $cur_time = times;
817 my $tm = $cur_time - $start_time;
/linux-6.6.21/drivers/cpufreq/
Dcpufreq_stats.c33 unsigned long long cur_time = local_clock(); in cpufreq_stats_update() local
35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update()
36 stats->last_time = cur_time; in cpufreq_stats_update()
/linux-6.6.21/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c392 u64 cur_time; in am65_cpsw_timer_act() local
417 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act()
418 if (taprio_new->base_time <= cur_time + taprio_new->cycle_time) in am65_cpsw_timer_act()
541 ktime_t cur_time; in am65_cpsw_est_link_up() local
549 cur_time = ktime_get(); in am65_cpsw_est_link_up()
550 delta = ktime_us_delta(cur_time, port->qos.link_down_time); in am65_cpsw_est_link_up()
/linux-6.6.21/fs/adfs/
Dinode.c181 goto cur_time; in adfs_adfs2unix_time()
201 cur_time: in adfs_adfs2unix_time()
/linux-6.6.21/tools/testing/selftests/mm/
Dksm_tests.c220 struct timespec cur_time; in ksm_do_scan() local
230 if (clock_gettime(CLOCK_MONOTONIC_RAW, &cur_time)) { in ksm_do_scan()
234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan()
/linux-6.6.21/drivers/media/dvb-core/
Ddvb_demux.c412 ktime_t cur_time; in dvb_dmx_swfilter_packet() local
419 cur_time = ktime_get(); in dvb_dmx_swfilter_packet()
427 speed_timedelta = ktime_ms_delta(cur_time, in dvb_dmx_swfilter_packet()
435 demux->speed_last_time = cur_time; in dvb_dmx_swfilter_packet()
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dhal_btc.c1361 u32 cur_time; in rtl8723e_dm_bt_inq_page_monitor() local
1363 cur_time = jiffies; in rtl8723e_dm_bt_inq_page_monitor()
1369 hal_coex_8723.bt_inq_page_start_time = cur_time; in rtl8723e_dm_bt_inq_page_monitor()
1377 hal_coex_8723.bt_inq_page_start_time, cur_time); in rtl8723e_dm_bt_inq_page_monitor()
1380 if ((((long)cur_time - in rtl8723e_dm_bt_inq_page_monitor()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.c1146 ktime_t cur_time; in mt76x02_edcca_check() local
1149 cur_time = ktime_get_boottime(); in mt76x02_edcca_check()
1152 active = ktime_to_us(ktime_sub(cur_time, dev->ed_time)); in mt76x02_edcca_check()
1153 dev->ed_time = cur_time; in mt76x02_edcca_check()
/linux-6.6.21/kernel/time/
Dposix-cpu-timers.c948 u64 *expires, u64 cur_time, int signo) in check_cpu_itimer() argument
953 if (cur_time >= it->expires) { in check_cpu_itimer()
961 task_tgid(tsk), cur_time); in check_cpu_itimer()
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtcoutsrc.c348 unsigned long cur_time = 0; in halbtc_aggregation_check() local
356 cur_time = jiffies; in halbtc_aggregation_check()
357 if (jiffies_to_msecs(cur_time - pre_time) <= 8000) { in halbtc_aggregation_check()
361 pre_time = cur_time; in halbtc_aggregation_check()
/linux-6.6.21/mm/
Dpage-writeback.c547 static unsigned long wp_next_time(unsigned long cur_time) in wp_next_time() argument
549 cur_time += VM_COMPLETIONS_PERIOD_LEN; in wp_next_time()
551 if (!cur_time) in wp_next_time()
553 return cur_time; in wp_next_time()
/linux-6.6.21/drivers/devfreq/
Ddevfreq.c219 u64 cur_time; in devfreq_update_status() local
222 cur_time = get_jiffies_64(); in devfreq_update_status()
235 cur_time - devfreq->stats.last_update; in devfreq_update_status()
250 devfreq->stats.last_update = cur_time; in devfreq_update_status()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7603/
Dmac.c1660 ktime_t cur_time; in mt7603_edcca_check() local
1686 cur_time = ktime_get_boottime(); in mt7603_edcca_check()
1689 active = ktime_to_us(ktime_sub(cur_time, dev->ed_time)); in mt7603_edcca_check()
1690 dev->ed_time = cur_time; in mt7603_edcca_check()
/linux-6.6.21/fs/btrfs/
Dtransaction.c1645 struct timespec64 cur_time; in create_pending_snapshot() local
1708 cur_time = current_time(parent_inode); in create_pending_snapshot()
1774 btrfs_set_stack_timespec_sec(&new_root_item->otime, cur_time.tv_sec); in create_pending_snapshot()
1775 btrfs_set_stack_timespec_nsec(&new_root_item->otime, cur_time.tv_nsec); in create_pending_snapshot()
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_encoder.c1733 ktime_t cur_time; in dpu_encoder_vsync_time() local
1761 cur_time = ktime_get(); in dpu_encoder_vsync_time()
1762 *wakeup_time = ktime_add_ns(cur_time, time_to_vsync); in dpu_encoder_vsync_time()
1767 ktime_to_ms(cur_time), in dpu_encoder_vsync_time()

12