Lines Matching refs:rect
78 struct v4l2_rect rect; /* Sensor window */ member
210 struct v4l2_rect *rect, u16 xskip, u16 yskip) in mt9t031_set_params() argument
236 rect->left &= ~1; in mt9t031_set_params()
239 rect->left &= ~3; in mt9t031_set_params()
242 rect->left = rect->left > roundup(MT9T031_COLUMN_SKIP, 6) ? in mt9t031_set_params()
243 (rect->left / 6) * 6 : roundup(MT9T031_COLUMN_SKIP, 6); in mt9t031_set_params()
246 rect->top &= ~1; in mt9t031_set_params()
249 xskip, yskip, rect->width, rect->height, rect->left, rect->top); in mt9t031_set_params()
271 rect->left, rect->top); in mt9t031_set_params()
278 ret = reg_write(client, MT9T031_COLUMN_START, rect->left); in mt9t031_set_params()
280 ret = reg_write(client, MT9T031_ROW_START, rect->top); in mt9t031_set_params()
282 ret = reg_write(client, MT9T031_WINDOW_WIDTH, rect->width - 1); in mt9t031_set_params()
285 rect->height + mt9t031->y_skip_top - 1); in mt9t031_set_params()
287 mt9t031->total_h = rect->height + mt9t031->y_skip_top + vblank; in mt9t031_set_params()
297 mt9t031->rect = *rect; in mt9t031_set_params()
307 struct v4l2_rect rect = a->c; in mt9t031_s_crop() local
311 rect.width = ALIGN(rect.width, 2); in mt9t031_s_crop()
312 rect.height = ALIGN(rect.height, 2); in mt9t031_s_crop()
314 soc_camera_limit_side(&rect.left, &rect.width, in mt9t031_s_crop()
317 soc_camera_limit_side(&rect.top, &rect.height, in mt9t031_s_crop()
320 return mt9t031_set_params(client, &rect, mt9t031->xskip, mt9t031->yskip); in mt9t031_s_crop()
328 a->c = mt9t031->rect; in mt9t031_g_crop()
354 mf->width = mt9t031->rect.width / mt9t031->xskip; in mt9t031_g_fmt()
355 mf->height = mt9t031->rect.height / mt9t031->yskip; in mt9t031_g_fmt()
369 struct v4l2_rect rect = mt9t031->rect; in mt9t031_s_fmt() local
375 xskip = mt9t031_skip(&rect.width, mf->width, MT9T031_MAX_WIDTH); in mt9t031_s_fmt()
376 yskip = mt9t031_skip(&rect.height, mf->height, MT9T031_MAX_HEIGHT); in mt9t031_s_fmt()
382 return mt9t031_set_params(client, &rect, xskip, yskip); in mt9t031_s_fmt()
552 mt9t031->total_h = mt9t031->rect.height + in mt9t031_s_ctrl()
805 mt9t031->rect.left = MT9T031_COLUMN_SKIP; in mt9t031_probe()
806 mt9t031->rect.top = MT9T031_ROW_SKIP; in mt9t031_probe()
807 mt9t031->rect.width = MT9T031_MAX_WIDTH; in mt9t031_probe()
808 mt9t031->rect.height = MT9T031_MAX_HEIGHT; in mt9t031_probe()