Home
last modified time | relevance | path

Searched refs:__crop (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dmt9t001.c380 struct v4l2_rect *__crop; in mt9t001_set_format() local
386 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, format->pad, in mt9t001_set_format()
391 max_t(unsigned int, __crop->width / 8, in mt9t001_set_format()
393 __crop->width); in mt9t001_set_format()
395 max_t(unsigned int, __crop->height / 8, in mt9t001_set_format()
397 __crop->height); in mt9t001_set_format()
399 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
400 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
404 __format->width = __crop->width / hratio; in mt9t001_set_format()
405 __format->height = __crop in mt9t001_set_format()
431 struct v4l2_rect *__crop; mt9t001_set_selection() local
[all...]
H A Dmt9v032.c500 struct v4l2_rect *__crop; in mt9v032_set_format() local
506 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, format->pad, in mt9v032_set_format()
511 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
513 __crop->width); in mt9v032_set_format()
515 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
517 __crop->height); in mt9v032_set_format()
519 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
520 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
524 __format->width = __crop->width / hratio; in mt9v032_set_format()
525 __format->height = __crop in mt9v032_set_format()
557 struct v4l2_rect *__crop; mt9v032_set_selection() local
[all...]
H A Dmt9p031.c575 struct v4l2_rect *__crop; in mt9p031_set_format() local
581 __crop = __mt9p031_get_pad_crop(mt9p031, cfg, format->pad, in mt9p031_set_format()
586 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format()
588 __crop->width); in mt9p031_set_format()
590 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format()
592 __crop->height); in mt9p031_set_format()
594 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
595 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
599 __format->width = __crop->width / hratio; in mt9p031_set_format()
600 __format->height = __crop in mt9p031_set_format()
626 struct v4l2_rect *__crop; mt9p031_set_selection() local
[all...]
H A Dimx214.c585 struct v4l2_rect *__crop; in imx214_set_format() local
590 __crop = __imx214_get_pad_crop(imx214, cfg, format->pad, format->which); in imx214_set_format()
597 __crop->width = mode->width; in imx214_set_format()
598 __crop->height = mode->height; in imx214_set_format()
602 __format->width = __crop->width; in imx214_set_format()
603 __format->height = __crop->height; in imx214_set_format()
H A Dmt9m032.c434 struct v4l2_rect *__crop; in mt9m032_set_pad_selection() local
465 __crop = __mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_set_pad_selection()
467 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
476 *__crop = rect; in mt9m032_set_pad_selection()
H A Dov7251.c1035 struct v4l2_rect *__crop; in ov7251_set_format() local
1041 __crop = __ov7251_get_pad_crop(ov7251, cfg, format->pad, format->which); in ov7251_set_format()
1048 __crop->width = new_mode->width; in ov7251_set_format()
1049 __crop->height = new_mode->height; in ov7251_set_format()
1082 __format->width = __crop->width; in ov7251_set_format()
1083 __format->height = __crop->height; in ov7251_set_format()
H A Dov5645.c916 struct v4l2_rect *__crop; in ov5645_set_format() local
920 __crop = __ov5645_get_pad_crop(ov5645, cfg, format->pad, in ov5645_set_format()
928 __crop->width = new_mode->width; in ov5645_set_format()
929 __crop->height = new_mode->height; in ov5645_set_format()
947 __format->width = __crop->width; in ov5645_set_format()
948 __format->height = __crop->height; in ov5645_set_format()
/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dmt9p031.c594 struct v4l2_rect *__crop; in mt9p031_set_format() local
600 __crop = __mt9p031_get_pad_crop(mt9p031, sd_state, format->pad, in mt9p031_set_format()
605 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format()
607 __crop->width); in mt9p031_set_format()
609 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format()
611 __crop->height); in mt9p031_set_format()
613 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
614 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
618 __format->width = __crop->width / hratio; in mt9p031_set_format()
619 __format->height = __crop in mt9p031_set_format()
656 struct v4l2_rect *__crop; mt9p031_set_selection() local
[all...]
H A Dmt9v032.c505 struct v4l2_rect *__crop; in mt9v032_set_format() local
511 __crop = __mt9v032_get_pad_crop(mt9v032, sd_state, format->pad, in mt9v032_set_format()
516 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
518 __crop->width); in mt9v032_set_format()
520 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
522 __crop->height); in mt9v032_set_format()
524 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
525 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
529 __format->width = __crop->width / hratio; in mt9v032_set_format()
530 __format->height = __crop in mt9v032_set_format()
563 struct v4l2_rect *__crop; mt9v032_set_selection() local
[all...]
H A Dov5693.c927 struct v4l2_rect *__crop; in ov5693_set_selection() local
953 __crop = __ov5693_get_pad_crop(ov5693, state, sel->pad, sel->which); in ov5693_set_selection()
955 if (rect.width != __crop->width || rect.height != __crop->height) { in ov5693_set_selection()
966 *__crop = rect; in ov5693_set_selection()
1041 struct v4l2_rect *__crop; in ov5693_enum_frame_size() local
1046 __crop = __ov5693_get_pad_crop(ov5693, state, fse->pad, fse->which); in ov5693_enum_frame_size()
1047 if (!__crop) in ov5693_enum_frame_size()
1050 fse->min_width = __crop->width / (fse->index + 1); in ov5693_enum_frame_size()
1051 fse->min_height = __crop in ov5693_enum_frame_size()
[all...]
H A Dimx214.c587 struct v4l2_rect *__crop; in imx214_set_format() local
592 __crop = __imx214_get_pad_crop(imx214, sd_state, format->pad, in imx214_set_format()
600 __crop->width = mode->width; in imx214_set_format()
601 __crop->height = mode->height; in imx214_set_format()
605 __format->width = __crop->width; in imx214_set_format()
606 __format->height = __crop->height; in imx214_set_format()
H A Dov5645.c895 struct v4l2_rect *__crop; in ov5645_set_format() local
899 __crop = __ov5645_get_pad_crop(ov5645, sd_state, format->pad, in ov5645_set_format()
907 __crop->width = new_mode->width; in ov5645_set_format()
908 __crop->height = new_mode->height; in ov5645_set_format()
926 __format->width = __crop->width; in ov5645_set_format()
927 __format->height = __crop->height; in ov5645_set_format()
H A Dov7251.c1221 struct v4l2_rect *__crop; in ov7251_set_format() local
1227 __crop = __ov7251_get_pad_crop(ov7251, sd_state, format->pad, in ov7251_set_format()
1235 __crop->width = new_mode->width; in ov7251_set_format()
1236 __crop->height = new_mode->height; in ov7251_set_format()
1267 __format->width = __crop->width; in ov7251_set_format()
1268 __format->height = __crop->height; in ov7251_set_format()

Completed in 18 milliseconds