/kernel/linux/linux-5.10/drivers/ptp/ |
D | ptp_chardev.c | 36 rq.perout.index = chan; in ptp_disable_pinfunc() 189 if (copy_from_user(&req.perout, (void __user *)arg, in ptp_ioctl() 190 sizeof(req.perout))) { in ptp_ioctl() 195 struct ptp_perout_request *perout = &req.perout; in ptp_ioctl() local 197 if (perout->flags & ~PTP_PEROUT_VALID_FLAGS) { in ptp_ioctl() 206 if (!(perout->flags & PTP_PEROUT_DUTY_CYCLE) && in ptp_ioctl() 207 (perout->rsv[0] || perout->rsv[1] || in ptp_ioctl() 208 perout->rsv[2] || perout->rsv[3])) { in ptp_ioctl() 212 if (perout->flags & PTP_PEROUT_DUTY_CYCLE) { in ptp_ioctl() 214 if (perout->on.sec > perout->period.sec || in ptp_ioctl() [all …]
|
D | ptp_sysfs.c | 105 cnt = sscanf(buf, "%u %lld %u %lld %u", &req.perout.index, in period_store() 106 &req.perout.start.sec, &req.perout.start.nsec, in period_store() 107 &req.perout.period.sec, &req.perout.period.nsec); in period_store() 110 if (req.perout.index >= ops->n_per_out) in period_store() 113 enable = req.perout.period.sec || req.perout.period.nsec; in period_store()
|
D | ptp_clockmatrix.c | 1201 struct ptp_perout_request *perout) in idtcm_perout_enable() argument 1203 unsigned int flags = perout->flags; in idtcm_perout_enable() 1209 return idtcm_output_enable(channel, enable, perout->index); in idtcm_perout_enable() 1541 err = idtcm_perout_enable(channel, false, &rq->perout); in idtcm_enable() 1551 if (rq->perout.start.nsec || rq->perout.period.sec != 1 || in idtcm_enable() 1552 rq->perout.period.nsec) in idtcm_enable() 1555 err = idtcm_perout_enable(channel, true, &rq->perout); in idtcm_enable()
|
D | ptp_idt82p33.c | 665 else if (rq->perout.start.nsec || rq->perout.period.sec != 1 || in idt82p33_enable() 666 rq->perout.period.nsec) { in idt82p33_enable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 217 struct ravb_ptp_perout *perout; in ravb_ptp_perout() local 249 perout = &priv->ptp.perout[req->index]; in ravb_ptp_perout() 250 perout->target = (u32)start_ns; in ravb_ptp_perout() 251 perout->period = (u32)period_ns; in ravb_ptp_perout() 263 perout = &priv->ptp.perout[req->index]; in ravb_ptp_perout() 264 perout->period = 0; in ravb_ptp_perout() 284 return ravb_ptp_perout(ptp, &req->perout, on); in ravb_ptp_enable() 319 struct ravb_ptp_perout *perout = priv->ptp.perout; in ravb_ptp_interrupt() local 321 if (perout->period) { in ravb_ptp_interrupt() 322 perout->target += perout->period; in ravb_ptp_interrupt() [all …]
|
D | ravb.h | 984 struct ravb_ptp_perout perout[N_PER_OUT]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 199 if (rq->perout.flags & ~(PTP_PEROUT_DUTY_CYCLE | in ocelot_ptp_enable() 204 rq->perout.index); in ocelot_ptp_enable() 216 ts_period.tv_sec = rq->perout.period.sec; in ocelot_ptp_enable() 217 ts_period.tv_nsec = rq->perout.period.nsec; in ocelot_ptp_enable() 231 if (rq->perout.flags & PTP_PEROUT_PHASE) { in ocelot_ptp_enable() 232 ts_phase.tv_sec = rq->perout.phase.sec; in ocelot_ptp_enable() 233 ts_phase.tv_nsec = rq->perout.phase.nsec; in ocelot_ptp_enable() 236 ts_phase.tv_sec = rq->perout.start.sec; in ocelot_ptp_enable() 237 ts_phase.tv_nsec = rq->perout.start.nsec; in ocelot_ptp_enable() 248 if (rq->perout.flags & PTP_PEROUT_DUTY_CYCLE) { in ocelot_ptp_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.c | 458 struct lan743x_ptp_perout *perout = &ptp->perout[index]; in lan743x_ptp_perout_off() local 460 if (perout->gpio_pin >= 0) { in lan743x_ptp_perout_off() 461 lan743x_gpio_release(adapter, perout->gpio_pin); in lan743x_ptp_perout_off() 462 perout->gpio_pin = -1; in lan743x_ptp_perout_off() 465 if (perout->event_ch >= 0) { in lan743x_ptp_perout_off() 468 PTP_CLOCK_TARGET_SEC_X(perout->event_ch), in lan743x_ptp_perout_off() 471 PTP_CLOCK_TARGET_NS_X(perout->event_ch), in lan743x_ptp_perout_off() 476 (perout->event_ch); in lan743x_ptp_perout_off() 478 lan743x_ptp_release_event_ch(adapter, perout->event_ch); in lan743x_ptp_perout_off() 479 perout->event_ch = -1; in lan743x_ptp_perout_off() [all …]
|
D | lan743x_ptp.h | 74 struct lan743x_ptp_perout perout[LAN743X_PTP_N_PEROUT]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 144 if (rq->perout.flags) in stmmac_enable() 147 cfg = &priv->pps[rq->perout.index]; in stmmac_enable() 149 cfg->start.tv_sec = rq->perout.start.sec; in stmmac_enable() 150 cfg->start.tv_nsec = rq->perout.start.nsec; in stmmac_enable() 151 cfg->period.tv_sec = rq->perout.period.sec; in stmmac_enable() 152 cfg->period.tv_nsec = rq->perout.period.nsec; in stmmac_enable() 156 rq->perout.index, cfg, on, in stmmac_enable()
|
/kernel/linux/linux-5.10/tools/testing/selftests/ptp/ |
D | testptp.c | 185 int64_t perout = -1; in main() local 227 perout = atoll(optarg); in main() 406 if (pulsewidth >= 0 && perout < 0) { in main() 411 if (perout_phase >= 0 && perout < 0) { in main() 416 if (perout >= 0) { in main() 423 perout_request.period.sec = perout / NSEC_PER_SEC; in main() 424 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 568 if (rq->perout.flags) in igb_ptp_feature_enable_i210() 573 rq->perout.index); in igb_ptp_feature_enable_i210() 577 ts.tv_sec = rq->perout.period.sec; in igb_ptp_feature_enable_i210() 578 ts.tv_nsec = rq->perout.period.nsec; in igb_ptp_feature_enable_i210() 588 if (rq->perout.index == 1) { in igb_ptp_feature_enable_i210() 614 if (rq->perout.index == 1) { in igb_ptp_feature_enable_i210() 622 int i = rq->perout.index; in igb_ptp_feature_enable_i210() 624 igb->perout[i].start.tv_sec = rq->perout.start.sec; in igb_ptp_feature_enable_i210() 625 igb->perout[i].start.tv_nsec = rq->perout.start.nsec; in igb_ptp_feature_enable_i210() 626 igb->perout[i].period.tv_sec = ts.tv_sec; in igb_ptp_feature_enable_i210() [all …]
|
D | igb.h | 638 } perout[IGB_N_PEROUT]; member
|
D | igb_main.c | 6785 ts = timespec64_add(adapter->perout[0].start, in igb_tsync_interrupt() 6786 adapter->perout[0].period); in igb_tsync_interrupt() 6793 adapter->perout[0].start = ts; in igb_tsync_interrupt() 6800 ts = timespec64_add(adapter->perout[1].start, in igb_tsync_interrupt() 6801 adapter->perout[1].period); in igb_tsync_interrupt() 6807 adapter->perout[1].start = ts; in igb_tsync_interrupt()
|
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 674 struct ptp_perout_request *perout, in sja1105_per_out_enable() argument 683 if (perout->index != 0) in sja1105_per_out_enable() 687 if (perout->flags) in sja1105_per_out_enable() 698 .tv_sec = perout->period.sec, in sja1105_per_out_enable() 699 .tv_nsec = perout->period.nsec, in sja1105_per_out_enable() 702 .tv_sec = perout->start.sec, in sja1105_per_out_enable() 703 .tv_nsec = perout->start.nsec, in sja1105_per_out_enable() 804 rc = sja1105_per_out_enable(priv, &req->perout, on); in sja1105_ptp_enable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 332 if (rq->perout.flags) in mlx5_perout_configure() 335 if (rq->perout.index >= clock->ptp_info.n_pins) in mlx5_perout_configure() 339 rq->perout.index); in mlx5_perout_configure() 346 ts.tv_sec = rq->perout.period.sec; in mlx5_perout_configure() 347 ts.tv_nsec = rq->perout.period.nsec; in mlx5_perout_configure() 353 ts.tv_sec = rq->perout.start.sec; in mlx5_perout_configure() 354 ts.tv_nsec = rq->perout.start.nsec; in mlx5_perout_configure()
|
/kernel/linux/linux-5.10/include/linux/ |
D | ptp_clock_kernel.h | 24 struct ptp_perout_request perout; member
|
/kernel/linux/linux-5.10/drivers/net/phy/ |
D | dp83640.c | 330 sec = clkreq->perout.start.sec; in periodic_output() 331 nsec = clkreq->perout.start.nsec; in periodic_output() 332 pwidth = clkreq->perout.period.sec * 1000000000UL; in periodic_output() 333 pwidth += clkreq->perout.period.nsec; in periodic_output() 509 if (rq->perout.flags) in ptp_dp83640_enable() 511 if (rq->perout.index >= N_PER_OUT) in ptp_dp83640_enable() 513 return periodic_output(clock, rq, on, rq->perout.index); in ptp_dp83640_enable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ptp.c | 393 struct ptp_clock_time *t = &rq->perout.period; in aq_ptp_perout_pin_configure() 394 struct ptp_clock_time *s = &rq->perout.start; in aq_ptp_perout_pin_configure() 397 u32 pin_index = rq->perout.index; in aq_ptp_perout_pin_configure()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
D | am65-cpts.c | 605 return am65_cpts_perout_enable(cpts, &rq->perout, on); in am65_cpts_ptp_enable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
D | tg3.c | 6278 if (rq->perout.flags) in tg3_ptp_enable() 6281 if (rq->perout.index != 0) in tg3_ptp_enable() 6291 nsec = rq->perout.start.sec * 1000000000ULL + in tg3_ptp_enable() 6292 rq->perout.start.nsec; in tg3_ptp_enable() 6294 if (rq->perout.period.sec || rq->perout.period.nsec) { in tg3_ptp_enable()
|