Home
last modified time | relevance | path

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

12

/drivers/ptp/
A Dptp_chardev.c33 rq.extts.index = chan; in ptp_disable_pinfunc()
181 if (copy_from_user(&req.extts, arg, sizeof(req.extts))) in ptp_extts_request()
186 req.extts.flags |= PTP_STRICT_FLAGS; in ptp_extts_request()
188 if ((req.extts.flags & ~PTP_EXTTS_VALID_FLAGS) || in ptp_extts_request()
189 req.extts.rsv[0] || req.extts.rsv[1]) in ptp_extts_request()
193 if ((req.extts.flags & PTP_ENABLE_FEATURE) && in ptp_extts_request()
194 (req.extts.flags & PTP_EXTTS_EDGES) == 0) in ptp_extts_request()
197 req.extts.flags &= PTP_EXTTS_V1_VALID_FLAGS; in ptp_extts_request()
198 memset(req.extts.rsv, 0, sizeof(req.extts.rsv)); in ptp_extts_request()
201 if (req.extts.index >= ops->n_ext_ts) in ptp_extts_request()
[all …]
A Dptp_sysfs.c57 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store()
60 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store()
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()
A Dptp_pch.c407 switch (rq->extts.index) { in ptp_pch_enable()
/drivers/net/phy/
A Dnxp-c45-tja11xx.c515 struct timespec64 *extts) in nxp_c45_get_extts() argument
546 struct timespec64 *extts) in tja1120_get_extts() argument
573 nxp_c45_get_extts(priv, extts); in tja1120_get_extts()
734 if (priv->extts) { in nxp_c45_do_aux_work()
819 if (extts->flags & PTP_RISING_EDGE) in nxp_c45_set_rising_or_falling()
823 if (extts->flags & PTP_FALLING_EDGE) in nxp_c45_set_rising_or_falling()
834 if (extts->flags & PTP_RISING_EDGE || in nxp_c45_set_rising_and_falling()
844 if (extts->flags & PTP_FALLING_EDGE) in nxp_c45_set_rising_and_falling()
872 priv->extts = false; in nxp_c45_extts_enable()
883 priv->extts = true; in nxp_c45_extts_enable()
[all …]
A Dnxp-c45-tja11xx.h29 bool extts; member
A Ddp83640.c482 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in ptp_dp83640_enable()
483 (rq->extts.flags & PTP_ENABLE_FEATURE) && in ptp_dp83640_enable()
484 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in ptp_dp83640_enable()
487 index = rq->extts.index; in ptp_dp83640_enable()
498 if (rq->extts.flags & PTP_FALLING_EDGE) in ptp_dp83640_enable()
A Dmicrel.c3634 rq->extts.index); in lan8814_ptp_extts()
3640 lan8814_ptp_extts_on(phydev, pin, rq->extts.flags); in lan8814_ptp_extts()
5473 if (rq->extts.flags & ~(PTP_ENABLE_FEATURE | in lan8841_ptp_extts()
5478 pin = ptp_find_pin(ptp_priv->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in lan8841_ptp_extts()
5484 ret = lan8841_ptp_extts_on(ptp_priv, pin, rq->extts.flags); in lan8841_ptp_extts()
/drivers/net/ethernet/microchip/
A Dlan743x_ptp.c853 struct lan743x_extts *extts; in lan743x_ptp_io_extts_off() local
856 extts = &ptp->extts[index]; in lan743x_ptp_io_extts_off()
882 extts->flags = 0; in lan743x_ptp_io_extts_off()
935 struct lan743x_extts *extts; in lan743x_ptp_io_extts() local
939 extts = &ptp->extts[index]; in lan743x_ptp_io_extts()
948 extts->flags = flags; in lan743x_ptp_io_extts()
969 &request->extts); in lan743x_ptpci_enable()
1030 struct lan743x_extts *extts; in lan743x_ptp_io_event_clock_get() local
1045 extts = &ptp->extts[channel]; in lan743x_ptp_io_event_clock_get()
1046 extts->ts.tv_sec = sec; in lan743x_ptp_io_event_clock_get()
[all …]
A Dlan743x_ptp.h88 struct lan743x_extts extts[LAN743X_PTP_N_EXTTS]; member
/drivers/net/ethernet/intel/igb/
A Digb_ptp.c506 if (rq->extts.flags & PTP_STRICT_FLAGS && in igb_ptp_feature_enable_82580()
507 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_82580()
508 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igb_ptp_feature_enable_82580()
513 rq->extts.index); in igb_ptp_feature_enable_82580()
517 if (rq->extts.index == 1) { in igb_ptp_feature_enable_82580()
528 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_82580()
655 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igb_ptp_feature_enable_i210()
656 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igb_ptp_feature_enable_i210()
662 rq->extts.index); in igb_ptp_feature_enable_i210()
666 if (rq->extts.index == 1) { in igb_ptp_feature_enable_i210()
[all …]
/drivers/net/dsa/mv88e6xxx/
A Dptp.c330 int rising = (rq->extts.flags & PTP_RISING_EDGE); in mv88e6352_ptp_enable_extts()
336 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mv88e6352_ptp_enable_extts()
337 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mv88e6352_ptp_enable_extts()
338 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mv88e6352_ptp_enable_extts()
341 pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in mv88e6352_ptp_enable_extts()
/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_ptp.c205 rq->extts.index, channel); in stmmac_enable()
213 acr_value |= PTP_ACR_ATSEN(rq->extts.index); in stmmac_enable()
219 rq->extts.index, on ? "enabled" : "disabled"); in stmmac_enable()
/drivers/net/dsa/sja1105/
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_STRICT_FLAGS) && in sja1105_extts_enable()
815 (extts->flags & PTP_ENABLE_FEATURE) && in sja1105_extts_enable()
816 (extts->flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in sja1105_extts_enable()
843 rc = sja1105_extts_enable(priv, &req->extts, on); in sja1105_ptp_enable()
/drivers/net/ethernet/renesas/
A Dravb_ptp.c182 if (priv->ptp.extts[req->index] == on) in ravb_ptp_extts()
184 priv->ptp.extts[req->index] = on; in ravb_ptp_extts()
266 return ravb_ptp_extts(ptp, &req->extts, on); in ravb_ptp_enable()
A Dravb.h1044 int extts[N_EXT_TS]; member
/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()
/drivers/net/ethernet/marvell/octeontx2/af/
A Dptp.h29 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts);
A Dptp.c367 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() argument
407 if (extts) { in ptp_start()
/drivers/net/ethernet/intel/igc/
A Digc_ptp.c261 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in igc_ptp_feature_enable_i225()
262 (rq->extts.flags & PTP_ENABLE_FEATURE) && in igc_ptp_feature_enable_i225()
263 (rq->extts.flags & PTP_EXTTS_EDGES) != PTP_EXTTS_EDGES) in igc_ptp_feature_enable_i225()
268 rq->extts.index); in igc_ptp_feature_enable_i225()
272 if (rq->extts.index == 1) { in igc_ptp_feature_enable_i225()
283 igc_pin_extts(igc, rq->extts.index, pin); in igc_ptp_feature_enable_i225()
/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dclock.c647 if ((rq->extts.flags & PTP_STRICT_FLAGS) && in mlx5_extts_configure()
648 (rq->extts.flags & PTP_ENABLE_FEATURE) && in mlx5_extts_configure()
649 (rq->extts.flags & PTP_EXTTS_EDGES) == PTP_EXTTS_EDGES) in mlx5_extts_configure()
652 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure()
655 pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); in mlx5_extts_configure()
661 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
/drivers/net/ethernet/xscale/
A Dptp_ixp46x.c197 switch (rq->extts.index) { in ptp_ixp_enable()
/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ptp.c353 rq->extts.index); in otx2_ptp_enable()
/drivers/net/ethernet/intel/ice/
A Dice_ptp.c1852 &pf->ptp.extts_rqs[rq->extts.index]; in ice_ptp_gpio_enable()
1854 err = ice_ptp_cfg_extts(pf, &rq->extts, on); in ice_ptp_gpio_enable()
1856 *cached = rq->extts; in ice_ptp_gpio_enable()
/drivers/net/ethernet/ti/
A Dcpts.c306 return cpts_extts_enable(cpts, rq->extts.index, on); in cpts_ptp_enable()

Completed in 74 milliseconds

12