stm               122 arch/csky/abiv1/inc/abi/entry.h 	stm     r8-r15, (sp)
stm                52 arch/csky/abiv2/inc/abi/entry.h 	stm	r4-r13, (sp)
stm                55 arch/csky/abiv2/inc/abi/entry.h 	stm     r16-r30, (sp)
stm               107 arch/csky/abiv2/inc/abi/entry.h 	stm	r4-r11, (sp)
stm               347 drivers/ata/libata-acpi.c int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm)
stm               350 drivers/ata/libata-acpi.c 	struct ata_acpi_gtm		stm_buf = *stm;
stm               137 drivers/hwtracing/coresight/coresight-stm.c 	struct stm_data		stm;
stm               339 drivers/hwtracing/coresight/coresight-stm.c 						   struct stm_drvdata, stm);
stm               350 drivers/hwtracing/coresight/coresight-stm.c 						   struct stm_drvdata, stm);
stm               362 drivers/hwtracing/coresight/coresight-stm.c 						   struct stm_drvdata, stm);
stm               381 drivers/hwtracing/coresight/coresight-stm.c 						   struct stm_drvdata, stm);
stm               414 drivers/hwtracing/coresight/coresight-stm.c 						   struct stm_drvdata, stm);
stm               835 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.name = name;
stm               841 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.sw_start = 1;
stm               842 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.sw_end = 1;
stm               843 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.hw_override = true;
stm               844 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.sw_nchannels = drvdata->numsp;
stm               845 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.sw_mmiosz = BYTES_PER_CHANNEL;
stm               846 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.packet = stm_generic_packet;
stm               847 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.mmio_addr = stm_mmio_addr;
stm               848 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.link = stm_generic_link;
stm               849 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.unlink = stm_generic_unlink;
stm               850 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.set_options = stm_generic_set_options;
stm               916 drivers/hwtracing/coresight/coresight-stm.c 	if (stm_register_device(dev, &drvdata->stm, THIS_MODULE)) {
stm               949 drivers/hwtracing/coresight/coresight-stm.c 	stm_unregister_device(&drvdata->stm);
stm                26 drivers/hwtracing/intel_th/sth.c 	struct stm_data	stm;
stm                35 drivers/hwtracing/intel_th/sth.c 	return &sw_map[(master - sth->stm.sw_start) * sth->stm.sw_nchannels +
stm                70 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
stm               145 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
stm               148 drivers/hwtracing/intel_th/sth.c 	master -= sth->stm.sw_start;
stm               149 drivers/hwtracing/intel_th/sth.c 	addr = sth->channels_phys + (master * sth->stm.sw_nchannels + channel) *
stm               162 drivers/hwtracing/intel_th/sth.c 	struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
stm               174 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_nchannels = reg & 0xff;
stm               177 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_start = reg & 0xffff;
stm               178 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_end = reg >> 16;
stm               180 drivers/hwtracing/intel_th/sth.c 	sth->sw_nmasters = sth->stm.sw_end - sth->stm.sw_start;
stm               182 drivers/hwtracing/intel_th/sth.c 		sth->stm.sw_start, sth->stm.sw_end, sth->sw_nmasters,
stm               183 drivers/hwtracing/intel_th/sth.c 		sth->stm.sw_nchannels);
stm               220 drivers/hwtracing/intel_th/sth.c 	sth->stm.name = dev_name(dev);
stm               221 drivers/hwtracing/intel_th/sth.c 	sth->stm.packet = sth_stm_packet;
stm               222 drivers/hwtracing/intel_th/sth.c 	sth->stm.mmio_addr = sth_stm_mmio_addr;
stm               223 drivers/hwtracing/intel_th/sth.c 	sth->stm.sw_mmiosz = sizeof(struct intel_th_channel);
stm               224 drivers/hwtracing/intel_th/sth.c 	sth->stm.link = sth_stm_link;
stm               230 drivers/hwtracing/intel_th/sth.c 	err = stm_register_device(dev, &sth->stm, THIS_MODULE);
stm               245 drivers/hwtracing/intel_th/sth.c 	stm_unregister_device(&sth->stm);
stm                40 drivers/hwtracing/stm/core.c 	struct stm_device *stm = to_stm_device(dev);
stm                43 drivers/hwtracing/stm/core.c 	ret = sprintf(buf, "%u %u\n", stm->data->sw_start, stm->data->sw_end);
stm                54 drivers/hwtracing/stm/core.c 	struct stm_device *stm = to_stm_device(dev);
stm                57 drivers/hwtracing/stm/core.c 	ret = sprintf(buf, "%u\n", stm->data->sw_nchannels);
stm                68 drivers/hwtracing/stm/core.c 	struct stm_device *stm = to_stm_device(dev);
stm                71 drivers/hwtracing/stm/core.c 	ret = sprintf(buf, "%u\n", stm->data->hw_override);
stm                85 drivers/hwtracing/stm/core.c ATTRIBUTE_GROUPS(stm);
stm               106 drivers/hwtracing/stm/core.c 	struct stm_device *stm;
stm               116 drivers/hwtracing/stm/core.c 	stm = to_stm_device(dev);
stm               117 drivers/hwtracing/stm/core.c 	if (!try_module_get(stm->owner)) {
stm               123 drivers/hwtracing/stm/core.c 	return stm;
stm               133 drivers/hwtracing/stm/core.c void stm_put_device(struct stm_device *stm)
stm               135 drivers/hwtracing/stm/core.c 	module_put(stm->owner);
stm               136 drivers/hwtracing/stm/core.c 	put_device(&stm->dev);
stm               151 drivers/hwtracing/stm/core.c stm_master(struct stm_device *stm, unsigned int idx)
stm               153 drivers/hwtracing/stm/core.c 	if (idx < stm->data->sw_start || idx > stm->data->sw_end)
stm               156 drivers/hwtracing/stm/core.c 	return __stm_master(stm, idx);
stm               159 drivers/hwtracing/stm/core.c static int stp_master_alloc(struct stm_device *stm, unsigned int idx)
stm               164 drivers/hwtracing/stm/core.c 				     BITS_TO_LONGS(stm->data->sw_nchannels)),
stm               169 drivers/hwtracing/stm/core.c 	master->nr_free = stm->data->sw_nchannels;
stm               170 drivers/hwtracing/stm/core.c 	__stm_master(stm, idx) = master;
stm               175 drivers/hwtracing/stm/core.c static void stp_master_free(struct stm_device *stm, unsigned int idx)
stm               177 drivers/hwtracing/stm/core.c 	struct stp_master *master = stm_master(stm, idx);
stm               182 drivers/hwtracing/stm/core.c 	__stm_master(stm, idx) = NULL;
stm               186 drivers/hwtracing/stm/core.c static void stm_output_claim(struct stm_device *stm, struct stm_output *output)
stm               188 drivers/hwtracing/stm/core.c 	struct stp_master *master = stm_master(stm, output->master);
stm               190 drivers/hwtracing/stm/core.c 	lockdep_assert_held(&stm->mc_lock);
stm               203 drivers/hwtracing/stm/core.c stm_output_disclaim(struct stm_device *stm, struct stm_output *output)
stm               205 drivers/hwtracing/stm/core.c 	struct stp_master *master = stm_master(stm, output->master);
stm               207 drivers/hwtracing/stm/core.c 	lockdep_assert_held(&stm->mc_lock);
stm               248 drivers/hwtracing/stm/core.c stm_find_master_chan(struct stm_device *stm, unsigned int width,
stm               257 drivers/hwtracing/stm/core.c 		if (!stm_master(stm, midx)) {
stm               258 drivers/hwtracing/stm/core.c 			err = stp_master_alloc(stm, midx);
stm               263 drivers/hwtracing/stm/core.c 		master = stm_master(stm, midx);
stm               281 drivers/hwtracing/stm/core.c static int stm_output_assign(struct stm_device *stm, unsigned int width,
stm               288 drivers/hwtracing/stm/core.c 	if (width > stm->data->sw_nchannels)
stm               301 drivers/hwtracing/stm/core.c 	spin_lock(&stm->mc_lock);
stm               307 drivers/hwtracing/stm/core.c 	ret = stm_find_master_chan(stm, width, &midx, mend, &cidx, cend);
stm               314 drivers/hwtracing/stm/core.c 	if (stm->pdrv->output_open) {
stm               321 drivers/hwtracing/stm/core.c 		ret = stm->pdrv->output_open(priv, output);
stm               326 drivers/hwtracing/stm/core.c 	stm_output_claim(stm, output);
stm               327 drivers/hwtracing/stm/core.c 	dev_dbg(&stm->dev, "assigned %u:%u (+%u)\n", midx, cidx, width);
stm               335 drivers/hwtracing/stm/core.c 	spin_unlock(&stm->mc_lock);
stm               340 drivers/hwtracing/stm/core.c static void stm_output_free(struct stm_device *stm, struct stm_output *output)
stm               342 drivers/hwtracing/stm/core.c 	spin_lock(&stm->mc_lock);
stm               345 drivers/hwtracing/stm/core.c 		stm_output_disclaim(stm, output);
stm               346 drivers/hwtracing/stm/core.c 	if (stm->pdrv && stm->pdrv->output_close)
stm               347 drivers/hwtracing/stm/core.c 		stm->pdrv->output_close(output);
stm               349 drivers/hwtracing/stm/core.c 	spin_unlock(&stm->mc_lock);
stm               502 drivers/hwtracing/stm/core.c 	stmf->stm = to_stm_device(dev);
stm               504 drivers/hwtracing/stm/core.c 	if (!try_module_get(stmf->stm->owner))
stm               523 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stmf->stm;
stm               525 drivers/hwtracing/stm/core.c 	if (stm->data->unlink)
stm               526 drivers/hwtracing/stm/core.c 		stm->data->unlink(stm->data, stmf->output.master,
stm               529 drivers/hwtracing/stm/core.c 	stm_output_free(stm, &stmf->output);
stm               535 drivers/hwtracing/stm/core.c 	stm_put_device(stm);
stm               542 drivers/hwtracing/stm/core.c stm_assign_first_policy(struct stm_device *stm, struct stm_output *output,
stm               555 drivers/hwtracing/stm/core.c 		pn = stp_policy_node_lookup(stm, ids[n]);
stm               560 drivers/hwtracing/stm/core.c 	err = stm_output_assign(stm, width, pn, output);
stm               602 drivers/hwtracing/stm/core.c stm_write(struct stm_device *stm, struct stm_output *output,
stm               608 drivers/hwtracing/stm/core.c 	if (!stm->pdrv)
stm               611 drivers/hwtracing/stm/core.c 	err = stm->pdrv->write(stm->data, output, chan, buf, count);
stm               622 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stmf->stm;
stm               639 drivers/hwtracing/stm/core.c 		err = stm_assign_first_policy(stmf->stm, &stmf->output, ids, 1);
stm               658 drivers/hwtracing/stm/core.c 	pm_runtime_get_sync(&stm->dev);
stm               660 drivers/hwtracing/stm/core.c 	count = stm_write(stm, &stmf->output, 0, kbuf, count);
stm               662 drivers/hwtracing/stm/core.c 	pm_runtime_mark_last_busy(&stm->dev);
stm               663 drivers/hwtracing/stm/core.c 	pm_runtime_put_autosuspend(&stm->dev);
stm               672 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stmf->stm;
stm               674 drivers/hwtracing/stm/core.c 	pm_runtime_get(&stm->dev);
stm               680 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stmf->stm;
stm               682 drivers/hwtracing/stm/core.c 	pm_runtime_mark_last_busy(&stm->dev);
stm               683 drivers/hwtracing/stm/core.c 	pm_runtime_put_autosuspend(&stm->dev);
stm               694 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stmf->stm;
stm               697 drivers/hwtracing/stm/core.c 	if (!stm->data->mmio_addr)
stm               705 drivers/hwtracing/stm/core.c 	if (stmf->output.nr_chans * stm->data->sw_mmiosz != size)
stm               708 drivers/hwtracing/stm/core.c 	phys = stm->data->mmio_addr(stm->data, stmf->output.master,
stm               715 drivers/hwtracing/stm/core.c 	pm_runtime_get_sync(&stm->dev);
stm               727 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stmf->stm;
stm               758 drivers/hwtracing/stm/core.c 	if (stm->data->sw_mmiosz)
stm               759 drivers/hwtracing/stm/core.c 		wlimit = PAGE_SIZE / stm->data->sw_mmiosz;
stm               765 drivers/hwtracing/stm/core.c 	ret = stm_assign_first_policy(stmf->stm, &stmf->output, ids,
stm               770 drivers/hwtracing/stm/core.c 	if (stm->data->link)
stm               771 drivers/hwtracing/stm/core.c 		ret = stm->data->link(stm->data, stmf->output.master,
stm               775 drivers/hwtracing/stm/core.c 		stm_output_free(stmf->stm, &stmf->output);
stm               801 drivers/hwtracing/stm/core.c 	struct stm_data *stm_data = stmf->stm->data;
stm               857 drivers/hwtracing/stm/core.c 	struct stm_device *stm = to_stm_device(dev);
stm               859 drivers/hwtracing/stm/core.c 	vfree(stm);
stm               865 drivers/hwtracing/stm/core.c 	struct stm_device *stm;
stm               876 drivers/hwtracing/stm/core.c 	stm = vzalloc(sizeof(*stm) + nmasters * sizeof(void *));
stm               877 drivers/hwtracing/stm/core.c 	if (!stm)
stm               880 drivers/hwtracing/stm/core.c 	stm->major = register_chrdev(0, stm_data->name, &stm_fops);
stm               881 drivers/hwtracing/stm/core.c 	if (stm->major < 0)
stm               884 drivers/hwtracing/stm/core.c 	device_initialize(&stm->dev);
stm               885 drivers/hwtracing/stm/core.c 	stm->dev.devt = MKDEV(stm->major, 0);
stm               886 drivers/hwtracing/stm/core.c 	stm->dev.class = &stm_class;
stm               887 drivers/hwtracing/stm/core.c 	stm->dev.parent = parent;
stm               888 drivers/hwtracing/stm/core.c 	stm->dev.release = stm_device_release;
stm               890 drivers/hwtracing/stm/core.c 	mutex_init(&stm->link_mutex);
stm               891 drivers/hwtracing/stm/core.c 	spin_lock_init(&stm->link_lock);
stm               892 drivers/hwtracing/stm/core.c 	INIT_LIST_HEAD(&stm->link_list);
stm               895 drivers/hwtracing/stm/core.c 	spin_lock_init(&stm->mc_lock);
stm               896 drivers/hwtracing/stm/core.c 	mutex_init(&stm->policy_mutex);
stm               897 drivers/hwtracing/stm/core.c 	stm->sw_nmasters = nmasters;
stm               898 drivers/hwtracing/stm/core.c 	stm->owner = owner;
stm               899 drivers/hwtracing/stm/core.c 	stm->data = stm_data;
stm               900 drivers/hwtracing/stm/core.c 	stm_data->stm = stm;
stm               902 drivers/hwtracing/stm/core.c 	err = kobject_set_name(&stm->dev.kobj, "%s", stm_data->name);
stm               906 drivers/hwtracing/stm/core.c 	err = device_add(&stm->dev);
stm               915 drivers/hwtracing/stm/core.c 	pm_runtime_no_callbacks(&stm->dev);
stm               916 drivers/hwtracing/stm/core.c 	pm_runtime_use_autosuspend(&stm->dev);
stm               917 drivers/hwtracing/stm/core.c 	pm_runtime_set_autosuspend_delay(&stm->dev, 2000);
stm               918 drivers/hwtracing/stm/core.c 	pm_runtime_set_suspended(&stm->dev);
stm               919 drivers/hwtracing/stm/core.c 	pm_runtime_enable(&stm->dev);
stm               924 drivers/hwtracing/stm/core.c 	unregister_chrdev(stm->major, stm_data->name);
stm               927 drivers/hwtracing/stm/core.c 	put_device(&stm->dev);
stm               929 drivers/hwtracing/stm/core.c 	vfree(stm);
stm               936 drivers/hwtracing/stm/core.c 				  struct stm_device *stm);
stm               940 drivers/hwtracing/stm/core.c 	struct stm_device *stm = stm_data->stm;
stm               944 drivers/hwtracing/stm/core.c 	pm_runtime_dont_use_autosuspend(&stm->dev);
stm               945 drivers/hwtracing/stm/core.c 	pm_runtime_disable(&stm->dev);
stm               947 drivers/hwtracing/stm/core.c 	mutex_lock(&stm->link_mutex);
stm               948 drivers/hwtracing/stm/core.c 	list_for_each_entry_safe(src, iter, &stm->link_list, link_entry) {
stm               949 drivers/hwtracing/stm/core.c 		ret = __stm_source_link_drop(src, stm);
stm               959 drivers/hwtracing/stm/core.c 	mutex_unlock(&stm->link_mutex);
stm               963 drivers/hwtracing/stm/core.c 	unregister_chrdev(stm->major, stm_data->name);
stm               965 drivers/hwtracing/stm/core.c 	mutex_lock(&stm->policy_mutex);
stm               966 drivers/hwtracing/stm/core.c 	if (stm->policy)
stm               967 drivers/hwtracing/stm/core.c 		stp_policy_unbind(stm->policy);
stm               968 drivers/hwtracing/stm/core.c 	mutex_unlock(&stm->policy_mutex);
stm               970 drivers/hwtracing/stm/core.c 	for (i = stm->data->sw_start; i <= stm->data->sw_end; i++)
stm               971 drivers/hwtracing/stm/core.c 		stp_master_free(stm, i);
stm               973 drivers/hwtracing/stm/core.c 	device_unregister(&stm->dev);
stm               974 drivers/hwtracing/stm/core.c 	stm_data->stm = NULL;
stm              1000 drivers/hwtracing/stm/core.c 			       struct stm_device *stm)
stm              1005 drivers/hwtracing/stm/core.c 	mutex_lock(&stm->link_mutex);
stm              1006 drivers/hwtracing/stm/core.c 	spin_lock(&stm->link_lock);
stm              1010 drivers/hwtracing/stm/core.c 	rcu_assign_pointer(src->link, stm);
stm              1011 drivers/hwtracing/stm/core.c 	list_add_tail(&src->link_entry, &stm->link_list);
stm              1014 drivers/hwtracing/stm/core.c 	spin_unlock(&stm->link_lock);
stm              1015 drivers/hwtracing/stm/core.c 	mutex_unlock(&stm->link_mutex);
stm              1021 drivers/hwtracing/stm/core.c 	err = stm_assign_first_policy(stm, &src->output, ids,
stm              1029 drivers/hwtracing/stm/core.c 	if (stm->data->link)
stm              1030 drivers/hwtracing/stm/core.c 		err = stm->data->link(stm->data, src->output.master,
stm              1043 drivers/hwtracing/stm/core.c 	stm_output_free(stm, &src->output);
stm              1046 drivers/hwtracing/stm/core.c 	mutex_lock(&stm->link_mutex);
stm              1047 drivers/hwtracing/stm/core.c 	spin_lock(&stm->link_lock);
stm              1054 drivers/hwtracing/stm/core.c 	spin_unlock(&stm->link_lock);
stm              1055 drivers/hwtracing/stm/core.c 	mutex_unlock(&stm->link_mutex);
stm              1071 drivers/hwtracing/stm/core.c 				  struct stm_device *stm)
stm              1076 drivers/hwtracing/stm/core.c 	lockdep_assert_held(&stm->link_mutex);
stm              1079 drivers/hwtracing/stm/core.c 	spin_lock(&stm->link_lock);
stm              1088 drivers/hwtracing/stm/core.c 	if (link != stm) {
stm              1103 drivers/hwtracing/stm/core.c 	spin_unlock(&stm->link_lock);
stm              1113 drivers/hwtracing/stm/core.c 		if (stm->data->unlink)
stm              1114 drivers/hwtracing/stm/core.c 			stm->data->unlink(stm->data, src->output.master,
stm              1133 drivers/hwtracing/stm/core.c 	struct stm_device *stm;
stm              1143 drivers/hwtracing/stm/core.c 	stm = srcu_dereference(src->link, &stm_source_srcu);
stm              1146 drivers/hwtracing/stm/core.c 	if (stm) {
stm              1147 drivers/hwtracing/stm/core.c 		mutex_lock(&stm->link_mutex);
stm              1148 drivers/hwtracing/stm/core.c 		ret = __stm_source_link_drop(src, stm);
stm              1149 drivers/hwtracing/stm/core.c 		mutex_unlock(&stm->link_mutex);
stm              1164 drivers/hwtracing/stm/core.c 	struct stm_device *stm;
stm              1168 drivers/hwtracing/stm/core.c 	stm = srcu_dereference(src->link, &stm_source_srcu);
stm              1170 drivers/hwtracing/stm/core.c 		      stm ? dev_name(&stm->dev) : "<none>");
stm              1298 drivers/hwtracing/stm/core.c 	struct stm_device *stm;
stm              1309 drivers/hwtracing/stm/core.c 	stm = srcu_dereference(src->link, &stm_source_srcu);
stm              1310 drivers/hwtracing/stm/core.c 	if (stm)
stm              1311 drivers/hwtracing/stm/core.c 		count = stm_write(stm, &src->output, chan, buf, count);
stm                39 drivers/hwtracing/stm/ftrace.c 	struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace);
stm                41 drivers/hwtracing/stm/ftrace.c 	stm_source_write(&stm->data, STM_FTRACE_CHAN, buf, len);
stm                26 drivers/hwtracing/stm/policy.c 	struct stm_device	*stm;
stm               107 drivers/hwtracing/stm/policy.c 	struct stm_device *stm;
stm               115 drivers/hwtracing/stm/policy.c 	stm = policy_node->policy->stm;
stm               116 drivers/hwtracing/stm/policy.c 	if (!stm)
stm               120 drivers/hwtracing/stm/policy.c 	if (first > last || first < stm->data->sw_start ||
stm               121 drivers/hwtracing/stm/policy.c 	    last > stm->data->sw_end) {
stm               154 drivers/hwtracing/stm/policy.c 	struct stm_device *stm;
stm               162 drivers/hwtracing/stm/policy.c 	stm = policy_node->policy->stm;
stm               163 drivers/hwtracing/stm/policy.c 	if (!stm)
stm               167 drivers/hwtracing/stm/policy.c 	    last >= stm->data->sw_nchannels) {
stm               243 drivers/hwtracing/stm/policy.c 	if (!policy->stm)
stm               246 drivers/hwtracing/stm/policy.c 	pdrv = policy->stm->pdrv;
stm               256 drivers/hwtracing/stm/policy.c 	if (policy->stm->pdrv_node_type)
stm               257 drivers/hwtracing/stm/policy.c 		type = policy->stm->pdrv_node_type;
stm               264 drivers/hwtracing/stm/policy.c 	policy_node->first_master = policy->stm->data->sw_start;
stm               265 drivers/hwtracing/stm/policy.c 	policy_node->last_master = policy->stm->data->sw_end;
stm               267 drivers/hwtracing/stm/policy.c 	policy_node->last_channel = policy->stm->data->sw_nchannels - 1;
stm               300 drivers/hwtracing/stm/policy.c 			(policy && policy->stm) ?
stm               301 drivers/hwtracing/stm/policy.c 			policy->stm->data->name :
stm               316 drivers/hwtracing/stm/policy.c 			(policy && policy->stm) ?
stm               317 drivers/hwtracing/stm/policy.c 			policy->stm->pdrv->name :
stm               333 drivers/hwtracing/stm/policy.c 	struct stm_device *stm = policy->stm;
stm               340 drivers/hwtracing/stm/policy.c 	if (WARN_ON_ONCE(!policy->stm))
stm               343 drivers/hwtracing/stm/policy.c 	lockdep_assert_held(&stm->policy_mutex);
stm               345 drivers/hwtracing/stm/policy.c 	stm->policy = NULL;
stm               346 drivers/hwtracing/stm/policy.c 	policy->stm = NULL;
stm               351 drivers/hwtracing/stm/policy.c 	stm_put_protocol(stm->pdrv);
stm               352 drivers/hwtracing/stm/policy.c 	stm->pdrv = NULL;
stm               353 drivers/hwtracing/stm/policy.c 	stm_put_device(stm);
stm               359 drivers/hwtracing/stm/policy.c 	struct stm_device *stm = policy->stm;
stm               362 drivers/hwtracing/stm/policy.c 	if (!stm)
stm               365 drivers/hwtracing/stm/policy.c 	mutex_lock(&stm->policy_mutex);
stm               367 drivers/hwtracing/stm/policy.c 	mutex_unlock(&stm->policy_mutex);
stm               394 drivers/hwtracing/stm/policy.c 	struct stm_device *stm;
stm               425 drivers/hwtracing/stm/policy.c 	stm = stm_find_device(devname);
stm               426 drivers/hwtracing/stm/policy.c 	if (!stm) {
stm               435 drivers/hwtracing/stm/policy.c 		stm_put_device(stm);
stm               439 drivers/hwtracing/stm/policy.c 	mutex_lock(&stm->policy_mutex);
stm               440 drivers/hwtracing/stm/policy.c 	if (stm->policy) {
stm               445 drivers/hwtracing/stm/policy.c 	stm->policy = kzalloc(sizeof(*stm->policy), GFP_KERNEL);
stm               446 drivers/hwtracing/stm/policy.c 	if (!stm->policy) {
stm               451 drivers/hwtracing/stm/policy.c 	config_group_init_type_name(&stm->policy->group, name,
stm               454 drivers/hwtracing/stm/policy.c 	stm->pdrv = pdrv;
stm               455 drivers/hwtracing/stm/policy.c 	stm->pdrv_node_type = pdrv_node_type;
stm               456 drivers/hwtracing/stm/policy.c 	stm->policy->stm = stm;
stm               457 drivers/hwtracing/stm/policy.c 	ret = &stm->policy->group;
stm               460 drivers/hwtracing/stm/policy.c 	mutex_unlock(&stm->policy_mutex);
stm               468 drivers/hwtracing/stm/policy.c 		stm_put_device(stm);
stm               538 drivers/hwtracing/stm/policy.c stp_policy_node_lookup(struct stm_device *stm, char *s)
stm               544 drivers/hwtracing/stm/policy.c 	mutex_lock(&stm->policy_mutex);
stm               545 drivers/hwtracing/stm/policy.c 	if (stm->policy)
stm               546 drivers/hwtracing/stm/policy.c 		policy_node = __stp_policy_node_lookup(stm->policy, s);
stm               547 drivers/hwtracing/stm/policy.c 	mutex_unlock(&stm->policy_mutex);
stm                52 drivers/hwtracing/stm/stm.h stp_policy_node_lookup(struct stm_device *stm, char *s);
stm                72 drivers/hwtracing/stm/stm.h 	struct stm_device	*stm;
stm                77 drivers/hwtracing/stm/stm.h void stm_put_device(struct stm_device *stm);
stm               288 drivers/net/can/flexcan.c 	struct flexcan_stop_mode stm;
stm               445 drivers/net/can/flexcan.c 	regmap_update_bits(priv->stm.gpr, priv->stm.req_gpr,
stm               446 drivers/net/can/flexcan.c 			   1 << priv->stm.req_bit, 1 << priv->stm.req_bit);
stm               457 drivers/net/can/flexcan.c 	regmap_update_bits(priv->stm.gpr, priv->stm.req_gpr,
stm               458 drivers/net/can/flexcan.c 			   1 << priv->stm.req_bit, 0);
stm              1483 drivers/net/can/flexcan.c 	priv->stm.gpr = syscon_node_to_regmap(gpr_np);
stm              1484 drivers/net/can/flexcan.c 	if (IS_ERR(priv->stm.gpr)) {
stm              1486 drivers/net/can/flexcan.c 		ret = PTR_ERR(priv->stm.gpr);
stm              1490 drivers/net/can/flexcan.c 	priv->stm.req_gpr = out_val[1];
stm              1491 drivers/net/can/flexcan.c 	priv->stm.req_bit = out_val[2];
stm              1492 drivers/net/can/flexcan.c 	priv->stm.ack_gpr = out_val[3];
stm              1493 drivers/net/can/flexcan.c 	priv->stm.ack_bit = out_val[4];
stm              1497 drivers/net/can/flexcan.c 		gpr_np->full_name, priv->stm.req_gpr, priv->stm.req_bit,
stm              1498 drivers/net/can/flexcan.c 		priv->stm.ack_gpr, priv->stm.ack_bit);
stm                80 drivers/s390/char/tape_3590.h 	unsigned int stm:1;
stm              1248 include/linux/libata.h int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm);
stm              1249 include/linux/libata.h int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm);
stm              1260 include/linux/libata.h 			       struct ata_acpi_gtm *stm)
stm              1266 include/linux/libata.h 			       struct ata_acpi_gtm *stm)
stm                77 include/linux/stm.h 	struct stm_device	*stm;
stm                68 include/net/act_api.h static inline void tcf_tm_dump(struct tcf_t *dtm, const struct tcf_t *stm)
stm                70 include/net/act_api.h 	dtm->install = jiffies_to_clock_t(jiffies - stm->install);
stm                71 include/net/act_api.h 	dtm->lastuse = jiffies_to_clock_t(jiffies - stm->lastuse);
stm                72 include/net/act_api.h 	dtm->firstuse = stm->firstuse ?
stm                73 include/net/act_api.h 		jiffies_to_clock_t(jiffies - stm->firstuse) : 0;
stm                74 include/net/act_api.h 	dtm->expires = jiffies_to_clock_t(stm->expires);
stm              1227 net/core/sock.c 		struct  __kernel_sock_timeval stm;
stm              1122 net/kcm/kcmsock.c 	struct strp_msg *stm;
stm              1136 net/kcm/kcmsock.c 	stm = strp_msg(skb);
stm              1138 net/kcm/kcmsock.c 	if (len > stm->full_len)
stm              1139 net/kcm/kcmsock.c 		len = stm->full_len;
stm              1141 net/kcm/kcmsock.c 	err = skb_copy_datagram_msg(skb, stm->offset, msg, len);
stm              1148 net/kcm/kcmsock.c 		if (copied < stm->full_len) {
stm              1154 net/kcm/kcmsock.c 			stm->offset += copied;
stm              1155 net/kcm/kcmsock.c 			stm->full_len -= copied;
stm              1179 net/kcm/kcmsock.c 	struct strp_msg *stm;
stm              1196 net/kcm/kcmsock.c 	stm = strp_msg(skb);
stm              1198 net/kcm/kcmsock.c 	if (len > stm->full_len)
stm              1199 net/kcm/kcmsock.c 		len = stm->full_len;
stm              1201 net/kcm/kcmsock.c 	copied = skb_splice_bits(skb, sk, stm->offset, pipe, len, flags);
stm              1209 net/kcm/kcmsock.c 	stm->offset += copied;
stm              1210 net/kcm/kcmsock.c 	stm->full_len -= copied;
stm               102 net/strparser/strparser.c 	struct _strp_msg *stm;
stm               194 net/strparser/strparser.c 			stm = _strp_msg(head);
stm               195 net/strparser/strparser.c 			memset(stm, 0, sizeof(*stm));
stm               196 net/strparser/strparser.c 			stm->strp.offset = orig_offset + eaten;
stm               210 net/strparser/strparser.c 			stm = _strp_msg(head);
stm               218 net/strparser/strparser.c 		if (!stm->strp.full_len) {
stm               225 net/strparser/strparser.c 				if (!stm->accum_len) {
stm               229 net/strparser/strparser.c 				stm->accum_len += cand_len;
stm               235 net/strparser/strparser.c 				if (len == -ESTRPIPE && stm->accum_len) {
stm               249 net/strparser/strparser.c 					  skb->len - stm->strp.offset) {
stm               258 net/strparser/strparser.c 			stm->strp.full_len = len;
stm               261 net/strparser/strparser.c 		extra = (ssize_t)(stm->accum_len + cand_len) -
stm               262 net/strparser/strparser.c 			stm->strp.full_len;
stm               266 net/strparser/strparser.c 			if (stm->strp.full_len - stm->accum_len >
stm               275 net/strparser/strparser.c 				if (!stm->accum_len) {
stm               280 net/strparser/strparser.c 				stm->accum_len += cand_len;
stm               282 net/strparser/strparser.c 				strp->need_bytes = stm->strp.full_len -
stm               283 net/strparser/strparser.c 						       stm->accum_len;
stm               288 net/strparser/strparser.c 			stm->accum_len += cand_len;