/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ptp.c | 47 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 D | otx2_common.h | 316 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/cavium/common/ |
H A D | cavium_ptp.c | 93 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 D | cavium_ptp.h | 23 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ptp.c | 59 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 D | bnxt_ptp.h | 99 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.c | 124 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 D | aq_ptp.c | 58 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 D | ionic_phc.c | 319 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 D | ionic_lif.h | 261 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icss_iep.c | 283 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 D | icss_iep.h | 70 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 159 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 D | ocelot_ptp.c | 19 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 D | ptp_ocp.c | 356 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 D | spectrum_ptp.c | 79 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 D | bcm-phy-ptp.c | 133 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 D | lio_main.c | 1513 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 D | octeon_network.h | 165 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/cadence/ |
H A D | macb_ptp.c | 332 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 D | macb_main.c | 3006 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 D | macb.h | 1315 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
|
/linux/include/linux/mlx5/ |
H A D | driver.h | 732 struct ptp_clock_info ptp_info; member
|
/linux/include/soc/mscc/ |
H A D | ocelot.h | 881 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.h | 3192 struct ptp_clock_info ptp_info; member
|