/linux-6.1.9/drivers/ptp/ |
D | ptp_chardev.c | 31 rq.extts.index = chan; in ptp_disable_pinfunc() 148 if (copy_from_user(&req.extts, (void __user *)arg, in ptp_ioctl() 149 sizeof(req.extts))) { in ptp_ioctl() 155 req.extts.flags |= PTP_STRICT_FLAGS; in ptp_ioctl() 157 if ((req.extts.flags & ~PTP_EXTTS_VALID_FLAGS) || in ptp_ioctl() 158 req.extts.rsv[0] || req.extts.rsv[1]) { in ptp_ioctl() 163 if ((req.extts.flags & PTP_ENABLE_FEATURE) && in ptp_ioctl() 164 (req.extts.flags & PTP_EXTTS_EDGES) == 0) { in ptp_ioctl() 169 req.extts.flags &= PTP_EXTTS_V1_VALID_FLAGS; in ptp_ioctl() 170 req.extts.rsv[0] = 0; in ptp_ioctl() [all …]
|
D | ptp_sysfs.c | 47 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store() 50 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store()
|
D | ptp_qoriq.c | 275 switch (rq->extts.index) { in ptp_qoriq_enable() 287 extts_clean_up(ptp_qoriq, rq->extts.index, false); in ptp_qoriq_enable()
|
D | ptp_clockmatrix.c | 276 u8 index = rq->extts.index; in idtcm_extts_enable() 287 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in idtcm_extts_enable() 294 if ((rq->extts.flags & PTP_ENABLE_FEATURE) && in idtcm_extts_enable() 295 (rq->extts.flags & PTP_FALLING_EDGE)) in idtcm_extts_enable()
|
D | ptp_pch.c | 418 switch (rq->extts.index) { in ptp_pch_enable()
|
/linux-6.1.9/drivers/net/phy/ |
D | nxp-c45-tja11xx.c | 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() [all …]
|
D | dp83640.c | 482 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in ptp_dp83640_enable() 489 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in ptp_dp83640_enable() 490 (rq->extts.flags & PTP_ENABLE_FEATURE) && in ptp_dp83640_enable() 491 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in ptp_dp83640_enable() 494 index = rq->extts.index; in ptp_dp83640_enable() 505 if (rq->extts.flags & PTP_FALLING_EDGE) in ptp_dp83640_enable()
|
/linux-6.1.9/tools/testing/selftests/ptp/ |
D | testptp.c | 171 int extts = 0; in main() local 200 extts = atoi(optarg); in main() 379 if (extts) { in main() 385 extts = 0; in main() 389 for (; extts; extts--) { in main()
|
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/ |
D | ptp.c | 271 int rising = (rq->extts.flags & PTP_RISING_EDGE); in mv88e6352_ptp_enable_extts() 277 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mv88e6352_ptp_enable_extts() 284 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mv88e6352_ptp_enable_extts() 285 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mv88e6352_ptp_enable_extts() 286 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mv88e6352_ptp_enable_extts() 289 pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in mv88e6352_ptp_enable_extts()
|
/linux-6.1.9/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.c | 905 struct lan743x_extts *extts; in lan743x_ptp_io_extts_off() local 908 extts = &ptp->extts[index]; in lan743x_ptp_io_extts_off() 910 if (extts->flags & PTP_FALLING_EDGE) in lan743x_ptp_io_extts_off() 918 if (extts->flags & PTP_FALLING_EDGE) { in lan743x_ptp_io_extts_off() 933 memset(&extts->ts, 0, sizeof(struct timespec64)); in lan743x_ptp_io_extts_off() 934 extts->flags = 0; in lan743x_ptp_io_extts_off() 987 struct lan743x_extts *extts; in lan743x_ptp_io_extts() local 991 extts = &ptp->extts[index]; in lan743x_ptp_io_extts() 1000 extts->flags = flags; in lan743x_ptp_io_extts() 1019 if (request->extts.index < ptpci->n_ext_ts) in lan743x_ptpci_enable() [all …]
|
D | lan743x_ptp.h | 84 struct lan743x_extts extts[LAN743X_PTP_N_EXTTS]; member
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 525 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_82580() 533 rq->extts.index); in igb_ptp_feature_enable_82580() 537 if (rq->extts.index == 1) { in igb_ptp_feature_enable_82580() 548 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_82580() 675 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_i210() 682 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igb_ptp_feature_enable_i210() 683 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_i210() 684 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_i210() 689 rq->extts.index); in igb_ptp_feature_enable_i210() 693 if (rq->extts.index == 1) { in igb_ptp_feature_enable_i210() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_ptp.c | 260 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igc_ptp_feature_enable_i225() 267 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igc_ptp_feature_enable_i225() 268 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igc_ptp_feature_enable_i225() 269 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igc_ptp_feature_enable_i225() 274 rq->extts.index); in igc_ptp_feature_enable_i225() 278 if (rq->extts.index == 1) { in igc_ptp_feature_enable_i225() 289 igc_pin_extts(igc, rq->extts.index, pin); in igc_ptp_feature_enable_i225()
|
/linux-6.1.9/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 844 struct ptp_extts_request *extts, in sja1105_extts_enable() argument 850 if (extts->index != 0) in sja1105_extts_enable() 854 if (extts->flags & ~(PTP_ENABLE_FEATURE | in sja1105_extts_enable() 861 if ((extts->flags & PTP_STRICT_FLAGS) && in sja1105_extts_enable() 862 (extts->flags & PTP_ENABLE_FEATURE) && in sja1105_extts_enable() 863 (extts->flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in sja1105_extts_enable() 890 rc = sja1105_extts_enable(priv, &req->extts, on); in sja1105_ptp_enable()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.h | 28 void ptp_start(struct ptp *ptp, u64 sclk, u32 ext_clk_freq, u32 extts);
|
D | ptp.c | 280 void ptp_start(struct ptp *ptp, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() argument 313 if (extts) { in ptp_start()
|
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ptp.c | 31 switch (rq->extts.index) { in dpaa2_ptp_enable() 42 extts_clean_up(ptp_qoriq, rq->extts.index, false); in dpaa2_ptp_enable()
|
/linux-6.1.9/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 196 if (priv->ptp.extts[req->index] == on) in ravb_ptp_extts() 198 priv->ptp.extts[req->index] = on; in ravb_ptp_extts() 284 return ravb_ptp_extts(ptp, &req->extts, on); in ravb_ptp_enable()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 396 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mlx5_extts_configure() 403 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure() 404 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure() 405 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure() 408 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure() 411 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure() 417 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
|
/linux-6.1.9/arch/arm64/boot/dts/freescale/ |
D | qoriq-fman3-0.dtsi | 87 fsl,extts-fifo;
|
/linux-6.1.9/include/linux/ |
D | ptp_clock_kernel.h | 39 struct ptp_extts_request extts; member
|
/linux-6.1.9/Documentation/devicetree/bindings/ptp/ |
D | ptp-qoriq.txt | 24 - fsl,extts-fifo The presence of this property indicates hardware
|
/linux-6.1.9/drivers/net/ethernet/xscale/ |
D | ptp_ixp46x.c | 208 switch (rq->extts.index) { in ptp_ixp_enable()
|
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 706 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in lan966x_ptp_extts() 711 pin = ptp_find_pin(phc->clock, PTP_PF_EXTTS, rq->extts.index); in lan966x_ptp_extts()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 251 rq->extts.index); in otx2_ptp_enable()
|