Lines Matching defs:win
331 static int ov6x20_mode_init(struct i2c_client *c, struct ovcamchip_window *win)
335 ov_write(c, 0x14, win->quarter?0x24:0x04);
341 if (win->format == VIDEO_PALETTE_GREY)
346 if (win->format == VIDEO_PALETTE_GREY)
360 ov_write(c, 0x11, win->clockdiv);
371 static int ov6x20_set_window(struct i2c_client *c, struct ovcamchip_window *win)
375 ret = ov6x20_mode_init(c, win);
379 if (win->quarter) {
387 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale));
388 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale));
389 ov_write(c, 0x19, VWSBASE + (win->y >> vwscale));
390 ov_write(c, 0x1a, VWEBASE + ((win->y + win->height) >> vwscale));