Lines Matching refs:crop
129 struct v4l2_rect crop; member
268 return &mt9t001->crop; in __mt9t001_get_pad_crop()
281 struct v4l2_rect *crop = &mt9t001->crop; in mt9t001_s_stream() local
298 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
309 ret = mt9t001_write(client, MT9T001_COLUMN_START, crop->left); in mt9t001_s_stream()
313 ret = mt9t001_write(client, MT9T001_ROW_START, crop->top); in mt9t001_s_stream()
317 ret = mt9t001_write(client, MT9T001_WINDOW_WIDTH, crop->width - 1); in mt9t001_s_stream()
321 ret = mt9t001_write(client, MT9T001_WINDOW_HEIGHT, crop->height - 1); in mt9t001_s_stream()
791 struct v4l2_rect *crop; in mt9t001_open() local
793 crop = v4l2_subdev_get_try_crop(subdev, fh->pad, 0); in mt9t001_open()
794 crop->left = MT9T001_COLUMN_START_DEF; in mt9t001_open()
795 crop->top = MT9T001_ROW_START_DEF; in mt9t001_open()
796 crop->width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_open()
797 crop->height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_open()
920 mt9t001->crop.left = MT9T001_COLUMN_START_DEF; in mt9t001_probe()
921 mt9t001->crop.top = MT9T001_ROW_START_DEF; in mt9t001_probe()
922 mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_probe()
923 mt9t001->crop.height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_probe()