Lines Matching refs:crop
126 struct v4l2_rect crop; member
280 return &mt9t001->crop; in __mt9t001_get_pad_crop()
293 struct v4l2_rect *crop = &mt9t001->crop; in mt9t001_s_stream() local
310 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
311 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
321 ret = mt9t001_write(client, MT9T001_COLUMN_START, crop->left); in mt9t001_s_stream()
325 ret = mt9t001_write(client, MT9T001_ROW_START, crop->top); in mt9t001_s_stream()
329 ret = mt9t001_write(client, MT9T001_WINDOW_WIDTH, crop->width - 1); in mt9t001_s_stream()
333 ret = mt9t001_write(client, MT9T001_WINDOW_HEIGHT, crop->height - 1); in mt9t001_s_stream()
807 struct v4l2_rect *crop; in mt9t001_open() local
809 crop = v4l2_subdev_get_try_crop(subdev, fh->state, 0); in mt9t001_open()
810 crop->left = MT9T001_COLUMN_START_DEF; in mt9t001_open()
811 crop->top = MT9T001_ROW_START_DEF; in mt9t001_open()
812 crop->width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_open()
813 crop->height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_open()
936 mt9t001->crop.left = MT9T001_COLUMN_START_DEF; in mt9t001_probe()
937 mt9t001->crop.top = MT9T001_ROW_START_DEF; in mt9t001_probe()
938 mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_probe()
939 mt9t001->crop.height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_probe()