/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_tai.c | 29 * seems it can be set to any period of 1ns resolution. It is probably 30 * limited by the TOD step size. Its period is defined by the PCLK_CCC 61 u64 period; // nanosecond period in 32.32 fixed point member in struct:mvpp2_tai 154 u64 val = tai->period * abs_scaled_ppm >> 4; 316 nano = upper_32_bits(tai->period); 317 frac = lower_32_bits(tai->period); 430 * Consequently, we use the period rather than calculating from the 433 tai->period = 3ULL << 32;
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.h | 1676 u64 period; member in struct:ptp_req
|
H A D | ptp.c | 467 static int ptp_pps_on(struct ptp *ptp, int on, u64 period) argument 473 if (cn10k_ptp_errata(ptp) && period != NSEC_PER_SEC) { 474 dev_err(&ptp->pdev->dev, "Supports max period value as 1 second\n"); 478 if (period > (8 * NSEC_PER_SEC)) { 479 dev_err(&ptp->pdev->dev, "Supports max period as 8 seconds\n"); 490 period = period / 2; 491 writeq(((u64)period << 32), ptp->reg_base + PTP_PPS_HI_INCR); 492 writeq(((u64)period << 32), ptp->reg_base + PTP_PPS_LO_INCR); 649 err = ptp_pps_on(rvu->ptp, req->pps_on, req->period); [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ptp.c | 178 static int ptp_pps_on(struct otx2_ptp *ptp, int on, u64 period) argument 191 req->period = period; 344 u64 period = 0; local 369 period = rq->perout.period.sec * NSEC_PER_SEC + 370 rq->perout.period.nsec; 371 ptp_pps_on(ptp, on, period); 373 ptp_pps_on(ptp, on, period);
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cq.c | 170 u16 count, u16 period) 182 cq_context->cq_period = cpu_to_be16(period); 169 mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, u16 count, u16 period) argument
|
H A D | en_netdev.c | 1453 unsigned long period = (unsigned long) (jiffies - priv->last_moder_jiffies); local 1465 if (!priv->adaptive_rx_coal || period < priv->sample_interval * HZ) 1477 rate = packets * HZ / period;
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.c | 548 ts.tv_nsec = rq->perout.period.nsec; 549 ts.tv_sec = rq->perout.period.sec; 576 * pulse period as default 578 ts.tv_sec = rq->perout.period.sec; 579 ts.tv_nsec = rq->perout.period.nsec; 597 u64 *period, u64 *time_stamp) 603 ts.tv_sec = rq->perout.period.sec; 604 ts.tv_nsec = rq->perout.period.nsec; 606 mlx5_core_err(mdev, "NPPS period is lower than minimal npps period 595 perout_conf_npps_real_time(struct mlx5_core_dev *mdev, struct ptp_clock_request *rq, u32 *field_select, u32 *out_pulse_duration_ns, u64 *period, u64 *time_stamp) argument [all...] |
/linux-master/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1287 * @period: Timer period in jiffies. 1293 int period; member in struct:ksz_timer_info 3958 static void ksz_init_timer(struct ksz_timer_info *info, int period, argument 3962 info->period = period; 3971 info->timer.expires = jiffies + info->period; 3976 info->timer.expires = jiffies + info->period; 5178 hw_priv->mib_timer_info.period); 5184 priv->monitor_timer_info.period); [all...] |
/linux-master/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 519 period_sec = perout_request->period.sec; 520 period_sec += perout_request->period.nsec / 1000000000; 521 period_nsec = perout_request->period.nsec % 1000000000; 531 ts_period.tv_sec = perout_request->period.sec; 532 ts_period.tv_nsec = perout_request->period.nsec; 537 "perout period too small, minimum is 200nS\n"); 543 "pulse width must be smaller than period\n"); 548 /* Check if we can do 50% toggle on an even value of period. 549 * If the period number is odd, then check if the requested 558 /* In this case, divide period valu [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ptp.c | 839 if (rq->perout.period.sec == 1 && 840 rq->perout.period.nsec == 0) 885 ts_period.tv_sec = rq->perout.period.sec; 886 ts_period.tv_nsec = rq->perout.period.nsec; 1111 /* This represents the system clock period in picoseconds */
|
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_ptp.c | 230 ts_period.tv_sec = rq->perout.period.sec; 231 ts_period.tv_nsec = rq->perout.period.nsec;
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_ptp.c | 249 * Drift period - adjustment happens once in certain number of nano seconds. 256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; local 274 period = div_s64(val * 1000000000, ppb); 275 period -= 8; 276 period >>= 4; 277 if (period < 1) 278 period = 1; 279 if (period > 0xFFFFFFE) 280 period = 0xFFFFFFE; 283 approx_dev = period * 1 [all...] |
/linux-master/drivers/net/ethernet/renesas/ |
H A D | ravb.h | 1026 u32 period; member in struct:ravb_ptp_perout
|
H A D | ravb_ptp.c | 228 period_ns = req->period.sec * NSEC_PER_SEC + req->period.nsec; 238 "ptp: period value (nsec) is over limit. Maximum size of period is only 32 bits\n"); 246 perout->period = (u32)period_ns; 259 perout->period = 0; 316 if (perout->period) { 317 perout->target += perout->period;
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | mcdi_port_common.c | 1163 int period = action == EFX_STATS_ENABLE ? 1000 : 0; local 1178 MAC_STATS_IN_PERIOD_MS, period);
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_port_common.c | 1159 int period = action == EFX_STATS_ENABLE ? 1000 : 0; local 1174 MAC_STATS_IN_PERIOD_MS, period);
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac5.c | 526 u64 period; local 554 period = cfg->period.tv_sec * 1000000000; 555 period += cfg->period.tv_nsec; 557 do_div(period, sub_second_inc); 559 if (period <= 1) 562 writel(period - 1, ioaddr + MAC_PPSx_INTERVAL(index)); 564 period >>= 1; 565 if (period < [all...] |
H A D | dwxgmac2_core.c | 1234 u64 period; local 1273 period = cfg->period.tv_sec * 1000000000; 1274 period += cfg->period.tv_nsec; 1276 do_div(period, sub_second_inc); 1278 if (period <= 1) 1281 writel(period - 1, ioaddr + XGMAC_PPSx_INTERVAL(index)); 1283 period >>= 1; 1284 if (period < [all...] |
H A D | stmmac.h | 177 struct timespec64 period; member in struct:stmmac_pps_cfg
|
H A D | stmmac_ptp.c | 18 * @scaled_ppm: desired period change in scaled parts per million 184 cfg->period.tv_sec = rq->perout.period.sec; 185 cfg->period.tv_nsec = rq->perout.period.nsec;
|
/linux-master/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 459 * (cpts->ts_add_val + 1) ns, so GenF length PPM adj period 474 * with old for short period of time 643 ts.tv_sec = req->period.sec; 644 ts.tv_nsec = req->period.nsec; 714 rq.perout.period.sec = 1; 715 rq.perout.period.nsec = 0;
|
/linux-master/drivers/net/ethernet/ti/icssg/ |
H A D | icss_iep.c | 123 u64 period; member in struct:icss_iep 464 p_ns = iep->period; 465 /* Round up to next period boundary */ 516 iep->period = ((u64)req->period.sec * NSEC_PER_SEC) + 517 req->period.nsec; 518 start_ns = ((u64)req->period.sec * NSEC_PER_SEC) 519 + req->period.nsec; 598 rq.perout.period.sec = 1; 599 rq.perout.period [all...] |
H A D | icssg_prueth.c | 376 ts.tv_sec = req->period.sec; 377 ts.tv_nsec = req->period.nsec; 380 /* f/w doesn't support period less than cycle time */
|
/linux-master/drivers/net/phy/ |
H A D | bcm-phy-ptp.c | 588 u64 period, pulse; local 595 if (req->period.sec != 1 || req->period.nsec != 0) 598 period = BCM_MAX_PERIOD_8NS; /* write nonzero value */ 611 if (!pulse || pulse > period || pulse > BCM_MAX_PULSE_8NS) 614 bcm_phy_write_exp(phydev, SYNC_OUT_0, period); 616 val = ((pulse & 0x3) << 14) | ((period >> 16) & 0x3fff);
|
H A D | dp83640.c | 340 pwidth = clkreq->perout.period.sec * 1000000000UL; 341 pwidth += clkreq->perout.period.nsec;
|