• Home
  • Raw
  • Download

Lines Matching refs:stream

30 				struct hdac_ext_stream *stream,  in snd_hdac_ext_stream_init()  argument
34 stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init()
37 stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init()
43 stream->spib_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init()
47 stream->fifo_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init()
53 stream->dpibr_addr = bus->drsmcap + AZX_DRSM_BASE + in snd_hdac_ext_stream_init()
56 stream->decoupled = false; in snd_hdac_ext_stream_init()
57 snd_hdac_stream_init(bus, &stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init()
76 struct hdac_ext_stream *stream = in snd_hdac_ext_stream_init_all() local
77 kzalloc(sizeof(*stream), GFP_KERNEL); in snd_hdac_ext_stream_init_all()
78 if (!stream) in snd_hdac_ext_stream_init_all()
81 snd_hdac_ext_stream_init(bus, stream, idx, dir, tag); in snd_hdac_ext_stream_init_all()
98 struct hdac_ext_stream *stream; in snd_hdac_stream_free_all() local
101 stream = stream_to_hdac_ext_stream(s); in snd_hdac_stream_free_all()
102 snd_hdac_ext_stream_decouple(bus, stream, false); in snd_hdac_stream_free_all()
104 kfree(stream); in snd_hdac_stream_free_all()
110 struct hdac_ext_stream *stream, in snd_hdac_ext_stream_decouple_locked() argument
113 struct hdac_stream *hstream = &stream->hstream; in snd_hdac_ext_stream_decouple_locked()
124 stream->decoupled = decouple; in snd_hdac_ext_stream_decouple_locked()
135 struct hdac_ext_stream *stream, bool decouple) in snd_hdac_ext_stream_decouple() argument
138 snd_hdac_ext_stream_decouple_locked(bus, stream, decouple); in snd_hdac_ext_stream_decouple()
147 void snd_hdac_ext_link_stream_start(struct hdac_ext_stream *stream) in snd_hdac_ext_link_stream_start() argument
149 snd_hdac_updatel(stream->pplc_addr, AZX_REG_PPLCCTL, in snd_hdac_ext_link_stream_start()
158 void snd_hdac_ext_link_stream_clear(struct hdac_ext_stream *stream) in snd_hdac_ext_link_stream_clear() argument
160 snd_hdac_updatel(stream->pplc_addr, AZX_REG_PPLCCTL, AZX_PPLCCTL_RUN, 0); in snd_hdac_ext_link_stream_clear()
168 void snd_hdac_ext_link_stream_reset(struct hdac_ext_stream *stream) in snd_hdac_ext_link_stream_reset() argument
173 snd_hdac_ext_link_stream_clear(stream); in snd_hdac_ext_link_stream_reset()
175 snd_hdac_updatel(stream->pplc_addr, AZX_REG_PPLCCTL, in snd_hdac_ext_link_stream_reset()
180 val = readl(stream->pplc_addr + AZX_REG_PPLCCTL) & in snd_hdac_ext_link_stream_reset()
187 writel(val, stream->pplc_addr + AZX_REG_PPLCCTL); in snd_hdac_ext_link_stream_reset()
193 val = readl(stream->pplc_addr + AZX_REG_PPLCCTL) & AZX_PPLCCTL_STRST; in snd_hdac_ext_link_stream_reset()
207 int snd_hdac_ext_link_stream_setup(struct hdac_ext_stream *stream, int fmt) in snd_hdac_ext_link_stream_setup() argument
209 struct hdac_stream *hstream = &stream->hstream; in snd_hdac_ext_link_stream_setup()
213 snd_hdac_ext_link_stream_clear(stream); in snd_hdac_ext_link_stream_setup()
215 val = readl(stream->pplc_addr + AZX_REG_PPLCCTL); in snd_hdac_ext_link_stream_setup()
218 writel(val, stream->pplc_addr + AZX_REG_PPLCCTL); in snd_hdac_ext_link_stream_setup()
221 writew(fmt, stream->pplc_addr + AZX_REG_PPLCFMT); in snd_hdac_ext_link_stream_setup()
233 int stream) in snd_hdac_ext_link_set_stream_id() argument
235 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream); in snd_hdac_ext_link_set_stream_id()
245 int stream) in snd_hdac_ext_link_clear_stream_id() argument
247 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 0); in snd_hdac_ext_link_clear_stream_id()
256 struct hdac_stream *stream = NULL; in hdac_ext_link_stream_assign() local
264 list_for_each_entry(stream, &bus->stream_list, list) { in hdac_ext_link_stream_assign()
265 struct hdac_ext_stream *hstream = container_of(stream, in hdac_ext_link_stream_assign()
268 if (stream->direction != substream->stream) in hdac_ext_link_stream_assign()
296 struct hdac_stream *stream = NULL; in hdac_ext_host_stream_assign() local
304 list_for_each_entry(stream, &bus->stream_list, list) { in hdac_ext_host_stream_assign()
305 struct hdac_ext_stream *hstream = container_of(stream, in hdac_ext_host_stream_assign()
308 if (stream->direction != substream->stream) in hdac_ext_host_stream_assign()
311 if (!stream->opened) { in hdac_ext_host_stream_assign()
350 struct hdac_stream *stream = NULL; in snd_hdac_ext_stream_assign() local
354 stream = snd_hdac_stream_assign(bus, substream); in snd_hdac_ext_stream_assign()
355 if (stream) in snd_hdac_ext_stream_assign()
356 hstream = container_of(stream, in snd_hdac_ext_stream_assign()
379 void snd_hdac_ext_stream_release(struct hdac_ext_stream *stream, int type) in snd_hdac_ext_stream_release() argument
381 struct hdac_bus *bus = stream->hstream.bus; in snd_hdac_ext_stream_release()
385 snd_hdac_stream_release(&stream->hstream); in snd_hdac_ext_stream_release()
390 if (stream->decoupled && !stream->link_locked) in snd_hdac_ext_stream_release()
391 snd_hdac_ext_stream_decouple_locked(bus, stream, false); in snd_hdac_ext_stream_release()
393 snd_hdac_stream_release(&stream->hstream); in snd_hdac_ext_stream_release()
398 if (stream->decoupled && !stream->hstream.opened) in snd_hdac_ext_stream_release()
399 snd_hdac_ext_stream_decouple_locked(bus, stream, false); in snd_hdac_ext_stream_release()
400 stream->link_locked = 0; in snd_hdac_ext_stream_release()
401 stream->link_substream = NULL; in snd_hdac_ext_stream_release()
444 struct hdac_ext_stream *stream, u32 value) in snd_hdac_ext_stream_set_spib() argument
452 writel(value, stream->spib_addr); in snd_hdac_ext_stream_set_spib()
466 struct hdac_ext_stream *stream) in snd_hdac_ext_stream_get_spbmaxfifo() argument
474 return readl(stream->fifo_addr); in snd_hdac_ext_stream_get_spbmaxfifo()
510 struct hdac_ext_stream *stream, u32 value) in snd_hdac_ext_stream_set_dpibr() argument
518 writel(value, stream->dpibr_addr); in snd_hdac_ext_stream_set_dpibr()
529 int snd_hdac_ext_stream_set_lpib(struct hdac_ext_stream *stream, u32 value) in snd_hdac_ext_stream_set_lpib() argument
531 snd_hdac_stream_writel(&stream->hstream, SD_LPIB, value); in snd_hdac_ext_stream_set_lpib()