Lines Matching full:stm

15  * generic STM API by Chunyan Zhang
24 #include <linux/coresight-stm.h>
31 #include <linux/stm.h>
111 DEFINE_CORESIGHT_DEVLIST(stm_devs, "stm");
114 * struct stm_drvdata - specifics associated to an STM component
116 * @atclk: optional clock for the core parts of the STM.
119 * @chs: the channels accociated to this STM.
120 * @stm: structure associated to the generic STM interface.
123 * @write_bytes: Maximus bytes this STM can write at a time.
126 * @numsp: the total number of stimulus port support by this STM.
137 struct stm_data stm; member
188 0x01), /* global STM enable */ in stm_enable_hw()
215 dev_dbg(&csdev->dev, "STM tracing enabled\n"); in stm_enable()
247 val &= ~0x1; /* clear global STM enable [0] */ in stm_disable_hw()
279 dev_dbg(&csdev->dev, "STM tracing disabled\n"); in stm_disable()
340 struct stm_drvdata, stm); in stm_generic_link()
351 struct stm_drvdata, stm); in stm_generic_unlink()
363 struct stm_drvdata, stm); in stm_mmio_addr()
382 struct stm_drvdata, stm); in stm_generic_set_options()
415 struct stm_drvdata, stm); in stm_generic_packet()
441 * The generic STM core sets a size of '0' on flag packets. in stm_generic_packet()
685 if (strcmp("stm-stimulus-base", name)) { in of_stm_get_stimulus_area()
723 * The stimulus base for STM device must be listed as the second memory in acpi_stm_get_stimulus_area()
809 * also reserved the STM trace ID needs to be higher than 0x00 and in stm_init_default_data()
821 drvdata->stm.name = name; in stm_init_generic_data()
827 drvdata->stm.sw_start = 1; in stm_init_generic_data()
828 drvdata->stm.sw_end = 1; in stm_init_generic_data()
829 drvdata->stm.hw_override = true; in stm_init_generic_data()
830 drvdata->stm.sw_nchannels = drvdata->numsp; in stm_init_generic_data()
831 drvdata->stm.sw_mmiosz = BYTES_PER_CHANNEL; in stm_init_generic_data()
832 drvdata->stm.packet = stm_generic_packet; in stm_init_generic_data()
833 drvdata->stm.mmio_addr = stm_mmio_addr; in stm_init_generic_data()
834 drvdata->stm.link = stm_generic_link; in stm_init_generic_data()
835 drvdata->stm.unlink = stm_generic_unlink; in stm_init_generic_data()
836 drvdata->stm.set_options = stm_generic_set_options; in stm_init_generic_data()
899 if (stm_register_device(dev, &drvdata->stm, THIS_MODULE)) { in stm_probe()
932 stm_unregister_device(&drvdata->stm); in stm_probe()
942 stm_unregister_device(&drvdata->stm); in stm_remove()
981 .name = "coresight-stm",