Lines Matching refs:crop

1121 	const struct v4l2_rect *crop;  in ccdc_configure()  local
1230 crop = &ccdc->crop; in ccdc_configure()
1238 sph = crop->left * 2; in ccdc_configure()
1239 nph = crop->width * 2 - 1; in ccdc_configure()
1241 sph = crop->left; in ccdc_configure()
1242 nph = crop->width - 1; in ccdc_configure()
1248 isp_reg_writel(isp, (crop->top << ISPCCDC_VERT_START_SLV0_SHIFT) | in ccdc_configure()
1249 (crop->top << ISPCCDC_VERT_START_SLV1_SHIFT), in ccdc_configure()
1251 isp_reg_writel(isp, (crop->height - 1) in ccdc_configure()
1954 return &ccdc->crop; in __ccdc_get_crop()
1973 struct v4l2_rect *crop; in ccdc_try_format() local
2026 crop = __ccdc_get_crop(ccdc, cfg, which); in ccdc_try_format()
2027 fmt->width = crop->width; in ccdc_try_format()
2028 fmt->height = crop->height; in ccdc_try_format()
2077 struct v4l2_rect *crop) in ccdc_try_crop() argument
2087 crop->left &= ~1; in ccdc_try_crop()
2088 crop->top &= ~1; in ccdc_try_crop()
2091 crop->left = clamp_t(u32, crop->left, 0, sink->width - CCDC_MIN_WIDTH); in ccdc_try_crop()
2092 crop->top = clamp_t(u32, crop->top, 0, sink->height - CCDC_MIN_HEIGHT); in ccdc_try_crop()
2099 max_width = (sink->width - crop->left + 15) & ~15; in ccdc_try_crop()
2100 crop->width = clamp_t(u32, crop->width, CCDC_MIN_WIDTH, max_width) in ccdc_try_crop()
2102 crop->height = clamp_t(u32, crop->height, CCDC_MIN_HEIGHT, in ccdc_try_crop()
2103 sink->height - crop->top); in ccdc_try_crop()
2107 crop->width &= ~1; in ccdc_try_crop()
2108 crop->height &= ~1; in ccdc_try_crop()
2339 struct v4l2_rect *crop; in ccdc_set_format() local
2351 crop = __ccdc_get_crop(ccdc, cfg, fmt->which); in ccdc_set_format()
2352 crop->left = 0; in ccdc_set_format()
2353 crop->top = 0; in ccdc_set_format()
2354 crop->width = fmt->format.width; in ccdc_set_format()
2355 crop->height = fmt->format.height; in ccdc_set_format()
2357 ccdc_try_crop(ccdc, &fmt->format, crop); in ccdc_set_format()