Home
last modified time | relevance | path

Searched refs:TOD_ACC_PIN (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot_ptp.c27 val = ocelot_read_rix(ocelot, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_gettime64()
30 ocelot_write_rix(ocelot, val, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_gettime64()
32 s = ocelot_read_rix(ocelot, PTP_PIN_TOD_SEC_MSB, TOD_ACC_PIN) & 0xffff; in ocelot_ptp_gettime64()
34 s += ocelot_read_rix(ocelot, PTP_PIN_TOD_SEC_LSB, TOD_ACC_PIN); in ocelot_ptp_gettime64()
35 ns = ocelot_read_rix(ocelot, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); in ocelot_ptp_gettime64()
60 val = ocelot_read_rix(ocelot, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_settime64()
64 ocelot_write_rix(ocelot, val, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_settime64()
67 TOD_ACC_PIN); in ocelot_ptp_settime64()
69 TOD_ACC_PIN); in ocelot_ptp_settime64()
70 ocelot_write_rix(ocelot, ts->tv_nsec, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); in ocelot_ptp_settime64()
[all …]
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ptp.c16 #define TOD_ACC_PIN 0x4 macro
288 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_get_hwtimestamp()
290 ts->tv_sec = spx5_rd(sparx5, PTP_PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in sparx5_get_hwtimestamp()
291 curr_nsec = spx5_rd(sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_get_hwtimestamp()
454 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_ptp_settime64()
458 sparx5, PTP_PTP_TOD_SEC_MSB(TOD_ACC_PIN)); in sparx5_ptp_settime64()
460 sparx5, PTP_PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in sparx5_ptp_settime64()
461 spx5_wr(ts->tv_nsec, sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_ptp_settime64()
470 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_ptp_settime64()
493 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_ptp_gettime64()
[all …]
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c21 #define TOD_ACC_PIN 0x7 macro
438 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_get_hwtimestamp()
440 ts->tv_sec = lan_rd(lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in lan966x_get_hwtimestamp()
441 curr_nsec = lan_rd(lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_get_hwtimestamp()
659 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_ptp_settime64()
663 lan966x, PTP_TOD_SEC_MSB(TOD_ACC_PIN)); in lan966x_ptp_settime64()
665 lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in lan966x_ptp_settime64()
666 lan_wr(ts->tv_nsec, lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_ptp_settime64()
675 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_ptp_settime64()
698 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_ptp_gettime64()
[all …]
/linux-6.12.1/include/soc/mscc/
Docelot.h638 TOD_ACC_PIN enumerator