Lines Matching defs:auxbuf
79 struct cxusb_medion_auxbuf *auxbuf,
82 cxusb_vprintk(dvbdev, AUXB, "initializing auxbuf of len %u\n", len);
84 auxbuf->buf = buf;
85 auxbuf->len = len;
86 auxbuf->paylen = 0;
90 struct cxusb_medion_auxbuf *auxbuf,
96 if (WARN_ON(pos > auxbuf->paylen))
100 "trimming auxbuf len by %u to %u\n",
101 pos, auxbuf->paylen - pos);
103 memmove(auxbuf->buf, auxbuf->buf + pos, auxbuf->paylen - pos);
104 auxbuf->paylen -= pos;
107 static unsigned int cxusb_auxbuf_paylen(struct cxusb_medion_auxbuf *auxbuf)
109 return auxbuf->paylen;
113 struct cxusb_medion_auxbuf *auxbuf,
118 if (WARN_ON(howmuch >= auxbuf->len))
119 howmuch = auxbuf->len - 1;
121 freespace = auxbuf->len - cxusb_auxbuf_paylen(auxbuf);
133 cxusb_auxbuf_head_trim(dvbdev, auxbuf, howmuch);
140 struct cxusb_medion_auxbuf *auxbuf,
150 ret = cxusb_auxbuf_make_space(dvbdev, auxbuf, len);
157 memcpy(auxbuf->buf + auxbuf->paylen, urb->transfer_buffer +
160 auxbuf->paylen += to_copy;
166 static bool cxusb_auxbuf_copy(struct cxusb_medion_auxbuf *auxbuf,
170 if (pos + len > auxbuf->paylen)
173 memcpy(dest, auxbuf->buf + pos, len);
324 struct cxusb_medion_auxbuf *auxbuf,
333 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos + 1, buf, tocheck))
368 struct cxusb_medion_auxbuf *auxbuf,
374 return cxusb_medion_cs_start_sch(dvbdev, auxbuf, bt656,
385 struct cxusb_medion_auxbuf *auxbuf,
394 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos, &val, 1))
401 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos + 1,
430 if (!cxusb_medion_copy_samples(dvbdev, auxbuf, bt656,
482 if (!cxusb_medion_copy_field(dvbdev, &cxdev->auxbuf, bt656,
499 if (!cxusb_medion_copy_field(dvbdev, &cxdev->auxbuf, bt656,
504 cxusb_auxbuf_head_trim(dvbdev, &cxdev->auxbuf, bt656->pos);
570 * append new data to auxbuf while
576 * auxbuf frame assembling process from
581 &cxdev->auxbuf,
618 /* reschedule us until auxbuf no longer can produce any frame */
719 cxusb_auxbuf_init(dvbdev, &cxdev->auxbuf, buf, auxbuflen);
884 vfree(cxdev->auxbuf.buf);
931 vfree(cxdev->auxbuf.buf);