| /linux/drivers/ptp/ |
| H A D | ptp_chardev.c | 33 rq.extts.index = chan; in ptp_disable_pinfunc() 207 if (copy_from_user(&req.extts, arg, sizeof(req.extts))) in ptp_extts_request() 212 req.extts.flags |= PTP_STRICT_FLAGS; in ptp_extts_request() 214 if ((req.extts.flags & ~PTP_EXTTS_VALID_FLAGS) || in ptp_extts_request() 215 req.extts.rsv[0] || req.extts.rsv[1]) in ptp_extts_request() 219 if ((req.extts.flags & PTP_ENABLE_FEATURE) && in ptp_extts_request() 220 (req.extts.flags & PTP_EXTTS_EDGES) == 0) in ptp_extts_request() 223 req.extts.flags &= PTP_EXTTS_V1_VALID_FLAGS; in ptp_extts_request() 224 memset(req.extts.rsv, 0, sizeof(req.extts.rsv)); in ptp_extts_request() 227 if (req.extts.index >= ops->n_ext_ts) in ptp_extts_request() [all …]
|
| H A D | ptp_netc.c | 523 int index = rq->extts.index; in netc_timer_enable_extts() 528 if ((rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in netc_timer_enable_extts() 533 netc_timer_handle_etts_event(priv, rq->extts.index, false); in netc_timer_enable_extts() 536 if (rq->extts.flags & PTP_FALLING_EDGE) in netc_timer_enable_extts()
|
| H A D | ptp_sysfs.c | 57 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store() 60 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store()
|
| H A D | ptp_qoriq.c | 310 switch (rq->extts.index) { in ptp_qoriq_enable() 322 extts_clean_up(ptp_qoriq, rq->extts.index, false); in ptp_qoriq_enable()
|
| H A D | ptp_pch.c | 408 switch (rq->extts.index) { in ptp_pch_enable()
|
| /linux/drivers/net/phy/ |
| H A D | nxp-c45-tja11xx.c | 292 bool (*get_extts)(struct nxp_c45_phy *priv, struct timespec64 *extts); 515 struct timespec64 *extts) in nxp_c45_get_extts() argument 519 extts->tv_nsec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts() 521 extts->tv_nsec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts() 523 extts->tv_sec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts() 525 extts->tv_sec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts() 546 struct timespec64 *extts) in tja1120_get_extts() argument 573 nxp_c45_get_extts(priv, extts); in tja1120_get_extts() 734 if (priv->extts) { in nxp_c45_do_aux_work() 817 struct ptp_extts_request *extts) in nxp_c45_set_rising_or_falling() argument [all …]
|
| H A D | nxp-c45-tja11xx.h | 29 bool extts; member
|
| H A D | dp83640.c | 482 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in ptp_dp83640_enable() 483 (rq->extts.flags & PTP_ENABLE_FEATURE) && in ptp_dp83640_enable() 484 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in ptp_dp83640_enable() 487 index = rq->extts.index; in ptp_dp83640_enable() 498 if (rq->extts.flags & PTP_FALLING_EDGE) in ptp_dp83640_enable()
|
| /linux/drivers/net/ethernet/microchip/ |
| H A D | lan743x_ptp.c | 853 struct lan743x_extts *extts; in lan743x_ptp_io_extts_off() local 856 extts = &ptp->extts[index]; in lan743x_ptp_io_extts_off() 858 if (extts->flags & PTP_FALLING_EDGE) in lan743x_ptp_io_extts_off() 866 if (extts->flags & PTP_FALLING_EDGE) { in lan743x_ptp_io_extts_off() 881 memset(&extts->ts, 0, sizeof(struct timespec64)); in lan743x_ptp_io_extts_off() 882 extts->flags = 0; in lan743x_ptp_io_extts_off() 935 struct lan743x_extts *extts; in lan743x_ptp_io_extts() local 939 extts = &ptp->extts[index]; in lan743x_ptp_io_extts() 948 extts->flags = flags; in lan743x_ptp_io_extts() 967 if (request->extts.index < ptpci->n_ext_ts) in lan743x_ptpci_enable() [all …]
|
| H A D | lan743x_ptp.h | 88 struct lan743x_extts extts[LAN743X_PTP_N_EXTTS]; member
|
| /linux/tools/testing/selftests/ptp/ |
| H A D | testptp.c | 181 int extts = 0; in main() local 216 extts = atoi(optarg); in main() 450 if (extts) { in main() 457 extts = 0; in main() 462 for (; extts; extts--) { in main()
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_ptp.c | 506 if (rq->extts.flags & PTP_STRICT_FLAGS && in igb_ptp_feature_enable_82580() 507 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_82580() 508 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_82580() 513 rq->extts.index); in igb_ptp_feature_enable_82580() 517 if (rq->extts.index == 1) { in igb_ptp_feature_enable_82580() 528 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_82580() 655 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igb_ptp_feature_enable_i210() 656 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_i210() 657 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_i210() 662 rq->extts.index); in igb_ptp_feature_enable_i210() [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | ptp.c | 314 int rising = (rq->extts.flags & PTP_RISING_EDGE); in mv88e6352_ptp_enable_extts() 320 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mv88e6352_ptp_enable_extts() 321 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mv88e6352_ptp_enable_extts() 322 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mv88e6352_ptp_enable_extts() 325 pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in mv88e6352_ptp_enable_extts()
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_ptp.c | 804 struct ptp_extts_request *extts, in sja1105_extts_enable() argument 810 if (extts->index != 0) in sja1105_extts_enable() 814 if ((extts->flags & PTP_STRICT_FLAGS) && in sja1105_extts_enable() 815 (extts->flags & PTP_ENABLE_FEATURE) && in sja1105_extts_enable() 816 (extts->flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in sja1105_extts_enable() 843 rc = sja1105_extts_enable(priv, &req->extts, on); in sja1105_ptp_enable()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_ptp.c | 237 rq->extts.index, channel); in stmmac_enable() 245 acr_value |= PTP_ACR_ATSEN(rq->extts.index); in stmmac_enable() 251 rq->extts.index, on ? "enabled" : "disabled"); in stmmac_enable()
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | ravb_ptp.c | 182 if (priv->ptp.extts[req->index] == on) in ravb_ptp_extts() 184 priv->ptp.extts[req->index] = on; in ravb_ptp_extts() 266 return ravb_ptp_extts(ptp, &req->extts, on); in ravb_ptp_enable()
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-ptp.c | 30 switch (rq->extts.index) { in dpaa2_ptp_enable() 41 extts_clean_up(ptp_qoriq, rq->extts.index, false); in dpaa2_ptp_enable()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | ptp.h | 29 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts);
|
| H A D | ptp.c | 367 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() argument 407 if (extts) { in ptp_start()
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_ptp.c | 261 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igc_ptp_feature_enable_i225() 262 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igc_ptp_feature_enable_i225() 263 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igc_ptp_feature_enable_i225() 268 rq->extts.index); in igc_ptp_feature_enable_i225() 272 if (rq->extts.index == 1) { in igc_ptp_feature_enable_i225() 283 igc_pin_extts(igc, rq->extts.index, pin); in igc_ptp_feature_enable_i225()
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | qoriq-fman3-0.dtsi | 87 fsl,extts-fifo;
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | clock.c | 723 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure() 724 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure() 725 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure() 728 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure() 731 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure() 737 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
|
| /linux/include/linux/ |
| H A D | ptp_clock_kernel.h | 39 struct ptp_extts_request extts; member
|
| /linux/drivers/net/ethernet/xscale/ |
| H A D | ptp_ixp46x.c | 197 switch (rq->extts.index) { in ptp_ixp_enable()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_ptp.c | 353 rq->extts.index); in otx2_ptp_enable()
|