Searched refs:time_counter (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 237 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()
|
D | otx2_common.h | 321 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/ |
D | cavium_ptp.h | 18 struct timecounter time_counter; member 38 ret = timecounter_cyc2time(&ptp->time_counter, tstamp); in cavium_ptp_tstamp2time()
|
D | cavium_ptp.c | 147 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/ |
D | bnx2x_main.c | 10856 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()
|