| /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 …]
|
| H A D | xilinx-tpg.c | 325 struct v4l2_subdev_frame_size_enum *fse) in xtpg_enum_frame_size() argument 329 format = v4l2_subdev_state_get_format(sd_state, fse->pad); in xtpg_enum_frame_size() 331 if (fse->index || fse->code != format->code) in xtpg_enum_frame_size() 337 if (fse->pad == 0) { in xtpg_enum_frame_size() 338 fse->min_width = XVIP_MIN_WIDTH; in xtpg_enum_frame_size() 339 fse->max_width = XVIP_MAX_WIDTH; in xtpg_enum_frame_size() 340 fse->min_height = XVIP_MIN_HEIGHT; in xtpg_enum_frame_size() 341 fse->max_height = XVIP_MAX_HEIGHT; in xtpg_enum_frame_size() 343 fse->min_width = format->width; in xtpg_enum_frame_size() 344 fse->max_width = format->width; in xtpg_enum_frame_size() [all …]
|
| /linux/drivers/media/platform/arm/mali-c55/ |
| H A D | mali-c55-resizer.c | 649 struct v4l2_subdev_frame_size_enum *fse) in mali_c55_rsz_enum_frame_size() argument 656 switch (fse->pad) { in mali_c55_rsz_enum_frame_size() 658 if (fse->index || fse->code != MEDIA_BUS_FMT_RGB121212_1X36) in mali_c55_rsz_enum_frame_size() 661 fse->max_width = MALI_C55_MAX_WIDTH; in mali_c55_rsz_enum_frame_size() 662 fse->max_height = MALI_C55_MAX_HEIGHT; in mali_c55_rsz_enum_frame_size() 663 fse->min_width = MALI_C55_MIN_WIDTH; in mali_c55_rsz_enum_frame_size() 664 fse->min_height = MALI_C55_MIN_HEIGHT; in mali_c55_rsz_enum_frame_size() 672 if (fse->index) in mali_c55_rsz_enum_frame_size() 675 fmt = mali_c55_isp_get_mbus_config_by_shifted_code(fse->code); in mali_c55_rsz_enum_frame_size() 679 fse->min_width = sink_fmt->width; in mali_c55_rsz_enum_frame_size() [all …]
|
| H A D | mali-c55-tpg.c | 159 struct v4l2_subdev_frame_size_enum *fse) in mali_c55_tpg_enum_frame_size() argument 163 if (fse->index > 0) in mali_c55_tpg_enum_frame_size() 167 if (fse->code == mali_c55_tpg_mbus_codes[i]) in mali_c55_tpg_enum_frame_size() 174 fse->min_width = MALI_C55_MIN_WIDTH; in mali_c55_tpg_enum_frame_size() 175 fse->max_width = MALI_C55_MAX_WIDTH; in mali_c55_tpg_enum_frame_size() 176 fse->min_height = MALI_C55_MIN_HEIGHT; in mali_c55_tpg_enum_frame_size() 177 fse->max_height = MALI_C55_MAX_HEIGHT; in mali_c55_tpg_enum_frame_size()
|
| H A D | mali-c55-isp.c | 202 struct v4l2_subdev_frame_size_enum *fse) in mali_c55_isp_enum_frame_size() argument 206 if (fse->index > 0) in mali_c55_isp_enum_frame_size() 215 if (fse->pad == MALI_C55_ISP_PAD_SOURCE_VIDEO) { in mali_c55_isp_enum_frame_size() 216 if (fse->code != MEDIA_BUS_FMT_RGB121212_1X36) in mali_c55_isp_enum_frame_size() 219 cfg = mali_c55_isp_get_mbus_config_by_code(fse->code); in mali_c55_isp_enum_frame_size() 224 fse->min_width = MALI_C55_MIN_WIDTH; in mali_c55_isp_enum_frame_size() 225 fse->min_height = MALI_C55_MIN_HEIGHT; in mali_c55_isp_enum_frame_size() 226 fse->max_width = MALI_C55_MAX_WIDTH; in mali_c55_isp_enum_frame_size() 227 fse->max_height = MALI_C55_MAX_HEIGHT; in mali_c55_isp_enum_frame_size()
|
| /linux/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_sru.c | 124 struct v4l2_subdev_frame_size_enum *fse) in sru_enum_frame_size() argument 131 state = vsp1_entity_get_state(&sru->entity, sd_state, fse->which); in sru_enum_frame_size() 139 if (fse->index || fse->code != format->code) { in sru_enum_frame_size() 144 if (fse->pad == SRU_PAD_SINK) { in sru_enum_frame_size() 145 fse->min_width = SRU_MIN_SIZE; in sru_enum_frame_size() 146 fse->max_width = SRU_MAX_SIZE; in sru_enum_frame_size() 147 fse->min_height = SRU_MIN_SIZE; in sru_enum_frame_size() 148 fse->max_height = SRU_MAX_SIZE; in sru_enum_frame_size() 150 fse->min_width = format->width; in sru_enum_frame_size() 151 fse->min_height = format->height; in sru_enum_frame_size() [all …]
|
| H A D | vsp1_uds.c | 129 struct v4l2_subdev_frame_size_enum *fse) in uds_enum_frame_size() argument 136 state = vsp1_entity_get_state(&uds->entity, sd_state, fse->which); in uds_enum_frame_size() 144 if (fse->index || fse->code != format->code) { in uds_enum_frame_size() 149 if (fse->pad == UDS_PAD_SINK) { in uds_enum_frame_size() 150 fse->min_width = UDS_MIN_SIZE; in uds_enum_frame_size() 151 fse->max_width = UDS_MAX_SIZE; in uds_enum_frame_size() 152 fse->min_height = UDS_MIN_SIZE; in uds_enum_frame_size() 153 fse->max_height = UDS_MAX_SIZE; in uds_enum_frame_size() 155 uds_output_limits(format->width, &fse->min_width, in uds_enum_frame_size() 156 &fse->max_width); in uds_enum_frame_size() [all …]
|
| H A D | vsp1_entity.c | 245 struct v4l2_subdev_frame_size_enum *fse, in vsp1_subdev_enum_frame_size() argument 254 state = vsp1_entity_get_state(entity, sd_state, fse->which); in vsp1_subdev_enum_frame_size() 258 format = v4l2_subdev_state_get_format(state, fse->pad); in vsp1_subdev_enum_frame_size() 262 if (fse->index || fse->code != format->code) { in vsp1_subdev_enum_frame_size() 267 if (fse->pad == 0) { in vsp1_subdev_enum_frame_size() 268 fse->min_width = min_width; in vsp1_subdev_enum_frame_size() 269 fse->max_width = max_width; in vsp1_subdev_enum_frame_size() 270 fse->min_height = min_height; in vsp1_subdev_enum_frame_size() 271 fse->max_height = max_height; in vsp1_subdev_enum_frame_size() 277 fse->min_width = format->width; in vsp1_subdev_enum_frame_size() [all …]
|
| H A D | vsp1_brx.c | 83 struct v4l2_subdev_frame_size_enum *fse) in brx_enum_frame_size() argument 85 if (fse->index) in brx_enum_frame_size() 88 if (fse->code != MEDIA_BUS_FMT_ARGB8888_1X32 && in brx_enum_frame_size() 89 fse->code != MEDIA_BUS_FMT_AYUV8_1X32) in brx_enum_frame_size() 92 fse->min_width = BRX_MIN_SIZE; in brx_enum_frame_size() 93 fse->max_width = BRX_MAX_SIZE; in brx_enum_frame_size() 94 fse->min_height = BRX_MIN_SIZE; in brx_enum_frame_size() 95 fse->max_height = BRX_MAX_SIZE; in brx_enum_frame_size()
|
| /linux/drivers/media/platform/renesas/rzv2h-ivc/ |
| H A D | rzv2h-ivc-subdev.c | 126 struct v4l2_subdev_frame_size_enum *fse) in rzv2h_ivc_enum_frame_size() argument 130 if (fse->index > 0) in rzv2h_ivc_enum_frame_size() 133 if (fse->pad == RZV2H_IVC_SUBDEV_SOURCE_PAD) { in rzv2h_ivc_enum_frame_size() 137 if (fse->code != rzv2h_ivc_get_mbus_output_from_input(fmt->code)) in rzv2h_ivc_enum_frame_size() 140 fse->min_width = fmt->width; in rzv2h_ivc_enum_frame_size() 141 fse->max_width = fmt->width; in rzv2h_ivc_enum_frame_size() 142 fse->min_height = fmt->height; in rzv2h_ivc_enum_frame_size() 143 fse->max_height = fmt->height; in rzv2h_ivc_enum_frame_size() 148 if (!rzv2h_ivc_get_mbus_output_from_input(fse->code)) in rzv2h_ivc_enum_frame_size() 151 fse->min_width = RZV2H_IVC_MIN_WIDTH; in rzv2h_ivc_enum_frame_size() [all …]
|
| /linux/drivers/media/i2c/s5c73m3/ |
| H A D | s5c73m3-core.c | 1232 struct v4l2_subdev_frame_size_enum *fse) in s5c73m3_enum_frame_size() argument 1236 if (fse->pad == S5C73M3_ISP_PAD) { in s5c73m3_enum_frame_size() 1237 if (fse->code != S5C73M3_ISP_FMT) in s5c73m3_enum_frame_size() 1241 if (fse->code != S5C73M3_JPEG_FMT) in s5c73m3_enum_frame_size() 1246 if (fse->index >= s5c73m3_resolutions_len[idx]) in s5c73m3_enum_frame_size() 1249 fse->min_width = s5c73m3_resolutions[idx][fse->index].width; in s5c73m3_enum_frame_size() 1250 fse->max_width = fse->min_width; in s5c73m3_enum_frame_size() 1251 fse->max_height = s5c73m3_resolutions[idx][fse->index].height; in s5c73m3_enum_frame_size() 1252 fse->min_height = fse->max_height; in s5c73m3_enum_frame_size() 1259 struct v4l2_subdev_frame_size_enum *fse) in s5c73m3_oif_enum_frame_size() argument [all …]
|
| /linux/drivers/media/platform/ti/cal/ |
| H A D | cal-video.c | 183 struct v4l2_subdev_frame_size_enum fse = { in cal_legacy_try_fmt_vid_cap() local 202 fse.pad = 0; in cal_legacy_try_fmt_vid_cap() 203 fse.code = fmtinfo->code; in cal_legacy_try_fmt_vid_cap() 204 for (fse.index = 0; ; fse.index++) { in cal_legacy_try_fmt_vid_cap() 208 &fse); in cal_legacy_try_fmt_vid_cap() 212 if ((f->fmt.pix.width == fse.max_width) && in cal_legacy_try_fmt_vid_cap() 213 (f->fmt.pix.height == fse.max_height)) { in cal_legacy_try_fmt_vid_cap() 216 } else if ((f->fmt.pix.width >= fse.min_width) && in cal_legacy_try_fmt_vid_cap() 217 (f->fmt.pix.width <= fse.max_width) && in cal_legacy_try_fmt_vid_cap() 218 (f->fmt.pix.height >= fse.min_height) && in cal_legacy_try_fmt_vid_cap() [all …]
|
| H A D | cal-camerarx.c | 726 struct v4l2_subdev_frame_size_enum *fse) in cal_camerarx_sd_enum_frame_size() argument 730 if (fse->index > 0) in cal_camerarx_sd_enum_frame_size() 734 if (cal_rx_pad_is_source(fse->pad)) { in cal_camerarx_sd_enum_frame_size() 738 fse->pad, in cal_camerarx_sd_enum_frame_size() 739 fse->stream); in cal_camerarx_sd_enum_frame_size() 743 if (fse->code != fmt->code) in cal_camerarx_sd_enum_frame_size() 746 fse->min_width = fmt->width; in cal_camerarx_sd_enum_frame_size() 747 fse->max_width = fmt->width; in cal_camerarx_sd_enum_frame_size() 748 fse->min_height = fmt->height; in cal_camerarx_sd_enum_frame_size() 749 fse->max_height = fmt->height; in cal_camerarx_sd_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/platform/renesas/rzg2l-cru/ |
| H A D | rzg2l-ip.c | 270 struct v4l2_subdev_frame_size_enum *fse) in rzg2l_cru_ip_enum_frame_size() argument 275 if (fse->index != 0) in rzg2l_cru_ip_enum_frame_size() 278 if (!rzg2l_cru_ip_code_to_fmt(fse->code)) in rzg2l_cru_ip_enum_frame_size() 281 fse->min_width = RZG2L_CRU_MIN_INPUT_WIDTH; in rzg2l_cru_ip_enum_frame_size() 282 fse->min_height = RZG2L_CRU_MIN_INPUT_HEIGHT; in rzg2l_cru_ip_enum_frame_size() 283 fse->max_width = info->max_width; in rzg2l_cru_ip_enum_frame_size() 284 fse->max_height = info->max_height; in rzg2l_cru_ip_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 | ov2680.c | 804 struct v4l2_subdev_frame_size_enum *fse) in ov2680_enum_frame_size() argument 809 if (fse->index >= OV2680_FRAME_SIZES) in ov2680_enum_frame_size() 812 crop = __ov2680_get_pad_crop(sensor, sd_state, fse->pad, fse->which); in ov2680_enum_frame_size() 816 fse->min_width = crop->width / (fse->index + 1); in ov2680_enum_frame_size() 817 fse->min_height = crop->height / (fse->index + 1); in ov2680_enum_frame_size() 818 fse->max_width = fse->min_width; in ov2680_enum_frame_size() 819 fse->max_height = fse->min_height; in ov2680_enum_frame_size() 828 struct v4l2_subdev_frame_size_enum fse = { in ov2680_valid_frame_size() local 835 fse.index = i; in ov2680_valid_frame_size() 837 if (ov2680_enum_frame_size(sd, sd_state, &fse)) in ov2680_valid_frame_size() [all …]
|
| H A D | ov9734.c | 756 struct v4l2_subdev_frame_size_enum *fse) in ov9734_enum_frame_size() argument 758 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov9734_enum_frame_size() 761 if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) in ov9734_enum_frame_size() 764 fse->min_width = supported_modes[fse->index].width; in ov9734_enum_frame_size() 765 fse->max_width = fse->min_width; in ov9734_enum_frame_size() 766 fse->min_height = supported_modes[fse->index].height; in ov9734_enum_frame_size() 767 fse->max_height = fse->min_height; in ov9734_enum_frame_size()
|
| 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 | ov5695.c | 875 struct v4l2_subdev_frame_size_enum *fse) in ov5695_enum_frame_sizes() argument 877 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov5695_enum_frame_sizes() 880 if (fse->code != MEDIA_BUS_FMT_SBGGR10_1X10) in ov5695_enum_frame_sizes() 883 fse->min_width = supported_modes[fse->index].width; in ov5695_enum_frame_sizes() 884 fse->max_width = supported_modes[fse->index].width; in ov5695_enum_frame_sizes() 885 fse->max_height = supported_modes[fse->index].height; in ov5695_enum_frame_sizes() 886 fse->min_height = supported_modes[fse->index].height; in ov5695_enum_frame_sizes()
|
| /linux/drivers/staging/media/tegra-video/ |
| H A D | csi.c | 130 struct v4l2_subdev_frame_size_enum *fse) in csi_enum_framesizes() argument 137 if (fse->index >= ARRAY_SIZE(tegra_csi_tpg_sizes)) in csi_enum_framesizes() 141 if (fse->code == tegra_csi_tpg_fmts[i].code) in csi_enum_framesizes() 147 fse->min_width = tegra_csi_tpg_sizes[fse->index].width; in csi_enum_framesizes() 148 fse->max_width = tegra_csi_tpg_sizes[fse->index].width; in csi_enum_framesizes() 149 fse->min_height = tegra_csi_tpg_sizes[fse->index].height; in csi_enum_framesizes() 150 fse->max_height = tegra_csi_tpg_sizes[fse->index].height; in csi_enum_framesizes()
|
| /linux/drivers/media/platform/ti/vpe/ |
| H A D | vip.c | 1325 struct v4l2_subdev_frame_size_enum fse = { in vip_enum_framesizes() local 1334 fse.index = f->index; in vip_enum_framesizes() 1335 fse.code = fmt->code; in vip_enum_framesizes() 1336 ret = v4l2_subdev_call(port->subdev, pad, enum_frame_size, NULL, &fse); in vip_enum_framesizes() 1341 __func__, fse.index, fse.code, fse.min_width, fse.max_width, in vip_enum_framesizes() 1342 fse.min_height, fse.max_height); in vip_enum_framesizes() 1345 f->discrete.width = fse.max_width; in vip_enum_framesizes() 1346 f->discrete.height = fse.max_height; in vip_enum_framesizes() 1455 struct v4l2_subdev_frame_size_enum fse = { in vip_try_fmt_vid_cap() local 1502 fse.code = fmt->code; in vip_try_fmt_vid_cap() [all …]
|