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