Home
last modified time | relevance | path

Searched refs:extts (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.3-rc2/drivers/ptp/
A Dptp_chardev.c31 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()
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()
171 req.extts.rsv[1] = 0; in ptp_ioctl()
[all …]
A Dptp_sysfs.c47 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()
A Dptp_idt82p33.c238 u8 index = rq->extts.index; in idt82p33_extts_enable()
250 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in idt82p33_extts_enable()
257 if ((rq->extts.flags & PTP_ENABLE_FEATURE) && in idt82p33_extts_enable()
258 (rq->extts.flags & PTP_FALLING_EDGE)) in idt82p33_extts_enable()
A Dptp_qoriq.c310 switch (rq->extts.index) { in ptp_qoriq_enable()
322 extts_clean_up(ptp_qoriq, rq->extts.index, false); in ptp_qoriq_enable()
/linux-6.3-rc2/drivers/net/phy/
A Dnxp-c45-tja11xx.c227 bool extts; member
369 struct timespec64 *extts) in nxp_c45_get_extts() argument
484 if (priv->extts) { in nxp_c45_do_aux_work()
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()
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()
[all …]
A Ddp83640.c482 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.3-rc2/tools/testing/selftests/ptp/
A Dtestptp.c171 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.3-rc2/drivers/net/ethernet/microchip/
A Dlan743x_ptp.c864 struct lan743x_extts *extts; in lan743x_ptp_io_extts_off() local
867 extts = &ptp->extts[index]; in lan743x_ptp_io_extts_off()
893 extts->flags = 0; in lan743x_ptp_io_extts_off()
946 struct lan743x_extts *extts; in lan743x_ptp_io_extts() local
950 extts = &ptp->extts[index]; in lan743x_ptp_io_extts()
959 extts->flags = flags; in lan743x_ptp_io_extts()
980 &request->extts); in lan743x_ptpci_enable()
1041 struct lan743x_extts *extts; in lan743x_ptp_io_event_clock_get() local
1056 extts = &ptp->extts[channel]; in lan743x_ptp_io_event_clock_get()
1057 extts->ts.tv_sec = sec; in lan743x_ptp_io_event_clock_get()
[all …]
A Dlan743x_ptp.h84 struct lan743x_extts extts[LAN743X_PTP_N_EXTTS]; member
/linux-6.3-rc2/drivers/net/dsa/mv88e6xxx/
A Dptp.c272 int rising = (rq->extts.flags & PTP_RISING_EDGE); in mv88e6352_ptp_enable_extts()
278 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mv88e6352_ptp_enable_extts()
285 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mv88e6352_ptp_enable_extts()
286 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mv88e6352_ptp_enable_extts()
287 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mv88e6352_ptp_enable_extts()
290 pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in mv88e6352_ptp_enable_extts()
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/
A Digb_ptp.c511 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_82580()
519 rq->extts.index); in igb_ptp_feature_enable_82580()
523 if (rq->extts.index == 1) { in igb_ptp_feature_enable_82580()
534 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_82580()
661 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_i210()
668 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igb_ptp_feature_enable_i210()
669 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_i210()
670 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_i210()
675 rq->extts.index); in igb_ptp_feature_enable_i210()
679 if (rq->extts.index == 1) { in igb_ptp_feature_enable_i210()
[all …]
/linux-6.3-rc2/drivers/net/dsa/sja1105/
A Dsja1105_ptp.c844 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.3-rc2/drivers/net/ethernet/intel/igc/
A Digc_ptp.c260 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.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/
A Dptp.h28 void ptp_start(struct ptp *ptp, u64 sclk, u32 ext_clk_freq, u32 extts);
A Dptp.c280 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.3-rc2/drivers/net/ethernet/renesas/
A Dravb_ptp.c189 if (priv->ptp.extts[req->index] == on) in ravb_ptp_extts()
191 priv->ptp.extts[req->index] = on; in ravb_ptp_extts()
277 return ravb_ptp_extts(ptp, &req->extts, on); in ravb_ptp_enable()
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-ptp.c30 switch (rq->extts.index) { in dpaa2_ptp_enable()
41 extts_clean_up(ptp_qoriq, rq->extts.index, false); in dpaa2_ptp_enable()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dclock.c431 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mlx5_extts_configure()
438 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure()
439 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure()
440 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure()
443 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure()
446 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure()
452 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
/linux-6.3-rc2/arch/arm64/boot/dts/freescale/
A Dqoriq-fman3-0.dtsi87 fsl,extts-fifo;
/linux-6.3-rc2/include/linux/
A Dptp_clock_kernel.h39 struct ptp_extts_request extts; member
/linux-6.3-rc2/drivers/net/ethernet/xscale/
A Dptp_ixp46x.c197 switch (rq->extts.index) { in ptp_ixp_enable()
/linux-6.3-rc2/Documentation/devicetree/bindings/ptp/
A Dptp-qoriq.txt24 - fsl,extts-fifo The presence of this property indicates hardware
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ptp.c251 rq->extts.index); in otx2_ptp_enable()
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_ptp.c1751 chan = rq->extts.index; in ice_ptp_gpio_enable_e810()
1767 rq->extts.flags); in ice_ptp_gpio_enable_e810()
1798 err = ice_ptp_cfg_extts(pf, !!on, rq->extts.index, in ice_ptp_gpio_enable_e823()
1799 TIME_SYNC_PIN_INDEX, rq->extts.flags); in ice_ptp_gpio_enable_e823()
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_ptp.c925 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in lan966x_ptp_extts()
930 pin = ptp_find_pin(phc->clock, PTP_PF_EXTTS, rq->extts.index); in lan966x_ptp_extts()

Completed in 43 milliseconds

12