Lines Matching full:phc

82 	struct sparx5_phc *phc;  in sparx5_ptp_hwtstamp_set()  local
131 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_set()
132 phc->hwtstamp_config = *cfg; in sparx5_ptp_hwtstamp_set()
142 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_get() local
144 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_get()
145 *cfg = phc->hwtstamp_config; in sparx5_ptp_hwtstamp_get()
393 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_adjfine() local
394 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_adjfine()
420 spx5_rmw(PTP_PTP_DOM_CFG_PTP_CLKCFG_DIS_SET(1 << BIT(phc->index)), in sparx5_ptp_adjfine()
425 PTP_CLK_PER_CFG(phc->index, 0)); in sparx5_ptp_adjfine()
427 PTP_CLK_PER_CFG(phc->index, 1)); in sparx5_ptp_adjfine()
441 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_settime64() local
442 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_settime64()
449 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_settime64()
465 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_settime64()
479 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_gettime64() local
480 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_gettime64()
488 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_gettime64()
516 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_adjtime() local
517 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_adjtime()
526 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_adjtime()
538 PTP_PTP_PIN_CFG_PTP_PIN_DOM_SET(phc->index) | in sparx5_ptp_adjtime()
576 struct sparx5_phc *phc = &sparx5->phc[index]; in sparx5_ptp_phc_init() local
578 phc->info = *clock_info; in sparx5_ptp_phc_init()
579 phc->clock = ptp_clock_register(&phc->info, sparx5->dev); in sparx5_ptp_phc_init()
580 if (IS_ERR(phc->clock)) in sparx5_ptp_phc_init()
581 return PTR_ERR(phc->clock); in sparx5_ptp_phc_init()
583 phc->index = index; in sparx5_ptp_phc_init()
584 phc->sparx5 = sparx5; in sparx5_ptp_phc_init()
587 phc->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in sparx5_ptp_phc_init()
658 ptp_clock_unregister(sparx5->phc[i].clock); in sparx5_ptp_deinit()
665 struct sparx5_phc *phc; in sparx5_ptp_rxtstamp() local
672 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_rxtstamp()
673 sparx5_ptp_gettime64(&phc->info, &ts); in sparx5_ptp_rxtstamp()