/openbmc/linux/drivers/hwtracing/stm/ |
H A D | core.c | 3 * System Trace Module (STM) infrastructure 6 * STM class implements generic infrastructure for System Trace Module devices 19 #include <linux/stm.h> 23 #include "stm.h" 25 #include <uapi/linux/stm.h> 30 * The SRCU here makes sure that STM device doesn't disappear from under a 40 struct stm_device *stm = to_stm_device(dev); in masters_show() local 43 ret = sprintf(buf, "%u %u\n", stm->data->sw_start, stm->data->sw_end); in masters_show() 54 struct stm_device *stm = to_stm_device(dev); in channels_show() local 57 ret = sprintf(buf, "%u\n", stm->data->sw_nchannels); in channels_show() [all …]
|
H A D | policy.c | 3 * System Trace Module (STM) master/channel allocation policy management 17 #include <linux/stm.h> 18 #include "stm.h" 26 struct stm_device *stm; member 102 struct stm_device *stm; in stp_policy_node_masters_store() local 110 stm = policy_node->policy->stm; in stp_policy_node_masters_store() 111 if (!stm) in stp_policy_node_masters_store() 115 if (first > last || first < stm->data->sw_start || in stp_policy_node_masters_store() 116 last > stm->data->sw_end) { in stp_policy_node_masters_store() 149 struct stm_device *stm; in stp_policy_node_channels_store() local [all …]
|
H A D | Kconfig | 2 config STM config 6 A System Trace Module (STM) is a device exporting data in System 8 Examples of such devices are Intel(R) Trace Hub and Coresight STM. 12 if STM 15 tristate "Basic STM framing protocol driver" 18 This is a simple framing protocol for sending data over STM 19 devices. This was the protocol that the STM framework used 21 driver for compatibility with your existing STM setup. 30 tristate "MIPI SyS-T STM framing protocol driver" 44 tristate "Dummy STM driver" [all …]
|
H A D | ftrace.c | 3 * Simple kernel driver to link kernel Ftrace and an STM device 6 * STM Ftrace will be registered as a trace_export. 10 #include <linux/stm.h> 32 * stm_ftrace_write() - write data to STM via 'stm_ftrace' source 39 struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace); in stm_ftrace_write() local 43 stm_source_write(&stm->data, STM_FTRACE_CHAN + cpu, buf, len); in stm_ftrace_write()
|
H A D | stm.h | 3 * System Trace Module (STM) infrastructure 6 * STM class implements generic infrastructure for System Trace Module devices 52 stp_policy_node_lookup(struct stm_device *stm, char *s); 72 struct stm_device *stm; member 77 void stm_put_device(struct stm_device *stm);
|
H A D | p_basic.c | 3 * Basic framing protocol for STM devices. 9 #include <linux/stm.h> 10 #include "stm.h" 47 MODULE_DESCRIPTION("Basic STM framing protocol driver");
|
H A D | heartbeat.c | 3 * Simple heartbeat STM source driver 6 * Heartbeat STM source will send repetitive messages over STM devices to a 14 #include <linux/stm.h> 30 static const char str[] = "heartbeat stm source driver is here to serve you";
|
H A D | dummy_stm.c | 3 * A dummy STM device for stm/stm_source class testing. 6 * STM class implements generic infrastructure for System Trace Module devices 14 #include <linux/stm.h> 15 #include <uapi/linux/stm.h>
|
H A D | console.c | 3 * Simple kernel console driver for STM devices 6 * STM console will send kernel messages over STM devices to a trace host. 13 #include <linux/stm.h>
|
/openbmc/linux/drivers/hwtracing/intel_th/ |
H A D | sth.c | 16 #include <linux/stm.h> 26 struct stm_data stm; member 35 return &sw_map[(master - sth->stm.sw_start) * sth->stm.sw_nchannels + in sth_channel() 70 struct sth_device *sth = container_of(stm_data, struct sth_device, stm); in sth_stm_packet() 145 struct sth_device *sth = container_of(stm_data, struct sth_device, stm); in sth_stm_mmio_addr() 148 master -= sth->stm.sw_start; in sth_stm_mmio_addr() 149 addr = sth->channels_phys + (master * sth->stm.sw_nchannels + channel) * in sth_stm_mmio_addr() 162 struct sth_device *sth = container_of(stm_data, struct sth_device, stm); in sth_stm_link() 172 sth->stm.sw_nchannels = reg & 0xff; in intel_th_sw_init() 175 sth->stm.sw_start = reg & 0xffff; in intel_th_sw_init() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-stm | 1 What: /sys/class/stm/<stm>/masters 7 this STM device. 9 What: /sys/class/stm/<stm>/channels 14 Shows the number of channels per master on this STM device. 16 What: /sys/class/stm/<stm>/hw_override 22 this stm device will match the master numbers assigned by 23 the software or 1 if the stm hardware overrides software
|
H A D | sysfs-bus-coresight-devices-stm | 1 What: /sys/bus/coresight/devices/<memory_map>.stm/enable_source 11 What: /sys/bus/coresight/devices/<memory_map>.stm/hwevent_enable 18 What: /sys/bus/coresight/devices/<memory_map>.stm/hwevent_select 26 What: /sys/bus/coresight/devices/<memory_map>.stm/port_enable 34 What: /sys/bus/coresight/devices/<memory_map>.stm/port_select 41 What: /sys/bus/coresight/devices/<memory_map>.stm/status 48 What: /sys/bus/coresight/devices/<memory_map>.stm/traceid
|
H A D | configfs-stp-policy | 6 for software sources wishing to send trace data over an STM 14 of an stm device name to which this policy applies and an 16 stm device, mkdir will fail with ENODEV; if that device already 23 STM device to which this policy applies, read only. Same as the
|
H A D | sysfs-class-stm_source | 6 stm_source device linkage to stm device, where its tracing data 8 this stm_source is not connected to any stm device yet. 9 Write an existing (registered) stm device's name here to
|
/openbmc/linux/Documentation/devicetree/bindings/arm/ |
H A D | arm,coresight-stm.yaml | 4 $id: http://devicetree.org/schemas/arm/arm,coresight-stm.yaml# 23 The STM is a trace source that is integrated into a CoreSight system, designed 25 This instrumentation is made up of memory-mapped writes to the STM Advanced 33 const: arm,coresight-stm 43 - const: arm,coresight-stm 51 - const: stm-base 52 - const: stm-stimulus-base 88 stm@20100000 { 89 compatible = "arm,coresight-stm", "arm,primecell"; 92 reg-names = "stm-base", "stm-stimulus-base";
|
/openbmc/linux/Documentation/trace/ |
H A D | stm.rst | 7 System Trace Module (STM) is a device described in MIPI STP specs as 26 To solve this mapping problem, stm class provides a policy management 36 the STM device name to which this policy applies and an arbitrary 57 Trace sources have to open the stm class device's node and write their 67 stm core will try to find a policy node with the name matching the 73 if all the above steps failed, the write() to an stm file descriptor 76 Previously, if no policy nodes were found for a trace source, the stm 83 Some STM devices may allow direct mapping of the channel mmio regions 88 stm device's channel mmio region is 64 bytes and hardware page size is 93 Examples of STM devices are Intel(R) Trace Hub [1] and Coresight STM [all …]
|
/openbmc/linux/net/tls/ |
H A D | tls_strp.c | 73 skb = tls_strp_skb_copy(strp, strp->anchor, strp->stm.offset, in tls_strp_msg_make_copy() 74 strp->stm.full_len); in tls_strp_msg_make_copy() 134 tcp_read_done(strp->sk, strp->stm.full_len); in tls_strp_msg_cow() 164 offset = strp->stm.offset; in tls_strp_msg_hold() 165 len = strp->stm.full_len; in tls_strp_msg_hold() 221 if (!strp->stm.full_len) { in tls_strp_copyin_frag() 253 strp->stm.full_len = sz; in tls_strp_copyin_frag() 254 if (!strp->stm.full_len) in tls_strp_copyin_frag() 259 while (len && strp->stm.full_len > skb->len) { in tls_strp_copyin_frag() 260 chunk = min_t(size_t, len, strp->stm.full_len - skb->len); in tls_strp_copyin_frag() [all …]
|
/openbmc/linux/include/linux/ |
H A D | stm.h | 3 * System Trace Module (STM) infrastructure apis 13 * enum stp_packet_type - STP packets that an STM driver sends 38 * struct stm_data - STM device description and callbacks 40 * @stm: internal structure, only used by stm class code 46 * assigned by software, but are up to the STM hardware 54 * an STM device and stm_unregister_device() to destroy it. It will also be 58 * Normally, an STM device will have a range of masters available to software 77 struct stm_device *stm; member 105 * struct stm_source_data - STM source device description and callbacks 107 * @src: internal structure, only used by stm class code [all …]
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-stm.c | 15 * generic STM API by Chunyan Zhang 24 #include <linux/coresight-stm.h> 31 #include <linux/stm.h> 112 DEFINE_CORESIGHT_DEVLIST(stm_devs, "stm"); 115 * struct stm_drvdata - specifics associated to an STM component 117 * @atclk: optional clock for the core parts of the STM. 120 * @chs: the channels accociated to this STM. 121 * @stm: structure associated to the generic STM interface. 124 * @write_bytes: Maximus bytes this STM can write at a time. 127 * @numsp: the total number of stimulus port support by this STM. [all …]
|
/openbmc/linux/net/strparser/ |
H A D | strparser.c | 94 struct _strp_msg *stm; in __strp_recv() local 186 stm = _strp_msg(head); in __strp_recv() 187 memset(stm, 0, sizeof(*stm)); in __strp_recv() 188 stm->strp.offset = orig_offset + eaten; in __strp_recv() 202 stm = _strp_msg(head); in __strp_recv() 210 if (!stm->strp.full_len) { in __strp_recv() 217 if (!stm->accum_len) { in __strp_recv() 221 stm->accum_len += cand_len; in __strp_recv() 227 if (len == -ESTRPIPE && stm->accum_len) { in __strp_recv() 241 skb->len - stm->strp.offset) { in __strp_recv() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | st.c | 886 static int set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm) in set_mode_densblk() argument 892 STm->default_density >= 0 && in set_mode_densblk() 893 STm->default_density != STp->density) { in set_mode_densblk() 894 arg = STm->default_density; in set_mode_densblk() 900 STm->default_blksize >= 0 && in set_mode_densblk() 901 STm->default_blksize != STp->block_size) { in set_mode_densblk() 902 arg |= STm->default_blksize; in set_mode_densblk() 911 STm->default_blksize, STm->default_density); in set_mode_densblk() 1049 struct st_modedef *STm; in check_tape() local 1062 STm = &(STp->modes[STp->current_mode]); in check_tape() [all …]
|
/openbmc/linux/drivers/gpu/drm/stm/ |
H A D | Makefile | 2 stm-drm-y := \ 6 obj-$(CONFIG_DRM_STM_DSI) += dw_mipi_dsi-stm.o 8 obj-$(CONFIG_DRM_STM) += stm-drm.o
|
/openbmc/u-boot/arch/arm/mach-integrator/ |
H A D | Kconfig | 33 bool "Core Module for ARM926EJ-STM" 37 bool "Core Module for ARM946E-STM" 41 bool "Core Module for ARM1136JF-STM"
|
/openbmc/pldm/libpldmresponder/ |
H A D | bios.cpp | 46 struct std::tm stm; in timeToEpoch() local 48 stm.tm_year = year - 1900; in timeToEpoch() 49 stm.tm_mon = month - 1; in timeToEpoch() 50 stm.tm_mday = day; in timeToEpoch() 51 stm.tm_hour = hours; in timeToEpoch() 52 stm.tm_min = minutes; in timeToEpoch() 53 stm.tm_sec = seconds; in timeToEpoch() 54 stm.tm_isdst = -1; in timeToEpoch() 58 return timegm(&stm); in timeToEpoch()
|
/openbmc/linux/include/uapi/linux/ |
H A D | coresight-stm.h | 12 * The CoreSight STM supports guaranteed and invariant timing 15 * ensure the transaction is accepted by the STM. While invariant 18 * state of the STM.
|