Lines Matching refs:buffer
856 * by modifying the buffer offset
873 * Moves a buffer from the queue to the HW slot. If no buffer is
874 * available use the scratch buffer. The scratch buffer is never
886 if (WARN_ON(vin->buf_hw[slot].buffer))
892 vbuf = vin->buf_hw[prev].buffer;
893 vin->buf_hw[slot].buffer = vbuf;
907 vin->buf_hw[slot].buffer = NULL;
911 /* Keep track of buffer we give to HW */
915 vin->buf_hw[slot].buffer = vbuf;
925 vin_dbg(vin, "Filling HW slot: %d type: %d buffer: %p\n",
926 slot, vin->buf_hw[slot].type, vin->buf_hw[slot].buffer);
937 vin->buf_hw[slot].buffer = NULL;
1024 if (vin->buf_hw[slot].buffer) {
1027 * capture only filled first half of vb2 buffer.
1030 vin->buf_hw[slot].buffer = NULL;
1035 vin->buf_hw[slot].buffer->field =
1037 vin->buf_hw[slot].buffer->sequence = vin->sequence;
1038 vin->buf_hw[slot].buffer->vb2_buf.timestamp = ktime_get_ns();
1039 vb2_buffer_done(&vin->buf_hw[slot].buffer->vb2_buf,
1041 vin->buf_hw[slot].buffer = NULL;
1043 /* Scratch buffer was used, dropping frame. */
1066 freed[i] = vin->buf_hw[i].buffer;
1067 vin->buf_hw[i].buffer = NULL;
1109 vin_err(vin, "buffer too small (%lu < %lu)\n",
1273 /* Allocate scratch buffer. */
1280 vin_err(vin, "Failed to allocate scratch buffer\n");
1357 /* Free scratch buffer. */
1397 vin->buf_hw[i].buffer = NULL;
1399 /* buffer queue */