Lines Matching refs:frm
510 struct zr364xx_framei *frm; in zr364xx_fillbuff() local
517 frm = &cam->buffer.frame[last_frame]; in zr364xx_fillbuff()
588 struct zr364xx_framei *frm; in zr364xx_read_video_callback() local
594 frm = &cam->buffer.frame[idx]; in zr364xx_read_video_callback()
606 frm->ulState = ZR364XX_READ_IDLE; in zr364xx_read_video_callback()
611 ptr = pdest = frm->lpvbits; in zr364xx_read_video_callback()
613 if (frm->ulState == ZR364XX_READ_IDLE) { in zr364xx_read_video_callback()
614 frm->ulState = ZR364XX_READ_FRAME; in zr364xx_read_video_callback()
615 frm->cur_size = 0; in zr364xx_read_video_callback()
639 frm->cur_size = ptr - pdest; in zr364xx_read_video_callback()
641 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
647 pdest += frm->cur_size; in zr364xx_read_video_callback()
649 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
665 ptr = pdest = frm->lpvbits; in zr364xx_read_video_callback()
666 ptr += frm->cur_size - 2; in zr364xx_read_video_callback()
692 frm->cur_size, in zr364xx_read_video_callback()
696 zr364xx_got_frame(cam, frm->cur_size); in zr364xx_read_video_callback()
700 frm->ulState = ZR364XX_READ_IDLE; in zr364xx_read_video_callback()
701 frm->cur_size = 0; in zr364xx_read_video_callback()