Home
last modified time | relevance | path

Searched refs:curr_time (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/tools/laptop/dslm/
Ddslm.c72 time_t curr_time = 0; in measure() local
93 curr_time = time(0); in measure()
94 time_diff = curr_time - last_time; in measure()
101 last_time = curr_time; in measure()
103 printf("%s: State-change to %s\n", myctime(curr_time), in measure()
110 printf("\nTotal running time: %lus\n", curr_time - start_time); in measure()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dfec_ptp.c206 u64 curr_time; in fec_ptp_pps_perout() local
224 curr_time = timecounter_cyc2time(&fep->tc, ptp_hc); in fec_ptp_pps_perout()
230 if (fep->perout_stime < curr_time + 100 * NSEC_PER_MSEC) { in fec_ptp_pps_perout()
236 compare_val = fep->perout_stime - curr_time + ptp_hc; in fec_ptp_pps_perout()
530 u64 curr_time, delta, period_ns; in fec_ptp_enable() local
574 curr_time = timecounter_read(&fep->tc); in fec_ptp_enable()
579 delta = fep->perout_stime - curr_time; in fec_ptp_enable()
581 if (fep->perout_stime <= curr_time) { in fec_ptp_enable()
/linux-6.6.21/arch/x86/kernel/
Dhpet.c1434 struct rtc_time curr_time; in hpet_rtc_interrupt() local
1438 memset(&curr_time, 0, sizeof(struct rtc_time)); in hpet_rtc_interrupt()
1441 if (unlikely(mc146818_get_time(&curr_time, 10) < 0)) { in hpet_rtc_interrupt()
1448 curr_time.tm_sec != hpet_prev_update_sec) { in hpet_rtc_interrupt()
1451 hpet_prev_update_sec = curr_time.tm_sec; in hpet_rtc_interrupt()
1460 (curr_time.tm_sec == hpet_alarm_time.tm_sec) && in hpet_rtc_interrupt()
1461 (curr_time.tm_min == hpet_alarm_time.tm_min) && in hpet_rtc_interrupt()
1462 (curr_time.tm_hour == hpet_alarm_time.tm_hour)) in hpet_rtc_interrupt()
/linux-6.6.21/drivers/clocksource/
Dtimer-davinci.c158 unsigned int curr_time; in davinci_clockevent_set_next_event_cmp() local
160 curr_time = davinci_clockevent_read(clockevent, in davinci_clockevent_set_next_event_cmp()
163 clockevent->cmp_off, curr_time + cycles); in davinci_clockevent_set_next_event_cmp()
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dadf_heartbeat.c33 u64 curr_time = adf_clock_get_current_time(); in adf_hb_check_polling_freq() local
34 u64 polling_time = curr_time - accel_dev->heartbeat->last_hb_check_time; in adf_hb_check_polling_freq()
43 accel_dev->heartbeat->last_hb_check_time = curr_time; in adf_hb_check_polling_freq()
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/
D4965-rs.c235 il4965_rs_tl_rm_old_stats(struct il_traffic_load *tl, u32 curr_time) in il4965_rs_tl_rm_old_stats() argument
238 u32 oldest_time = curr_time - TID_MAX_TIME_DIFF; in il4965_rs_tl_rm_old_stats()
258 u32 curr_time = jiffies_to_msecs(jiffies); in il4965_rs_tl_add_packet() local
275 curr_time -= curr_time % TID_ROUND_VALUE; in il4965_rs_tl_add_packet()
280 tl->time_stamp = curr_time; in il4965_rs_tl_add_packet()
287 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in il4965_rs_tl_add_packet()
293 il4965_rs_tl_rm_old_stats(tl, curr_time); in il4965_rs_tl_add_packet()
311 u32 curr_time = jiffies_to_msecs(jiffies); in il4965_rs_tl_get_load() local
321 curr_time -= curr_time % TID_ROUND_VALUE; in il4965_rs_tl_get_load()
326 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in il4965_rs_tl_get_load()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c227 static void rs_tl_rm_old_stats(struct iwl_traffic_load *tl, u32 curr_time) in rs_tl_rm_old_stats() argument
230 u32 oldest_time = curr_time - TID_MAX_TIME_DIFF; in rs_tl_rm_old_stats()
251 u32 curr_time = jiffies_to_msecs(jiffies); in rs_tl_add_packet() local
268 curr_time -= curr_time % TID_ROUND_VALUE; in rs_tl_add_packet()
273 tl->time_stamp = curr_time; in rs_tl_add_packet()
280 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_add_packet()
286 rs_tl_rm_old_stats(tl, curr_time); in rs_tl_add_packet()
333 u32 curr_time = jiffies_to_msecs(jiffies); in rs_tl_get_load() local
343 curr_time -= curr_time % TID_ROUND_VALUE; in rs_tl_get_load()
348 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_get_load()
[all …]
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c1761 u64 start_time, curr_time = 0; in stmmac_test_tbs() local
1784 stmmac_get_systime(priv, priv->ptpaddr, &curr_time); in stmmac_test_tbs()
1787 if (!curr_time) { in stmmac_test_tbs()
1792 start_time = curr_time; in stmmac_test_tbs()
1793 curr_time += STMMAC_TBS_LT_OFFSET; in stmmac_test_tbs()
1796 attr.timestamp = curr_time; in stmmac_test_tbs()
1806 stmmac_get_systime(priv, priv->ptpaddr, &curr_time); in stmmac_test_tbs()
1809 if ((curr_time - start_time) < STMMAC_TBS_LT_OFFSET) in stmmac_test_tbs()
/linux-6.6.21/drivers/staging/rtl8723bs/core/
Drtw_pwrctrl.c314 unsigned long curr_time, delta_time; in PS_RDY_CHECK() local
321 curr_time = jiffies; in PS_RDY_CHECK()
323 delta_time = curr_time - pwrpriv->DelayLPSLastTimeStamp; in PS_RDY_CHECK()
/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dalias_GUID.c711 u64 curr_time = ktime_get_boottime_ns(); in get_low_record_time_index() local
713 *resched_delay_sec = (low_record_time < curr_time) ? 0 : in get_low_record_time_index()
714 div_u64((low_record_time - curr_time), NSEC_PER_SEC); in get_low_record_time_index()
/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_mlme.c94 u32 curr_time, delta_time; in _free_network() local
102 curr_time = jiffies; in _free_network()
103 delta_time = (curr_time - (u32)pnetwork->last_scanned) / HZ; in _free_network()