Lines Matching defs:mod

35 	struct rsnd_mod		mod;
54 #define rsnd_mod_to_dma(_mod) container_of((_mod), struct rsnd_dma, mod)
69 static void __rsnd_dmaen_complete(struct rsnd_mod *mod,
78 struct rsnd_mod *mod = data;
80 rsnd_mod_interrupt(mod, __rsnd_dmaen_complete);
97 static int rsnd_dmaen_stop(struct rsnd_mod *mod,
101 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
110 static int rsnd_dmaen_cleanup(struct rsnd_mod *mod,
114 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
130 static int rsnd_dmaen_prepare(struct rsnd_mod *mod,
134 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
159 static int rsnd_dmaen_start(struct rsnd_mod *mod,
163 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
205 rsnd_mod_name(mod),
241 struct rsnd_mod *mod, char *x)
243 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
257 if (i == rsnd_mod_id_raw(mod) && (!chan))
306 static int rsnd_dmaen_pointer(struct rsnd_mod *mod,
311 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
380 struct rsnd_mod *mod)
390 if ((mod == ssi) ||
391 (mod == ssiu)) {
396 id = (rsnd_mod_id(mod) * 8) + busif;
397 } else if (mod == src) {
400 id = rsnd_mod_id(mod);
401 } else if (mod == dvc) {
404 id = rsnd_mod_id(mod);
410 dev_err(dev, "unknown connection (%s)\n", rsnd_mod_name(mod));
432 struct rsnd_mod *mod = rsnd_mod_get(dma);
433 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
444 struct rsnd_mod *mod = rsnd_mod_get(dma);
445 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
453 struct rsnd_mod *mod = rsnd_mod_get(dma);
454 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
465 static int rsnd_dmapp_stop(struct rsnd_mod *mod,
469 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
483 static int rsnd_dmapp_start(struct rsnd_mod *mod,
487 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
520 struct rsnd_mod *mod)
522 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
524 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
557 * mod / DMAC in / DMAC out / DMAC PP in / DMAC pp out
583 struct rsnd_mod *mod,
590 int is_ssi = !!(rsnd_io_to_mod_ssi(io) == mod) ||
591 !!(rsnd_io_to_mod_ssiu(io) == mod);
596 int id = rsnd_mod_id(mod);
660 * mod / SYS-DMAC in / SYS-DMAC out
665 rsnd_gen4_dma_addr(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
670 int id = rsnd_mod_id(mod);
671 int busif = rsnd_mod_id_sub(mod);
687 struct rsnd_mod *mod,
692 if (!mod)
701 return rsnd_gen4_dma_addr(io, mod, is_play, is_from);
703 return rsnd_gen2_dma_addr(io, mod, is_play, is_from);
718 struct rsnd_mod *mod[MOD_MAX];
751 mod[i] = NULL;
774 mod[idx++] = mod_start;
777 mod[idx++] = src;
780 mod[idx++] = ctu;
783 mod[idx++] = mix;
786 mod[idx++] = dvc;
790 mod[idx] = mod_end;
799 *mod_from = mod[idx - 1];
800 *mod_to = mod[idx];
802 *mod_from = mod[0];
803 *mod_to = mod[1];
809 rsnd_mod_name(mod[i] ? mod[i] : &mem),
810 (mod[i] == *mod_from) ? " from" :
811 (mod[i] == *mod_to) ? " to" : "");
815 static int rsnd_dma_alloc(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
840 rsnd_dma_of_path(mod, io, is_play, &mod_from, &mod_to);
891 int rsnd_dma_attach(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
895 int ret = rsnd_dma_alloc(io, mod, dma_mod);
944 /* dummy mem mod for debug */