/linux-6.12.1/drivers/media/i2c/ |
D | imx214.c | 923 struct v4l2_subdev_frame_interval_enum *fie) in imx214_enum_frame_interval() argument 927 if (fie->index != 0) in imx214_enum_frame_interval() 932 fie->width, fie->height); in imx214_enum_frame_interval() 934 fie->code = IMX214_MBUS_CODE; in imx214_enum_frame_interval() 935 fie->width = mode->width; in imx214_enum_frame_interval() 936 fie->height = mode->height; in imx214_enum_frame_interval() 937 fie->interval.numerator = 1; in imx214_enum_frame_interval() 938 fie->interval.denominator = IMX214_FPS; in imx214_enum_frame_interval()
|
D | ov6650.c | 777 struct v4l2_subdev_frame_interval_enum *fie) in ov6650_enum_frame_interval() argument 782 if (fie->index > CLKRC_DIV_MASK || in ov6650_enum_frame_interval() 783 GET_CLKRC_DIV(fie->index) > FRAME_RATE_MAX) in ov6650_enum_frame_interval() 787 if (fie->code == ov6650_codes[i]) in ov6650_enum_frame_interval() 792 if (!fie->width || fie->width > W_CIF || in ov6650_enum_frame_interval() 793 !fie->height || fie->height > H_CIF) in ov6650_enum_frame_interval() 796 fie->interval.numerator = GET_CLKRC_DIV(fie->index); in ov6650_enum_frame_interval() 797 fie->interval.denominator = FRAME_RATE_MAX; in ov6650_enum_frame_interval()
|
D | ov772x.c | 1338 struct v4l2_subdev_frame_interval_enum *fie) in ov772x_enum_frame_interval() argument 1340 if (fie->pad || fie->index >= ARRAY_SIZE(ov772x_frame_intervals)) in ov772x_enum_frame_interval() 1343 if (fie->width != VGA_WIDTH && fie->width != QVGA_WIDTH) in ov772x_enum_frame_interval() 1345 if (fie->height != VGA_HEIGHT && fie->height != QVGA_HEIGHT) in ov772x_enum_frame_interval() 1348 fie->interval.numerator = 1; in ov772x_enum_frame_interval() 1349 fie->interval.denominator = ov772x_frame_intervals[fie->index]; in ov772x_enum_frame_interval()
|
D | mt9v111.c | 836 struct v4l2_subdev_frame_interval_enum *fie) in mt9v111_enum_frame_interval() argument 840 if (fie->pad || fie->index >= ARRAY_SIZE(mt9v111_frame_intervals)) in mt9v111_enum_frame_interval() 844 if (fie->width == mt9v111_frame_sizes[i].width && in mt9v111_enum_frame_interval() 845 fie->height == mt9v111_frame_sizes[i].height) in mt9v111_enum_frame_interval() 851 fie->interval.numerator = 1; in mt9v111_enum_frame_interval() 852 fie->interval.denominator = mt9v111_frame_intervals[fie->index]; in mt9v111_enum_frame_interval()
|
D | ov2680.c | 826 struct v4l2_subdev_frame_interval_enum *fie) in ov2680_valid_frame_size() argument 829 .pad = fie->pad, in ov2680_valid_frame_size() 830 .which = fie->which, in ov2680_valid_frame_size() 840 if (fie->width == fse.min_width && in ov2680_valid_frame_size() 841 fie->height == fse.min_height) in ov2680_valid_frame_size() 850 struct v4l2_subdev_frame_interval_enum *fie) in ov2680_enum_frame_interval() argument 855 if (fie->index || !ov2680_valid_frame_size(sd, sd_state, fie)) in ov2680_enum_frame_interval() 858 fie->interval = sensor->mode.frame_interval; in ov2680_enum_frame_interval()
|
D | ov7740.c | 688 struct v4l2_subdev_frame_interval_enum *fie) in ov7740_enum_frame_interval() argument 690 if (fie->pad) in ov7740_enum_frame_interval() 693 if (fie->index >= 1) in ov7740_enum_frame_interval() 696 if ((fie->width != VGA_WIDTH) || (fie->height != VGA_HEIGHT)) in ov7740_enum_frame_interval() 699 fie->interval.numerator = 1; in ov7740_enum_frame_interval() 700 fie->interval.denominator = 60; in ov7740_enum_frame_interval()
|
D | ov7670.c | 1203 struct v4l2_subdev_frame_interval_enum *fie) in ov7670_enum_frame_interval() argument 1209 if (fie->pad) in ov7670_enum_frame_interval() 1211 if (fie->index >= ARRAY_SIZE(ov7670_frame_rates)) in ov7670_enum_frame_interval() 1227 if (fie->width == win->width && fie->height == win->height) in ov7670_enum_frame_interval() 1232 fie->interval.numerator = 1; in ov7670_enum_frame_interval() 1233 fie->interval.denominator = ov7670_frame_rates[fie->index]; in ov7670_enum_frame_interval()
|
D | s5k5baf.c | 1190 struct v4l2_subdev_frame_interval_enum *fie) in s5k5baf_enum_frame_interval() argument 1192 if (fie->index > S5K5BAF_MAX_FR_TIME - S5K5BAF_MIN_FR_TIME || in s5k5baf_enum_frame_interval() 1193 fie->pad != PAD_CIS) in s5k5baf_enum_frame_interval() 1196 v4l_bound_align_image(&fie->width, S5K5BAF_WIN_WIDTH_MIN, in s5k5baf_enum_frame_interval() 1198 &fie->height, S5K5BAF_WIN_HEIGHT_MIN, in s5k5baf_enum_frame_interval() 1201 fie->interval.numerator = S5K5BAF_MIN_FR_TIME + fie->index; in s5k5baf_enum_frame_interval() 1202 fie->interval.denominator = 10000; in s5k5baf_enum_frame_interval()
|
D | ov7251.c | 1115 struct v4l2_subdev_frame_interval_enum *fie) in ov7251_enum_frame_ival() argument 1117 unsigned int index = fie->index; in ov7251_enum_frame_ival() 1121 if (fie->width != ov7251_mode_info_data[i].width || in ov7251_enum_frame_ival() 1122 fie->height != ov7251_mode_info_data[i].height) in ov7251_enum_frame_ival() 1126 fie->interval = ov7251_mode_info_data[i].timeperframe; in ov7251_enum_frame_ival()
|
D | thp7312.c | 707 struct v4l2_subdev_frame_interval_enum *fie) in thp7312_enum_frame_interval() argument 711 unsigned int index = fie->index; in thp7312_enum_frame_interval() 713 if (!thp7312_find_bus_code(fie->code)) in thp7312_enum_frame_interval() 716 mode = thp7312_find_mode(fie->width, fie->height, false); in thp7312_enum_frame_interval() 722 fie->interval.numerator = 1; in thp7312_enum_frame_interval() 723 fie->interval.denominator = rate->fps; in thp7312_enum_frame_interval()
|
D | mt9m114.c | 1775 struct v4l2_subdev_frame_interval_enum *fie) in mt9m114_ifp_enum_frameintervals() argument 1780 if (fie->index > 0) in mt9m114_ifp_enum_frameintervals() 1783 info = mt9m114_format_info(sensor, fie->pad, fie->code); in mt9m114_ifp_enum_frameintervals() 1784 if (!info || info->code != fie->code) in mt9m114_ifp_enum_frameintervals() 1787 fie->interval.numerator = 1; in mt9m114_ifp_enum_frameintervals() 1788 fie->interval.denominator = MT9M114_MAX_FRAME_RATE; in mt9m114_ifp_enum_frameintervals()
|
D | ov5640.c | 3580 struct v4l2_subdev_frame_interval_enum *fie) in ov5640_enum_frame_interval() argument 3587 if (fie->pad != 0) in ov5640_enum_frame_interval() 3589 if (fie->index >= OV5640_NUM_FRAMERATES) in ov5640_enum_frame_interval() 3592 mode = ov5640_find_mode(sensor, fie->width, fie->height, false); in ov5640_enum_frame_interval() 3597 tpf.denominator = ov5640_framerates[fie->index]; in ov5640_enum_frame_interval() 3603 fie->interval = tpf; in ov5640_enum_frame_interval()
|
/linux-6.12.1/drivers/staging/media/tegra-video/ |
D | csi.c | 157 struct v4l2_subdev_frame_interval_enum *fie) in csi_enum_frameintervals() argument 168 if (fie->index > 0) in csi_enum_frameintervals() 171 index = csi_get_frmrate_table_index(csi_chan->csi, fie->code, in csi_enum_frameintervals() 172 fie->width, fie->height); in csi_enum_frameintervals() 176 fie->interval.numerator = 1; in csi_enum_frameintervals() 177 fie->interval.denominator = frmrate[index].framerate; in csi_enum_frameintervals()
|
D | vi.c | 369 struct v4l2_subdev_frame_interval_enum fie = { in tegra_channel_enum_frameintervals() local 380 fie.code = fmtinfo->code; in tegra_channel_enum_frameintervals() 383 ret = v4l2_subdev_call(subdev, pad, enum_frame_interval, NULL, &fie); in tegra_channel_enum_frameintervals() 388 ivals->discrete.numerator = fie.interval.numerator; in tegra_channel_enum_frameintervals() 389 ivals->discrete.denominator = fie.interval.denominator; in tegra_channel_enum_frameintervals()
|
/linux-6.12.1/drivers/staging/media/imx/ |
D | imx-media-csi.c | 1322 struct v4l2_subdev_frame_interval_enum *fie) in csi_enum_frame_interval() argument 1329 if (fie->pad >= CSI_NUM_PADS || in csi_enum_frame_interval() 1330 fie->index >= (fie->pad != CSI_SRC_PAD_IDMAC ? in csi_enum_frame_interval() 1337 crop = __csi_get_crop(priv, sd_state, fie->which); in csi_enum_frame_interval() 1339 if ((fie->width != crop->width && fie->width != crop->width / 2) || in csi_enum_frame_interval() 1340 (fie->height != crop->height && fie->height != crop->height / 2)) { in csi_enum_frame_interval() 1345 fie->interval = *input_fi; in csi_enum_frame_interval() 1347 if (fie->pad == CSI_SRC_PAD_IDMAC) in csi_enum_frame_interval() 1348 csi_apply_skip_interval(&csi_skip[fie->index], in csi_enum_frame_interval() 1349 &fie->interval); in csi_enum_frame_interval()
|
D | imx-media-capture.c | 324 struct v4l2_subdev_frame_interval_enum fie = { in capture_legacy_enum_frameintervals() local 337 fie.code = cc->codes ? cc->codes[0] : 0; in capture_legacy_enum_frameintervals() 340 NULL, &fie); in capture_legacy_enum_frameintervals() 345 fival->discrete = fie.interval; in capture_legacy_enum_frameintervals()
|
/linux-6.12.1/drivers/media/v4l2-core/ |
D | v4l2-subdev.c | 267 struct v4l2_subdev_frame_interval_enum *fie) in call_enum_frame_interval() argument 269 if (!fie) in call_enum_frame_interval() 272 return check_which(fie->which) ? : check_pad(sd, fie->pad) ? : in call_enum_frame_interval() 273 check_state(sd, state, fie->which, fie->pad, fie->stream) ? : in call_enum_frame_interval() 274 sd->ops->pad->enum_frame_interval(sd, state, fie); in call_enum_frame_interval() 861 struct v4l2_subdev_frame_interval_enum *fie = arg; in subdev_do_ioctl() local 864 fie->stream = 0; in subdev_do_ioctl() 866 memset(fie->reserved, 0, sizeof(fie->reserved)); in subdev_do_ioctl() 868 fie); in subdev_do_ioctl()
|
/linux-6.12.1/drivers/media/i2c/et8ek8/ |
D | et8ek8_driver.c | 962 struct v4l2_subdev_frame_interval_enum *fie) in et8ek8_enum_frame_ival() argument 967 int index = fie->index; in et8ek8_enum_frame_ival() 976 if (fie->code != format.code) in et8ek8_enum_frame_ival() 979 if (fie->width != format.width || fie->height != format.height) in et8ek8_enum_frame_ival() 983 fie->interval = mode->timeperframe; in et8ek8_enum_frame_ival()
|
/linux-6.12.1/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 961 struct v4l2_subdev_frame_interval_enum *fie) in s5c73m3_oif_enum_frame_interval() argument 967 if (fie->pad != OIF_SOURCE_PAD) in s5c73m3_oif_enum_frame_interval() 969 if (fie->index >= ARRAY_SIZE(s5c73m3_intervals)) in s5c73m3_oif_enum_frame_interval() 973 fi = &s5c73m3_intervals[fie->index]; in s5c73m3_oif_enum_frame_interval() 974 if (fie->width > fi->size.width || fie->height > fi->size.height) in s5c73m3_oif_enum_frame_interval() 977 fie->interval = fi->interval; in s5c73m3_oif_enum_frame_interval()
|
/linux-6.12.1/drivers/media/platform/ti/cal/ |
D | cal-video.c | 368 struct v4l2_subdev_frame_interval_enum fie = { in cal_legacy_enum_frameintervals() local 380 fie.code = fmtinfo->code; in cal_legacy_enum_frameintervals() 382 NULL, &fie); in cal_legacy_enum_frameintervals() 386 fival->discrete = fie.interval; in cal_legacy_enum_frameintervals()
|
/linux-6.12.1/drivers/media/platform/atmel/ |
D | atmel-isi.c | 768 struct v4l2_subdev_frame_interval_enum fie = { in isi_enum_frameintervals() local 780 fie.code = isi_fmt->mbus_code; in isi_enum_frameintervals() 783 enum_frame_interval, NULL, &fie); in isi_enum_frameintervals() 788 fival->discrete = fie.interval; in isi_enum_frameintervals()
|
/linux-6.12.1/drivers/media/platform/via/ |
D | via-camera.c | 959 struct v4l2_subdev_frame_interval_enum fie = { in viacam_enum_frameintervals() local 977 ret = sensor_call(cam, pad, enum_frame_interval, NULL, &fie); in viacam_enum_frameintervals() 981 interval->discrete = fie.interval; in viacam_enum_frameintervals()
|
/linux-6.12.1/drivers/media/platform/marvell/ |
D | mcam-core.c | 1529 struct v4l2_subdev_frame_interval_enum fie = { in mcam_vidioc_enum_frameintervals() local 1540 fie.code = f->mbus_code; in mcam_vidioc_enum_frameintervals() 1541 ret = sensor_call(cam, pad, enum_frame_interval, NULL, &fie); in mcam_vidioc_enum_frameintervals() 1545 interval->discrete = fie.interval; in mcam_vidioc_enum_frameintervals()
|
/linux-6.12.1/drivers/media/platform/renesas/ |
D | renesas-ceu.c | 1304 struct v4l2_subdev_frame_interval_enum fie = { in ceu_enum_frameintervals() local 1318 &fie); in ceu_enum_frameintervals() 1323 fival->discrete = fie.interval; in ceu_enum_frameintervals()
|
/linux-6.12.1/drivers/staging/media/atomisp/pci/ |
D | atomisp_ioctl.c | 581 struct v4l2_subdev_frame_interval_enum fie = { in atomisp_enum_frameintervals() local 596 act_sd_state, &fie); in atomisp_enum_frameintervals() 603 fival->discrete = fie.interval; in atomisp_enum_frameintervals()
|