Lines Matching refs:crop
129 struct v4l2_rect crop; member
279 return &mt9t001->crop; in __mt9t001_get_pad_crop()
292 struct v4l2_rect *crop = &mt9t001->crop; in mt9t001_s_stream() local
309 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
310 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
320 ret = mt9t001_write(client, MT9T001_COLUMN_START, crop->left); in mt9t001_s_stream()
324 ret = mt9t001_write(client, MT9T001_ROW_START, crop->top); in mt9t001_s_stream()
328 ret = mt9t001_write(client, MT9T001_WINDOW_WIDTH, crop->width - 1); in mt9t001_s_stream()
332 ret = mt9t001_write(client, MT9T001_WINDOW_HEIGHT, crop->height - 1); in mt9t001_s_stream()
802 struct v4l2_rect *crop; in mt9t001_open() local
804 crop = v4l2_subdev_get_try_crop(subdev, fh->pad, 0); in mt9t001_open()
805 crop->left = MT9T001_COLUMN_START_DEF; in mt9t001_open()
806 crop->top = MT9T001_ROW_START_DEF; in mt9t001_open()
807 crop->width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_open()
808 crop->height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_open()
931 mt9t001->crop.left = MT9T001_COLUMN_START_DEF; in mt9t001_probe()
932 mt9t001->crop.top = MT9T001_ROW_START_DEF; in mt9t001_probe()
933 mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_probe()
934 mt9t001->crop.height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_probe()