/linux/drivers/ptp/ |
A 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() 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 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()
|
A 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()
|
A D | ptp_pch.c | 472 switch (rq->extts.index) { in ptp_pch_enable()
|
A D | ptp_clockmatrix.c | 1961 err = idtcm_enable_extts(channel, rq->extts.index, in idtcm_enable() 1962 rq->extts.rsv[0], on); in idtcm_enable()
|
/linux/tools/testing/selftests/ptp/ |
A D | testptp.c | 169 int extts = 0; in main() local 198 extts = atoi(optarg); in main() 357 if (extts) { in main() 363 extts = 0; in main() 367 for (; extts; extts--) { in main()
|
/linux/drivers/net/dsa/mv88e6xxx/ |
A 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/drivers/net/dsa/sja1105/ |
A D | sja1105_ptp.c | 815 struct ptp_extts_request *extts, in sja1105_extts_enable() argument 821 if (extts->index != 0) in sja1105_extts_enable() 825 if (extts->flags & ~(PTP_ENABLE_FEATURE | in sja1105_extts_enable() 832 if ((extts->flags & PTP_STRICT_FLAGS) && in sja1105_extts_enable() 833 (extts->flags & PTP_ENABLE_FEATURE) && in sja1105_extts_enable() 834 (extts->flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in sja1105_extts_enable() 861 rc = sja1105_extts_enable(priv, &req->extts, on); in sja1105_ptp_enable()
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_ptp.c | 261 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in igc_ptp_feature_enable_i225() 268 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igc_ptp_feature_enable_i225() 269 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igc_ptp_feature_enable_i225() 270 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igc_ptp_feature_enable_i225() 275 rq->extts.index); in igc_ptp_feature_enable_i225() 279 if (rq->extts.index == 1) { in igc_ptp_feature_enable_i225() 290 igc_pin_extts(igc, rq->extts.index, pin); in igc_ptp_feature_enable_i225()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | clock.c | 387 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in mlx5_extts_configure() 394 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure() 395 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure() 396 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure() 399 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure() 402 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure() 408 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | ptp.h | 23 void ptp_start(struct ptp *ptp, u64 sclk, u32 ext_clk_freq, u32 extts);
|
A D | ptp.c | 123 void ptp_start(struct ptp *ptp, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() argument 152 if (extts) { in ptp_start()
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A 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/drivers/net/ethernet/renesas/ |
A 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()
|
A D | ravb.h | 1002 int extts[N_EXT_TS]; member
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | igb_ptp.c | 525 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/drivers/net/phy/ |
A 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/include/linux/ |
A D | ptp_clock_kernel.h | 39 struct ptp_extts_request extts; member
|
/linux/arch/arm64/boot/dts/freescale/ |
A D | qoriq-fman3-0.dtsi | 87 fsl,extts-fifo;
|
/linux/Documentation/devicetree/bindings/ptp/ |
A D | ptp-qoriq.txt | 24 - fsl,extts-fifo The presence of this property indicates hardware
|
/linux/drivers/net/ethernet/xscale/ |
A D | ptp_ixp46x.c | 209 switch (rq->extts.index) { in ptp_ixp_enable()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ptp.c | 207 rq->extts.index); in otx2_ptp_enable()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ptp.c | 1022 chan = rq->extts.index; in ice_ptp_gpio_enable_e810() 1038 rq->extts.flags); in ice_ptp_gpio_enable_e810()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_ptp.c | 339 rq->extts.index); in bnxt_ptp_enable()
|
/linux/drivers/net/ethernet/ti/ |
A D | cpts.c | 318 return cpts_extts_enable(cpts, rq->extts.index, on); in cpts_ptp_enable()
|