Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c29 val = ocelot_read_rix(ocelot, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_gettime64()
32 ocelot_write_rix(ocelot, val, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_gettime64()
34 s = ocelot_read_rix(ocelot, PTP_PIN_TOD_SEC_MSB, TOD_ACC_PIN) & 0xffff; in ocelot_ptp_gettime64()
36 s += ocelot_read_rix(ocelot, PTP_PIN_TOD_SEC_LSB, TOD_ACC_PIN); in ocelot_ptp_gettime64()
37 ns = ocelot_read_rix(ocelot, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); in ocelot_ptp_gettime64()
62 val = ocelot_read_rix(ocelot, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_settime64()
66 ocelot_write_rix(ocelot, val, PTP_PIN_CFG, TOD_ACC_PIN); in ocelot_ptp_settime64()
69 TOD_ACC_PIN); in ocelot_ptp_settime64()
71 TOD_ACC_PIN); in ocelot_ptp_settime64()
72 ocelot_write_rix(ocelot, ts->tv_nsec, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); in ocelot_ptp_settime64()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A 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/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_ptp.c14 #define TOD_ACC_PIN 0x4 macro
/linux/include/soc/mscc/
H A Docelot.h638 TOD_ACC_PIN enumerator