Lines Matching refs:extts
227 bool extts; member
369 struct timespec64 *extts) in nxp_c45_get_extts() argument
371 extts->tv_nsec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
373 extts->tv_nsec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
375 extts->tv_sec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
377 extts->tv_sec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
484 if (priv->extts) { in nxp_c45_do_aux_work()
569 struct ptp_extts_request *extts, int on) in nxp_c45_extts_enable() argument
573 if (extts->flags & ~(PTP_ENABLE_FEATURE | in nxp_c45_extts_enable()
580 if ((extts->flags & PTP_RISING_EDGE) && in nxp_c45_extts_enable()
581 (extts->flags & PTP_FALLING_EDGE)) in nxp_c45_extts_enable()
584 pin = ptp_find_pin(priv->ptp_clock, PTP_PF_EXTTS, extts->index); in nxp_c45_extts_enable()
590 priv->extts = false; in nxp_c45_extts_enable()
595 if (extts->flags & PTP_RISING_EDGE) in nxp_c45_extts_enable()
599 if (extts->flags & PTP_FALLING_EDGE) in nxp_c45_extts_enable()
604 priv->extts = true; in nxp_c45_extts_enable()
605 priv->extts_index = extts->index; in nxp_c45_extts_enable()
618 return nxp_c45_extts_enable(priv, &req->extts, on); in nxp_c45_ptp_enable()