Lines Matching refs:p
234 static int ivtv_convert_ivtv_vbi(struct ivtv *itv, u8 *p) in ivtv_convert_ivtv_vbi() argument
240 if (!memcmp(p, "itv0", 4)) { in ivtv_convert_ivtv_vbi()
241 memcpy(linemask, p + 4, 8); in ivtv_convert_ivtv_vbi()
242 p += 12; in ivtv_convert_ivtv_vbi()
243 } else if (!memcmp(p, "ITV0", 4)) { in ivtv_convert_ivtv_vbi()
246 p += 4; in ivtv_convert_ivtv_vbi()
258 id2 = *p & 0xf; in ivtv_convert_ivtv_vbi()
265 err = !odd_parity(p[1]) || !odd_parity(p[2]); in ivtv_convert_ivtv_vbi()
282 memcpy(itv->vbi.sliced_dec_data[line].data, p + 1, 42); in ivtv_convert_ivtv_vbi()
285 p += 43; in ivtv_convert_ivtv_vbi()
306 u8 *p; in compress_raw_buf() local
310 p = buf + i * line_size; in compress_raw_buf()
313 if (p[0] != 0xff || p[1] || p[2] || (p[3] != sav1 && p[3] != sav2)) { in compress_raw_buf()
316 memcpy(q, p + 4, line_size - 4); in compress_raw_buf()
343 u8 *p = buf + i * line_size; in compress_sliced_buf() local
346 if (p[0] != 0xff || p[1] || p[2] || p[3] != sav) { in compress_sliced_buf()
349 vbi.p = p + 4; in compress_sliced_buf()
356 memcpy(itv->vbi.sliced_data[line].data, vbi.p, 42); in compress_sliced_buf()
366 u8 *p = (u8 *) buf->buf; in ivtv_process_vbi_data() local
376 type = p[3]; in ivtv_process_vbi_data()
378 size = buf->bytesused = compress_raw_buf(itv, p, size); in ivtv_process_vbi_data()
384 p += size - 4; in ivtv_process_vbi_data()
385 memcpy(p, &itv->vbi.frame, 4); in ivtv_process_vbi_data()
398 lines = compress_sliced_buf(itv, 0, p, size / 2, in ivtv_process_vbi_data()
403 lines = compress_sliced_buf(itv, lines, p + size / 2 - 32, size / 2 + 32, in ivtv_process_vbi_data()
413 memcpy(p, &itv->vbi.sliced_data[0], size); in ivtv_process_vbi_data()
435 p += 4 - offset; in ivtv_process_vbi_data()
439 swab32s((u32 *)(p + y)); in ivtv_process_vbi_data()
442 cnt = ivtv_convert_ivtv_vbi(itv, p + offset); in ivtv_process_vbi_data()