Lines Matching defs:pipe
38 #define for_each_pipe(card_ctx, pipe) \
39 for ((pipe) = 0; (pipe) < (card_ctx)->num_pipes; (pipe)++)
194 static u32 had_config_offset(int pipe)
196 switch (pipe) {
209 int pipe, u32 reg)
211 return ioread32(card_ctx->mmio_start + had_config_offset(pipe) + reg);
215 int pipe, u32 reg, u32 val)
217 iowrite32(val, card_ctx->mmio_start + had_config_offset(pipe) + reg);
225 *val = had_read_register_raw(ctx->card_ctx, ctx->pipe, reg);
231 had_write_register_raw(ctx->card_ctx, ctx->pipe, reg, val);
1490 int pipe, port;
1492 for_each_pipe(card_ctx, pipe) {
1494 audio_stat[pipe] = had_read_register_raw(card_ctx, pipe,
1498 if (audio_stat[pipe])
1499 had_write_register_raw(card_ctx, pipe,
1500 AUD_HDMI_STATUS, audio_stat[pipe]);
1505 int pipe = ctx->pipe;
1507 if (pipe < 0)
1510 if (audio_stat[pipe] & HDMI_AUDIO_BUFFER_DONE)
1512 if (audio_stat[pipe] & HDMI_AUDIO_UNDERRUN)
1548 if (ppdata->pipe < 0) {
1561 ctx->pipe = -1;
1579 * the pipe assignment for this pcm device
1583 ctx->pipe = ppdata->pipe;
1718 ctx->pipe = -1;