Lines Matching +full:ssiu +full:-
1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car
13 #include <linux/dma-mapping.h>
44 * The register address offsets SRU/SCU/SSIU on Gen1/Gen2 are very different.
157 /* SSIU */
263 * R-Car basic functions
273 * R-Car DMA
282 * R-Car sound mod
401 #define __rsnd_mod_add_quit -1 /* needs protect */
403 #define __rsnd_mod_add_stop -1 /* needs protect */
405 #define __rsnd_mod_add_hw_free -1 /* needs protect */
426 #define rsnd_mod_to_priv(mod) ((mod)->priv)
427 #define rsnd_mod_power_on(mod) clk_enable((mod)->clk)
428 #define rsnd_mod_power_off(mod) clk_disable((mod)->clk)
429 #define rsnd_mod_get(ip) (&(ip)->mod)
492 of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, node)
495 #define RSND_NODE_SSIU "rcar_sound,ssiu"
502 * R-Car sound DAI
524 #define rsnd_io_to_mod(io, i) ((i) < RSND_MOD_MAX ? (io)->mod[(i)] : NULL)
533 #define rsnd_io_to_rdai(io) ((io)->rdai)
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)
550 int max_channels; /* 2ch - 16ch */
551 int ssi_lane; /* 1lane - 4lane */
561 #define rsnd_rdai_nr(priv) ((priv)->rdai_nr)
562 #define rsnd_rdai_is_clk_master(rdai) ((rdai)->clk_master)
563 #define rsnd_rdai_to_priv(rdai) ((rdai)->priv)
597 * R-Car Gen1/Gen2
609 * R-Car ADG
628 * R-Car sound priv
667 void *ssiu; member
711 #define rsnd_priv_to_pdev(priv) ((priv)->pdev)
712 #define rsnd_priv_to_dev(priv) (&(rsnd_priv_to_pdev(priv)->dev))
714 #define rsnd_is_gen1(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN1)
715 #define rsnd_is_gen2(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN2)
716 #define rsnd_is_gen3(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN3)
717 #define rsnd_is_gen4(priv) (((priv)->flags & RSND_GEN_MASK) == RSND_GEN4)
718 #define rsnd_is_e3(priv) (((priv)->flags & \
722 #define rsnd_flags_has(p, f) ((p)->flags & (f))
723 #define rsnd_flags_set(p, f) ((p)->flags |= (f))
724 #define rsnd_flags_del(p, f) ((p)->flags &= ~(f))
790 * R-Car SSI
811 * R-Car SSIU
824 * R-Car SRC
843 * R-Car CTU
855 * R-Car MIX
867 * R-Car DVC
879 * R-Car CMD