Lines Matching defs:buf
53 struct cx88_buffer *buf)
59 VBI_LINE_LENGTH, buf->risc.dma);
101 struct cx88_buffer *buf;
106 buf = list_entry(q->active.next, struct cx88_buffer, list);
108 buf, buf->vb.vb2_buf.index);
109 cx8800_start_vbi_dma(dev, q, buf);
133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
147 return cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl,
157 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
158 struct cx88_riscmem *risc = &buf->risc;
170 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
175 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8);
176 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC);
177 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8);
180 list_add_tail(&buf->list, &q->active);
182 buf, buf->vb.vb2_buf.index);
185 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1);
187 list_add_tail(&buf->list, &q->active);
188 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
190 buf, buf->vb.vb2_buf.index);
198 struct cx88_buffer *buf = list_entry(dmaq->active.next,
201 cx8800_start_vbi_dma(dev, dmaq, buf);
217 struct cx88_buffer *buf = list_entry(dmaq->active.next,
220 list_del(&buf->list);
221 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);