Lines Matching refs:fmt

43 	struct v4l2_mbus_framefmt fmt;  member
575 struct v4l2_mbus_framefmt *fmt = &format->format; in vs6624_set_fmt() local
583 if (vs6624_formats[index].mbus_code == fmt->code) in vs6624_set_fmt()
588 fmt->code = vs6624_formats[0].mbus_code; in vs6624_set_fmt()
592 if (fmt->width > VGA_WIDTH) in vs6624_set_fmt()
593 fmt->width = VGA_WIDTH; in vs6624_set_fmt()
594 if (fmt->height > VGA_HEIGHT) in vs6624_set_fmt()
595 fmt->height = VGA_HEIGHT; in vs6624_set_fmt()
596 fmt->width = fmt->width & (~3); in vs6624_set_fmt()
597 fmt->height = fmt->height & (~3); in vs6624_set_fmt()
598 fmt->field = V4L2_FIELD_NONE; in vs6624_set_fmt()
599 fmt->colorspace = vs6624_formats[index].colorspace; in vs6624_set_fmt()
602 cfg->try_fmt = *fmt; in vs6624_set_fmt()
607 switch (fmt->code) { in vs6624_set_fmt()
625 if ((fmt->width == VGA_WIDTH) && (fmt->height == VGA_HEIGHT)) in vs6624_set_fmt()
627 else if ((fmt->width == QVGA_WIDTH) && (fmt->height == QVGA_HEIGHT)) in vs6624_set_fmt()
629 else if ((fmt->width == QQVGA_WIDTH) && (fmt->height == QQVGA_HEIGHT)) in vs6624_set_fmt()
631 else if ((fmt->width == CIF_WIDTH) && (fmt->height == CIF_HEIGHT)) in vs6624_set_fmt()
633 else if ((fmt->width == QCIF_WIDTH) && (fmt->height == QCIF_HEIGHT)) in vs6624_set_fmt()
635 else if ((fmt->width == QQCIF_WIDTH) && (fmt->height == QQCIF_HEIGHT)) in vs6624_set_fmt()
639 vs6624_write(sd, VS6624_MAN_HSIZE0_MSB, fmt->width >> 8); in vs6624_set_fmt()
640 vs6624_write(sd, VS6624_MAN_HSIZE0_LSB, fmt->width & 0xFF); in vs6624_set_fmt()
641 vs6624_write(sd, VS6624_MAN_VSIZE0_MSB, fmt->height >> 8); in vs6624_set_fmt()
642 vs6624_write(sd, VS6624_MAN_VSIZE0_LSB, fmt->height & 0xFF); in vs6624_set_fmt()
646 sensor->fmt = *fmt; in vs6624_set_fmt()
660 format->format = sensor->fmt; in vs6624_get_fmt()
816 sensor->fmt = vs6624_default_fmt; in vs6624_probe()