Lines Matching refs:count

20 	p->count = 0;
56 if (p->count < 10)
59 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8);
60 p->buf[5] = (u8)((p->count - 6) & 0x00ff);
68 if (ac3_off < p->count)
70 p->count - ac3_off, &ai, 0);
72 nframes = (p->count - off - 3 - ac3_off) /
77 ac3_off += nframes * ai.framesize - p->count;
81 p->func(p->buf, p->count, p->data);
86 p->count = 9;
89 p->count += 4;
98 if (p->count < 8)
101 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8);
102 p->buf[5] = (u8)((p->count - 6) & 0x00ff);
103 p->func(p->buf, p->count, p->data);
106 p->count = 7;
123 static void write_ipack(struct ipack *p, const u8 *data, int count)
127 if (p->count < 6) {
129 p->count = 6;
132 if (p->count + count < p->size){
133 memcpy(p->buf+p->count, data, count);
134 p->count += count;
136 int rest = p->size - p->count;
137 memcpy(p->buf+p->count, data, rest);
138 p->count += rest;
140 if (count - rest > 0)
141 write_ipack(p, data + rest, count - rest);
146 int av7110_ipack_instant_repack (const u8 *buf, int count, struct ipack *p)
151 while (c < count && (p->mpeg == 0 ||
200 if (count-c > 1) {
210 return count;
253 if (c == count)
254 return count;
276 while (c < count && p->found < 14) {
282 if (c == count)
283 return count;
293 while (!p->which && c < count &&
302 if (c == count)
303 return count;
313 if (c == count)
314 return count;
321 if (c == count)
322 return count;
332 if (c == count)
333 return count;
342 if (c == count)
343 return count;
346 while (c < count && p->which < 7) {
354 if (c == count)
355 return count;
357 while (c < count && p->which < 12) {
366 if (c == count)
367 return count;
374 while (c < count && p->found < p->plength + 6) {
375 l = count - c;
387 if (p->found + count - c < p->plength + 6) {
388 p->found += count - c;
389 c = count;
399 if (c < count)
400 av7110_ipack_instant_repack(buf + c, count - c, p);
403 return count;