Lines Matching full:stm
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()
176 sth->stm.sw_end = reg >> 16; in intel_th_sw_init()
178 sth->sw_nmasters = sth->stm.sw_end - sth->stm.sw_start; in intel_th_sw_init()
180 sth->stm.sw_start, sth->stm.sw_end, sth->sw_nmasters, in intel_th_sw_init()
181 sth->stm.sw_nchannels); in intel_th_sw_init()
218 sth->stm.name = dev_name(dev); in intel_th_sth_probe()
219 sth->stm.packet = sth_stm_packet; in intel_th_sth_probe()
220 sth->stm.mmio_addr = sth_stm_mmio_addr; in intel_th_sth_probe()
221 sth->stm.sw_mmiosz = sizeof(struct intel_th_channel); in intel_th_sth_probe()
222 sth->stm.link = sth_stm_link; in intel_th_sth_probe()
228 err = stm_register_device(dev, &sth->stm, THIS_MODULE); in intel_th_sth_probe()
243 stm_unregister_device(&sth->stm); in intel_th_sth_remove()