Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 10 of 10) sorted by relevance

/sound/soc/au1x/
Dac97c.c71 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) in RD() argument
73 return __raw_readl(ctx->mmio + reg); in RD()
76 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) in WR() argument
78 __raw_writel(v, ctx->mmio + reg); in WR()
85 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_read() local
92 mutex_lock(&ctx->lock); in au1xac97c_ac97_read()
95 while ((RD(ctx, AC97_STATUS) & STAT_CP) && tmo--) in au1xac97c_ac97_read()
102 WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ); in au1xac97c_ac97_read()
108 while ((RD(ctx, AC97_STATUS) & STAT_CP) && tmo--) in au1xac97c_ac97_read()
110 data = RD(ctx, AC97_CMDRESP); in au1xac97c_ac97_read()
[all …]
Di2sc.c69 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) in RD() argument
71 return __raw_readl(ctx->mmio + reg); in RD()
74 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) in WR() argument
76 __raw_writel(v, ctx->mmio + reg); in WR()
82 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(cpu_dai); in au1xi2s_set_fmt() local
87 c = ctx->cfg; in au1xi2s_set_fmt()
130 ctx->cfg = c; in au1xi2s_set_fmt()
138 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai); in au1xi2s_trigger() local
145 WR(ctx, I2S_ENABLE, EN_D | EN_CE); in au1xi2s_trigger()
146 WR(ctx, I2S_ENABLE, EN_CE); in au1xi2s_trigger()
[all …]
Ddma.c182 struct alchemy_pcm_ctx *ctx = ss_to_ctx(ss); in ss_to_as() local
183 return &(ctx->stream[ss->stream]); in ss_to_as()
188 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream); in alchemy_pcm_open() local
199 ctx->stream[s].dma = request_au1000_dma(dmaids[s], name, in alchemy_pcm_open()
201 &ctx->stream[s]); in alchemy_pcm_open()
202 set_dma_mode(ctx->stream[s].dma, in alchemy_pcm_open()
203 get_dma_mode(ctx->stream[s].dma) & ~DMA_NC); in alchemy_pcm_open()
205 ctx->stream[s].substream = substream; in alchemy_pcm_open()
206 ctx->stream[s].buffer = NULL; in alchemy_pcm_open()
214 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream); in alchemy_pcm_close() local
[all …]
/sound/usb/
Dendpoint.c190 struct snd_urb_ctx *ctx) in prepare_outbound_urb() argument
193 struct urb *urb = ctx->urb; in prepare_outbound_urb()
205 for (i = 0; i < ctx->packets; ++i) { in prepare_outbound_urb()
208 if (ctx->packet_size[i]) in prepare_outbound_urb()
209 counts = ctx->packet_size[i]; in prepare_outbound_urb()
218 urb->number_of_packets = ctx->packets; in prepare_outbound_urb()
304 struct snd_urb_ctx *ctx = NULL; in queue_pending_output_urbs() local
316 ctx = list_first_entry(&ep->ready_playback_urbs, in queue_pending_output_urbs()
321 if (ctx == NULL) in queue_pending_output_urbs()
324 list_del_init(&ctx->ready_list); in queue_pending_output_urbs()
[all …]
Dpcm.c1367 struct snd_urb_ctx *ctx = urb->context; in prepare_playback_urb() local
1378 for (i = 0; i < ctx->packets; i++) { in prepare_playback_urb()
1379 if (ctx->packet_size[i]) in prepare_playback_urb()
1380 counts = ctx->packet_size[i]; in prepare_playback_urb()
1405 if (i < ctx->packets) { in prepare_playback_urb()
/sound/core/seq/oss/
Dseq_oss_readq.c133 struct readq_sysex_ctx *ctx = ptr; in readq_dump_sysex() local
135 return snd_seq_oss_readq_puts(ctx->readq, ctx->dev, buf, count); in readq_dump_sysex()
141 struct readq_sysex_ctx ctx = { in snd_seq_oss_readq_sysex() local
148 return snd_seq_dump_var_event(ev, readq_dump_sysex, &ctx); in snd_seq_oss_readq_sysex()
/sound/soc/intel/
Dsst-mfld-platform-pcm.c206 const struct sst_data *ctx, struct snd_sst_params *str_params, bool is_compress) in sst_fill_stream_params() argument
214 map = ctx->pdata->pdev_strm_map; in sst_fill_stream_params()
215 map_size = ctx->pdata->strm_map_size; in sst_fill_stream_params()
263 struct sst_data *ctx = snd_soc_dai_get_drvdata(dai); in sst_platform_alloc_stream() local
274 ret_val = sst_fill_stream_params(substream, ctx, &str_params, false); in sst_platform_alloc_stream()
Dsst-mfld-platform-compress.c105 struct sst_data *ctx = snd_soc_platform_get_drvdata(platform); in sst_platform_compr_set_params() local
112 retval = sst_fill_stream_params(cstream, ctx, &str_params, true); in sst_platform_compr_set_params()
Dsst-mfld-platform.h157 int sst_fill_stream_params(void *substream, const struct sst_data *ctx,
/sound/soc/codecs/
Dsn95031.c167 static int sn95031_read(void *ctx, unsigned int reg, unsigned int *val) in sn95031_read() argument
179 static int sn95031_write(void *ctx, unsigned int reg, unsigned int value) in sn95031_write() argument