Lines Matching refs:phc

265 	struct lan966x_phc *phc;  in lan966x_ptp_hwtstamp_set()  local
308 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_set()
309 phc->hwtstamp_config = *cfg; in lan966x_ptp_hwtstamp_set()
319 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_get() local
321 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_get()
322 *cfg = phc->hwtstamp_config; in lan966x_ptp_hwtstamp_get()
565 struct lan966x_phc *phc; in lan966x_ptp_ext_irq_handler() local
579 phc = &lan966x->phc[i]; in lan966x_ptp_ext_irq_handler()
580 pin = ptp_find_pin_unlocked(phc->clock, PTP_PF_EXTTS, 0); in lan966x_ptp_ext_irq_handler()
613 ptp_clock_event(phc->clock, &ptp_event); in lan966x_ptp_ext_irq_handler()
621 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_adjfine() local
622 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_adjfine()
648 lan_rmw(PTP_DOM_CFG_CLKCFG_DIS_SET(1 << BIT(phc->index)), in lan966x_ptp_adjfine()
653 PTP_CLK_PER_CFG(phc->index, 0)); in lan966x_ptp_adjfine()
655 PTP_CLK_PER_CFG(phc->index, 1)); in lan966x_ptp_adjfine()
669 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_settime64() local
670 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_settime64()
677 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_settime64()
693 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_settime64()
707 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_gettime64() local
708 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_gettime64()
716 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_gettime64()
744 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_adjtime() local
745 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_adjtime()
754 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_adjtime()
766 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_adjtime()
793 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_verify() local
794 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_verify()
816 info = &lan966x->phc[i].info; in lan966x_ptp_verify()
833 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_perout() local
834 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_perout()
841 pin = ptp_find_pin(phc->clock, PTP_PF_PEROUT, rq->perout.index); in lan966x_ptp_perout()
848 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_perout()
894 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_perout()
916 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_perout()
930 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); in lan966x_ptp_extts() local
931 struct lan966x *lan966x = phc->lan966x; in lan966x_ptp_extts()
939 pin = ptp_find_pin(phc->clock, PTP_PF_EXTTS, rq->extts.index); in lan966x_ptp_extts()
946 PTP_PIN_CFG_PIN_DOM_SET(phc->index) | in lan966x_ptp_extts()
1004 struct lan966x_phc *phc = &lan966x->phc[index]; in lan966x_ptp_phc_init() local
1009 p = &phc->pins[i]; in lan966x_ptp_phc_init()
1016 phc->info = *clock_info; in lan966x_ptp_phc_init()
1017 phc->info.pin_config = &phc->pins[0]; in lan966x_ptp_phc_init()
1018 phc->clock = ptp_clock_register(&phc->info, lan966x->dev); in lan966x_ptp_phc_init()
1019 if (IS_ERR(phc->clock)) in lan966x_ptp_phc_init()
1020 return PTR_ERR(phc->clock); in lan966x_ptp_phc_init()
1022 phc->index = index; in lan966x_ptp_phc_init()
1023 phc->lan966x = lan966x; in lan966x_ptp_phc_init()
1097 ptp_clock_unregister(lan966x->phc[i].clock); in lan966x_ptp_deinit()
1104 struct lan966x_phc *phc; in lan966x_ptp_rxtstamp() local
1112 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_rxtstamp()
1113 lan966x_ptp_gettime64(&phc->info, &ts); in lan966x_ptp_rxtstamp()