Lines Matching refs:buffer
221 * struct jpu_buffer - driver's specific video buffer
222 * @buf: m2m buffer
288 * @end: end position in the buffer
289 * @curr: current position in the buffer
602 static u8 jpu_parse_hdr(void *buffer, unsigned long size, unsigned int *width,
609 jpeg_buffer.end = buffer + size;
610 jpeg_buffer.curr = buffer;
614 * buffer bounds in any case. Hope it's stopping by EOI.
616 if (size < JPU_JPEG_MIN_SIZE || *(u8 *)(buffer + size - 1) != EOI)
1084 void *buffer = vb2_plane_vaddr(vb, 0);
1088 u8 subsampling = jpu_parse_hdr(buffer, buf_size, &width,
1109 * keep subsampling in buffer to check it
1132 u8 *buffer;
1141 buffer = vb2_plane_vaddr(vb, 0);
1143 memcpy(buffer, jpeg_hdrs[jpu_buf->compr_quality], JPU_JPEG_HDR_SIZE);
1144 *(__be16 *)(buffer + JPU_JPEG_HEIGHT_OFFSET) =
1146 *(__be16 *)(buffer + JPU_JPEG_WIDTH_OFFSET) =
1148 *(buffer + JPU_JPEG_SUBS_OFFSET) = q_data->fmtinfo->subsampling;