Lines Matching refs:ctx
186 struct alchemy_pcm_ctx *ctx = ss_to_ctx(ss, component);
187 return &(ctx->stream[ss->stream]);
193 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream, component);
204 ctx->stream[s].dma = request_au1000_dma(dmaids[s], name,
206 &ctx->stream[s]);
207 set_dma_mode(ctx->stream[s].dma,
208 get_dma_mode(ctx->stream[s].dma) & ~DMA_NC);
210 ctx->stream[s].substream = substream;
211 ctx->stream[s].buffer = NULL;
220 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream, component);
223 ctx->stream[stype].substream = NULL;
224 free_au1000_dma(ctx->stream[stype].dma);
305 struct alchemy_pcm_ctx *ctx;
307 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
308 if (!ctx)
311 platform_set_drvdata(pdev, ctx);