| /linux-6.15/drivers/media/platform/xilinx/ |
| H A D | xilinx-vip.c | 288 struct v4l2_subdev_frame_size_enum *fse) in xvip_enum_frame_size() argument 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() 313 fse->max_width = format->width; in xvip_enum_frame_size() 314 fse->min_height = format->height; 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 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() 345 fse->min_height = format->height; in xtpg_enum_frame_size() [all …]
|
| /linux-6.15/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_sru.c | 138 if (fse->index || fse->code != format->code) { in sru_enum_frame_size() 143 if (fse->pad == SRU_PAD_SINK) { in sru_enum_frame_size() 144 fse->min_width = SRU_MIN_SIZE; in sru_enum_frame_size() 145 fse->max_width = SRU_MAX_SIZE; in sru_enum_frame_size() 146 fse->min_height = SRU_MIN_SIZE; in sru_enum_frame_size() 147 fse->max_height = SRU_MAX_SIZE; in sru_enum_frame_size() 149 fse->min_width = format->width; in sru_enum_frame_size() 150 fse->min_height = format->height; in sru_enum_frame_size() 153 fse->max_width = format->width * 2; in sru_enum_frame_size() 156 fse->max_width = format->width; in sru_enum_frame_size() [all …]
|
| H A D | vsp1_uds.c | 128 struct v4l2_subdev_frame_size_enum *fse) in uds_enum_frame_size() argument 143 if (fse->index || fse->code != format->code) { in uds_enum_frame_size() 148 if (fse->pad == UDS_PAD_SINK) { in uds_enum_frame_size() 149 fse->min_width = UDS_MIN_SIZE; in uds_enum_frame_size() 150 fse->max_width = UDS_MAX_SIZE; in uds_enum_frame_size() 151 fse->min_height = UDS_MIN_SIZE; in uds_enum_frame_size() 152 fse->max_height = UDS_MAX_SIZE; in uds_enum_frame_size() 154 uds_output_limits(format->width, &fse->min_width, in uds_enum_frame_size() 155 &fse->max_width); in uds_enum_frame_size() 156 uds_output_limits(format->height, &fse->min_height, in uds_enum_frame_size() [all …]
|
| H A D | vsp1_entity.c | 226 struct v4l2_subdev_frame_size_enum *fse, in vsp1_subdev_enum_frame_size() argument 243 if (fse->index || fse->code != format->code) { in vsp1_subdev_enum_frame_size() 248 if (fse->pad == 0) { in vsp1_subdev_enum_frame_size() 249 fse->min_width = min_width; in vsp1_subdev_enum_frame_size() 250 fse->max_width = max_width; in vsp1_subdev_enum_frame_size() 251 fse->min_height = min_height; in vsp1_subdev_enum_frame_size() 252 fse->max_height = max_height; in vsp1_subdev_enum_frame_size() 258 fse->min_width = format->width; in vsp1_subdev_enum_frame_size() 259 fse->max_width = format->width; in vsp1_subdev_enum_frame_size() 260 fse->min_height = format->height; in vsp1_subdev_enum_frame_size() [all …]
|
| H A D | vsp1_brx.c | 82 struct v4l2_subdev_frame_size_enum *fse) in brx_enum_frame_size() argument 84 if (fse->index) in brx_enum_frame_size() 87 if (fse->code != MEDIA_BUS_FMT_ARGB8888_1X32 && in brx_enum_frame_size() 88 fse->code != MEDIA_BUS_FMT_AYUV8_1X32) in brx_enum_frame_size() 91 fse->min_width = BRX_MIN_SIZE; in brx_enum_frame_size() 92 fse->max_width = BRX_MAX_SIZE; in brx_enum_frame_size() 93 fse->min_height = BRX_MIN_SIZE; in brx_enum_frame_size() 94 fse->max_height = BRX_MAX_SIZE; in brx_enum_frame_size()
|
| /linux-6.15/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-6.15/drivers/media/i2c/s5c73m3/ |
| H A D | s5c73m3-core.c | 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() 1288 fse->max_width = fse->min_width = w; in s5c73m3_oif_enum_frame_size() 1289 fse->max_height = fse->min_height = h; in s5c73m3_oif_enum_frame_size() 1297 if (fse->code != s5c73m3_oif_get_pad_code(fse->pad, 0)) in s5c73m3_oif_enum_frame_size() 1308 fse->min_width = s5c73m3_resolutions[idx][fse->index].width; in s5c73m3_oif_enum_frame_size() 1309 fse->max_width = fse->min_width; in s5c73m3_oif_enum_frame_size() 1310 fse->max_height = s5c73m3_resolutions[idx][fse->index].height; in s5c73m3_oif_enum_frame_size() [all …]
|
| /linux-6.15/drivers/media/platform/ti/cal/ |
| H A D | cal-video.c | 213 fse.pad = 0; in cal_legacy_try_fmt_vid_cap() 214 fse.code = fmtinfo->code; in cal_legacy_try_fmt_vid_cap() 215 for (fse.index = 0; ; fse.index++) { in cal_legacy_try_fmt_vid_cap() 219 NULL, &fse); in cal_legacy_try_fmt_vid_cap() 228 (f->fmt.pix.width <= fse.max_width) && in cal_legacy_try_fmt_vid_cap() 322 fse.code = fmtinfo->code; in cal_legacy_enum_framesizes() 325 &fse); in cal_legacy_enum_framesizes() 330 __func__, fse.index, fse.code, fse.min_width, fse.max_width, in cal_legacy_enum_framesizes() 331 fse.min_height, fse.max_height); in cal_legacy_enum_framesizes() 334 fsize->discrete.width = fse.max_width; in cal_legacy_enum_framesizes() [all …]
|
| H A D | cal-camerarx.c | 647 struct v4l2_subdev_frame_size_enum *fse) in cal_camerarx_sd_enum_frame_size() argument 651 if (fse->index > 0) in cal_camerarx_sd_enum_frame_size() 655 if (cal_rx_pad_is_source(fse->pad)) { in cal_camerarx_sd_enum_frame_size() 660 if (fse->code != fmt->code) in cal_camerarx_sd_enum_frame_size() 663 fse->min_width = fmt->width; in cal_camerarx_sd_enum_frame_size() 664 fse->max_width = fmt->width; in cal_camerarx_sd_enum_frame_size() 665 fse->min_height = fmt->height; in cal_camerarx_sd_enum_frame_size() 666 fse->max_height = fmt->height; in cal_camerarx_sd_enum_frame_size() 668 fmtinfo = cal_format_by_code(fse->code); in cal_camerarx_sd_enum_frame_size() 674 fse->min_height = CAL_MIN_HEIGHT_LINES; in cal_camerarx_sd_enum_frame_size() [all …]
|
| /linux-6.15/drivers/media/platform/renesas/rzg2l-cru/ |
| H A D | rzg2l-ip.c | 198 struct v4l2_subdev_frame_size_enum *fse) in rzg2l_cru_ip_enum_frame_size() argument 200 if (fse->index != 0) in rzg2l_cru_ip_enum_frame_size() 203 if (!rzg2l_cru_ip_code_to_fmt(fse->code)) in rzg2l_cru_ip_enum_frame_size() 206 fse->min_width = RZG2L_CRU_MIN_INPUT_WIDTH; in rzg2l_cru_ip_enum_frame_size() 207 fse->min_height = RZG2L_CRU_MIN_INPUT_HEIGHT; in rzg2l_cru_ip_enum_frame_size() 208 fse->max_width = RZG2L_CRU_MAX_INPUT_WIDTH; in rzg2l_cru_ip_enum_frame_size() 209 fse->max_height = RZG2L_CRU_MAX_INPUT_HEIGHT; in rzg2l_cru_ip_enum_frame_size()
|
| /linux-6.15/drivers/media/platform/qcom/camss/ |
| H A D | camss-csiphy.c | 450 struct v4l2_subdev_frame_size_enum *fse) in csiphy_enum_frame_size() argument 455 if (fse->index != 0) in csiphy_enum_frame_size() 458 format.code = fse->code; in csiphy_enum_frame_size() 461 csiphy_try_format(csiphy, sd_state, fse->pad, &format, fse->which); in csiphy_enum_frame_size() 462 fse->min_width = format.width; in csiphy_enum_frame_size() 463 fse->min_height = format.height; in csiphy_enum_frame_size() 465 if (format.code != fse->code) in csiphy_enum_frame_size() 468 format.code = fse->code; in csiphy_enum_frame_size() 471 csiphy_try_format(csiphy, sd_state, fse->pad, &format, fse->which); in csiphy_enum_frame_size() 472 fse->max_width = format.width; in csiphy_enum_frame_size() [all …]
|
| /linux-6.15/drivers/media/platform/st/stm32/stm32-dcmipp/ |
| H A D | dcmipp-input.c | 213 struct v4l2_subdev_frame_size_enum *fse) in dcmipp_inp_enum_frame_size() argument 217 if (fse->index) in dcmipp_inp_enum_frame_size() 221 vpix = dcmipp_inp_pix_map_by_code(IS_SINK(fse->pad) ? fse->code : 0, in dcmipp_inp_enum_frame_size() 222 IS_SRC(fse->pad) ? fse->code : 0); in dcmipp_inp_enum_frame_size() 226 fse->min_width = DCMIPP_FRAME_MIN_WIDTH; in dcmipp_inp_enum_frame_size() 227 fse->max_width = DCMIPP_FRAME_MAX_WIDTH; in dcmipp_inp_enum_frame_size() 228 fse->min_height = DCMIPP_FRAME_MIN_HEIGHT; in dcmipp_inp_enum_frame_size() 229 fse->max_height = DCMIPP_FRAME_MAX_HEIGHT; in dcmipp_inp_enum_frame_size()
|
| H A D | dcmipp-byteproc.c | 232 struct v4l2_subdev_frame_size_enum *fse) in dcmipp_byteproc_enum_frame_size() argument 236 if (fse->index) in dcmipp_byteproc_enum_frame_size() 239 fse->min_width = DCMIPP_FRAME_MIN_WIDTH; in dcmipp_byteproc_enum_frame_size() 240 fse->min_height = DCMIPP_FRAME_MIN_HEIGHT; in dcmipp_byteproc_enum_frame_size() 242 if (IS_SINK(fse->pad)) { in dcmipp_byteproc_enum_frame_size() 243 fse->max_width = DCMIPP_FRAME_MAX_WIDTH; in dcmipp_byteproc_enum_frame_size() 244 fse->max_height = DCMIPP_FRAME_MAX_HEIGHT; in dcmipp_byteproc_enum_frame_size() 247 fse->max_width = compose->width; in dcmipp_byteproc_enum_frame_size() 248 fse->max_height = compose->height; in dcmipp_byteproc_enum_frame_size()
|
| /linux-6.15/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()
|
| H A D | vimc-sensor.c | 78 struct v4l2_subdev_frame_size_enum *fse) in vimc_sensor_enum_frame_size() argument 82 if (fse->index) in vimc_sensor_enum_frame_size() 86 vpix = vimc_pix_map_by_code(fse->code); in vimc_sensor_enum_frame_size() 90 fse->min_width = VIMC_FRAME_MIN_WIDTH; in vimc_sensor_enum_frame_size() 91 fse->max_width = VIMC_FRAME_MAX_WIDTH; in vimc_sensor_enum_frame_size() 92 fse->min_height = VIMC_FRAME_MIN_HEIGHT; in vimc_sensor_enum_frame_size() 93 fse->max_height = VIMC_FRAME_MAX_HEIGHT; in vimc_sensor_enum_frame_size()
|
| /linux-6.15/drivers/media/i2c/ |
| H A D | ov01a10.c | 761 struct v4l2_subdev_frame_size_enum *fse) in ov01a10_enum_frame_size() argument 763 if (fse->index >= ARRAY_SIZE(supported_modes) || in ov01a10_enum_frame_size() 764 fse->code != MEDIA_BUS_FMT_SBGGR10_1X10) in ov01a10_enum_frame_size() 767 fse->min_width = supported_modes[fse->index].width; in ov01a10_enum_frame_size() 768 fse->max_width = fse->min_width; in ov01a10_enum_frame_size() 769 fse->min_height = supported_modes[fse->index].height; in ov01a10_enum_frame_size() 770 fse->max_height = fse->min_height; in ov01a10_enum_frame_size()
|
| H A D | ov9734.c | 757 struct v4l2_subdev_frame_size_enum *fse) in ov9734_enum_frame_size() argument 759 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov9734_enum_frame_size() 762 if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) in ov9734_enum_frame_size() 765 fse->min_width = supported_modes[fse->index].width; in ov9734_enum_frame_size() 766 fse->max_width = fse->min_width; in ov9734_enum_frame_size() 767 fse->min_height = supported_modes[fse->index].height; in ov9734_enum_frame_size() 768 fse->max_height = fse->min_height; in ov9734_enum_frame_size()
|
| 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() 840 if (fie->width == fse.min_width && in ov2680_valid_frame_size() [all …]
|
| H A D | ov5645.c | 835 struct v4l2_subdev_frame_size_enum *fse) in ov5645_enum_frame_size() argument 837 if (fse->code != MEDIA_BUS_FMT_UYVY8_1X16) in ov5645_enum_frame_size() 840 if (fse->index >= ARRAY_SIZE(ov5645_mode_info_data)) in ov5645_enum_frame_size() 843 fse->min_width = ov5645_mode_info_data[fse->index].width; in ov5645_enum_frame_size() 844 fse->max_width = ov5645_mode_info_data[fse->index].width; in ov5645_enum_frame_size() 845 fse->min_height = ov5645_mode_info_data[fse->index].height; in ov5645_enum_frame_size() 846 fse->max_height = ov5645_mode_info_data[fse->index].height; in ov5645_enum_frame_size()
|
| H A D | ov8858.c | 1450 struct v4l2_subdev_frame_size_enum *fse) in ov8858_enum_frame_sizes() argument 1452 if (fse->index >= ARRAY_SIZE(ov8858_modes)) in ov8858_enum_frame_sizes() 1455 if (fse->code != MEDIA_BUS_FMT_SBGGR10_1X10) in ov8858_enum_frame_sizes() 1458 fse->min_width = ov8858_modes[fse->index].width; in ov8858_enum_frame_sizes() 1459 fse->max_width = ov8858_modes[fse->index].width; in ov8858_enum_frame_sizes() 1460 fse->max_height = ov8858_modes[fse->index].height; in ov8858_enum_frame_sizes() 1461 fse->min_height = ov8858_modes[fse->index].height; in ov8858_enum_frame_sizes()
|
| 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-6.15/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-6.15/drivers/media/platform/ti/omap3isp/ |
| H A D | ispccp2.c | 721 struct v4l2_subdev_frame_size_enum *fse) in ccp2_enum_frame_size() argument 726 if (fse->index != 0) in ccp2_enum_frame_size() 729 format.code = fse->code; in ccp2_enum_frame_size() 732 ccp2_try_format(ccp2, sd_state, fse->pad, &format, fse->which); in ccp2_enum_frame_size() 733 fse->min_width = format.width; in ccp2_enum_frame_size() 734 fse->min_height = format.height; in ccp2_enum_frame_size() 736 if (format.code != fse->code) in ccp2_enum_frame_size() 739 format.code = fse->code; in ccp2_enum_frame_size() 742 ccp2_try_format(ccp2, sd_state, fse->pad, &format, fse->which); in ccp2_enum_frame_size() 743 fse->max_width = format.width; in ccp2_enum_frame_size() [all …]
|