Searched refs:TOD_ACC_PIN (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 27 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.1.9/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ptp.c | 16 #define TOD_ACC_PIN 0x4 macro 290 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_get_hwtimestamp() 292 ts->tv_sec = spx5_rd(sparx5, PTP_PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in sparx5_get_hwtimestamp() 293 curr_nsec = spx5_rd(sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_get_hwtimestamp() 456 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_ptp_settime64() 460 sparx5, PTP_PTP_TOD_SEC_MSB(TOD_ACC_PIN)); in sparx5_ptp_settime64() 462 sparx5, PTP_PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in sparx5_ptp_settime64() 463 spx5_wr(ts->tv_nsec, sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_ptp_settime64() 472 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_ptp_settime64() 496 sparx5, PTP_PTP_PIN_CFG(TOD_ACC_PIN)); in sparx5_ptp_gettime64() [all …]
|
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 19 #define TOD_ACC_PIN 0x7 macro 223 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_get_hwtimestamp() 225 ts->tv_sec = lan_rd(lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in lan966x_get_hwtimestamp() 226 curr_nsec = lan_rd(lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_get_hwtimestamp() 444 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_ptp_settime64() 448 lan966x, PTP_TOD_SEC_MSB(TOD_ACC_PIN)); in lan966x_ptp_settime64() 450 lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in lan966x_ptp_settime64() 451 lan_wr(ts->tv_nsec, lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_ptp_settime64() 460 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_ptp_settime64() 483 lan966x, PTP_PIN_CFG(TOD_ACC_PIN)); in lan966x_ptp_gettime64() [all …]
|
/linux-6.1.9/include/soc/mscc/ |
D | ocelot.h | 596 TOD_ACC_PIN enumerator
|