Lines Matching refs:io

14 #include <linux/io.h>
268 u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
269 u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
270 u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
275 int rsnd_dma_attach(struct rsnd_dai_stream *io,
303 struct dma_chan* (*dma_req)(struct rsnd_dai_stream *io,
306 struct rsnd_dai_stream *io,
309 struct rsnd_dai_stream *io,
312 struct rsnd_dai_stream *io,
315 struct rsnd_dai_stream *io,
318 struct rsnd_dai_stream *io,
321 struct rsnd_dai_stream *io,
324 struct rsnd_dai_stream *io,
327 struct rsnd_dai_stream *io,
330 struct rsnd_dai_stream *io,
334 struct rsnd_dai_stream *io,
337 struct rsnd_dai_stream *io,
340 struct rsnd_dai_stream *io,
343 struct rsnd_dai_stream *io,
346 struct rsnd_dai_stream *io,
349 struct rsnd_dai_stream *io,
357 struct rsnd_dai_stream *io, struct rsnd_mod *mod);
438 struct dma_chan *rsnd_mod_dma_req(struct rsnd_dai_stream *io,
442 struct rsnd_dai_stream *io));
444 struct rsnd_dai_stream *io,
451 struct rsnd_dai_stream *io,
454 #define for_each_rsnd_mod(iterator, pos, io) \
456 (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)
457 #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \
459 (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)
460 #define for_each_rsnd_mod_array(iterator, pos, io, array) \
461 for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
472 #define rsnd_runtime_channel_original(io) \
473 rsnd_runtime_channel_original_with_params(io, NULL)
474 int rsnd_runtime_channel_original_with_params(struct rsnd_dai_stream *io,
476 #define rsnd_runtime_channel_after_ctu(io) \
477 rsnd_runtime_channel_after_ctu_with_params(io, NULL)
478 int rsnd_runtime_channel_after_ctu_with_params(struct rsnd_dai_stream *io,
480 #define rsnd_runtime_channel_for_ssi(io) \
481 rsnd_runtime_channel_for_ssi_with_params(io, NULL)
482 int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io,
484 int rsnd_runtime_is_multi_ssi(struct rsnd_dai_stream *io);
485 int rsnd_runtime_is_tdm(struct rsnd_dai_stream *io);
486 int rsnd_runtime_is_tdm_split(struct rsnd_dai_stream *io);
524 #define rsnd_io_to_mod(io, i) ((i) < RSND_MOD_MAX ? (io)->mod[(i)] : NULL)
525 #define rsnd_io_to_mod_ssi(io) rsnd_io_to_mod((io), RSND_MOD_SSI)
526 #define rsnd_io_to_mod_ssiu(io) rsnd_io_to_mod((io), RSND_MOD_SSIU)
527 #define rsnd_io_to_mod_ssip(io) rsnd_io_to_mod((io), RSND_MOD_SSIP)
528 #define rsnd_io_to_mod_src(io) rsnd_io_to_mod((io), RSND_MOD_SRC)
529 #define rsnd_io_to_mod_ctu(io) rsnd_io_to_mod((io), RSND_MOD_CTU)
530 #define rsnd_io_to_mod_mix(io) rsnd_io_to_mod((io), RSND_MOD_MIX)
531 #define rsnd_io_to_mod_dvc(io) rsnd_io_to_mod((io), RSND_MOD_DVC)
532 #define rsnd_io_to_mod_cmd(io) rsnd_io_to_mod((io), RSND_MOD_CMD)
533 #define rsnd_io_to_rdai(io) ((io)->rdai)
534 #define rsnd_io_to_priv(io) (rsnd_rdai_to_priv(rsnd_io_to_rdai(io)))
535 #define rsnd_io_is_play(io) (&rsnd_io_to_rdai(io)->playback == io)
536 #define rsnd_io_to_runtime(io) ((io)->substream ? \
537 (io)->substream->runtime : NULL)
538 #define rsnd_io_converted_rate(io) ((io)->converted_rate)
539 #define rsnd_io_converted_chan(io) ((io)->converted_chan)
540 int rsnd_io_is_working(struct rsnd_dai_stream *io);
591 void rsnd_dai_period_elapsed(struct rsnd_dai_stream *io);
593 struct rsnd_dai_stream *io,
617 struct rsnd_dai_stream *io,
621 struct rsnd_dai_stream *io);
734 int (*accept)(struct rsnd_dai_stream *io);
735 void (*update)(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
736 struct rsnd_dai_stream *io;
757 int rsnd_kctrl_accept_anytime(struct rsnd_dai_stream *io);
758 int rsnd_kctrl_accept_runtime(struct rsnd_dai_stream *io);
762 struct rsnd_dai_stream *io,
765 int (*accept)(struct rsnd_dai_stream *io),
766 void (*update)(struct rsnd_dai_stream *io,
773 #define rsnd_kctrl_new_m(mod, io, rtd, name, accept, update, cfg, size, max) \
774 rsnd_kctrl_new(mod, io, rtd, name, accept, update, rsnd_kctrl_init_m(cfg), \
777 #define rsnd_kctrl_new_s(mod, io, rtd, name, accept, update, cfg, max) \
778 rsnd_kctrl_new(mod, io, rtd, name, accept, update, rsnd_kctrl_init_s(cfg), \
781 #define rsnd_kctrl_new_e(mod, io, rtd, name, accept, update, cfg, texts, size) \
782 rsnd_kctrl_new(mod, io, rtd, name, accept, update, rsnd_kctrl_init_s(cfg), \
795 int rsnd_ssi_use_busif(struct rsnd_dai_stream *io);
796 u32 rsnd_ssi_multi_secondaries_runtime(struct rsnd_dai_stream *io);
799 #define rsnd_ssi_is_pin_sharing(io) \
800 __rsnd_ssi_is_pin_sharing(rsnd_io_to_mod_ssi(io))
813 int rsnd_ssiu_attach(struct rsnd_dai_stream *io,
830 #define rsnd_src_get_in_rate(priv, io) rsnd_src_get_rate(priv, io, 1)
831 #define rsnd_src_get_out_rate(priv, io) rsnd_src_get_rate(priv, io, 0)
833 struct rsnd_dai_stream *io,
883 int rsnd_cmd_attach(struct rsnd_dai_stream *io, int id);