Lines Matching refs:extts
277 bool (*get_extts)(struct nxp_c45_phy *priv, struct timespec64 *extts);
300 bool extts; member
519 struct timespec64 *extts) in nxp_c45_get_extts() argument
523 extts->tv_nsec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
525 extts->tv_nsec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
527 extts->tv_sec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
529 extts->tv_sec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
550 struct timespec64 *extts) in tja1120_get_extts() argument
577 nxp_c45_get_extts(priv, extts); in tja1120_get_extts()
738 if (priv->extts) { in nxp_c45_do_aux_work()
824 struct ptp_extts_request *extts) in nxp_c45_set_rising_or_falling() argument
826 if (extts->flags & PTP_RISING_EDGE) in nxp_c45_set_rising_or_falling()
830 if (extts->flags & PTP_FALLING_EDGE) in nxp_c45_set_rising_or_falling()
836 struct ptp_extts_request *extts) in nxp_c45_set_rising_and_falling() argument
841 if (extts->flags & PTP_RISING_EDGE || in nxp_c45_set_rising_and_falling()
842 extts->flags == PTP_ENABLE_FEATURE) in nxp_c45_set_rising_and_falling()
851 if (extts->flags & PTP_FALLING_EDGE) in nxp_c45_set_rising_and_falling()
862 struct ptp_extts_request *extts, int on) in nxp_c45_extts_enable() argument
867 if (extts->flags & ~(PTP_ENABLE_FEATURE | in nxp_c45_extts_enable()
874 if ((extts->flags & PTP_RISING_EDGE) && in nxp_c45_extts_enable()
875 (extts->flags & PTP_FALLING_EDGE) && in nxp_c45_extts_enable()
879 pin = ptp_find_pin(priv->ptp_clock, PTP_PF_EXTTS, extts->index); in nxp_c45_extts_enable()
885 priv->extts = false; in nxp_c45_extts_enable()
891 nxp_c45_set_rising_and_falling(priv->phydev, extts); in nxp_c45_extts_enable()
893 nxp_c45_set_rising_or_falling(priv->phydev, extts); in nxp_c45_extts_enable()
896 priv->extts = true; in nxp_c45_extts_enable()
897 priv->extts_index = extts->index; in nxp_c45_extts_enable()
910 return nxp_c45_extts_enable(priv, &req->extts, on); in nxp_c45_ptp_enable()