Home
last modified time | relevance | path

Searched full:phc (Results 1 – 25 of 78) sorted by relevance

1234

/linux/drivers/ptp/
H A Dptp_mock.c51 struct mock_phc *phc = info_to_phc(info); in mock_phc_adjfine() local
57 spin_lock(&phc->lock); in mock_phc_adjfine()
58 timecounter_read(&phc->tc); in mock_phc_adjfine()
59 phc->cc.mult = MOCK_PHC_CC_MULT + adj; in mock_phc_adjfine()
60 spin_unlock(&phc->lock); in mock_phc_adjfine()
67 struct mock_phc *phc = info_to_phc(info); in mock_phc_adjtime() local
69 spin_lock(&phc->lock); in mock_phc_adjtime()
70 timecounter_adjtime(&phc->tc, delta); in mock_phc_adjtime()
71 spin_unlock(&phc->lock); in mock_phc_adjtime()
79 struct mock_phc *phc = info_to_phc(info); in mock_phc_settime64() local
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c268 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_set() local
311 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_set()
312 phc->hwtstamp_config = *cfg; in lan966x_ptp_hwtstamp_set()
322 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_get() local
324 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_get()
325 *cfg = phc->hwtstamp_config; in lan966x_ptp_hwtstamp_get()
568 struct lan966x_phc *phc; in lan966x_ptp_ext_irq_handler() local
582 phc = &lan966x->phc[i]; in lan966x_ptp_ext_irq_handler()
583 pin = ptp_find_pin_unlocked(phc->clock, PTP_PF_EXTTS, 0); in lan966x_ptp_ext_irq_handler()
616 ptp_clock_event(phc->clock, &ptp_event); in lan966x_ptp_ext_irq_handler()
[all …]
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_phc.c76 /* Enable/Disable PHC by the kernel, affects on the next init flow */
89 /* Check if PHC is enabled by the kernel */
97 /* PHC is activated if ptp clock is registered in the kernel */
115 /* PHC may already be registered in case of a reset */ in ena_phc_register()
145 /* During reset flow, PHC must stay registered in ena_phc_unregister()
146 * to keep kernel's PHC index in ena_phc_unregister()
157 /* Allocate driver specific PHC info */ in ena_phc_alloc()
181 /* Validate PHC feature is supported in the device */ in ena_phc_init()
183 netdev_dbg(netdev, "PHC feature is not supported by the device\n"); in ena_phc_init()
187 /* Validate PHC feature is enabled by the kernel */ in ena_phc_init()
[all …]
H A Dena_debugfs.c22 adapter->ena_dev->phc.stats.phc_cnt); in phc_stats_show()
25 adapter->ena_dev->phc.stats.phc_exp); in phc_stats_show()
28 adapter->ena_dev->phc.stats.phc_skp); in phc_stats_show()
31 adapter->ena_dev->phc.stats.phc_err_dv); in phc_stats_show()
34 adapter->ena_dev->phc.stats.phc_err_ts); in phc_stats_show()
H A Dena_com.h269 /* PTP hardware clock (PHC) MMIO read data info */
271 /* Internal PHC statistics */
274 /* PHC shared memory - virtual address */
277 /* System time of last PHC request */
280 /* Spin lock to ensure a single outstanding PHC read */
283 /* PHC doorbell address as an offset to PCIe MMIO REG BAR */
287 * Max time for valid PHC retrieval, passing this threshold will fail
288 * the get time request and block new PHC requests for block_timeout_usec
294 * PHC requests block period, blocking starts once PHC request expired
296 * any PHC requests during block period will be skipped
[all …]
H A Dena_admin_defs.h956 * 8 : phc
1038 /* PHC type as defined in enum ena_admin_get_phc_type,
1046 /* PHC doorbell address as an offset to PCIe MMIO REG BAR,
1051 /* Max time for valid PHC retrieval, passing this threshold will
1052 * fail the get-time request and block PHC requests for
1057 /* PHC requests block period, blocking starts if PHC request expired
1063 /* Shared PHC physical address (ena_admin_phc_resp),
1068 /* Shared PHC Size (ena_admin_phc_resp),
1104 struct ena_admin_feature_phc_desc phc; member
1139 /* PHC configuration */
[all …]
H A Dena_phc.h21 /* PHC lock */
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ptp.c166 * iavf_send_phc_read - Send request to read PHC time
171 * indirectly read the PHC time.
195 * iavf_read_phc_indirect - Indirectly read the PHC time via virtchnl
200 * Used when the device does not have direct register access to the PHC time.
262 * iavf_ptp_cache_phc_time - Cache PHC time for performing timestamp extension
265 * Periodically cache the PHC time in order to allow for timestamp extension.
296 * event. This task periodically reads the PHC time and stores it, to
418 bool phc = iavf_ptp_cap_supported(adapter, VIRTCHNL_1588_PTP_CAP_READ_PHC); in iavf_ptp_process_caps() local
424 if (adapter->ptp.clock && !phc) in iavf_ptp_process_caps()
426 else if (!adapter->ptp.clock && phc) in iavf_ptp_process_caps()
[all …]
/linux/include/linux/
H A Dptp_mock.h17 void mock_phc_destroy(struct mock_phc *phc);
18 int mock_phc_index(struct mock_phc *phc);
27 static inline void mock_phc_destroy(struct mock_phc *phc) in mock_phc_destroy() argument
31 static inline int mock_phc_index(struct mock_phc *phc) in mock_phc_index() argument
/linux/Documentation/ABI/testing/
H A Dsysfs-timecard17 Description: (RO) The list of available time sources that the PHC
58 PHC output PPS is from the PHC clock
62 IRIG output is from the PHC, in IRIG-B format
63 DCF output is from the PHC, in DCF format
76 the PHC. May be changed by writing one of the listed
246 Description: (RW) When retrieving the PHC with the PTP SYS_OFFSET_EXTENDED
247 ioctl, a system timestamp is made before and after the PHC
250 with the PHC time. This estimate may be wrong, as it depends
251 on PCI latencies, and when the PHC time was latched
255 retrieved PHC time.
[all …]
/linux/Documentation/driver-api/
H A Dptp.rst80 This function has a set of requirements from the PHC in order to be
83 * The PHC implements a servo algorithm internally that is used to
85 * When other PTP adjustment functions are called, the PHC servo
89 that 'jumps' the PHC clock time based on the provided offset. It
117 - Up to 4 independent PHC channels
124 … - Lock to GNSS input, automatic switching between GNSS and user-space PHC control (optional)
135 - PHC instances
/linux/Documentation/networking/device_drivers/ethernet/amazon/
H A Dena.rst59 ena_phc.[ch] PTP hardware clock infrastructure (see `PHC`_ for more info)
227 .. _`PHC`: target in RX copybreak
229 PTP Hardware Clock (PHC)
236 **PHC support**
238 PHC depends on the PTP module, which needs to be either loaded as a module or compiled into the ker…
246 - If no output is provided, the ENA driver cannot be loaded with PHC support.
248 **PHC activation**
269 PHC support and capabilities can be verified using ethtool:
275 **PHC timestamp**
277 To retrieve PHC timestamp, use `ptp-userspace-api`_, usage example using `testptp`_:
[all …]
/linux/Documentation/translations/zh_CN/networking/
H A Dtimestamping.rst550 在数据包的路径中可能存在多个 PHC(PTP 硬件时钟)。内核没有明确的机制允许用
551 户选择用于时间戳以太网帧的 PHC。相反,假设最外层的 PHC 始终是最优的,并且
552 内核驱动程序协作以实现这一目标。目前有 3 种堆叠 PHC 的情况,如下所示:
567 己的PHC)。典型地,但不是强制性地,所有DSA 交换机接口共享相同的 PHC
649 堆叠 PHC 可能会暴露 MAC 驱动程序的错误,这些错误在未堆叠 PHC 时无法触发。一个
655 序还是 MII 总线嗅探设备驱动程序,都应该设置此标志。但一个未意识到 PHC 堆叠的
662 |= SKBTX_IN_PROGRESS``" 标志。注意:如上所述,在堆叠 PHC 系统中,此条件
663 不应触发,因为此 MAC 肯定不是最外层的 PHC。但这是典型的错误所在。传输继续
668 SKBTX_IN_PROGRESS``" 是否设置。在堆叠 PHC 系统中,这是错误的,因为此 MAC
674 外层 PHC 启用,此增强检查将避免向用户空间传递重复的 TX 时间戳。
/linux/drivers/mfd/
H A Drsmu_core.c27 .name = "8a3400x-phc",
36 .name = "82p33x1x-phc",
45 .name = "8v19n85x-phc",
/linux/drivers/net/ethernet/intel/e1000e/
H A Dptp.c4 /* PTP 1588 Hardware Clock (PHC)
22 * Adjust the frequency of the PHC cycle counter by the indicated delta from
156 * @ts: timespec structure to hold the current PHC time
216 * Enable (or disable) ancillary features of the PHC subsystem.
333 e_info("registered PHC clock\n"); in e1000e_ptp_init()
353 e_info("removed PHC\n"); in e1000e_ptp_remove()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c93 mlx4_info(mdev, "removed PHC\n"); in mlx4_en_remove_timestamp()
123 * Adjust the frequency of the PHC cycle counter by the indicated scaled_ppm
220 * Enable (or disable) ancillary features of the PHC subsystem.
288 /* Configure the PHC */ in mlx4_en_init_timestamp()
298 mlx4_info(mdev, "registered PHC clock\n"); in mlx4_en_init_timestamp()
/linux/include/uapi/linux/
H A Dnet_tstamp.h100 * PHC index. Note this PHC index is not stable as when there
102 * will be the PHC index.
/linux/tools/testing/selftests/ptp/
H A Dtestptp.c129 " -k val measure the time offset between system and phc clock\n" in usage()
139 " -o val phase offset (in nanoseconds) to be provided to the PHC servo\n" in usage()
570 puts("system and phc clock time offset request okay"); in main()
582 printf("phc time: %lld.%09u\n", in main()
586 printf("system/phc clock time offset is %" PRId64 " ns\n" in main()
630 printf(" phc time: %lld.%09u\n", in main()
667 puts("system and phc crosstimestamping request okay"); in main()
H A DMakefile5 TEST_PROGS = phc.sh
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_ptp.c121 /* Enable (or disable) ancillary features of the phc subsystem */
132 DP_ERR(edev, "PHC ancillary features are not supported\n"); in qede_ptp_ancillary_feature_enable()
183 /* Read the PHC. This API is invoked with ptp_lock held. */
195 WARN_ONCE(1, "PHC read err %d\n", rc); in qede_ptp_read_cc()
197 DP_VERBOSE(edev, QED_MSG_DEBUG, "PHC read cycles = %llu\n", phc_cycles); in qede_ptp_read_cc()
/linux/Documentation/devicetree/bindings/ptp/
H A Dptp-idt82p33.yaml41 phc@51 {
H A Dptp-idtcm.yaml65 phc@5b {
/linux/net/mac802154/
H A Dcfg.c335 "Device %8phC is already associated\n", &ceaddr); in mac802154_associate()
408 "Disassociation with %8phC may have failed (%d)\n", in mac802154_disassociate_from_parent()
420 "Disassociation from %8phC may have failed (%d)\n", in mac802154_disassociate_from_parent()
486 "Device %8phC is not associated with us\n", &teaddr); in mac802154_disassociate()
/linux/Documentation/devicetree/bindings/net/
H A Dfsl,fman.yaml135 '^phc@[a-f0-9]+$':
199 ptp_timer: phc@fe000 {
/linux/drivers/scsi/qla2xxx/
H A Dqla_target.c535 "Async done-%s res %x %8phC type %d\n", in qla2x00_async_nack_sp_done()
552 "%s %8phC edif: PLOGI- AUTH WAIT\n", __func__, in qla2x00_async_nack_sp_done()
635 "Async-%s %8phC hndl %x %s\n", in qla24xx_async_notify_ack()
733 "%s: kref_get fail sess %8phC \n", in qlt_fc_port_added()
740 "qla_target(%u): %ssession for port %8phC " in qlt_fc_port_added()
755 "port %8phC (loop ID %d) became global\n", vha->vp_idx, in qlt_fc_port_added()
780 "%s %d %8phC Term INOT due to new INOT", in qlt_plogi_ack_find_add()
819 "Sending PLOGI ACK to wwn %8phC s_id %02x:%02x:%02x loop_id %#04x" in qlt_plogi_ack_unref()
860 "Linking sess %p [%d] wwn %8phC with PLOGI ACK to wwn %8phC" in qlt_plogi_ack_link()
953 "%s: se_sess %p / sess %p from port %8phC loop_id %#04x" in qlt_free_session_done()
[all …]

1234