/openbmc/linux/tools/laptop/dslm/ |
H A D | dslm.c | 72 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()
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec_ptp.c | 229 u64 curr_time; in fec_ptp_pps_perout() local 241 curr_time = timecounter_cyc2time(&fep->tc, ptp_hc); in fec_ptp_pps_perout() 247 if (fep->perout_stime < curr_time + 100 * NSEC_PER_MSEC) { in fec_ptp_pps_perout() 253 compare_val = fep->perout_stime - curr_time + ptp_hc; in fec_ptp_pps_perout() 523 u64 curr_time, delta, period_ns; in fec_ptp_enable() local 570 curr_time = timecounter_read(&fep->tc); in fec_ptp_enable() 575 delta = fep->perout_stime - curr_time; in fec_ptp_enable() 577 if (fep->perout_stime <= curr_time) { in fec_ptp_enable()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | hpet.c | 1434 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()
|
/openbmc/linux/drivers/clocksource/ |
H A D | timer-davinci.c | 158 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()
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_heartbeat.c | 33 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()
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 4965-rs.c | 235 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 …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | rs.c | 227 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 …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_selftests.c | 1761 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()
|
/openbmc/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_pwrctrl.c | 314 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()
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | alias_GUID.c | 711 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()
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | rtl871x_mlme.c | 94 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()
|