Home
last modified time | relevance | path

Searched refs:sai (Results 1 – 25 of 53) sorted by relevance

123

/linux-5.19.10/sound/soc/stm/
Dstm32_sai_sub.c58 #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata))
188 static int stm32_sai_sub_reg_up(struct stm32_sai_sub_data *sai, in stm32_sai_sub_reg_up() argument
194 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
198 ret = regmap_update_bits(sai->regmap, reg, mask, val); in stm32_sai_sub_reg_up()
200 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
205 static int stm32_sai_sub_reg_wr(struct stm32_sai_sub_data *sai, in stm32_sai_sub_reg_wr() argument
211 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
215 ret = regmap_write_bits(sai->regmap, reg, mask, val); in stm32_sai_sub_reg_wr()
217 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
222 static int stm32_sai_sub_reg_rd(struct stm32_sai_sub_data *sai, in stm32_sai_sub_reg_rd() argument
[all …]
Dstm32_sai.c47 struct stm32_sai_data *sai = dev_get_drvdata(dev); in stm32_sai_pclk_disable() local
49 clk_disable_unprepare(sai->pclk); in stm32_sai_pclk_disable()
56 struct stm32_sai_data *sai = dev_get_drvdata(dev); in stm32_sai_pclk_enable() local
59 ret = clk_prepare_enable(sai->pclk); in stm32_sai_pclk_enable()
61 dev_err(&sai->pdev->dev, "failed to enable clock: %d\n", ret); in stm32_sai_pclk_enable()
68 static int stm32_sai_sync_conf_client(struct stm32_sai_data *sai, int synci) in stm32_sai_sync_conf_client() argument
73 ret = stm32_sai_pclk_enable(&sai->pdev->dev); in stm32_sai_sync_conf_client()
77 writel_relaxed(FIELD_PREP(SAI_GCR_SYNCIN_MASK, (synci - 1)), sai->base); in stm32_sai_sync_conf_client()
79 stm32_sai_pclk_disable(&sai->pdev->dev); in stm32_sai_sync_conf_client()
84 static int stm32_sai_sync_conf_provider(struct stm32_sai_data *sai, int synco) in stm32_sai_sync_conf_provider() argument
[all …]
DMakefile3 snd-soc-stm32-sai-sub-objs := stm32_sai_sub.o
4 obj-$(CONFIG_SND_SOC_STM32_SAI) += snd-soc-stm32-sai-sub.o
6 snd-soc-stm32-sai-objs := stm32_sai.o
7 obj-$(CONFIG_SND_SOC_STM32_SAI) += snd-soc-stm32-sai.o
/linux-5.19.10/sound/soc/fsl/
Dfsl_sai.c51 static inline bool fsl_sai_dir_is_synced(struct fsl_sai *sai, int dir) in fsl_sai_dir_is_synced() argument
56 return !sai->synchronous[dir] && sai->synchronous[adir]; in fsl_sai_dir_is_synced()
61 struct fsl_sai *sai = (struct fsl_sai *)devid; in fsl_sai_isr() local
62 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr()
63 struct device *dev = &sai->pdev->dev; in fsl_sai_isr()
75 regmap_read(sai->regmap, FSL_SAI_TCSR(ofs), &xcsr); in fsl_sai_isr()
105 regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), flags | xcsr); in fsl_sai_isr()
109 regmap_read(sai->regmap, FSL_SAI_RCSR(ofs), &xcsr); in fsl_sai_isr()
139 regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), flags | xcsr); in fsl_sai_isr()
148 struct fsl_sai *sai = snd_soc_dai_get_drvdata(cpu_dai); in fsl_sai_set_dai_tdm_slot() local
[all …]
DMakefile18 snd-soc-fsl-sai-objs := fsl_sai.o
35 obj-$(CONFIG_SND_SOC_FSL_SAI) += snd-soc-fsl-sai.o
/linux-5.19.10/Documentation/devicetree/bindings/sound/
Dfsl-sai.txt10 - compatible : Compatible list, contains "fsl,vf610-sai",
11 "fsl,imx6sx-sai", "fsl,imx6ul-sai",
12 "fsl,imx7ulp-sai", "fsl,imx8mq-sai",
13 "fsl,imx8qm-sai", "fsl,imx8mm-sai",
14 "fsl,imx8mn-sai", "fsl,imx8mp-sai", or
15 "fsl,imx8ulp-sai".
40 - fsl,sai-synchronous-rx: This is a boolean property. If present, indicating
46 - fsl,sai-asynchronous: This is a boolean property. If present, indicating
59 - fsl,sai-mclk-direction-output: This is a boolean property. If present,
63 - If both fsl,sai-asynchronous and fsl,sai-synchronous-rx are absent, the
[all …]
Dst,stm32-sai.yaml4 $id: http://devicetree.org/schemas/sound/st,stm32-sai.yaml#
21 - st,stm32f4-sai
22 - st,stm32h7-sai
70 pattern: "st,stm32-sai-sub-[ab]"
138 const: st,stm32f4-sai
171 sai2: sai@4400b000 {
172 compatible = "st,stm32h7-sai";
185 compatible = "st,stm32-sai-sub-a";
/linux-5.19.10/fs/xfs/scrub/
Dagheader.c640 struct xchk_agfl_info *sai = priv; in xchk_agfl_block() local
641 struct xfs_scrub *sc = sai->sc; in xchk_agfl_block()
645 sai->nr_entries < sai->sz_entries) in xchk_agfl_block()
646 sai->entries[sai->nr_entries++] = agbno; in xchk_agfl_block()
700 struct xchk_agfl_info sai; in xchk_agfl() local
726 memset(&sai, 0, sizeof(sai)); in xchk_agfl()
727 sai.sc = sc; in xchk_agfl()
728 sai.sz_entries = agflcount; in xchk_agfl()
729 sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, in xchk_agfl()
731 if (!sai.entries) { in xchk_agfl()
[all …]
/linux-5.19.10/Documentation/devicetree/bindings/clock/
Dfsl,sai-clock.yaml4 $id: http://devicetree.org/schemas/clock/fsl,sai-clock.yaml#
24 const: fsl,vf610-sai-clock
50 compatible = "fsl,vf610-sai-clock";
/linux-5.19.10/drivers/dma/
Dtxx9dmac.h289 u32 sai, u32 dai, u32 ccr) in txx9dmac_desc_set_nosimple() argument
292 desc->hwdesc.SAIR = sai; in txx9dmac_desc_set_nosimple()
296 desc->hwdesc32.SAIR = sai; in txx9dmac_desc_set_nosimple()
Dtxx9dmac.c334 u32 sai, dai; in txx9dmac_dostart() local
352 sai = ds->reg_width; in txx9dmac_dostart()
355 sai = 0; in txx9dmac_dostart()
359 sai = 8; in txx9dmac_dostart()
362 channel64_writel(dc, SAIR, sai); in txx9dmac_dostart()
373 sai = ds->reg_width; in txx9dmac_dostart()
376 sai = 0; in txx9dmac_dostart()
380 sai = 4; in txx9dmac_dostart()
383 channel32_writel(dc, SAIR, sai); in txx9dmac_dostart()
830 u32 sai, dai; in txx9dmac_prep_slave_sg() local
[all …]
/linux-5.19.10/arch/arm64/boot/dts/freescale/
Dimx8mn.dtsi295 sai2: sai@30020000 {
296 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
309 sai3: sai@30030000 {
310 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
323 sai5: sai@30050000 {
324 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
339 sai6: sai@30060000 {
340 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
396 sai7: sai@300b0000 {
397 compatible = "fsl,imx8mn-sai", "fsl,imx8mq-sai";
Dimx8mm.dtsi313 sai1: sai@30010000 {
315 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
327 sai2: sai@30020000 {
329 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
341 sai3: sai@30030000 {
343 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
355 sai5: sai@30050000 {
357 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
369 sai6: sai@30060000 {
371 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
Dfsl-ls1028a.dtsi875 compatible = "fsl,vf610-sai";
890 fsl,sai-asynchronous;
896 compatible = "fsl,vf610-sai";
911 fsl,sai-asynchronous;
917 compatible = "fsl,vf610-sai";
932 fsl,sai-asynchronous;
938 compatible = "fsl,vf610-sai";
953 fsl,sai-asynchronous;
959 compatible = "fsl,vf610-sai";
974 fsl,sai-asynchronous;
[all …]
Dimx8mq.dtsi339 sai1: sai@30010000 {
341 compatible = "fsl,imx8mq-sai";
353 sai6: sai@30030000 {
355 compatible = "fsl,imx8mq-sai";
367 sai5: sai@30040000 {
369 compatible = "fsl,imx8mq-sai";
381 sai4: sai@30050000 {
383 compatible = "fsl,imx8mq-sai";
978 sai2: sai@308b0000 {
980 compatible = "fsl,imx8mq-sai";
[all …]
/linux-5.19.10/net/sctp/
Dulpevent.c644 struct sctp_adaptation_event *sai; in sctp_ulpevent_make_adaptation_indication() local
653 sai = skb_put(skb, sizeof(struct sctp_adaptation_event)); in sctp_ulpevent_make_adaptation_indication()
655 sai->sai_type = SCTP_ADAPTATION_INDICATION; in sctp_ulpevent_make_adaptation_indication()
656 sai->sai_flags = 0; in sctp_ulpevent_make_adaptation_indication()
657 sai->sai_length = sizeof(struct sctp_adaptation_event); in sctp_ulpevent_make_adaptation_indication()
658 sai->sai_adaptation_ind = asoc->peer.adaptation_ind; in sctp_ulpevent_make_adaptation_indication()
660 sai->sai_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_adaptation_indication()
/linux-5.19.10/arch/arm/boot/dts/
Dvfxxx.dtsi186 sai0: sai@4002f000 {
187 compatible = "fsl,vf610-sai";
200 sai1: sai@40030000 {
201 compatible = "fsl,vf610-sai";
214 sai2: sai@40031000 {
215 compatible = "fsl,vf610-sai";
228 sai3: sai@40032000 {
229 compatible = "fsl,vf610-sai";
Dstm32mp151.dtsi834 sai1: sai@4400a000 {
835 compatible = "st,stm32h7-sai";
847 compatible = "st,stm32-sai-sub-a";
857 compatible = "st,stm32-sai-sub-b";
866 sai2: sai@4400b000 {
867 compatible = "st,stm32h7-sai";
878 compatible = "st,stm32-sai-sub-a";
888 compatible = "st,stm32-sai-sub-b";
897 sai3: sai@4400c000 {
898 compatible = "st,stm32h7-sai";
[all …]
Dimx6sx-sdb-sai.dts14 /* pin conflict with sai */
Dimx6ul.dtsi303 sai1: sai@2028000 {
305 compatible = "fsl,imx6ul-sai", "fsl,imx6sx-sai";
318 sai2: sai@202c000 {
320 compatible = "fsl,imx6ul-sai", "fsl,imx6sx-sai";
333 sai3: sai@2030000 {
335 compatible = "fsl,imx6ul-sai", "fsl,imx6sx-sai";
Dimx7s.dtsi941 sai1: sai@308a0000 {
943 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
956 sai2: sai@308b0000 {
958 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
971 sai3: sai@308c0000 {
973 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
/linux-5.19.10/Documentation/devicetree/bindings/dma/
Dfsl-edma.txt102 sai2: sai@40031000 {
103 compatible = "fsl,vf610-sai";
106 clock-names = "sai";
/linux-5.19.10/sound/soc/sof/
Dipc3-pcm.c315 rate->min = private->dai_config->sai.fsync_rate; in sof_ipc3_pcm_dai_link_fixup()
316 rate->max = private->dai_config->sai.fsync_rate; in sof_ipc3_pcm_dai_link_fixup()
317 channels->min = private->dai_config->sai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup()
318 channels->max = private->dai_config->sai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup()
Dipc3-topology.c1025 memset(&config->sai, 0, sizeof(config->sai)); in sof_link_sai_load()
1029 ret = sof_update_ipc_object(scomp, &config->sai, SOF_SAI_TOKENS, slink->tuples, in sof_link_sai_load()
1034 config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); in sof_link_sai_load()
1035 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_sai_load()
1036 config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); in sof_link_sai_load()
1037 config->sai.mclk_direction = hw_config->mclk_direction; in sof_link_sai_load()
1039 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load()
1040 config->sai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width); in sof_link_sai_load()
1041 config->sai.rx_slots = le32_to_cpu(hw_config->rx_slots); in sof_link_sai_load()
1042 config->sai.tx_slots = le32_to_cpu(hw_config->tx_slots); in sof_link_sai_load()
[all …]
/linux-5.19.10/include/sound/sof/
Ddai.h111 struct sof_ipc_dai_sai_params sai; member

123