Home
last modified time | relevance | path

Searched refs:ptp_info (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c47 static int otx2_ptp_hw_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_hw_adjtime() argument
49 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_adjtime()
50 ptp_info); in otx2_ptp_hw_adjtime()
99 static int otx2_ptp_hw_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_hw_gettime() argument
102 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_gettime()
103 ptp_info); in otx2_ptp_hw_gettime()
112 static int otx2_ptp_hw_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_hw_settime() argument
115 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_settime()
116 ptp_info); in otx2_ptp_hw_settime()
142 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine() argument
[all …]
H A Dotx2_common.h316 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c59 static int bnxt_ptp_settime(struct ptp_clock_info *ptp_info, in bnxt_ptp_settime() argument
62 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime()
63 ptp_info); in bnxt_ptp_settime()
139 static int bnxt_ptp_gettimex(struct ptp_clock_info *ptp_info, in bnxt_ptp_gettimex() argument
143 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex()
144 ptp_info); in bnxt_ptp_gettimex()
194 static int bnxt_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in bnxt_ptp_adjtime() argument
196 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime()
197 ptp_info); in bnxt_ptp_adjtime()
227 static int bnxt_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in bnxt_ptp_adjfine() argument
[all …]
H A Dbnxt_ptp.h81 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.c93 static int cavium_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in cavium_ptp_adjfine() argument
96 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_adjfine()
140 static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in cavium_ptp_adjtime() argument
143 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_adjtime()
161 static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info, in cavium_ptp_gettime() argument
165 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_gettime()
183 static int cavium_ptp_settime(struct ptp_clock_info *ptp_info, in cavium_ptp_settime() argument
187 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_settime()
206 static int cavium_ptp_enable(struct ptp_clock_info *ptp_info, in cavium_ptp_enable() argument
261 clock->ptp_info = (struct ptp_clock_info) { in cavium_ptp_probe()
[all …]
H A Dcavium_ptp.h23 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c120 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_getmaxphase()
132 s64 max = mlx5_ptp_getmaxphase(&mdev->clock.ptp_info); in mlx5_is_mtutc_time_adj_cap()
223 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_pps_out()
240 static long mlx5_timestamp_overflow(struct ptp_clock_info *ptp_info) in mlx5_timestamp_overflow() argument
247 clock = container_of(ptp_info, struct mlx5_clock, ptp_info); in mlx5_timestamp_overflow()
284 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_settime()
318 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_gettimex()
365 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjtime()
386 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjphase()
417 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjfine()
[all …]
/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicss_iep.c110 struct ptp_clock_info ptp_info; member
356 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_adjfine()
409 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_adjtime()
429 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_gettimeex()
443 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_settime()
623 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_enable()
749 iep->ptp_info.n_per_out = 1; in icss_iep_init()
750 iep->ptp_info.pps = 1; in icss_iep_init()
754 iep->ptp_info.n_ext_ts = 2; in icss_iep_init()
763 iep->ptp_clock = ptp_clock_register(&iep->ptp_info, iep->dev); in icss_iep_init()
[all …]
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ptp.c58 struct ptp_clock_info ptp_info; member
280 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_adjfine()
299 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_adjtime()
319 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_gettime()
343 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_settime()
392 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_perout_pin_configure()
429 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_pps_pin_configure()
463 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_extts_pin_configure()
1149 aq_ptp_settime(&aq_ptp->ptp_info, &ts); in aq_ptp_clock_init()
1198 aq_ptp->ptp_info = aq_ptp_clock; in aq_ptp_init()
[all …]
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c319 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_adjfine()
356 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_adjtime()
382 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_settime64()
412 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_gettimex64()
436 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_aux_work()
497 lif->phc->ptp = ptp_clock_register(&lif->phc->ptp_info, lif->ionic->dev); in ionic_lif_register_phc()
627 phc->ptp_info = ionic_ptp_info; in ionic_lif_alloc_phc()
632 phc->ptp_info.max_adj = NORMAL_PPB; in ionic_lif_alloc_phc()
H A Dionic_lif.h248 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpts.c159 struct ptp_clock_info ptp_info; member
408 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjfine()
497 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjtime()
513 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_gettimex()
540 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_settime()
568 if (index >= cpts->ptp_info.n_ext_ts) in am65_cpts_extts_enable()
668 if (req->index >= cpts->ptp_info.n_per_out) in am65_cpts_perout_enable()
732 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_enable()
853 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ts_work()
1135 cpts->ptp_info = am65_ptp_info; in am65_cpts_create()
[all …]
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c21 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64()
56 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64()
93 ptp_info); in ocelot_ptp_adjtime()
140 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine()
202 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_enable()
870 ocelot->ptp_info = *info; in ocelot_init_timestamp()
880 ocelot->ptp_info.pin_config = &ocelot->ptp_pins[0]; in ocelot_init_timestamp()
882 ptp_clock = ptp_clock_register(&ocelot->ptp_info, ocelot->dev); in ocelot_init_timestamp()
/openbmc/linux/drivers/ptp/
H A Dptp_ocp.c326 struct ptp_clock_info ptp_info; member
1012 ptp_ocp_gettimex(struct ptp_clock_info *ptp_info, struct timespec64 *ts, in ptp_ocp_gettimex() argument
1015 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_gettimex()
1049 ptp_ocp_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) in ptp_ocp_settime() argument
1051 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_settime()
1097 ptp_ocp_adjtime(struct ptp_clock_info *ptp_info, s64 delta_ns) in ptp_ocp_adjtime() argument
1099 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_adjtime()
1119 ptp_ocp_null_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in ptp_ocp_null_adjfine() argument
1128 ptp_ocp_null_getmaxphase(struct ptp_clock_info *ptp_info) in ptp_ocp_null_getmaxphase() argument
1134 ptp_ocp_null_adjphase(struct ptp_clock_info *ptp_info, s32 phase_ns) in ptp_ocp_null_adjphase() argument
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ptp.c79 struct ptp_clock_info ptp_info; member
109 return container_of(ptp, struct mlxsw_sp1_ptp_clock, common.ptp_info); in mlxsw_sp1_ptp_clock()
311 clock->common.ptp_info = mlxsw_sp1_ptp_clock_info; in mlxsw_sp1_ptp_clock_init()
312 clock->common.ptp = ptp_clock_register(&clock->common.ptp_info, dev); in mlxsw_sp1_ptp_clock_init()
376 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_adjfine()
389 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_adjtime()
414 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_gettimex()
427 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_settime()
455 clock->ptp_info = mlxsw_sp2_ptp_clock_info; in mlxsw_sp2_ptp_clock_init()
463 clock->ptp = ptp_clock_register(&clock->ptp_info, dev); in mlxsw_sp2_ptp_clock_init()
/openbmc/linux/drivers/net/phy/
H A Dbcm-phy-ptp.c133 struct ptp_clock_info ptp_info; member
174 return container_of(info, struct bcm_ptp_private, ptp_info); in ptp2priv()
927 priv->ptp_info = bcm_ptp_clock_info; in bcm_ptp_probe()
930 priv->ptp_info.pin_config = &priv->pin; in bcm_ptp_probe()
932 clock = ptp_clock_register(&priv->ptp_info, &phydev->mdio.dev); in bcm_ptp_probe()
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c1519 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjfine()
1558 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjtime()
1577 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_gettime()
1600 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_settime()
1638 snprintf(lio->ptp_info.name, 16, "%s", netdev->name); in oct_ptp_open()
1639 lio->ptp_info.owner = THIS_MODULE; in oct_ptp_open()
1640 lio->ptp_info.max_adj = 250000000; in oct_ptp_open()
1641 lio->ptp_info.n_alarm = 0; in oct_ptp_open()
1642 lio->ptp_info.n_ext_ts = 0; in oct_ptp_open()
1643 lio->ptp_info.n_per_out = 0; in oct_ptp_open()
[all …]
H A Docteon_network.h165 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c332 bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); in gem_ptp_init()
333 bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); in gem_ptp_init()
H A Dmacb_main.c2976 if (bp->ptp_info) in macb_open()
2977 bp->ptp_info->ptp_init(dev); in macb_open()
3022 if (bp->ptp_info) in macb_close()
3023 bp->ptp_info->ptp_remove(dev); in macb_close()
3439 if (bp->ptp_info) in macb_get_ts_info()
3440 return bp->ptp_info->get_ts_info(netdev, info); in macb_get_ts_info()
3791 if (bp->ptp_info) { in macb_ioctl()
3794 return bp->ptp_info->set_hwtst(dev, rq, cmd); in macb_ioctl()
3796 return bp->ptp_info->get_hwtst(dev, rq); in macb_ioctl()
3936 bp->ptp_info = &gem_ptp_info; in macb_configure_caps()
[all …]
H A Dmacb.h1307 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
/openbmc/linux/include/soc/mscc/
H A Docelot.h879 struct ptp_clock_info ptp_info; member
/openbmc/linux/include/linux/mlx5/
H A Ddriver.h719 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dtg3.h3192 struct ptp_clock_info ptp_info; member
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.c1756 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in felix_rxtstamp()

12