| /linux/drivers/media/platform/xilinx/ |
| H A D | xilinx-vip.c | 288 struct v4l2_subdev_frame_size_enum *fse) in xvip_enum_frame_size() argument 295 if (fse->which == V4L2_SUBDEV_FORMAT_ACTIVE) in xvip_enum_frame_size() 298 format = v4l2_subdev_state_get_format(sd_state, fse->pad); in xvip_enum_frame_size() 300 if (fse->index || fse->code != format->code) in xvip_enum_frame_size() 303 if (fse->pad == XVIP_PAD_SINK) { in xvip_enum_frame_size() 304 fse->min_width = XVIP_MIN_WIDTH; in xvip_enum_frame_size() 305 fse->max_width = XVIP_MAX_WIDTH; in xvip_enum_frame_size() 306 fse->min_height = XVIP_MIN_HEIGHT; in xvip_enum_frame_size() 307 fse->max_height = XVIP_MAX_HEIGHT; in xvip_enum_frame_size() 312 fse->min_width = format->width; in xvip_enum_frame_size() [all …]
|
| /linux/fs/notify/inotify/ |
| H A D | inotify.h | 7 struct fsnotify_event fse; member 20 static inline struct inotify_event_info *INOTIFY_E(struct fsnotify_event *fse) in INOTIFY_E() argument 22 return container_of(fse, struct inotify_event_info, fse); in INOTIFY_E()
|
| /linux/drivers/media/platform/st/stm32/stm32-dcmipp/ |
| H A D | dcmipp-input.c | 223 struct v4l2_subdev_frame_size_enum *fse) in dcmipp_inp_enum_frame_size() argument 227 if (fse->index) in dcmipp_inp_enum_frame_size() 231 vpix = dcmipp_inp_pix_map_by_code(IS_SINK(fse->pad) ? fse->code : 0, in dcmipp_inp_enum_frame_size() 232 IS_SRC(fse->pad) ? fse->code : 0); in dcmipp_inp_enum_frame_size() 236 fse->min_width = DCMIPP_FRAME_MIN_WIDTH; in dcmipp_inp_enum_frame_size() 237 fse->max_width = DCMIPP_FRAME_MAX_WIDTH; in dcmipp_inp_enum_frame_size() 238 fse->min_height = DCMIPP_FRAME_MIN_HEIGHT; in dcmipp_inp_enum_frame_size() 239 fse->max_height = DCMIPP_FRAME_MAX_HEIGHT; in dcmipp_inp_enum_frame_size()
|
| H A D | dcmipp-byteproc.c | 244 struct v4l2_subdev_frame_size_enum *fse) in dcmipp_byteproc_enum_frame_size() argument 248 if (fse->index) in dcmipp_byteproc_enum_frame_size() 251 fse->min_width = DCMIPP_FRAME_MIN_WIDTH; in dcmipp_byteproc_enum_frame_size() 252 fse->min_height = DCMIPP_FRAME_MIN_HEIGHT; in dcmipp_byteproc_enum_frame_size() 254 if (IS_SINK(fse->pad)) { in dcmipp_byteproc_enum_frame_size() 255 fse->max_width = DCMIPP_FRAME_MAX_WIDTH; in dcmipp_byteproc_enum_frame_size() 256 fse->max_height = DCMIPP_FRAME_MAX_HEIGHT; in dcmipp_byteproc_enum_frame_size() 259 fse->max_width = compose->width; in dcmipp_byteproc_enum_frame_size() 260 fse->max_height = compose->height; in dcmipp_byteproc_enum_frame_size()
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-scaler.c | 121 struct v4l2_subdev_frame_size_enum *fse) in vimc_scaler_enum_frame_size() argument 125 if (fse->index) in vimc_scaler_enum_frame_size() 129 vpix = vimc_pix_map_by_code(fse->code); in vimc_scaler_enum_frame_size() 133 fse->min_width = VIMC_FRAME_MIN_WIDTH; in vimc_scaler_enum_frame_size() 134 fse->min_height = VIMC_FRAME_MIN_HEIGHT; in vimc_scaler_enum_frame_size() 136 fse->max_width = VIMC_FRAME_MAX_WIDTH; in vimc_scaler_enum_frame_size() 137 fse->max_height = VIMC_FRAME_MAX_HEIGHT; in vimc_scaler_enum_frame_size()
|
| H A D | vimc-debayer.c | 199 struct v4l2_subdev_frame_size_enum *fse) in vimc_debayer_enum_frame_size() argument 201 if (fse->index) in vimc_debayer_enum_frame_size() 204 if (VIMC_IS_SINK(fse->pad)) { in vimc_debayer_enum_frame_size() 206 vimc_debayer_pix_map_by_code(fse->code); in vimc_debayer_enum_frame_size() 210 } else if (!vimc_debayer_src_code_is_valid(fse->code)) { in vimc_debayer_enum_frame_size() 214 fse->min_width = VIMC_FRAME_MIN_WIDTH; in vimc_debayer_enum_frame_size() 215 fse->max_width = VIMC_FRAME_MAX_WIDTH; in vimc_debayer_enum_frame_size() 216 fse->min_height = VIMC_FRAME_MIN_HEIGHT; in vimc_debayer_enum_frame_size() 217 fse->max_height = VIMC_FRAME_MAX_HEIGHT; in vimc_debayer_enum_frame_size()
|
| /linux/drivers/media/i2c/ |
| H A D | ov02c10.c | 742 struct v4l2_subdev_frame_size_enum *fse) in ov02c10_enum_frame_size() argument 744 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov02c10_enum_frame_size() 747 if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) in ov02c10_enum_frame_size() 750 fse->min_width = supported_modes[fse->index].width; in ov02c10_enum_frame_size() 751 fse->max_width = fse->min_width; in ov02c10_enum_frame_size() 752 fse->min_height = supported_modes[fse->index].height; in ov02c10_enum_frame_size() 753 fse->max_height = fse->min_height; in ov02c10_enum_frame_size()
|
| H A D | ov2680.c | 803 struct v4l2_subdev_frame_size_enum *fse) in ov2680_enum_frame_size() argument 808 if (fse->index >= OV2680_FRAME_SIZES) in ov2680_enum_frame_size() 811 crop = __ov2680_get_pad_crop(sensor, sd_state, fse->pad, fse->which); in ov2680_enum_frame_size() 815 fse->min_width = crop->width / (fse->index + 1); in ov2680_enum_frame_size() 816 fse->min_height = crop->height / (fse->index + 1); in ov2680_enum_frame_size() 817 fse->max_width = fse->min_width; in ov2680_enum_frame_size() 818 fse->max_height = fse->min_height; in ov2680_enum_frame_size() 827 struct v4l2_subdev_frame_size_enum fse = { in ov2680_valid_frame_size() local 834 fse.index = i; in ov2680_valid_frame_size() 836 if (ov2680_enum_frame_size(sd, sd_state, &fse)) in ov2680_valid_frame_size() [all …]
|
| H A D | mt9m114.c | 1239 struct v4l2_subdev_frame_size_enum *fse) in mt9m114_pa_enum_framesizes() argument 1241 if (fse->index > 1) in mt9m114_pa_enum_framesizes() 1244 if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) in mt9m114_pa_enum_framesizes() 1248 fse->min_width = MT9M114_PIXEL_ARRAY_WIDTH / (fse->index + 1); in mt9m114_pa_enum_framesizes() 1249 fse->max_width = MT9M114_PIXEL_ARRAY_WIDTH / (fse->index + 1); in mt9m114_pa_enum_framesizes() 1250 fse->min_height = MT9M114_PIXEL_ARRAY_HEIGHT / (fse->index + 1); in mt9m114_pa_enum_framesizes() 1251 fse->max_height = MT9M114_PIXEL_ARRAY_HEIGHT / (fse->index + 1); in mt9m114_pa_enum_framesizes() 1792 struct v4l2_subdev_frame_size_enum *fse) in mt9m114_ifp_enum_framesizes() argument 1797 if (fse->index > 0) in mt9m114_ifp_enum_framesizes() 1800 info = mt9m114_format_info(sensor, fse->pad, fse->code); in mt9m114_ifp_enum_framesizes() [all …]
|
| H A D | ov5675.c | 1115 struct v4l2_subdev_frame_size_enum *fse) in ov5675_enum_frame_size() argument 1117 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov5675_enum_frame_size() 1120 if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) in ov5675_enum_frame_size() 1123 fse->min_width = supported_modes[fse->index].width; in ov5675_enum_frame_size() 1124 fse->max_width = fse->min_width; in ov5675_enum_frame_size() 1125 fse->min_height = supported_modes[fse->index].height; in ov5675_enum_frame_size() 1126 fse->max_height = fse->min_height; in ov5675_enum_frame_size()
|
| H A D | ov5670.c | 2235 struct v4l2_subdev_frame_size_enum *fse) in ov5670_enum_frame_size() argument 2237 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov5670_enum_frame_size() 2240 if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) in ov5670_enum_frame_size() 2243 fse->min_width = supported_modes[fse->index].width; in ov5670_enum_frame_size() 2244 fse->max_width = fse->min_width; in ov5670_enum_frame_size() 2245 fse->min_height = supported_modes[fse->index].height; in ov5670_enum_frame_size() 2246 fse->max_height = fse->min_height; in ov5670_enum_frame_size()
|
| H A D | gc05a2.c | 667 struct v4l2_subdev_frame_size_enum *fse) in gc05a2_enum_frame_size() argument 669 if (fse->code != GC05A2_MBUS_CODE) in gc05a2_enum_frame_size() 672 if (fse->index >= ARRAY_SIZE(gc05a2_modes)) in gc05a2_enum_frame_size() 675 fse->min_width = gc05a2_modes[fse->index].width; in gc05a2_enum_frame_size() 676 fse->max_width = gc05a2_modes[fse->index].width; in gc05a2_enum_frame_size() 677 fse->min_height = gc05a2_modes[fse->index].height; in gc05a2_enum_frame_size() 678 fse->max_height = gc05a2_modes[fse->index].height; in gc05a2_enum_frame_size()
|
| H A D | gc08a3.c | 642 struct v4l2_subdev_frame_size_enum *fse) in gc08a3_enum_frame_size() argument 644 if (fse->code != GC08A3_MBUS_CODE) in gc08a3_enum_frame_size() 647 if (fse->index >= ARRAY_SIZE(gc08a3_modes)) in gc08a3_enum_frame_size() 650 fse->min_width = gc08a3_modes[fse->index].width; in gc08a3_enum_frame_size() 651 fse->max_width = gc08a3_modes[fse->index].width; in gc08a3_enum_frame_size() 652 fse->min_height = gc08a3_modes[fse->index].height; in gc08a3_enum_frame_size() 653 fse->max_height = gc08a3_modes[fse->index].height; in gc08a3_enum_frame_size()
|
| H A D | t4ka3.c | 713 struct v4l2_subdev_frame_size_enum *fse) in t4ka3_enum_frame_size() argument 717 if (fse->index >= T4KA3_FRAME_SIZES) in t4ka3_enum_frame_size() 720 crop = v4l2_subdev_state_get_crop(sd_state, fse->pad); in t4ka3_enum_frame_size() 722 fse->min_width = crop->width / (fse->index + 1); in t4ka3_enum_frame_size() 723 fse->min_height = crop->height / (fse->index + 1); in t4ka3_enum_frame_size() 724 fse->max_width = fse->min_width; in t4ka3_enum_frame_size() 725 fse->max_height = fse->min_height; in t4ka3_enum_frame_size()
|
| H A D | mt9v032.c | 452 struct v4l2_subdev_frame_size_enum *fse) in mt9v032_enum_frame_size() argument 456 if (fse->index >= 3) in mt9v032_enum_frame_size() 458 if (mt9v032->format.code != fse->code) in mt9v032_enum_frame_size() 461 fse->min_width = MT9V032_WINDOW_WIDTH_DEF / (1 << fse->index); in mt9v032_enum_frame_size() 462 fse->max_width = fse->min_width; in mt9v032_enum_frame_size() 463 fse->min_height = MT9V032_WINDOW_HEIGHT_DEF / (1 << fse->index); in mt9v032_enum_frame_size() 464 fse->max_height = fse->min_height; in mt9v032_enum_frame_size()
|
| H A D | mt9p031.c | 525 struct v4l2_subdev_frame_size_enum *fse) in mt9p031_enum_frame_size() argument 529 if (fse->index >= 8 || fse->code != mt9p031->format.code) in mt9p031_enum_frame_size() 532 fse->min_width = MT9P031_WINDOW_WIDTH_DEF in mt9p031_enum_frame_size() 533 / min_t(unsigned int, 7, fse->index + 1); in mt9p031_enum_frame_size() 534 fse->max_width = fse->min_width; in mt9p031_enum_frame_size() 535 fse->min_height = MT9P031_WINDOW_HEIGHT_DEF / (fse->index + 1); in mt9p031_enum_frame_size() 536 fse->max_height = fse->min_height; in mt9p031_enum_frame_size()
|
| H A D | gc0308.c | 1019 struct v4l2_subdev_frame_size_enum *fse) in gc0308_enum_frame_size() argument 1021 if (fse->index >= ARRAY_SIZE(gc0308_frame_sizes)) in gc0308_enum_frame_size() 1024 if (gc0308_get_format_idx(fse->code) < 0) in gc0308_enum_frame_size() 1027 fse->min_width = gc0308_frame_sizes[fse->index].width; in gc0308_enum_frame_size() 1028 fse->max_width = gc0308_frame_sizes[fse->index].width; in gc0308_enum_frame_size() 1029 fse->min_height = gc0308_frame_sizes[fse->index].height; in gc0308_enum_frame_size() 1030 fse->max_height = gc0308_frame_sizes[fse->index].height; in gc0308_enum_frame_size()
|
| H A D | ov7251.c | 1098 struct v4l2_subdev_frame_size_enum *fse) in ov7251_enum_frame_size() argument 1100 if (fse->code != MEDIA_BUS_FMT_Y10_1X10) in ov7251_enum_frame_size() 1103 if (fse->index >= ARRAY_SIZE(ov7251_mode_info_data)) in ov7251_enum_frame_size() 1106 fse->min_width = ov7251_mode_info_data[fse->index].width; in ov7251_enum_frame_size() 1107 fse->max_width = ov7251_mode_info_data[fse->index].width; in ov7251_enum_frame_size() 1108 fse->min_height = ov7251_mode_info_data[fse->index].height; in ov7251_enum_frame_size() 1109 fse->max_height = ov7251_mode_info_data[fse->index].height; in ov7251_enum_frame_size()
|
| H A D | thp7312.c | 688 struct v4l2_subdev_frame_size_enum *fse) in thp7312_enum_frame_size() argument 690 if (!thp7312_find_bus_code(fse->code)) in thp7312_enum_frame_size() 693 if (fse->index >= ARRAY_SIZE(thp7312_mode_info_data)) in thp7312_enum_frame_size() 696 fse->min_width = thp7312_mode_info_data[fse->index].width; in thp7312_enum_frame_size() 697 fse->max_width = fse->min_width; in thp7312_enum_frame_size() 698 fse->min_height = thp7312_mode_info_data[fse->index].height; in thp7312_enum_frame_size() 699 fse->max_height = fse->min_height; in thp7312_enum_frame_size()
|
| /linux/drivers/media/platform/ti/vpe/ |
| H A D | vip.c | 1343 struct v4l2_subdev_frame_size_enum fse = { in vip_enum_framesizes() local 1352 fse.index = f->index; in vip_enum_framesizes() 1353 fse.code = fmt->code; in vip_enum_framesizes() 1354 ret = v4l2_subdev_call(port->subdev, pad, enum_frame_size, NULL, &fse); in vip_enum_framesizes() 1359 __func__, fse.index, fse.code, fse.min_width, fse.max_width, in vip_enum_framesizes() 1360 fse.min_height, fse.max_height); in vip_enum_framesizes() 1363 f->discrete.width = fse.max_width; in vip_enum_framesizes() 1364 f->discrete.height = fse.max_height; in vip_enum_framesizes() 1473 struct v4l2_subdev_frame_size_enum fse = { in vip_try_fmt_vid_cap() local 1520 fse.code = fmt->code; in vip_try_fmt_vid_cap() [all …]
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify.h | 258 struct fsnotify_event fse; member 271 fsnotify_init_event(&event->fse); in fanotify_init_event() 476 static inline struct fanotify_event *FANOTIFY_E(struct fsnotify_event *fse) in FANOTIFY_E() argument 478 return container_of(fse, struct fanotify_event, fse); in FANOTIFY_E()
|
| /linux/drivers/staging/media/imx/ |
| H A D | imx-ic-prpencvf.c | 973 struct v4l2_subdev_frame_size_enum *fse) in prp_enum_frame_size() argument 980 if (fse->pad >= PRPENCVF_NUM_PADS || fse->index != 0) in prp_enum_frame_size() 985 format.pad = fse->pad; in prp_enum_frame_size() 986 format.which = fse->which; in prp_enum_frame_size() 987 format.format.code = fse->code; in prp_enum_frame_size() 991 fse->min_width = format.format.width; in prp_enum_frame_size() 992 fse->min_height = format.format.height; in prp_enum_frame_size() 994 if (format.format.code != fse->code) { in prp_enum_frame_size() 999 format.format.code = fse->code; in prp_enum_frame_size() 1003 fse->max_width = format.format.width; in prp_enum_frame_size() [all …]
|
| /linux/drivers/media/platform/renesas/rzg2l-cru/ |
| H A D | rzg2l-csi2.c | 707 struct v4l2_subdev_frame_size_enum *fse) in rzg2l_csi2_enum_frame_size() argument 711 if (fse->index != 0) in rzg2l_csi2_enum_frame_size() 714 if (!rzg2l_csi2_code_to_fmt(fse->code)) in rzg2l_csi2_enum_frame_size() 717 fse->min_width = csi2->info->min_width; in rzg2l_csi2_enum_frame_size() 718 fse->min_height = csi2->info->min_height; in rzg2l_csi2_enum_frame_size() 719 fse->max_width = csi2->info->max_width; in rzg2l_csi2_enum_frame_size() 720 fse->max_height = csi2->info->max_height; in rzg2l_csi2_enum_frame_size()
|
| /linux/drivers/staging/media/atomisp/i2c/ |
| H A D | atomisp-ov2722.c | 859 struct v4l2_subdev_frame_size_enum *fse) in ov2722_enum_frame_size() argument 861 int index = fse->index; in ov2722_enum_frame_size() 866 fse->min_width = ov2722_res[index].width; in ov2722_enum_frame_size() 867 fse->min_height = ov2722_res[index].height; in ov2722_enum_frame_size() 868 fse->max_width = ov2722_res[index].width; in ov2722_enum_frame_size() 869 fse->max_height = ov2722_res[index].height; in ov2722_enum_frame_size()
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | ispccdc.c | 2195 struct v4l2_subdev_frame_size_enum *fse) in ccdc_enum_frame_size() argument 2200 if (fse->index != 0) in ccdc_enum_frame_size() 2203 format.code = fse->code; in ccdc_enum_frame_size() 2206 ccdc_try_format(ccdc, sd_state, fse->pad, &format, fse->which); in ccdc_enum_frame_size() 2207 fse->min_width = format.width; in ccdc_enum_frame_size() 2208 fse->min_height = format.height; in ccdc_enum_frame_size() 2210 if (format.code != fse->code) in ccdc_enum_frame_size() 2213 format.code = fse->code; in ccdc_enum_frame_size() 2216 ccdc_try_format(ccdc, sd_state, fse->pad, &format, fse->which); in ccdc_enum_frame_size() 2217 fse->max_width = format.width; in ccdc_enum_frame_size() [all …]
|