Home
last modified time | relevance | path

Searched full:ptm (Results 1 – 25 of 105) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/pci/pcie/
Dptm.c13 * If the next upstream device supports PTM, return it; otherwise return
14 * NULL. PTM Messages are local, so both link partners must support it.
21 * Switch Downstream Ports are not permitted to have a PTM in pci_upstream_ptm()
22 * capability; their PTM behavior is controlled by the Upstream in pci_upstream_ptm()
36 * Find the PTM Capability (if present) and extract the information we need
41 u16 ptm; in pci_ptm_init() local
48 ptm = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_PTM); in pci_ptm_init()
49 if (!ptm) in pci_ptm_init()
52 dev->ptm_cap = ptm; in pci_ptm_init()
55 pci_read_config_dword(dev, ptm + PCI_PTM_CAP, &cap); in pci_ptm_init()
[all …]
DKconfig134 This enables PCI Express Precision Time Measurement (PTM)
137 This is only useful if you have devices that support PTM, but it
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-bus-coresight-devices-etm3x1 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/enable_source
11 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_idx
18 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_acctype
29 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_range
37 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_single
45 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_start
53 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_stop
61 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_idx
67 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_event
74 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_val
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-coresight-devices-etm3x1 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/enable_source
11 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_idx
18 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_acctype
29 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_range
37 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_single
45 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_start
53 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_stop
61 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_idx
67 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_event
74 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_val
[all …]
/kernel/linux/linux-5.10/drivers/pci/pcie/
Dptm.c28 pci_info(dev, "PTM enabled%s, %s granularity\n", in pci_ptm_info()
43 * Enable PTM only on interior devices (root ports, switch ports, in pci_ptm_init()
52 * Switch Downstream Ports are not permitted to have a PTM in pci_ptm_init()
53 * capability; their PTM behavior is controlled by the Upstream in pci_ptm_init()
72 * There's no point in enabling PTM unless it's enabled in the in pci_ptm_init()
73 * upstream device or this device can be a PTM Root itself. Per in pci_ptm_init()
75 * furthest upstream Time Source as the PTM Root. in pci_ptm_init()
117 * For a PCIe Endpoint, PTM is only useful if the endpoint can in pci_enable_ptm()
118 * issue PTM requests to upstream devices that have PTM enabled. in pci_enable_ptm()
DKconfig130 This enables PCI Express Precision Time Measurement (PTM)
133 This is only useful if you have devices that support PTM, but it
/kernel/liteos_m/testsuites/unittest/fuzz/src/time/
Dmktime_fuzz.c47 struct tm *ptm = NULL; in MktimeFuzzTest() local
61 ptm = localtime(&timeValue); in MktimeFuzzTest()
62 if (ptm == NULL) { in MktimeFuzzTest()
63 printf("Fuzz test in line [%d] mktime ptm == NULL,count:%d.\n", __LINE__, i); in MktimeFuzzTest()
71 ptm->tm_sec += c; in MktimeFuzzTest()
72 (void)mktime(ptm); in MktimeFuzzTest()
Dstrftime_fuzz.c49 struct tm *ptm = NULL; in StrftimeFuzzTest() local
63 ptm = localtime(&timeValue); in StrftimeFuzzTest()
64 if (ptm == NULL) { in StrftimeFuzzTest()
65 printf("Fuzz test in line [%d] strftime ptm == NULL,count:%d.\n", __LINE__, i); in StrftimeFuzzTest()
72 ptm->tm_sec += c; in StrftimeFuzzTest()
73 (void)strftime(s, MAX_S_LEN, "%Y-%m-%d %H:%M:%S.%f", ptm); in StrftimeFuzzTest()
/kernel/linux/linux-6.6/arch/arm/boot/dts/hisilicon/
Dhip04.dtsi732 ptm@0,e3c7c000 {
748 ptm@0,e3c7d000 {
764 ptm@0,e3c7e000 {
780 ptm@0,e3c7f000 {
796 ptm@0,e3cbc000 {
812 ptm@0,e3cbd000 {
828 ptm@0,e3cbe000 {
844 ptm@0,e3cbf000 {
860 ptm@0,e3cfc000 {
876 ptm@0,e3cfd000 {
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dhip04.dtsi732 ptm@0,e3c7c000 {
748 ptm@0,e3c7d000 {
764 ptm@0,e3c7e000 {
780 ptm@0,e3c7f000 {
796 ptm@0,e3cbc000 {
812 ptm@0,e3cbd000 {
828 ptm@0,e3cbe000 {
844 ptm@0,e3cbf000 {
860 ptm@0,e3cfc000 {
876 ptm@0,e3cfd000 {
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
Digc_ptp.c885 * PCIe PTM:
887 * 1. We have an way to convert the timestamps in the PTM messages
891 * 2. We have PTM enabled in the path from the device to the PCIe root port.
898 /* FIXME: it was noticed that enabling support for PCIe PTM in in igc_is_crosststamp_supported()
926 netdev_err(netdev, "PTM Error: Root port timeout\n"); in igc_ptm_log_error()
929 netdev_err(netdev, "PTM Error: Bad response, PTM Response Data expected\n"); in igc_ptm_log_error()
932 netdev_err(netdev, "PTM Error: T4 minus T1 overflow\n"); in igc_ptm_log_error()
935 netdev_err(netdev, "PTM Error: 1588 timer adjusted during first PTM cycle\n"); in igc_ptm_log_error()
938 netdev_err(netdev, "PTM Error: 1588 timer adjusted during non-first PTM cycle\n"); in igc_ptm_log_error()
941 netdev_err(netdev, "PTM Error: Unknown error (%#x)\n", ptm_stat); in igc_ptm_log_error()
[all …]
Digc_defines.h552 /* PCIe PTM Control */
553 #define IGC_PTM_CTRL_START_NOW BIT(29) /* Start PTM Now */
554 #define IGC_PTM_CTRL_EN BIT(30) /* Enable PTM */
555 #define IGC_PTM_CTRL_TRIG BIT(31) /* PTM Cycle trigger */
560 #define IGC_PTM_CYC_TIME_DEFAULT 5 /* Default PTM cycle time */
561 #define IGC_PTM_TIMEOUT_DEFAULT 255 /* Default timeout for PTM errors */
571 /* PCIe PTM Status */
572 #define IGC_PTM_STAT_VALID BIT(0) /* PTM Status */
574 #define IGC_PTM_STAT_BAD_PTM_RES BIT(2) /* PTM Response msg instead of PTM Response Data */
576 #define IGC_PTM_STAT_ADJUST_1ST BIT(4) /* 1588 timer adjusted during 1st PTM cycle */
[all …]
Digc_regs.h264 #define IGC_PTM_CTRL 0x12540 /* PTM Control */
265 #define IGC_PTM_STAT 0x12544 /* PTM Status */
266 #define IGC_PTM_CYCLE_CTRL 0x1254C /* PTM Cycle Control */
268 /* PTM Time registers */
276 #define IGC_PTM_PREV_T4M1 0x12578 /* T4 Minus T1 on previous PTM Cycle */
277 #define IGC_PTM_CURR_T4M1 0x1257C /* T4 Minus T1 on this PTM Cycle */
278 #define IGC_PTM_PREV_T3M2 0x12580 /* T3 Minus T2 on previous PTM Cycle */
279 #define IGC_PTM_TDELAY 0x12594 /* PTM PCIe Link Delay */
/kernel/linux/linux-5.10/arch/sh/include/cpu-sh4/cpu/
Dsh7724.h65 /* PTM */
148 /* LCDC (PTC/PTD/PTE/PTF/PTM/PTR) */
159 /* SCIF0 (PTF/PTM) */
220 /* VOU (PTL/PTM/PTN*/
227 /* MSIOF0 (PTL/PTM) */
/kernel/linux/linux-6.6/arch/sh/include/cpu-sh4/cpu/
Dsh7724.h65 /* PTM */
148 /* LCDC (PTC/PTD/PTE/PTF/PTM/PTR) */
159 /* SCIF0 (PTF/PTM) */
220 /* VOU (PTL/PTM/PTN*/
227 /* MSIOF0 (PTL/PTM) */
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/arm/
Darm,coresight-etm.yaml91 Must be present if the system accesses ETM/PTM management registers via
128 ptm@2201c000 {
144 ptm@2201d000 {
/kernel/linux/linux-6.6/tools/include/linux/
Dcoresight-pmu.h28 * Most of them are orignally from ETMv3.5/PTM's ETMCR config, therefore,
29 * ETMv3.5/PTM doesn't define ETMCR config bits with prefix "ETM3_" and
/kernel/linux/linux-6.6/include/linux/
Dcoresight-pmu.h28 * Most of them are orignally from ETMv3.5/PTM's ETMCR config, therefore,
29 * ETMv3.5/PTM doesn't define ETMCR config bits with prefix "ETM3_" and
/kernel/linux/linux-5.10/Documentation/trace/coresight/
Dcoresight.rst41 | # ETM # ::::: | # PTM # ::::: ::::: @ |
77 ; PTM = Program Trace Macrocell
89 the basic tracing functionality, enabling components such ETM/PTM, funnel,
99 PTM:
157 replicator 20030000.tpiu 2201c000.ptm 2203c000.etm 2203e000.etm
158 20010000.etb 20040000.funnel 2201d000.ptm 2203d000.etm
349 replicator 20030000.tpiu 2201c000.ptm 2203c000.etm 2203e000.etm
350 20010000.etb 20040000.funnel 2201d000.ptm 2203d000.etm
363 root:/sys/bus/coresight/devices# echo 1 > 2201c000.ptm/enable_source
364 root:/sys/bus/coresight/devices# cat 2201c000.ptm/enable_source
[all …]
/kernel/linux/linux-6.6/scripts/kconfig/
Dconf.c181 int ptm = 33; /* probability of tristate = m */ in conf_set_all_new_symbols() local
207 ptm = pby / 2; in conf_set_all_new_symbols()
208 pty = pby - ptm; in conf_set_all_new_symbols()
212 ptm = p[1]; in conf_set_all_new_symbols()
213 pby = pty + ptm; in conf_set_all_new_symbols()
218 ptm = p[2]; in conf_set_all_new_symbols()
222 if (pty + ptm > 100) { in conf_set_all_new_symbols()
252 else if (cnt < pty + ptm) in conf_set_all_new_symbols()
/kernel/linux/linux-6.6/Documentation/trace/coresight/
Dcoresight.rst41 | # ETM # ::::: | # PTM # ::::: ::::: @ |
77 ; PTM = Program Trace Macrocell
89 the basic tracing functionality, enabling components such ETM/PTM, funnel,
99 PTM:
157 replicator 20030000.tpiu 2201c000.ptm 2203c000.etm 2203e000.etm
158 20010000.etb 20040000.funnel 2201d000.ptm 2203d000.etm
351 replicator 20030000.tpiu 2201c000.ptm 2203c000.etm 2203e000.etm
352 20010000.etb 20040000.funnel 2201d000.ptm 2203d000.etm
365 root:/sys/bus/coresight/devices# echo 1 > 2201c000.ptm/enable_source
366 root:/sys/bus/coresight/devices# cat 2201c000.ptm/enable_source
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/
Dcoresight.txt68 * cpu: the cpu phandle this ETM/PTM is affined to. Do not
108 * arm,cp14: must be present if the system accesses ETM/PTM management
324 ptm@2201c000 {
340 ptm@2201d000 {
/kernel/linux/linux-5.10/scripts/kconfig/
Dconfdata.c1205 int i, cnt, pby, pty, ptm; /* pby: probability of bool = y in conf_set_all_new_symbols() local
1207 * ptm: probability of tristate = m in conf_set_all_new_symbols()
1210 pby = 50; pty = ptm = 33; /* can't go as the default in switch-case in conf_set_all_new_symbols()
1234 pby = p[0]; ptm = pby/2; pty = pby-ptm; in conf_set_all_new_symbols()
1237 pty = p[0]; ptm = p[1]; pby = pty + ptm; in conf_set_all_new_symbols()
1240 pby = p[0]; pty = p[1]; ptm = p[2]; in conf_set_all_new_symbols()
1244 if( pty+ptm > 100 ) { in conf_set_all_new_symbols()
1278 else if (cnt < (pty+ptm)) in conf_set_all_new_symbols()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dti,k3-am654-cpts.yaml30 Measurement (PTM).
36 - PCIe subsystem CPTS for PTM support
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dti,k3-am654-cpts.yaml30 Measurement (PTM).
36 - PCIe subsystem CPTS for PTM support

12345