Home
last modified time | relevance | path

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

/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c46 static int bnxt_ptp_settime(struct ptp_clock_info *ptp_info, in bnxt_ptp_settime() argument
49 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime()
50 ptp_info); in bnxt_ptp_settime()
123 static int bnxt_ptp_gettimex(struct ptp_clock_info *ptp_info, in bnxt_ptp_gettimex() argument
127 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex()
128 ptp_info); in bnxt_ptp_gettimex()
145 static int bnxt_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in bnxt_ptp_adjtime() argument
147 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime()
148 ptp_info); in bnxt_ptp_adjtime()
156 static int bnxt_ptp_adjfreq(struct ptp_clock_info *ptp_info, s32 ppb) in bnxt_ptp_adjfreq() argument
[all …]
Dbnxt_ptp.h76 struct ptp_clock_info ptp_info; member
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c11 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine() argument
13 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine()
14 ptp_info); in otx2_ptp_adjfine()
58 static int otx2_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_adjtime() argument
60 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjtime()
61 ptp_info); in otx2_ptp_adjtime()
71 static int otx2_ptp_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_gettime() argument
74 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_gettime()
75 ptp_info); in otx2_ptp_gettime()
88 static int otx2_ptp_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_settime() argument
[all …]
Dotx2_common.h261 struct ptp_clock_info ptp_info; member
/drivers/net/ethernet/cavium/common/
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 …]
Dcavium_ptp.h23 struct ptp_clock_info ptp_info; member
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c163 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_pps_out()
225 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_settime()
259 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_gettimex()
306 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjtime()
340 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjfreq()
378 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_extts_configure()
404 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure()
477 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_perout_configure()
498 if (rq->perout.index >= clock->ptp_info.n_pins) in mlx5_perout_configure()
556 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_pps_configure()
[all …]
/drivers/net/ethernet/mscc/
Docelot_ptp.c15 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64()
50 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64()
83 ptp_info); in ocelot_ptp_adjtime()
126 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine()
188 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_enable()
311 ocelot->ptp_info = *info; in ocelot_init_timestamp()
321 ocelot->ptp_info.pin_config = &ocelot->ptp_pins[0]; in ocelot_init_timestamp()
323 ptp_clock = ptp_clock_register(&ocelot->ptp_info, ocelot->dev); in ocelot_init_timestamp()
Docelot.c899 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in ocelot_xtr_poll_frame()
/drivers/ptp/
Dptp_ocp.c161 struct ptp_clock_info ptp_info; member
382 ptp_ocp_gettimex(struct ptp_clock_info *ptp_info, struct timespec64 *ts, in ptp_ocp_gettimex() argument
385 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_gettimex()
420 ptp_ocp_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) in ptp_ocp_settime() argument
422 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_settime()
436 ptp_ocp_adjtime(struct ptp_clock_info *ptp_info, s64 delta_ns) in ptp_ocp_adjtime() argument
438 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_adjtime()
458 ptp_ocp_null_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in ptp_ocp_null_adjfine() argument
467 ptp_ocp_adjphase(struct ptp_clock_info *ptp_info, s32 phase_ns) in ptp_ocp_adjphase() argument
473 ptp_ocp_enable(struct ptp_clock_info *ptp_info, struct ptp_clock_request *rq, in ptp_ocp_enable() argument
[all …]
/drivers/net/ethernet/aquantia/atlantic/
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()
1157 aq_ptp_settime(&aq_ptp->ptp_info, &ts); in aq_ptp_clock_init()
1206 aq_ptp->ptp_info = aq_ptp_clock; in aq_ptp_init()
[all …]
/drivers/net/ethernet/pensando/ionic/
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()
628 phc->ptp_info = ionic_ptp_info; in ionic_lif_alloc_phc()
633 phc->ptp_info.max_adj = NORMAL_PPB; in ionic_lif_alloc_phc()
Dionic_lif.h249 struct ptp_clock_info ptp_info; member
/drivers/net/ethernet/ti/
Dam65-cpts.c159 struct ptp_clock_info ptp_info; member
386 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjfreq()
428 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjtime()
444 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_gettimex()
471 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_settime()
599 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_enable()
713 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ts_work()
982 cpts->ptp_info = am65_ptp_info; in am65_cpts_create()
985 cpts->ptp_info.n_ext_ts = cpts->ext_ts_inputs; in am65_cpts_create()
987 cpts->ptp_info.n_per_out = cpts->genf_num; in am65_cpts_create()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c68 struct ptp_clock_info ptp_info; member
154 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_adjfine()
183 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_adjtime()
199 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_gettimex()
216 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_settime()
289 clock->ptp_info = mlxsw_sp1_ptp_clock_info; in mlxsw_sp1_ptp_clock_init()
290 clock->ptp = ptp_clock_register(&clock->ptp_info, dev); in mlxsw_sp1_ptp_clock_init()
/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1525 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjfreq()
1563 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjtime()
1582 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_gettime()
1605 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_settime()
1643 snprintf(lio->ptp_info.name, 16, "%s", netdev->name); in oct_ptp_open()
1644 lio->ptp_info.owner = THIS_MODULE; in oct_ptp_open()
1645 lio->ptp_info.max_adj = 250000000; in oct_ptp_open()
1646 lio->ptp_info.n_alarm = 0; in oct_ptp_open()
1647 lio->ptp_info.n_ext_ts = 0; in oct_ptp_open()
1648 lio->ptp_info.n_per_out = 0; in oct_ptp_open()
[all …]
Docteon_network.h165 struct ptp_clock_info ptp_info; member
/drivers/net/ethernet/cadence/
Dmacb_ptp.c367 bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); in gem_ptp_init()
368 bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); in gem_ptp_init()
Dmacb_main.c2841 if (bp->ptp_info) in macb_open()
2842 bp->ptp_info->ptp_init(dev); in macb_open()
2878 if (bp->ptp_info) in macb_close()
2879 bp->ptp_info->ptp_remove(dev); in macb_close()
3274 if (bp->ptp_info) in macb_get_ts_info()
3275 return bp->ptp_info->get_ts_info(netdev, info); in macb_get_ts_info()
3625 if (bp->ptp_info) { in macb_ioctl()
3628 return bp->ptp_info->set_hwtst(dev, rq, cmd); in macb_ioctl()
3630 return bp->ptp_info->get_hwtst(dev, rq); in macb_ioctl()
3770 bp->ptp_info = &gem_ptp_info; in macb_configure_caps()
[all …]
Dmacb.h1289 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
/drivers/net/dsa/ocelot/
Dfelix_vsc9959.c1180 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in vsc9959_new_base_time()
Dfelix.c1391 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in felix_rxtstamp()
/drivers/net/ethernet/broadcom/
Dtg3.h3192 struct ptp_clock_info ptp_info; member
Dtg3.c6186 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfreq()
6222 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime()
6235 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettimex()
6251 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime()
6266 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable()
6359 tp->ptp_info = tg3_ptp_caps; in tg3_ptp_init()
17917 tp->ptp_clock = ptp_clock_register(&tp->ptp_info, in tg3_init_one()