Lines Matching defs:mod
35 struct rsnd_mod mod;
53 #define rsnd_mod_to_dma(_mod) container_of((_mod), struct rsnd_dma, mod)
68 static void __rsnd_dmaen_complete(struct rsnd_mod *mod,
77 struct rsnd_mod *mod = data;
79 rsnd_mod_interrupt(mod, __rsnd_dmaen_complete);
96 static int rsnd_dmaen_stop(struct rsnd_mod *mod,
100 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
109 static int rsnd_dmaen_cleanup(struct rsnd_mod *mod,
113 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
129 static int rsnd_dmaen_prepare(struct rsnd_mod *mod,
133 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
158 static int rsnd_dmaen_start(struct rsnd_mod *mod,
162 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
204 rsnd_mod_name(mod),
240 struct rsnd_mod *mod, char *name)
247 if (i == rsnd_mod_id_raw(mod) && (!chan))
296 static int rsnd_dmaen_pointer(struct rsnd_mod *mod,
301 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
370 struct rsnd_mod *mod)
380 if ((mod == ssi) ||
381 (mod == ssiu)) {
386 id = (rsnd_mod_id(mod) * 8) + busif;
387 } else if (mod == src) {
390 id = rsnd_mod_id(mod);
391 } else if (mod == dvc) {
394 id = rsnd_mod_id(mod);
400 dev_err(dev, "unknown connection (%s)\n", rsnd_mod_name(mod));
422 struct rsnd_mod *mod = rsnd_mod_get(dma);
423 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
434 struct rsnd_mod *mod = rsnd_mod_get(dma);
435 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
443 struct rsnd_mod *mod = rsnd_mod_get(dma);
444 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
455 static int rsnd_dmapp_stop(struct rsnd_mod *mod,
459 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
473 static int rsnd_dmapp_start(struct rsnd_mod *mod,
477 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
528 * mod / DMAC in / DMAC out / DMAC PP in / DMAC pp out
554 struct rsnd_mod *mod,
561 int is_ssi = !!(rsnd_io_to_mod_ssi(io) == mod) ||
562 !!(rsnd_io_to_mod_ssiu(io) == mod);
567 int id = rsnd_mod_id(mod);
628 struct rsnd_mod *mod,
639 if (!mod)
642 return rsnd_gen2_dma_addr(io, mod, is_play, is_from);
657 struct rsnd_mod *mod[MOD_MAX];
690 mod[i] = NULL;
713 mod[idx++] = mod_start;
716 mod[idx++] = src;
719 mod[idx++] = ctu;
722 mod[idx++] = mix;
725 mod[idx++] = dvc;
729 mod[idx] = mod_end;
738 *mod_from = mod[idx - 1];
739 *mod_to = mod[idx];
741 *mod_from = mod[0];
742 *mod_to = mod[1];
748 rsnd_mod_name(mod[i] ? mod[i] : &mem),
749 (mod[i] == *mod_from) ? " from" :
750 (mod[i] == *mod_to) ? " to" : "");
754 static int rsnd_dma_alloc(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
779 rsnd_dma_of_path(mod, io, is_play, &mod_from, &mod_to);
830 int rsnd_dma_attach(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
834 int ret = rsnd_dma_alloc(io, mod, dma_mod);
873 /* dummy mem mod for debug */