Home
last modified time | relevance | path

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

/linux/tools/laptop/dslm/
H A 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/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat.c28 u64 curr_time = adf_clock_get_current_time(); in adf_hb_check_polling_freq() local
29 u64 polling_time = curr_time - accel_dev->heartbeat->last_hb_check_time; in adf_hb_check_polling_freq()
38 accel_dev->heartbeat->last_hb_check_time = curr_time; in adf_hb_check_polling_freq()
210 u64 curr_time = adf_clock_get_current_time(); in adf_heartbeat_reset() local
211 u64 time_since_reset = curr_time - accel_dev->heartbeat->last_hb_reset_time; in adf_heartbeat_reset()
216 accel_dev->heartbeat->last_hb_reset_time = curr_time; in adf_heartbeat_reset()
/linux/drivers/net/ethernet/freescale/
H A Dfec_ptp.c228 u64 curr_time; in fec_ptp_pps_perout() local
240 curr_time = timecounter_cyc2time(&fep->tc, ptp_hc); in fec_ptp_pps_perout()
246 if (fep->perout_stime < curr_time + 100 * NSEC_PER_MSEC) { in fec_ptp_pps_perout()
252 compare_val = fep->perout_stime - curr_time + ptp_hc; in fec_ptp_pps_perout()
522 u64 curr_time, delta, period_ns; in fec_ptp_enable() local
567 curr_time = timecounter_read(&fep->tc); in fec_ptp_enable()
572 delta = fep->perout_stime - curr_time; in fec_ptp_enable()
574 if (fep->perout_stime <= curr_time) { in fec_ptp_enable()
/linux/arch/x86/kernel/
H A 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/drivers/clocksource/
H A 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/drivers/net/wireless/intel/iwlegacy/
H A 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/drivers/net/wireless/intel/iwlwifi/dvm/
H A 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/drivers/net/ethernet/stmicro/stmmac/
H A 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/drivers/infiniband/hw/mlx4/
H A 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()