Home
last modified time | relevance | path

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

12

/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
/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
/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()
148 static int bnxt_ptp_gettimex(struct ptp_clock_info *ptp_info, in bnxt_ptp_gettimex() argument
152 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex()
153 ptp_info); in bnxt_ptp_gettimex()
205 static int bnxt_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in bnxt_ptp_adjtime() argument
207 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime()
208 ptp_info); in bnxt_ptp_adjtime()
239 static int bnxt_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in bnxt_ptp_adjfine() argument
[all …]
H A Dbnxt_ptp.h99 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c124 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_getmaxphase()
136 s64 max = mlx5_ptp_getmaxphase(&mdev->clock.ptp_info); in mlx5_is_mtutc_time_adj_cap()
220 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_getcrosststamp()
308 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_pps_out()
367 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_settime()
404 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_gettimex()
448 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjtime()
472 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjphase()
502 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjfine()
533 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_extts_configure()
[all …]
/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 …]
/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.h261 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/ti/icssg/
H A Dicss_iep.c283 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_adjfine()
336 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_adjtime()
356 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_gettimeex()
370 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_settime()
622 struct icss_iep *iep = container_of(ptp, struct icss_iep, ptp_info); in icss_iep_ptp_enable()
748 iep->ptp_info.n_per_out = 1; in icss_iep_init()
749 iep->ptp_info.pps = 1; in icss_iep_init()
751 iep->ptp_info.pps = 1; in icss_iep_init()
755 iep->ptp_info.n_ext_ts = 2; in icss_iep_init()
764 iep->ptp_clock = ptp_clock_register(&iep->ptp_info, iep->dev); in icss_iep_init()
[all …]
H A Dicss_iep.h70 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/ti/
H A Dam65-cpts.c159 struct ptp_clock_info ptp_info; member
415 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjfine()
504 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjtime()
520 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_gettimex()
547 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_settime()
575 if (index >= cpts->ptp_info.n_ext_ts) in am65_cpts_extts_enable()
675 if (req->index >= cpts->ptp_info.n_per_out) in am65_cpts_perout_enable()
739 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_enable()
860 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ts_work()
1182 cpts->ptp_info = am65_ptp_info; in am65_cpts_create()
[all …]
/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c19 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64()
54 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64()
91 ptp_info); in ocelot_ptp_adjtime()
138 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine()
200 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_enable()
817 ocelot->ptp_info = *info; in ocelot_init_timestamp()
827 ocelot->ptp_info.pin_config = &ocelot->ptp_pins[0]; in ocelot_init_timestamp()
829 ptp_clock = ptp_clock_register(&ocelot->ptp_info, ocelot->dev); in ocelot_init_timestamp()
/linux/drivers/ptp/
H A Dptp_ocp.c356 struct ptp_clock_info ptp_info; member
1242 ptp_ocp_gettimex(struct ptp_clock_info *ptp_info, struct timespec64 *ts, in ptp_ocp_gettimex() argument
1245 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_gettimex()
1279 ptp_ocp_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) in ptp_ocp_settime() argument
1281 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_settime()
1327 ptp_ocp_adjtime(struct ptp_clock_info *ptp_info, s64 delta_ns) in ptp_ocp_adjtime() argument
1329 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_adjtime()
1349 ptp_ocp_null_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in ptp_ocp_null_adjfine() argument
1358 ptp_ocp_null_getmaxphase(struct ptp_clock_info *ptp_info) in ptp_ocp_null_getmaxphase() argument
1364 ptp_ocp_null_adjphase(struct ptp_clock_info *ptp_info, s32 phase_ns) in ptp_ocp_null_adjphase() argument
[all …]
/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()
/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()
924 priv->ptp_info = bcm_ptp_clock_info; in bcm_ptp_probe()
927 priv->ptp_info.pin_config = &priv->pin; in bcm_ptp_probe()
929 clock = ptp_clock_register(&priv->ptp_info, &phydev->mdio.dev); in bcm_ptp_probe()
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c1513 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjfine()
1552 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjtime()
1571 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_gettime()
1594 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_settime()
1632 snprintf(lio->ptp_info.name, 16, "%s", netdev->name); in oct_ptp_open()
1633 lio->ptp_info.owner = THIS_MODULE; in oct_ptp_open()
1634 lio->ptp_info.max_adj = 250000000; in oct_ptp_open()
1635 lio->ptp_info.n_alarm = 0; in oct_ptp_open()
1636 lio->ptp_info.n_ext_ts = 0; in oct_ptp_open()
1637 lio->ptp_info.n_per_out = 0; in oct_ptp_open()
[all …]
H A Docteon_network.h165 struct ptp_clock_info ptp_info; member
/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.c3006 if (bp->ptp_info) in macb_open()
3007 bp->ptp_info->ptp_init(dev); in macb_open()
3052 if (bp->ptp_info) in macb_close()
3053 bp->ptp_info->ptp_remove(dev); in macb_close()
3454 if (bp->ptp_info) in macb_get_ts_info()
3455 return bp->ptp_info->get_ts_info(netdev, info); in macb_get_ts_info()
3817 if (!bp->ptp_info) in macb_hwtstamp_get()
3820 return bp->ptp_info->get_hwtst(dev, cfg); in macb_hwtstamp_get()
3832 if (!bp->ptp_info) in macb_hwtstamp_set()
3835 return bp->ptp_info->set_hwtst(dev, cfg, extack); in macb_hwtstamp_set()
[all …]
H A Dmacb.h1315 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
/linux/include/linux/mlx5/
H A Ddriver.h732 struct ptp_clock_info ptp_info; member
/linux/include/soc/mscc/
H A Docelot.h881 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.h3192 struct ptp_clock_info ptp_info; member

12