Lines Matching defs:win
227 static int ov76be_mode_init(struct i2c_client *c, struct ovcamchip_window *win)
229 int qvga = win->quarter;
237 if (win->format == VIDEO_PALETTE_GREY) {
247 ov_write(c, 0x11, win->clockdiv);
251 if (win->width == 640 && win->height == 480)
259 static int ov76be_set_window(struct i2c_client *c, struct ovcamchip_window *win)
263 ret = ov76be_mode_init(c, win);
267 if (win->quarter) {
275 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale));
276 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale));
277 ov_write(c, 0x19, VWSBASE + (win->y >> vwscale));
278 ov_write(c, 0x1a, VWEBASE + ((win->y + win->height) >> vwscale));