• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/dvb/ttpci/

Lines Matching refs:count

19 	p->count = 0;
55 if (p->count < 10)
58 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8);
59 p->buf[5] = (u8)((p->count - 6) & 0x00ff);
67 if (ac3_off < p->count)
69 p->count - ac3_off, &ai, 0);
71 nframes = (p->count - off - 3 - ac3_off) /
76 ac3_off += nframes * ai.framesize - p->count;
80 p->func(p->buf, p->count, p->data);
85 p->count = 9;
88 p->count += 4;
97 if (p->count < 8)
100 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8);
101 p->buf[5] = (u8)((p->count - 6) & 0x00ff);
102 p->func(p->buf, p->count, p->data);
105 p->count = 7;
122 static void write_ipack(struct ipack *p, const u8 *data, int count)
126 if (p->count < 6) {
128 p->count = 6;
131 if (p->count + count < p->size){
132 memcpy(p->buf+p->count, data, count);
133 p->count += count;
135 int rest = p->size - p->count;
136 memcpy(p->buf+p->count, data, rest);
137 p->count += rest;
139 if (count - rest > 0)
140 write_ipack(p, data + rest, count - rest);
145 int av7110_ipack_instant_repack (const u8 *buf, int count, struct ipack *p)
150 while (c < count && (p->mpeg == 0 ||
199 if (count-c > 1) {
209 return count;
252 if (c == count)
253 return count;
275 while (c < count && p->found < 14) {
281 if (c == count)
282 return count;
292 while (!p->which && c < count &&
301 if (c == count)
302 return count;
312 if (c == count)
313 return count;
320 if (c == count)
321 return count;
331 if (c == count)
332 return count;
341 if (c == count)
342 return count;
345 while (c < count && p->which < 7) {
353 if (c == count)
354 return count;
356 while (c < count && p->which < 12) {
365 if (c == count)
366 return count;
373 while (c < count && p->found < p->plength + 6) {
374 l = count - c;
386 if (p->found + count - c < p->plength + 6) {
387 p->found += count - c;
388 c = count;
398 if (c < count)
399 av7110_ipack_instant_repack(buf + c, count - c, p);
402 return count;