Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/ptp/
H A Dptp_chardev.c31 rq.extts.index = chan; in ptp_disable_pinfunc()
152 if (copy_from_user(&req.extts, (void __user *)arg, in ptp_ioctl()
153 sizeof(req.extts))) { in ptp_ioctl()
159 req.extts.flags |= PTP_STRICT_FLAGS; in ptp_ioctl()
162 req.extts.rsv[0] || req.extts.rsv[1]) { in ptp_ioctl()
167 if ((req.extts.flags & PTP_ENABLE_FEATURE) && in ptp_ioctl()
168 (req.extts.flags & PTP_EXTTS_EDGES) == 0) { in ptp_ioctl()
173 req.extts.flags &= PTP_EXTTS_V1_VALID_FLAGS; in ptp_ioctl()
174 req.extts.rsv[0] = 0; in ptp_ioctl()
175 req.extts.rsv[1] = 0; in ptp_ioctl()
[all …]
H A Dptp_sysfs.c58 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store()
61 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store()
H 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()
H 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()
H A Dptp_clockmatrix.c276 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()
/openbmc/linux/drivers/net/phy/
H A Dnxp-c45-tja11xx.c300 bool extts; member
519 struct timespec64 *extts) in nxp_c45_get_extts() argument
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()
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()
851 if (extts->flags & PTP_FALLING_EDGE) in nxp_c45_set_rising_and_falling()
885 priv->extts = false; in nxp_c45_extts_enable()
896 priv->extts = true; in nxp_c45_extts_enable()
[all …]
H 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()
/openbmc/linux/tools/testing/selftests/ptp/
H A Dtestptp.c177 int extts = 0; in main() local
208 extts = atoi(optarg); in main()
416 if (extts) { in main()
422 extts = 0; in main()
426 for (; extts; extts--) { in main()
/openbmc/linux/drivers/net/ethernet/microchip/
H 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 …]
H A Dlan743x_ptp.h84 struct lan743x_extts extts[LAN743X_PTP_N_EXTTS]; member
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A Dptp.c326 int rising = (rq->extts.flags & PTP_RISING_EDGE); in mv88e6352_ptp_enable_extts()
332 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mv88e6352_ptp_enable_extts()
339 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mv88e6352_ptp_enable_extts()
340 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mv88e6352_ptp_enable_extts()
341 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mv88e6352_ptp_enable_extts()
344 pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in mv88e6352_ptp_enable_extts()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c506 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_82580()
514 rq->extts.index); in igb_ptp_feature_enable_82580()
518 if (rq->extts.index == 1) { in igb_ptp_feature_enable_82580()
529 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_82580()
656 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_i210()
663 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igb_ptp_feature_enable_i210()
664 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_i210()
665 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_i210()
670 rq->extts.index); in igb_ptp_feature_enable_i210()
674 if (rq->extts.index == 1) { in igb_ptp_feature_enable_i210()
[all …]
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c804 struct ptp_extts_request *extts, in sja1105_extts_enable() argument
810 if (extts->index != 0) in sja1105_extts_enable()
814 if (extts->flags & ~(PTP_ENABLE_FEATURE | in sja1105_extts_enable()
821 if ((extts->flags & PTP_STRICT_FLAGS) && in sja1105_extts_enable()
822 (extts->flags & PTP_ENABLE_FEATURE) && in sja1105_extts_enable()
823 (extts->flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in sja1105_extts_enable()
850 rc = sja1105_extts_enable(priv, &req->extts, on); in sja1105_ptp_enable()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dptp.h29 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts);
H A Dptp.c366 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() argument
406 if (extts) { in ptp_start()
/openbmc/linux/drivers/net/ethernet/renesas/
H 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()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H 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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c461 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mlx5_extts_configure()
468 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure()
469 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure()
470 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure()
473 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure()
476 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure()
482 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
/openbmc/linux/arch/arm64/boot/dts/freescale/
H A Dqoriq-fman3-0.dtsi87 fsl,extts-fifo;
/openbmc/linux/include/linux/
H A Dptp_clock_kernel.h39 struct ptp_extts_request extts; member
/openbmc/linux/Documentation/devicetree/bindings/ptp/
H A Dptp-qoriq.txt24 - fsl,extts-fifo The presence of this property indicates hardware
/openbmc/linux/drivers/net/ethernet/xscale/
H A Dptp_ixp46x.c197 switch (rq->extts.index) { in ptp_ixp_enable()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c1756 chan = rq->extts.index; in ice_ptp_gpio_enable_e810()
1772 rq->extts.flags); in ice_ptp_gpio_enable_e810()
1803 err = ice_ptp_cfg_extts(pf, !!on, rq->extts.index, in ice_ptp_gpio_enable_e823()
1804 TIME_SYNC_PIN_INDEX, rq->extts.flags); in ice_ptp_gpio_enable_e823()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c921 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in lan966x_ptp_extts()
926 pin = ptp_find_pin(phc->clock, PTP_PF_EXTTS, rq->extts.index); in lan966x_ptp_extts()

12