Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/ptp/
Dptp_chardev.c31 rq.extts.index = chan; in ptp_disable_pinfunc()
147 if (copy_from_user(&req.extts, (void __user *)arg, in ptp_ioctl()
148 sizeof(req.extts))) { in ptp_ioctl()
154 req.extts.flags |= PTP_STRICT_FLAGS; in ptp_ioctl()
156 if ((req.extts.flags & ~PTP_EXTTS_VALID_FLAGS) || in ptp_ioctl()
157 req.extts.rsv[0] || req.extts.rsv[1]) { in ptp_ioctl()
162 if ((req.extts.flags & PTP_ENABLE_FEATURE) && in ptp_ioctl()
163 (req.extts.flags & PTP_EXTTS_EDGES) == 0) { in ptp_ioctl()
168 req.extts.flags &= PTP_EXTTS_V1_VALID_FLAGS; in ptp_ioctl()
169 req.extts.rsv[0] = 0; in ptp_ioctl()
[all …]
Dptp_sysfs.c46 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store()
49 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store()
Dptp_qoriq.c292 switch (rq->extts.index) { in ptp_qoriq_enable()
304 extts_clean_up(ptp_qoriq, rq->extts.index, false); in ptp_qoriq_enable()
Dptp_ixp46x.c208 switch (rq->extts.index) { in ptp_ixp_enable()
Dptp_pch.c479 switch (rq->extts.index) { in ptp_pch_enable()
/Linux-v5.4/tools/testing/selftests/ptp/
Dtestptp.c165 int extts = 0; in main() local
192 extts = atoi(optarg); in main()
343 if (extts) { in main()
349 extts = 0; in main()
353 for (; extts; extts--) { in main()
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/
Dptp.c271 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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c240 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mlx5_extts_configure()
247 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure()
248 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure()
249 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure()
252 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure()
256 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure()
260 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
265 pin = rq->extts.index; in mlx5_extts_configure()
/Linux-v5.4/drivers/net/ethernet/renesas/
Dravb_ptp.c195 if (priv->ptp.extts[req->index] == on) in ravb_ptp_extts()
197 priv->ptp.extts[req->index] = on; in ravb_ptp_extts()
282 return ravb_ptp_extts(ptp, &req->extts, on); in ravb_ptp_enable()
Dravb.h983 int extts[N_EXT_TS]; member
/Linux-v5.4/drivers/net/ethernet/intel/igb/
Digb_ptp.c525 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igb_ptp_feature_enable_i210()
532 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igb_ptp_feature_enable_i210()
533 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_i210()
534 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_i210()
539 rq->extts.index); in igb_ptp_feature_enable_i210()
543 if (rq->extts.index == 1) { in igb_ptp_feature_enable_i210()
554 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_i210()
/Linux-v5.4/include/linux/
Dptp_clock_kernel.h23 struct ptp_extts_request extts; member
/Linux-v5.4/drivers/net/phy/
Ddp83640.c473 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in ptp_dp83640_enable()
480 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in ptp_dp83640_enable()
481 (rq->extts.flags & PTP_ENABLE_FEATURE) && in ptp_dp83640_enable()
482 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in ptp_dp83640_enable()
485 index = rq->extts.index; in ptp_dp83640_enable()
496 if (rq->extts.flags & PTP_FALLING_EDGE) in ptp_dp83640_enable()
/Linux-v5.4/Documentation/devicetree/bindings/ptp/
Dptp-qoriq.txt22 - fsl,extts-fifo The presence of this property indicates hardware
/Linux-v5.4/arch/arm64/boot/dts/freescale/
Dfsl-ls208xa.dtsi334 fsl,extts-fifo;
Dfsl-ls1088a.dtsi636 fsl,extts-fifo;
Dfsl-lx2160a.dtsi861 fsl,extts-fifo;
/Linux-v5.4/arch/arm/boot/dts/
Dls1021a.dtsi758 fsl,extts-fifo;