Lines Matching refs:sof
540 if (unlikely(cam->sof.bytesread >= sizeof(marker))) {
541 cam->sof.header[cam->sof.bytesread] = *(m+i);
542 if (++cam->sof.bytesread == soflen) {
543 cam->sof.bytesread = 0;
550 for (j = 0, b=cam->sof.bytesread; j+b < sizeof(marker); j++) {
553 if (*(m+i+j) == marker[cam->sof.bytesread]) {
554 cam->sof.header[cam->sof.bytesread] = *(m+i+j);
555 if (++cam->sof.bytesread == sizeof(marker)) {
562 cam->sof.bytesread = 0;
705 cam->sof.bytesread = 0;
734 void *pos, *sof, *eof;
743 cam->sof.bytesread = 0;
750 sof = sn9c102_find_sof_header(cam, pos, len);
751 if (likely(!sof)) {
804 cam->sof.header, soflen);
820 if (sof) /* (1) */
836 len -= (sof - pos);
837 pos = sof;
847 if (eof && eof < sof)
854 if (sof - pos >= soflen) {
855 eof = sof - soflen;
859 (soflen - (sof - pos));
947 cam->sof.bytesread = 0;