Lines Matching defs:pipe
36 #define for_each_pipe(card_ctx, pipe) \
37 for ((pipe) = 0; (pipe) < (card_ctx)->num_pipes; (pipe)++)
192 static u32 had_config_offset(int pipe)
194 switch (pipe) {
207 int pipe, u32 reg)
209 return ioread32(card_ctx->mmio_start + had_config_offset(pipe) + reg);
213 int pipe, u32 reg, u32 val)
215 iowrite32(val, card_ctx->mmio_start + had_config_offset(pipe) + reg);
223 *val = had_read_register_raw(ctx->card_ctx, ctx->pipe, reg);
229 had_write_register_raw(ctx->card_ctx, ctx->pipe, reg, val);
1514 int pipe, port;
1516 for_each_pipe(card_ctx, pipe) {
1518 audio_stat[pipe] = had_read_register_raw(card_ctx, pipe,
1522 if (audio_stat[pipe])
1523 had_write_register_raw(card_ctx, pipe,
1524 AUD_HDMI_STATUS, audio_stat[pipe]);
1529 int pipe = ctx->pipe;
1531 if (pipe < 0)
1534 if (audio_stat[pipe] & HDMI_AUDIO_BUFFER_DONE)
1536 if (audio_stat[pipe] & HDMI_AUDIO_UNDERRUN)
1568 if (ppdata->pipe < 0) {
1581 ctx->pipe = -1;
1599 * the pipe assignment for this pcm device
1603 ctx->pipe = ppdata->pipe;
1743 ctx->pipe = -1;