Home
last modified time | relevance | path

Searched refs:time_counter (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c237 timecounter_adjtime(&ptp->time_counter, delta); in otx2_ptp_tc_adjtime()
251 tstamp = timecounter_read(&ptp->time_counter); in otx2_ptp_tc_gettime()
268 timecounter_init(&ptp->time_counter, &ptp->cycle_counter, nsec); in otx2_ptp_tc_settime()
288 static u64 otx2_ptp_hw_tstamp2time(const struct timecounter *time_counter, u64 tstamp) in otx2_ptp_hw_tstamp2time() argument
308 event.timestamp = ptp->ptp_tstamp2nsec(&ptp->time_counter, tstmp); in otx2_ptp_extts_check()
333 ptp->tstamp = ptp->ptp_tstamp2nsec(&ptp->time_counter, tstamp); in otx2_sync_tstamp()
456 timecounter_init(&ptp_ptr->time_counter, &ptp_ptr->cycle_counter, in otx2_ptp_init()
516 *tsns = pfvf->ptp->ptp_tstamp2nsec(&pfvf->ptp->time_counter, tstamp); in otx2_ptp_tstamp2time()
Dotx2_common.h321 struct timecounter time_counter; member
330 u64 (*ptp_tstamp2nsec)(const struct timecounter *time_counter, u64 timestamp);
/linux-6.12.1/drivers/net/ethernet/cavium/common/
Dcavium_ptp.h18 struct timecounter time_counter; member
38 ret = timecounter_cyc2time(&ptp->time_counter, tstamp); in cavium_ptp_tstamp2time()
Dcavium_ptp.c147 timecounter_adjtime(&clock->time_counter, delta); in cavium_ptp_adjtime()
170 nsec = timecounter_read(&clock->time_counter); in cavium_ptp_gettime()
194 timecounter_init(&clock->time_counter, &clock->cycle_counter, nsec); in cavium_ptp_settime()
256 timecounter_init(&clock->time_counter, &clock->cycle_counter, in cavium_ptp_probe()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c10856 int time_counter = 10; in bnx2x_prev_unload() local
10920 } while (--time_counter); in bnx2x_prev_unload()
10922 if (!time_counter || rc) { in bnx2x_prev_unload()