Lines Matching refs:wsize
242 struct ov7670_win_size *wsize; member
965 struct ov7670_win_size *wsize; in ov7670_try_fmt_internal() local
991 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal()
993 if (wsize->width < info->min_width || in ov7670_try_fmt_internal()
994 wsize->height < info->min_height) { in ov7670_try_fmt_internal()
1003 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal()
1004 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal()
1005 if (fmt->width >= wsize->width && fmt->height >= wsize->height) in ov7670_try_fmt_internal()
1007 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal()
1008 wsize--; /* Take the smallest one */ in ov7670_try_fmt_internal()
1010 *ret_wsize = wsize; in ov7670_try_fmt_internal()
1014 fmt->width = wsize->width; in ov7670_try_fmt_internal()
1015 fmt->height = wsize->height; in ov7670_try_fmt_internal()
1026 struct ov7670_win_size *wsize = info->wsize; in ov7670_apply_fmt() local
1037 com7 |= wsize->com7_bit; in ov7670_apply_fmt()
1062 ret = ov7670_set_hw(sd, wsize->hstart, wsize->hstop, wsize->vstart, in ov7670_apply_fmt()
1063 wsize->vstop); in ov7670_apply_fmt()
1067 if (wsize->regs) { in ov7670_apply_fmt()
1068 ret = ov7670_write_array(sd, wsize->regs); in ov7670_apply_fmt()
1117 ret = ov7670_try_fmt_internal(sd, &format->format, &info->fmt, &info->wsize); in ov7670_set_fmt()
1917 info->wsize = &info->devtype->win_sizes[0]; in ov7670_probe()