Lines Matching full:phc
86 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_set() local
135 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_set()
136 phc->hwtstamp_config = *cfg; in sparx5_ptp_hwtstamp_set()
146 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_get() local
148 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_get()
149 *cfg = phc->hwtstamp_config; in sparx5_ptp_hwtstamp_get()
398 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_adjfine() local
399 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_adjfine()
425 spx5_rmw(PTP_PTP_DOM_CFG_PTP_CLKCFG_DIS_SET(1 << BIT(phc->index)), in sparx5_ptp_adjfine()
430 PTP_CLK_PER_CFG(phc->index, 0)); in sparx5_ptp_adjfine()
432 PTP_CLK_PER_CFG(phc->index, 1)); in sparx5_ptp_adjfine()
446 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_settime64() local
447 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_settime64()
457 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_settime64()
473 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_settime64()
487 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_gettime64() local
488 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_gettime64()
499 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_gettime64()
527 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_adjtime() local
528 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_adjtime()
540 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_adjtime()
552 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_adjtime()
590 struct sparx5_phc *phc = &sparx5->phc[index]; in sparx5_ptp_phc_init() local
592 phc->info = *clock_info; in sparx5_ptp_phc_init()
593 phc->clock = ptp_clock_register(&phc->info, sparx5->dev); in sparx5_ptp_phc_init()
594 if (IS_ERR(phc->clock)) in sparx5_ptp_phc_init()
595 return PTR_ERR(phc->clock); in sparx5_ptp_phc_init()
597 phc->index = index; in sparx5_ptp_phc_init()
598 phc->sparx5 = sparx5; in sparx5_ptp_phc_init()
601 phc->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in sparx5_ptp_phc_init()
672 ptp_clock_unregister(sparx5->phc[i].clock); in sparx5_ptp_deinit()
679 struct sparx5_phc *phc; in sparx5_ptp_rxtstamp() local
686 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_rxtstamp()
687 sparx5_ptp_gettime64(&phc->info, &ts); in sparx5_ptp_rxtstamp()