Lines Matching refs:pb

50 			    unsigned int pb)
52 struct tw686x_dma_desc *desc = &vc->dma_descs[pb];
57 if (vc->curr_bufs[pb]) {
58 vb = &vc->curr_bufs[pb]->vb;
71 vc->pb = !pb;
78 unsigned int pb)
80 struct tw686x_dma_desc *desc = &vc->dma_descs[pb];
102 unsigned int pb)
105 u32 reg = pb ? VDMA_B_ADDR[vc->ch] : VDMA_P_ADDR[vc->ch];
109 WARN(vc->dma_descs[pb].virt,
114 &vc->dma_descs[pb].phys, GFP_KERNEL);
118 vc->ch, pb ? "B" : "P");
121 vc->dma_descs[pb].size = len;
122 vc->dma_descs[pb].virt = virt;
123 reg_write(dev, reg, vc->dma_descs[pb].phys);
129 unsigned int pb)
139 vc->curr_bufs[pb] = buf;
142 vc->curr_bufs[pb] = NULL;
155 unsigned int pb)
160 u32 reg = pb ? VDMA_B_ADDR[vc->ch] : VDMA_P_ADDR[vc->ch];
171 vc->curr_bufs[pb] = buf;
174 vc->curr_bufs[pb] = NULL;
225 unsigned int pb)
238 if (tw686x_sg_desc_fill(vc->sg_descs[pb], buf, buf_len)) {
241 vc->ch, pb ? "B" : "P");
247 vc->curr_bufs[pb] = buf;
251 vc->curr_bufs[pb] = NULL;
255 unsigned int pb)
257 struct tw686x_dma_desc *desc = &vc->dma_descs[pb];
266 vc->sg_descs[pb] = NULL;
270 unsigned int pb)
272 struct tw686x_dma_desc *desc = &vc->dma_descs[pb];
274 u32 reg = pb ? DMA_PAGE_TABLE1_ADDR[vc->ch] :
284 vc->ch, pb ? "B" : "P");
290 virt = dev->video_channels[0].dma_descs[pb].virt +
294 vc->sg_descs[pb] = virt;
300 unsigned int sg_table_size, pb, ch, channels;
322 for (pb = 0; pb < 2; pb++)
323 vc->dma_descs[pb].size = sg_table_size;
474 unsigned int pb;
485 for (pb = 0; pb < 2; pb++) {
486 if (vc->curr_bufs[pb])
487 vb2_buffer_done(&vc->curr_bufs[pb]->vb.vb2_buf, state);
488 vc->curr_bufs[pb] = NULL;
498 int pb, err;
522 for (pb = 0; pb < 2; pb++)
523 dev->dma_ops->buf_refill(vc, pb);
527 vc->pb = 0;
676 int err, pb;
684 for (pb = 0; pb < 2; pb++)
685 dev->dma_ops->free(vc, pb);
687 for (pb = 0; pb < 2; pb++) {
688 err = dev->dma_ops->alloc(vc, pb);
690 if (pb > 0)
1090 unsigned int ch, pb;
1105 vc->pb = 0;
1121 vc->pb = 0;
1126 pb = !!(pb_status & BIT(ch));
1127 if (vc->pb != pb) {
1133 vc->pb = 0;
1138 tw686x_buf_done(vc, pb);
1139 dev->dma_ops->buf_refill(vc, pb);
1146 unsigned int ch, pb;
1154 for (pb = 0; pb < 2; pb++)
1155 dev->dma_ops->free(vc, pb);