Home
last modified time | relevance | path

Searched refs:numerator (Results 1 – 25 of 95) sorted by relevance

1234

/drivers/media/i2c/et8ek8/
Det8ek8_mode.c57 .numerator = 100,
158 .numerator = 100,
214 .numerator = 100,
270 .numerator = 100,
326 .numerator = 100,
382 .numerator = 100,
437 .numerator = 100,
493 .numerator = 100,
549 .numerator = 100,
/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()
689 tpf->numerator = 1; 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()
696 sensor->frame_rate.numerator >> 8); in vs6624_s_parm()
698 sensor->frame_rate.numerator & 0xFF); in vs6624_s_parm()
802 sensor->frame_rate.numerator = MAX_FRAME_RATE; in vs6624_probe()
[all …]
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()
227 *numerator = 1000; 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()
251 t_time = core->xtal * ((u64)numerator); in calc_speed()
378 &cp->timeperframe.numerator, 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()
Dov7670.c782 tpf->numerator = 1; in ov7675_get_framerate()
812 if (tpf->numerator == 0 || tpf->denominator == 0) { in ov7675_set_framerate()
815 clkrc = (5 * pll_factor * info->clock_speed * tpf->numerator) / in ov7675_set_framerate()
848 tpf->numerator = 1; 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()
869 tpf->numerator = 1; in ov7670_set_framerate_legacy()
1112 fie->interval.numerator = 1; in ov7670_enum_frame_interval()
1650 tpf.numerator = 1; in ov7670_probe()
Dov6650.c557 if (timeperframe->numerator && timeperframe->denominator) in to_clkrc()
559 (FRAME_RATE_MAX * timeperframe->numerator); in to_clkrc()
766 cp->timeperframe.numerator = GET_CLKRC_DIV(to_clkrc(&priv->tpf, 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()
805 priv->tpf.numerator = div; in ov6650_s_parm()
812 tpf->numerator = GET_CLKRC_DIV(clkrc); in ov6650_s_parm()
Dmt9m032.c201 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing()
208 interval->numerator = in mt9m032_update_timing()
212 vblank = div_u64(1000000000ULL * interval->numerator, in mt9m032_update_timing()
753 sensor->frame_interval.numerator = 1; in mt9m032_probe()
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c358 bt->picture_aspect.numerator, 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()
382 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio()
696 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf()
697 aspect.numerator = 16; in v4l2_detect_gtf()
700 image_width = ((image_height * aspect.numerator) / aspect.denominator); in v4l2_detect_gtf()
789 aspect.numerator = hor_landscape; in v4l2_calc_aspect_ratio()
[all …]
/drivers/media/platform/vivid/
Dvivid-kthread-out.c130 unsigned numerator; in vivid_thread_vid_out() local
162 numerator = dev->timeperframe_vid_out.numerator; in vivid_thread_vid_out()
172 (HZ * numerator) / 2; in vivid_thread_vid_out()
173 do_div(buffers_since_start, HZ * numerator); in vivid_thread_vid_out()
197 numerators_since_start = buffers_since_start * numerator; in vivid_thread_vid_out()
203 numerators_since_start += numerator; in vivid_thread_vid_out()
Dvivid-kthread-cap.c761 unsigned numerator; in vivid_thread_vid_cap() local
792 numerator = dev->timeperframe_vid_cap.numerator; in vivid_thread_vid_cap()
802 (HZ * numerator) / 2; in vivid_thread_vid_cap()
803 do_div(buffers_since_start, HZ * numerator); in vivid_thread_vid_cap()
827 numerators_since_start = ++buffers_since_start * numerator; in vivid_thread_vid_cap()
/drivers/media/platform/soc_camera/
Dsoc_mediabus.c389 unsigned int *numerator, unsigned int *denominator) in soc_mbus_samples_per_pixel() argument
394 *numerator = 1; in soc_mbus_samples_per_pixel()
398 *numerator = 1; in soc_mbus_samples_per_pixel()
403 *numerator = 2; in soc_mbus_samples_per_pixel()
407 *numerator = 3; in soc_mbus_samples_per_pixel()
411 *numerator = 0; in soc_mbus_samples_per_pixel()
/drivers/media/usb/uvc/
Duvc_v4l2.c339 uint32_t numerator, denominator; in uvc_v4l2_get_streamparm() local
345 numerator = stream->ctrl.dwFrameInterval; in uvc_v4l2_get_streamparm()
349 uvc_simplify_fraction(&numerator, &denominator, 8, 333); in uvc_v4l2_get_streamparm()
357 parm->parm.capture.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm()
364 parm->parm.output.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm()
387 interval = uvc_fraction_to_interval(timeperframe.numerator, in uvc_v4l2_set_streamparm()
390 timeperframe.numerator, timeperframe.denominator, interval); in uvc_v4l2_set_streamparm()
414 timeperframe.numerator = probe.dwFrameInterval; in uvc_v4l2_set_streamparm()
416 uvc_simplify_fraction(&timeperframe.numerator, in uvc_v4l2_set_streamparm()
1209 fival->discrete.numerator = in uvc_ioctl_enum_frameintervals()
[all …]
/drivers/staging/sm750fb/
Dsm750.h181 unsigned long long numerator = 1000 * 1000 * 1000 * 1000ULL; in ps_to_hz() local
183 do_div(numerator, psvalue); in ps_to_hz()
184 return (unsigned long)numerator; in ps_to_hz()
/drivers/media/usb/pvrusb2/
Dpvrusb2-std.c240 .numerator = 1,
251 .numerator = 1001,
260 .numerator = 1001,
269 .numerator = 1001,
/drivers/media/platform/sti/delta/
Ddelta-debug.c28 s->pixelaspect.numerator, in delta_streaminfo_str()
49 f->pixelaspect.numerator, in delta_frameinfo_str()
/drivers/media/pci/tw5864/
Dtw5864-video.c724 frameinterval->numerator = 1001; in tw5864_frameinterval_get()
729 frameinterval->numerator = 1; in tw5864_frameinterval_get()
782 fintv->stepwise.max.numerator *= std_max_fps; in tw5864_enum_frameintervals()
797 cp->timeperframe.numerator *= input->frame_interval; in tw5864_g_parm()
816 if (!t->numerator || !t->denominator) { in tw5864_s_parm()
817 t->numerator = time_base.numerator * input->frame_interval; in tw5864_s_parm()
820 t->numerator = t->numerator * time_base.denominator / in tw5864_s_parm()
825 input->frame_interval = t->numerator / time_base.numerator; in tw5864_s_parm()
/drivers/media/platform/coda/
Dcoda-common.c996 tpf->numerator = 1 + (ctx->params.framerate >> in coda_g_parm()
1015 if (s.numerator == 0 || s.denominator / s.numerator > 65535) { in coda_approximate_timeperframe()
1016 timeperframe->numerator = 1; in coda_approximate_timeperframe()
1022 if (s.denominator == 0 || s.numerator / s.denominator > 65536) { in coda_approximate_timeperframe()
1023 timeperframe->numerator = 1; in coda_approximate_timeperframe()
1029 div = gcd(s.numerator, s.denominator); in coda_approximate_timeperframe()
1031 s.numerator /= 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()
1046 if (s.numerator == 0) in coda_approximate_timeperframe()
[all …]
/drivers/media/usb/s2255/
Ds2255drv.c1306 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_g_parm()
1309 sp->parm.capture.timeperframe.numerator = def_num * 2; in vidioc_g_parm()
1312 sp->parm.capture.timeperframe.numerator = def_num * 3; in vidioc_g_parm()
1315 sp->parm.capture.timeperframe.numerator = def_num * 5; in vidioc_g_parm()
1321 sp->parm.capture.timeperframe.numerator, in vidioc_g_parm()
1343 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_s_parm()
1344 else if (sp->parm.capture.timeperframe.numerator <= def_num) in vidioc_s_parm()
1345 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_s_parm()
1346 else if (sp->parm.capture.timeperframe.numerator <= (def_num * 2)) { in vidioc_s_parm()
1347 sp->parm.capture.timeperframe.numerator = def_num * 2; in vidioc_s_parm()
[all …]
/drivers/gpu/drm/arm/
Dmalidp_hw.c566 unsigned long numerator = 1, denominator = 1; in malidp550_se_calc_mclk() local
570 numerator = max(se_config->input_w, se_config->output_w) * in malidp550_se_calc_mclk()
572 numerator += se_config->output_w * 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/atomisp/pci/atomisp2/css2400/isp/kernels/fixedbds/fixedbds_1.0/
Dia_css_fixedbds_types.h20 unsigned numerator; member
/drivers/media/platform/qcom/venus/
Dvenc.c491 if (!timeperframe->numerator) in venc_s_parm()
492 timeperframe->numerator = inst->timeperframe.numerator; in venc_s_parm()
496 us_per_frame = timeperframe->numerator * (u64)USEC_PER_SEC; in venc_s_parm()
584 fival->stepwise.min.numerator = 1; in venc_enum_frameintervals()
586 fival->stepwise.max.numerator = 1; in venc_enum_frameintervals()
588 fival->stepwise.step.numerator = 1; in venc_enum_frameintervals()
1052 inst->timeperframe.numerator = 1; in venc_inst_init()
/drivers/media/platform/sti/hva/
Dhva-h264.c643 if (time_per_frame->numerator >= 536) { in hva_h264_prepare_task()
650 (time_per_frame->numerator >> 1) - 1) / in hva_h264_prepare_task()
651 time_per_frame->numerator; in hva_h264_prepare_task()
658 td->bit_rate /= time_per_frame->numerator; in hva_h264_prepare_task()
662 td->framerate_den = time_per_frame->numerator; in hva_h264_prepare_task()
/drivers/media/platform/qcom/camss-8x16/
Dcamss-video.c31 u8 numerator; member
172 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp()
177 f->vsub[i].numerator * f->vsub[i].denominator * in video_mbus_to_pix_mp()
532 bpl = pix_mp->width / fi->hsub[i].numerator * in __video_try_fmt()
537 fi->vsub[i].numerator * fi->vsub[i].denominator * bpl; in __video_try_fmt()
/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c523 int numerator; in mapM() local
536 numerator = (srcVal - srcMin) * (dstMax - dstMin); in mapM()
538 quotient = numerator / denominator; in mapM()
540 if (2 * (numerator % denominator) >= denominator) in mapM()
/drivers/staging/media/imx/
Dimx-media-csi.c646 (u64)USEC_PER_SEC * input_fi->numerator * bad_frames, in csi_start()
737 interval->numerator *= skip->max_ratio; in csi_apply_skip_interval()
741 div = gcd(interval->numerator, interval->denominator); in csi_apply_skip_interval()
743 interval->numerator /= 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()
774 tmp = div_u64((u64)USEC_PER_SEC * in->numerator * in csi_find_best_skip()
1636 priv->frame_interval[i].numerator = 1; in csi_registered()
/drivers/media/usb/cpia2/
Dcpia2_v4l.c497 c->pixelaspect.numerator = 1; in cpia2_cropcap()
546 if (ret || !tpf.denominator || !tpf.numerator) in cpia2_s_parm()
557 f1.numerator *= f2.denominator; in cpia2_s_parm()
558 f2.numerator *= f1.denominator; in cpia2_s_parm()
559 if (f1.numerator >= f2.numerator) in cpia2_s_parm()

1234