Lines Matching refs:rect
151 struct v4l2_rect rect; /* Sensor window */ member
277 struct v4l2_rect rect = a->c; in mt9v022_s_crop() local
283 rect.width = ALIGN(rect.width, 2); in mt9v022_s_crop()
284 rect.height = ALIGN(rect.height, 2); in mt9v022_s_crop()
288 soc_camera_limit_side(&rect.left, &rect.width, in mt9v022_s_crop()
291 soc_camera_limit_side(&rect.top, &rect.height, in mt9v022_s_crop()
299 rect.height + mt9v022->y_skip_top + 43); in mt9v022_s_crop()
311 ret = reg_write(client, MT9V022_COLUMN_START, rect.left); in mt9v022_s_crop()
313 ret = reg_write(client, MT9V022_ROW_START, rect.top); in mt9v022_s_crop()
327 rect.width > min_row - min_blank ? in mt9v022_s_crop()
328 min_blank : min_row - rect.width); in mt9v022_s_crop()
332 ret = reg_write(client, MT9V022_WINDOW_WIDTH, rect.width); in mt9v022_s_crop()
335 rect.height + mt9v022->y_skip_top); in mt9v022_s_crop()
340 dev_dbg(&client->dev, "Frame %dx%d pixel\n", rect.width, rect.height); in mt9v022_s_crop()
342 mt9v022->rect = rect; in mt9v022_s_crop()
352 a->c = mt9v022->rect; in mt9v022_g_crop()
378 mf->width = mt9v022->rect.width; in mt9v022_g_fmt()
379 mf->height = mt9v022->rect.height; in mt9v022_g_fmt()
394 .left = mt9v022->rect.left, in mt9v022_s_fmt()
395 .top = mt9v022->rect.top, in mt9v022_s_fmt()
424 mf->width = mt9v022->rect.width; in mt9v022_s_fmt()
425 mf->height = mt9v022->rect.height; in mt9v022_s_fmt()
955 mt9v022->rect.left = MT9V022_COLUMN_SKIP; in mt9v022_probe()
956 mt9v022->rect.top = MT9V022_ROW_SKIP; in mt9v022_probe()
957 mt9v022->rect.width = MT9V022_MAX_WIDTH; in mt9v022_probe()
958 mt9v022->rect.height = MT9V022_MAX_HEIGHT; in mt9v022_probe()