Lines Matching refs:fmt
43 struct v4l2_mbus_framefmt fmt; member
571 struct v4l2_mbus_framefmt *fmt) in vs6624_try_mbus_fmt() argument
576 if (vs6624_formats[index].mbus_code == fmt->code) in vs6624_try_mbus_fmt()
581 fmt->code = vs6624_formats[0].mbus_code; in vs6624_try_mbus_fmt()
585 if (fmt->width > VGA_WIDTH) in vs6624_try_mbus_fmt()
586 fmt->width = VGA_WIDTH; in vs6624_try_mbus_fmt()
587 if (fmt->height > VGA_HEIGHT) in vs6624_try_mbus_fmt()
588 fmt->height = VGA_HEIGHT; in vs6624_try_mbus_fmt()
589 fmt->width = fmt->width & (~3); in vs6624_try_mbus_fmt()
590 fmt->height = fmt->height & (~3); in vs6624_try_mbus_fmt()
591 fmt->field = V4L2_FIELD_NONE; in vs6624_try_mbus_fmt()
592 fmt->colorspace = vs6624_formats[index].colorspace; in vs6624_try_mbus_fmt()
597 struct v4l2_mbus_framefmt *fmt) in vs6624_s_mbus_fmt() argument
602 ret = vs6624_try_mbus_fmt(sd, fmt); in vs6624_s_mbus_fmt()
607 switch (fmt->code) { in vs6624_s_mbus_fmt()
625 if ((fmt->width == VGA_WIDTH) && (fmt->height == VGA_HEIGHT)) in vs6624_s_mbus_fmt()
627 else if ((fmt->width == QVGA_WIDTH) && (fmt->height == QVGA_HEIGHT)) in vs6624_s_mbus_fmt()
629 else if ((fmt->width == QQVGA_WIDTH) && (fmt->height == QQVGA_HEIGHT)) in vs6624_s_mbus_fmt()
631 else if ((fmt->width == CIF_WIDTH) && (fmt->height == CIF_HEIGHT)) in vs6624_s_mbus_fmt()
633 else if ((fmt->width == QCIF_WIDTH) && (fmt->height == QCIF_HEIGHT)) in vs6624_s_mbus_fmt()
635 else if ((fmt->width == QQCIF_WIDTH) && (fmt->height == QQCIF_HEIGHT)) in vs6624_s_mbus_fmt()
639 vs6624_write(sd, VS6624_MAN_HSIZE0_MSB, fmt->width >> 8); in vs6624_s_mbus_fmt()
640 vs6624_write(sd, VS6624_MAN_HSIZE0_LSB, fmt->width & 0xFF); in vs6624_s_mbus_fmt()
641 vs6624_write(sd, VS6624_MAN_VSIZE0_MSB, fmt->height >> 8); in vs6624_s_mbus_fmt()
642 vs6624_write(sd, VS6624_MAN_VSIZE0_LSB, fmt->height & 0xFF); in vs6624_s_mbus_fmt()
646 sensor->fmt = *fmt; in vs6624_s_mbus_fmt()
652 struct v4l2_mbus_framefmt *fmt) in vs6624_g_mbus_fmt() argument
656 *fmt = sensor->fmt; in vs6624_g_mbus_fmt()
809 sensor->fmt = vs6624_default_fmt; in vs6624_probe()