/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_ptp.c | 48 ptp_info); in bnxt_ptp_settime() 117 ptp_info); in bnxt_ptp_gettimex() 137 ptp_info); in bnxt_ptp_adjtime() 148 ptp_info); in bnxt_ptp_adjfreq() 330 ptp_info); in bnxt_ptp_enable() 572 ptp_info); in bnxt_ptp_ts_aux_work() 643 ptp_info); in bnxt_ptp_verify() 674 ptp_info = &ptp->ptp_info; in bnxt_ptp_pps_init() 678 ptp_info->pin_config = kcalloc(ptp_info->n_pins, in bnxt_ptp_pps_init() 705 ptp_info->n_ext_ts = 1; in bnxt_ptp_pps_init() [all …]
|
A D | bnxt_ptp.h | 79 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ptp.c | 15 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine() 16 ptp_info); in otx2_ptp_adjfine() 106 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjtime() 107 ptp_info); in otx2_ptp_adjtime() 117 static int otx2_ptp_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_gettime() argument 121 ptp_info); in otx2_ptp_gettime() 134 static int otx2_ptp_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_settime() argument 138 ptp_info); in otx2_ptp_settime() 194 static int otx2_ptp_enable(struct ptp_clock_info *ptp_info, in otx2_ptp_enable() argument 198 ptp_info); in otx2_ptp_enable() [all …]
|
A D | otx2_common.h | 263 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/cavium/common/ |
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 …]
|
A D | cavium_ptp.h | 23 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | clock.c | 583 ptp_info); in mlx5_ptp_verify() 653 if (!clock->ptp_info.n_pins) in mlx5_init_pin_config() 656 clock->ptp_info.pin_config = in mlx5_init_pin_config() 657 kcalloc(clock->ptp_info.n_pins, in mlx5_init_pin_config() 658 sizeof(*clock->ptp_info.pin_config), in mlx5_init_pin_config() 660 if (!clock->ptp_info.pin_config) in mlx5_init_pin_config() 664 clock->ptp_info.pps = 1; in mlx5_init_pin_config() 672 clock->ptp_info.pin_config[i].chan = 0; in mlx5_init_pin_config() 848 clock->ptp_info = mlx5_ptp_clock_info; in mlx5_init_timer_clock() 883 clock->ptp_info = mlx5_ptp_clock_info; in mlx5_init_clock() [all …]
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot_ptp.c | 15 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()
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
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() 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() 1207 aq_ptp_gpio_init(&aq_ptp->ptp_info, &mbox.info); in aq_ptp_init() 1208 clock = ptp_clock_register(&aq_ptp->ptp_info, &aq_nic->ndev->dev); in aq_ptp_init() 1244 kfree(aq_ptp->ptp_info.pin_config); in aq_ptp_init() 1277 kfree(aq_ptp->ptp_info.pin_config); in aq_ptp_free() [all …]
|
/linux/drivers/net/ethernet/pensando/ionic/ |
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() 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()
|
A D | ionic_lif.h | 237 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/ti/ |
A D | am65-cpts.c | 159 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 …]
|
/linux/drivers/ptp/ |
A D | ptp_ocp.c | 225 struct ptp_clock_info ptp_info; member 563 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_gettimex() 599 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_settime() 628 ptp_ocp_adjtime(struct ptp_clock_info *ptp_info, s64 delta_ns) in ptp_ocp_adjtime() argument 630 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_adjtime() 663 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_enable() 819 ptp_ocp_settime(&bp->ptp_info, &ts); in ptp_ocp_init_clock() 2157 if (!ptp_ocp_gettimex(&bp->ptp_info, &ts, &sts)) { in ptp_ocp_summary_show() 2237 bp->ptp_info = ptp_ocp_clock_info; in ptp_ocp_device_init() 2346 if (!ptp_ocp_gettimex(&bp->ptp_info, &ts, NULL)) in ptp_ocp_phc_info() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_ptp.c | 68 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()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | lio_main.c | 1645 lio->ptp_info.owner = THIS_MODULE; in oct_ptp_open() 1646 lio->ptp_info.max_adj = 250000000; in oct_ptp_open() 1647 lio->ptp_info.n_alarm = 0; in oct_ptp_open() 1648 lio->ptp_info.n_ext_ts = 0; in oct_ptp_open() 1649 lio->ptp_info.n_per_out = 0; in oct_ptp_open() 1650 lio->ptp_info.pps = 0; in oct_ptp_open() 1651 lio->ptp_info.adjfreq = liquidio_ptp_adjfreq; in oct_ptp_open() 1652 lio->ptp_info.adjtime = liquidio_ptp_adjtime; in oct_ptp_open() 1653 lio->ptp_info.gettime64 = liquidio_ptp_gettime; in oct_ptp_open() 1654 lio->ptp_info.settime64 = liquidio_ptp_settime; in oct_ptp_open() [all …]
|
A D | octeon_network.h | 165 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/ethernet/cadence/ |
A D | macb_ptp.c | 372 bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); in gem_ptp_init() 373 bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); in gem_ptp_init()
|
A D | macb_main.c | 2789 if (bp->ptp_info) in macb_open() 2790 bp->ptp_info->ptp_init(dev); in macb_open() 2826 if (bp->ptp_info) in macb_close() 2827 bp->ptp_info->ptp_remove(dev); in macb_close() 3222 if (bp->ptp_info) in macb_get_ts_info() 3573 if (bp->ptp_info) { in macb_ioctl() 3718 bp->ptp_info = &gem_ptp_info; in macb_configure_caps() 4951 if (bp->ptp_info) in macb_suspend() 4952 bp->ptp_info->ptp_remove(netdev); in macb_suspend() 5030 if (bp->ptp_info) in macb_resume() [all …]
|
A D | macb.h | 1292 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
|
/linux/include/soc/mscc/ |
A D | ocelot.h | 685 struct ptp_clock_info ptp_info; member
|
/linux/include/linux/mlx5/ |
A D | driver.h | 682 struct ptp_clock_info ptp_info; member
|
/linux/drivers/net/dsa/ocelot/ |
A D | felix_vsc9959.c | 1175 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in vsc9959_new_base_time()
|
A D | felix.c | 1393 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in felix_rxtstamp()
|
/linux/drivers/net/ethernet/broadcom/ |
A D | tg3.h | 3190 struct ptp_clock_info ptp_info; member
|
A D | tg3.c | 6184 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfreq() 6220 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime() 6233 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettimex() 6249 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime() 6264 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable() 6357 tp->ptp_info = tg3_ptp_caps; in tg3_ptp_init() 17872 tp->ptp_clock = ptp_clock_register(&tp->ptp_info, in tg3_init_one()
|