Lines Matching +full:ssiu +full:-
1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car
13 #include <linux/dma-mapping.h>
39 * The register address offsets SRU/SCU/SSIU on Gen1/Gen2 are very different.
152 /* SSIU */
257 * R-Car basic functions
267 * R-Car DMA
276 * R-Car sound mod
395 #define __rsnd_mod_add_quit -1 /* needs protect */
397 #define __rsnd_mod_add_stop -1 /* needs protect */
399 #define __rsnd_mod_add_hw_free -1 /* needs protect */
420 #define rsnd_mod_to_priv(mod) ((mod)->priv)
421 #define rsnd_mod_power_on(mod) clk_enable((mod)->clk)
422 #define rsnd_mod_power_off(mod) clk_disable((mod)->clk)
423 #define rsnd_mod_get(ip) (&(ip)->mod)
486 of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, node)
489 #define RSND_NODE_SSIU "rcar_sound,ssiu"
496 * R-Car sound DAI
517 #define rsnd_io_to_mod(io, i) ((i) < RSND_MOD_MAX ? (io)->mod[(i)] : NULL)
526 #define rsnd_io_to_rdai(io) ((io)->rdai)
528 #define rsnd_io_is_play(io) (&rsnd_io_to_rdai(io)->playback == io)
529 #define rsnd_io_to_runtime(io) ((io)->substream ? \
530 (io)->substream->runtime : NULL)
531 #define rsnd_io_converted_rate(io) ((io)->converted_rate)
532 #define rsnd_io_converted_chan(io) ((io)->converted_chan)
542 int max_channels; /* 2ch - 16ch */
543 int ssi_lane; /* 1lane - 4lane */
553 #define rsnd_rdai_nr(priv) ((priv)->rdai_nr)
554 #define rsnd_rdai_is_clk_master(rdai) ((rdai)->clk_master)
555 #define rsnd_rdai_to_priv(rdai) ((rdai)->priv)
589 * R-Car Gen1/Gen2
601 * R-Car ADG
620 * R-Car sound priv
658 void *ssiu; member
699 #define rsnd_priv_to_pdev(priv) ((priv)->pdev)
700 #define rsnd_priv_to_dev(priv) (&(rsnd_priv_to_pdev(priv)->dev))
702 #define rsnd_is_gen1(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN1)
703 #define rsnd_is_gen2(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN2)
704 #define rsnd_is_gen3(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN3)
705 #define rsnd_is_e3(priv) (((priv)->flags & \
709 #define rsnd_flags_has(p, f) ((p)->flags & (f))
710 #define rsnd_flags_set(p, f) ((p)->flags |= (f))
711 #define rsnd_flags_del(p, f) ((p)->flags &= ~(f))
777 * R-Car SSI
798 * R-Car SSIU
811 * R-Car SRC
830 * R-Car CTU
842 * R-Car MIX
854 * R-Car DVC
866 * R-Car CMD