Home
last modified time | relevance | path

Searched refs:denominator (Results 1 – 25 of 98) sorted by relevance

1234

/drivers/media/i2c/et8ek8/
Det8ek8_mode.c58 .denominator = 1207
159 .denominator = 1292
215 .denominator = 3000
271 .denominator = 2988
327 .denominator = 2993
383 .denominator = 399
438 .denominator = 499
494 .denominator = 501
550 .denominator = 2500
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c359 bt->picture_aspect.denominator); in v4l2_print_dv_timings()
377 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio()
378 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio()
380 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio()
381 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio()
383 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio()
696 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf()
698 aspect.denominator = 9; in v4l2_detect_gtf()
700 image_width = ((image_height * aspect.numerator) / aspect.denominator); in v4l2_detect_gtf()
790 aspect.denominator = vert_portrait; in v4l2_calc_aspect_ratio()
[all …]
/drivers/media/platform/vivid/
Dvivid-kthread-out.c131 unsigned denominator; in vivid_thread_vid_out() local
163 denominator = dev->timeperframe_vid_out.denominator; in vivid_thread_vid_out()
166 denominator *= 2; in vivid_thread_vid_out()
171 buffers_since_start = (u64)jiffies_since_start * denominator + in vivid_thread_vid_out()
209 denominator / 2; in vivid_thread_vid_out()
210 do_div(next_jiffies_since_start, denominator); in vivid_thread_vid_out()
Dvivid-kthread-cap.c762 unsigned denominator; in vivid_thread_vid_cap() local
793 denominator = dev->timeperframe_vid_cap.denominator; in vivid_thread_vid_cap()
796 denominator *= 2; in vivid_thread_vid_cap()
801 buffers_since_start = (u64)jiffies_since_start * denominator + in vivid_thread_vid_cap()
839 denominator / 2; in vivid_thread_vid_cap()
840 do_div(next_jiffies_since_start, denominator); in vivid_thread_vid_cap()
/drivers/media/i2c/
Dvs6624.c670 cp->timeperframe.numerator = sensor->frame_rate.denominator; in vs6624_g_parm()
671 cp->timeperframe.denominator = sensor->frame_rate.numerator; in vs6624_g_parm()
686 if (tpf->numerator == 0 || tpf->denominator == 0 in vs6624_s_parm()
687 || (tpf->denominator > tpf->numerator * MAX_FRAME_RATE)) { in vs6624_s_parm()
690 tpf->denominator = MAX_FRAME_RATE; in vs6624_s_parm()
692 sensor->frame_rate.numerator = tpf->denominator; in vs6624_s_parm()
693 sensor->frame_rate.denominator = tpf->numerator; in vs6624_s_parm()
700 sensor->frame_rate.denominator & 0xFF); in vs6624_s_parm()
803 sensor->frame_rate.denominator = 1; in vs6624_probe()
810 sensor->frame_rate.denominator & 0xFF); in vs6624_probe()
Dmt9v011.c202 static void calc_fps(struct v4l2_subdev *sd, u32 *numerator, u32 *denominator) in calc_fps() argument
226 if (numerator && denominator) { in calc_fps()
228 *denominator = (u32)frames_per_ms; in calc_fps()
232 static u16 calc_speed(struct v4l2_subdev *sd, u32 numerator, u32 denominator) in calc_speed() argument
240 if (!numerator || !denominator) in calc_speed()
253 t_time += denominator / 2; in calc_speed()
254 do_div(t_time, denominator); in calc_speed()
379 &cp->timeperframe.denominator); in mt9v011_g_parm()
395 speed = calc_speed(sd, tpf->numerator, tpf->denominator); in mt9v011_s_parm()
401 calc_fps(sd, &tpf->numerator, &tpf->denominator); in mt9v011_s_parm()
Dmt9m032.c202 (u64)row_time * interval->denominator) in mt9m032_update_timing()
207 interval->denominator = 1000; in mt9m032_update_timing()
210 (u64)row_time * interval->denominator, in mt9m032_update_timing()
213 (u64)row_time * interval->denominator) in mt9m032_update_timing()
522 if (fi->interval.denominator == 0) in mt9m032_set_frame_interval()
523 fi->interval.denominator = 1; in mt9m032_set_frame_interval()
754 sensor->frame_interval.denominator = 30; in mt9m032_probe()
Dov7670.c783 tpf->denominator = (5 * pll_factor * info->clock_speed) / in ov7675_get_framerate()
812 if (tpf->numerator == 0 || tpf->denominator == 0) { in ov7675_set_framerate()
816 (4 * tpf->denominator); in ov7675_set_framerate()
849 tpf->denominator = info->clock_speed; in ov7670_get_framerate_legacy()
851 tpf->denominator /= (info->clkrc & CLK_SCALE); in ov7670_get_framerate_legacy()
860 if (tpf->numerator == 0 || tpf->denominator == 0) in ov7670_set_framerate_legacy()
863 div = (tpf->numerator * info->clock_speed) / tpf->denominator; in ov7670_set_framerate_legacy()
870 tpf->denominator = info->clock_speed / div; in ov7670_set_framerate_legacy()
1113 fie->interval.denominator = ov7670_frame_rates[fie->index]; in ov7670_enum_frame_interval()
1651 tpf.denominator = 30; in ov7670_probe()
Dov6650.c557 if (timeperframe->numerator && timeperframe->denominator) in to_clkrc()
558 pclk = pclk_max * timeperframe->denominator / in to_clkrc()
768 cp->timeperframe.denominator = FRAME_RATE_MAX; in ov6650_g_parm()
771 cp->timeperframe.numerator, cp->timeperframe.denominator); in ov6650_g_parm()
791 if (tpf->numerator == 0 || tpf->denominator == 0) in ov6650_s_parm()
794 div = (tpf->numerator * FRAME_RATE_MAX) / tpf->denominator; in ov6650_s_parm()
806 priv->tpf.denominator = FRAME_RATE_MAX; in ov6650_s_parm()
813 tpf->denominator = FRAME_RATE_MAX; in ov6650_s_parm()
Dov5640.c1641 fi->denominator = maxfps; in ov5640_try_frame_interval()
1646 fps = DIV_ROUND_CLOSEST(fi->denominator, fi->numerator); in ov5640_try_frame_interval()
1650 fi->denominator = maxfps; in ov5640_try_frame_interval()
1652 fi->denominator = minfps; in ov5640_try_frame_interval()
1654 fi->denominator = maxfps; in ov5640_try_frame_interval()
1656 fi->denominator = minfps; in ov5640_try_frame_interval()
1658 ret = (fi->denominator == minfps) ? OV5640_15_FPS : OV5640_30_FPS; in ov5640_try_frame_interval()
2071 tpf.denominator = ov5640_framerates[fie->index]; in ov5640_enum_frame_interval()
2219 sensor->frame_interval.denominator = ov5640_framerates[OV5640_30_FPS]; in ov5640_probe()
/drivers/media/platform/soc_camera/
Dsoc_mediabus.c389 unsigned int *numerator, unsigned int *denominator) in soc_mbus_samples_per_pixel() argument
395 *denominator = 1; in soc_mbus_samples_per_pixel()
399 *denominator = 1; in soc_mbus_samples_per_pixel()
404 *denominator = 1; in soc_mbus_samples_per_pixel()
408 *denominator = 2; in soc_mbus_samples_per_pixel()
412 *denominator = 1; in soc_mbus_samples_per_pixel()
/drivers/media/usb/uvc/
Duvc_v4l2.c339 uint32_t numerator, denominator; in uvc_v4l2_get_streamparm() local
348 denominator = 10000000; in uvc_v4l2_get_streamparm()
349 uvc_simplify_fraction(&numerator, &denominator, 8, 333); in uvc_v4l2_get_streamparm()
358 parm->parm.capture.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm()
365 parm->parm.output.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm()
388 timeperframe.denominator); in uvc_v4l2_set_streamparm()
390 timeperframe.numerator, timeperframe.denominator, interval); in uvc_v4l2_set_streamparm()
415 timeperframe.denominator = 10000000; in uvc_v4l2_set_streamparm()
417 &timeperframe.denominator, 8, 333); in uvc_v4l2_set_streamparm()
1211 fival->discrete.denominator = 10000000; in uvc_ioctl_enum_frameintervals()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-std.c241 .denominator= 25
252 .denominator= 30000
261 .denominator= 30000
270 .denominator= 30000
/drivers/media/platform/sti/delta/
Ddelta-debug.c29 s->pixelaspect.denominator); in delta_streaminfo_str()
50 f->pixelaspect.denominator); in delta_frameinfo_str()
/drivers/media/pci/tw5864/
Dtw5864-video.c725 frameinterval->denominator = 30000; in tw5864_frameinterval_get()
730 frameinterval->denominator = 25; in tw5864_frameinterval_get()
816 if (!t->numerator || !t->denominator) { in tw5864_s_parm()
818 t->denominator = time_base.denominator; in tw5864_s_parm()
819 } else if (t->denominator != time_base.denominator) { in tw5864_s_parm()
820 t->numerator = t->numerator * time_base.denominator / in tw5864_s_parm()
821 t->denominator; in tw5864_s_parm()
822 t->denominator = time_base.denominator; in tw5864_s_parm()
/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c524 int denominator; in mapM() local
537 denominator = srcMax - srcMin; in mapM()
538 quotient = numerator / denominator; in mapM()
540 if (2 * (numerator % denominator) >= denominator) in mapM()
/drivers/media/platform/coda/
Dcoda-common.c995 tpf->denominator = ctx->params.framerate & CODA_FRATE_RES_MASK; in coda_g_parm()
1015 if (s.numerator == 0 || s.denominator / s.numerator > 65535) { in coda_approximate_timeperframe()
1017 timeperframe->denominator = 65535; in coda_approximate_timeperframe()
1022 if (s.denominator == 0 || s.numerator / s.denominator > 65536) { in coda_approximate_timeperframe()
1024 timeperframe->denominator = 0; in coda_approximate_timeperframe()
1029 div = gcd(s.numerator, s.denominator); in coda_approximate_timeperframe()
1032 s.denominator /= div; in coda_approximate_timeperframe()
1035 if (s.numerator <= 65536 && s.denominator < 65536) { in coda_approximate_timeperframe()
1041 while (f2.numerator <= 65536 && f2.denominator < 65536) { in coda_approximate_timeperframe()
1049 i = s.denominator / s.numerator; in coda_approximate_timeperframe()
[all …]
/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/fixedbds/fixedbds_1.0/
Dia_css_fixedbds_types.h21 unsigned denominator; member
/drivers/media/platform/qcom/venus/
Dvenc.c489 if (!timeperframe->denominator) in venc_s_parm()
490 timeperframe->denominator = inst->timeperframe.denominator; in venc_s_parm()
497 do_div(us_per_frame, timeperframe->denominator); in venc_s_parm()
585 fival->stepwise.min.denominator = inst->cap_framerate.max; in venc_enum_frameintervals()
587 fival->stepwise.max.denominator = inst->cap_framerate.min; in venc_enum_frameintervals()
589 fival->stepwise.step.denominator = inst->cap_framerate.max; in venc_enum_frameintervals()
1053 inst->timeperframe.denominator = 15; in venc_inst_init()
/drivers/media/platform/qcom/camss-8x16/
Dcamss-video.c32 u8 denominator; member
173 f->hsub[i].denominator * f->bpp[i] / 8; in video_mbus_to_pix_mp()
177 f->vsub[i].numerator * f->vsub[i].denominator * in video_mbus_to_pix_mp()
533 fi->hsub[i].denominator * fi->bpp[i] / 8; in __video_try_fmt()
537 fi->vsub[i].numerator * fi->vsub[i].denominator * bpl; in __video_try_fmt()
/drivers/gpu/drm/arm/
Dmalidp_hw.c566 unsigned long numerator = 1, denominator = 1; in malidp550_se_calc_mclk() local
575 denominator = (htotal - 2) * se_config->output_h; in malidp550_se_calc_mclk()
579 if (numerator < denominator) in malidp550_se_calc_mclk()
580 numerator = denominator = 1; in malidp550_se_calc_mclk()
581 mclk = (pxlclk * numerator) / denominator; in malidp550_se_calc_mclk()
/drivers/staging/media/imx/
Dimx-media-csi.c647 input_fi->denominator); in csi_start()
738 interval->denominator *= skip->keep; in csi_apply_skip_interval()
741 div = gcd(interval->numerator, interval->denominator); in csi_apply_skip_interval()
744 interval->denominator /= div; in csi_apply_skip_interval()
762 if (out->numerator == 0 || out->denominator == 0 || in csi_find_best_skip()
763 in->numerator == 0 || in->denominator == 0) { in csi_find_best_skip()
768 want_us = div_u64((u64)USEC_PER_SEC * out->numerator, out->denominator); in csi_find_best_skip()
775 skip->max_ratio, in->denominator * skip->keep); in csi_find_best_skip()
1637 priv->frame_interval[i].denominator = 30; in csi_registered()
Dimx-media-vdic.c833 output_fi->denominator *= 2; in vdic_s_frame_interval()
844 fi->interval.denominator *= 2; in vdic_s_frame_interval()
886 priv->frame_interval[i].denominator = 30; in vdic_registered()
888 priv->frame_interval[i].denominator *= 2; in vdic_registered()
/drivers/net/wireless/ath/ath9k/
Dar9002_phy.c176 int denominator; in ar9002_hw_spur_mitigate() local
263 denominator = IS_CHAN_2GHZ(chan) ? 44 : 40; in ar9002_hw_spur_mitigate()
264 spur_freq_sd = ((bb_spur_off * 2048) / denominator) & 0x3ff; in ar9002_hw_spur_mitigate()
/drivers/media/pci/tw686x/
Dtw686x-video.c939 ival->discrete.denominator = (ival->index + 1) * 2; in tw686x_enum_frameintervals()
941 ival->discrete.denominator = max_fps; in tw686x_enum_frameintervals()
957 cp->timeperframe.denominator = vc->fps; in tw686x_g_parm()
966 unsigned int denominator = cp->timeperframe.denominator; in tw686x_s_parm() local
973 fps = (!numerator || !denominator) ? 0 : denominator / numerator; in tw686x_s_parm()

1234