sth               147 arch/powerpc/include/asm/io.h DEF_MMIO_OUT_D(out_be16, 16, sth);
sth               159 arch/powerpc/include/asm/io.h DEF_MMIO_OUT_D(out_le16, 16, sth);
sth                31 drivers/hwtracing/intel_th/sth.c sth_channel(struct sth_device *sth, unsigned int master, unsigned int channel)
sth                33 drivers/hwtracing/intel_th/sth.c 	struct intel_th_channel __iomem *sw_map = sth->channels;
sth                35 drivers/hwtracing/intel_th/sth.c 	return &sw_map[(master - sth->stm.sw_start) * sth->stm.sw_nchannels +
sth                70 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
sth                72 drivers/hwtracing/intel_th/sth.c 		sth_channel(sth, master, channel);
sth                96 drivers/hwtracing/intel_th/sth.c 		writeb_relaxed(*payload, sth->base + reg);
sth               145 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
sth               148 drivers/hwtracing/intel_th/sth.c 	master -= sth->stm.sw_start;
sth               149 drivers/hwtracing/intel_th/sth.c 	addr = sth->channels_phys + (master * sth->stm.sw_nchannels + channel) *
sth               162 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
sth               164 drivers/hwtracing/intel_th/sth.c 	intel_th_set_output(to_intel_th_device(sth->dev), master);
sth               169 drivers/hwtracing/intel_th/sth.c static int intel_th_sw_init(struct sth_device *sth)
sth               173 drivers/hwtracing/intel_th/sth.c 	reg = ioread32(sth->base + REG_STH_STHCAP1);
sth               174 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_nchannels = reg & 0xff;
sth               176 drivers/hwtracing/intel_th/sth.c 	reg = ioread32(sth->base + REG_STH_STHCAP0);
sth               177 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_start = reg & 0xffff;
sth               178 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_end = reg >> 16;
sth               180 drivers/hwtracing/intel_th/sth.c 	sth->sw_nmasters = sth->stm.sw_end - sth->stm.sw_start;
sth               181 drivers/hwtracing/intel_th/sth.c 	dev_dbg(sth->dev, "sw_start: %x sw_end: %x masters: %x nchannels: %x\n",
sth               182 drivers/hwtracing/intel_th/sth.c 		sth->stm.sw_start, sth->stm.sw_end, sth->sw_nmasters,
sth               183 drivers/hwtracing/intel_th/sth.c 		sth->stm.sw_nchannels);
sth               191 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth;
sth               212 drivers/hwtracing/intel_th/sth.c 	sth = devm_kzalloc(dev, sizeof(*sth), GFP_KERNEL);
sth               213 drivers/hwtracing/intel_th/sth.c 	if (!sth)
sth               216 drivers/hwtracing/intel_th/sth.c 	sth->dev = dev;
sth               217 drivers/hwtracing/intel_th/sth.c 	sth->base = base;
sth               218 drivers/hwtracing/intel_th/sth.c 	sth->channels = channels;
sth               219 drivers/hwtracing/intel_th/sth.c 	sth->channels_phys = res->start;
sth               220 drivers/hwtracing/intel_th/sth.c 	sth->stm.name = dev_name(dev);
sth               221 drivers/hwtracing/intel_th/sth.c 	sth->stm.packet = sth_stm_packet;
sth               222 drivers/hwtracing/intel_th/sth.c 	sth->stm.mmio_addr = sth_stm_mmio_addr;
sth               223 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_mmiosz = sizeof(struct intel_th_channel);
sth               224 drivers/hwtracing/intel_th/sth.c 	sth->stm.link = sth_stm_link;
sth               226 drivers/hwtracing/intel_th/sth.c 	err = intel_th_sw_init(sth);
sth               230 drivers/hwtracing/intel_th/sth.c 	err = stm_register_device(dev, &sth->stm, THIS_MODULE);
sth               236 drivers/hwtracing/intel_th/sth.c 	dev_set_drvdata(dev, sth);
sth               243 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = dev_get_drvdata(&thdev->dev);
sth               245 drivers/hwtracing/intel_th/sth.c 	stm_unregister_device(&sth->stm);
sth               388 tools/testing/selftests/powerpc/alignment/alignment_handler.c 	STORE_DFORM_TEST(sth);