Home
last modified time | relevance | path

Searched refs:tpf (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/media/i2c/
A Dmt9v111.c452 tpf->denominator / tpf->numerator : in mt9v111_calc_frame_rate()
453 tpf->denominator; in mt9v111_calc_frame_rate()
528 tpf->numerator = 1; in mt9v111_calc_frame_rate()
529 tpf->denominator = best_fps; in mt9v111_calc_frame_rate()
730 tpf->denominator / tpf->numerator : in mt9v111_s_frame_interval()
731 tpf->denominator; in mt9v111_s_frame_interval()
734 if (!tpf->numerator) in mt9v111_s_frame_interval()
735 tpf->numerator = 1; in mt9v111_s_frame_interval()
784 tpf->numerator = 1; in mt9v111_g_frame_interval()
1111 struct v4l2_fract tpf; in mt9v111_probe() local
[all …]
A Dov7670.c796 struct v4l2_fract *tpf) in ov7675_get_framerate() argument
811 tpf->numerator = 1; in ov7675_get_framerate()
843 if (tpf->numerator == 0 || tpf->denominator == 0) { in ov7675_set_framerate()
848 (4 * tpf->denominator); in ov7675_set_framerate()
884 tpf->numerator = 1; in ov7670_get_framerate_legacy()
896 if (tpf->numerator == 0 || tpf->denominator == 0) in ov7670_set_framerate_legacy()
899 div = (tpf->numerator * info->clock_speed) / tpf->denominator; in ov7670_set_framerate_legacy()
905 tpf->numerator = 1; in ov7670_set_framerate_legacy()
1854 struct v4l2_fract tpf; in ov7670_probe() local
1941 tpf.numerator = 1; in ov7670_probe()
[all …]
A Dvs6624.c666 struct v4l2_fract *tpf = &ival->interval; in vs6624_s_frame_interval() local
669 if (tpf->numerator == 0 || tpf->denominator == 0 in vs6624_s_frame_interval()
670 || (tpf->denominator > tpf->numerator * MAX_FRAME_RATE)) { in vs6624_s_frame_interval()
672 tpf->numerator = 1; in vs6624_s_frame_interval()
673 tpf->denominator = MAX_FRAME_RATE; in vs6624_s_frame_interval()
675 sensor->frame_rate.numerator = tpf->denominator; in vs6624_s_frame_interval()
676 sensor->frame_rate.denominator = tpf->numerator; in vs6624_s_frame_interval()
A Dov6650.c200 struct v4l2_fract tpf; /* as requested with s_frame_interval */ member
747 ival->interval = priv->tpf; in ov6650_g_frame_interval()
760 struct v4l2_fract *tpf = &ival->interval; in ov6650_s_frame_interval() local
763 if (tpf->numerator == 0 || tpf->denominator == 0) in ov6650_s_frame_interval()
766 div = (tpf->numerator * FRAME_RATE_MAX) / tpf->denominator; in ov6650_s_frame_interval()
775 priv->tpf.numerator = div; in ov6650_s_frame_interval()
776 priv->tpf.denominator = FRAME_RATE_MAX; in ov6650_s_frame_interval()
778 *tpf = priv->tpf; in ov6650_s_frame_interval()
1069 priv->tpf.numerator = GET_CLKRC_DIV(DEF_CLKRC); in ov6650_probe()
1070 priv->tpf.denominator = FRAME_RATE_MAX; in ov6650_probe()
A Dov772x.c618 struct v4l2_fract *tpf) in ov772x_select_fps() argument
620 unsigned int fps = tpf->numerator ? in ov772x_select_fps()
621 tpf->denominator / tpf->numerator : in ov772x_select_fps()
622 tpf->denominator; in ov772x_select_fps()
726 struct v4l2_fract *tpf = &ival->interval; in ov772x_g_frame_interval() local
728 tpf->numerator = 1; in ov772x_g_frame_interval()
729 tpf->denominator = priv->fps; in ov772x_g_frame_interval()
738 struct v4l2_fract *tpf = &ival->interval; in ov772x_s_frame_interval() local
749 fps = ov772x_select_fps(priv, tpf); in ov772x_s_frame_interval()
762 tpf->numerator = 1; in ov772x_s_frame_interval()
[all …]
A Dmt9v011.c380 struct v4l2_fract *tpf = &ival->interval; in mt9v011_s_frame_interval() local
383 speed = calc_speed(sd, tpf->numerator, tpf->denominator); in mt9v011_s_frame_interval()
389 calc_fps(sd, &tpf->numerator, &tpf->denominator); in mt9v011_s_frame_interval()
A Dov7740.c653 struct v4l2_fract *tpf = &ival->interval; in ov7740_g_frame_interval() local
656 tpf->numerator = 1; in ov7740_g_frame_interval()
657 tpf->denominator = 60; in ov7740_g_frame_interval()
665 struct v4l2_fract *tpf = &ival->interval; in ov7740_s_frame_interval() local
668 tpf->numerator = 1; in ov7740_s_frame_interval()
669 tpf->denominator = 60; in ov7740_s_frame_interval()
A Dov2680.c782 struct v4l2_fract tpf; in ov2680_enum_frame_interval() local
789 tpf.denominator = OV2680_FRAME_RATE; in ov2680_enum_frame_interval()
790 tpf.numerator = 1; in ov2680_enum_frame_interval()
792 fie->interval = tpf; in ov2680_enum_frame_interval()
A Dov5640.c2849 struct v4l2_fract tpf; in ov5640_enum_frame_interval() local
2857 tpf.numerator = 1; in ov5640_enum_frame_interval()
2858 tpf.denominator = ov5640_framerates[fie->index]; in ov5640_enum_frame_interval()
2860 ret = ov5640_try_frame_interval(sensor, &tpf, in ov5640_enum_frame_interval()
2865 fie->interval = tpf; in ov5640_enum_frame_interval()
/linux/drivers/media/usb/gspca/
A Dov534.c1539 struct v4l2_fract *tpf = &cp->timeperframe; in sd_get_streamparm() local
1542 tpf->numerator = 1; in sd_get_streamparm()
1543 tpf->denominator = sd->frame_rate; in sd_get_streamparm()
1551 struct v4l2_fract *tpf = &cp->timeperframe; in sd_set_streamparm() local
1554 if (tpf->numerator == 0 || tpf->denominator == 0) in sd_set_streamparm()
1557 sd->frame_rate = tpf->denominator / tpf->numerator; in sd_set_streamparm()
1563 tpf->numerator = 1; in sd_set_streamparm()
1564 tpf->denominator = sd->frame_rate; in sd_set_streamparm()
A Dtopro.c4768 struct v4l2_fract *tpf = &cp->timeperframe; in sd_get_streamparm() local
4771 tpf->numerator = 1; in sd_get_streamparm()
4781 tpf->denominator = fr; in sd_get_streamparm()
4790 struct v4l2_fract *tpf = &cp->timeperframe; in sd_set_streamparm() local
4793 if (tpf->numerator == 0 || tpf->denominator == 0) in sd_set_streamparm()
4796 sd->framerate = tpf->denominator / tpf->numerator; in sd_set_streamparm()
4807 tpf->numerator = 1; in sd_set_streamparm()
4808 tpf->denominator = fr; in sd_set_streamparm()
/linux/drivers/staging/vc04_services/bcm2835-camera/
A Dbcm2835-camera.c1406 struct v4l2_fract tpf; in vidioc_s_parm() local
1411 tpf = parm->parm.capture.timeperframe; in vidioc_s_parm()
1414 tpf = tpf.denominator ? tpf : tpf_default; in vidioc_s_parm()
1415 tpf = V4L2_FRACT_COMPARE(tpf, <, tpf_min) ? tpf_min : tpf; in vidioc_s_parm()
1416 tpf = V4L2_FRACT_COMPARE(tpf, >, tpf_max) ? tpf_max : tpf; in vidioc_s_parm()
1418 dev->capture.timeperframe = tpf; in vidioc_s_parm()
1419 parm->parm.capture.timeperframe = tpf; in vidioc_s_parm()
/linux/drivers/media/test-drivers/vivid/
A Dvivid-vid-cap.c1911 struct v4l2_fract tpf; in vivid_vid_cap_s_parm() local
1921 tpf = parm->parm.capture.timeperframe; in vivid_vid_cap_s_parm()
1923 if (tpf.denominator == 0) in vivid_vid_cap_s_parm()
1924 tpf = webcam_intervals[ival_sz - 1]; in vivid_vid_cap_s_parm()
1926 if (V4L2_FRACT_COMPARE(tpf, >=, webcam_intervals[i])) in vivid_vid_cap_s_parm()
1931 tpf = webcam_intervals[dev->webcam_ival_idx]; in vivid_vid_cap_s_parm()
1935 dev->timeperframe_vid_cap = tpf; in vivid_vid_cap_s_parm()
1937 parm->parm.capture.timeperframe = tpf; in vivid_vid_cap_s_parm()
/linux/drivers/media/usb/cpia2/
A Dcpia2_v4l.c506 struct v4l2_fract tpf = cap->timeperframe; in cpia2_s_parm() local
512 if (ret || !tpf.denominator || !tpf.numerator) in cpia2_s_parm()
520 struct v4l2_fract f1 = tpf; in cpia2_s_parm()
/linux/drivers/media/platform/coda/
A Dcoda-common.c1351 struct v4l2_fract *tpf; in coda_g_parm() local
1357 tpf = &a->parm.output.timeperframe; in coda_g_parm()
1358 tpf->denominator = ctx->params.framerate & CODA_FRATE_RES_MASK; in coda_g_parm()
1359 tpf->numerator = 1 + (ctx->params.framerate >> in coda_g_parm()
1434 struct v4l2_fract *tpf; in coda_s_parm() local
1440 tpf = &a->parm.output.timeperframe; in coda_s_parm()
1441 coda_approximate_timeperframe(tpf); in coda_s_parm()
1442 ctx->params.framerate = coda_timeperframe_to_frate(tpf); in coda_s_parm()
/linux/kernel/sched/
A Ddebug.c922 unsigned long tpf, unsigned long gsf, unsigned long gpf) in print_numa_stats() argument
925 SEQ_printf(m, "task_private=%lu task_shared=%lu ", tpf, tsf); in print_numa_stats()
A Dsched.h2679 unsigned long tpf, unsigned long gsf, unsigned long gpf);
A Dfair.c11807 unsigned long tsf = 0, tpf = 0, gsf = 0, gpf = 0; in show_numa_stats() local
11815 tpf = p->numa_faults[task_faults_idx(NUMA_MEM, node, 1)]; in show_numa_stats()
11821 print_numa_stats(m, node, tsf, tpf, gsf, gpf); in show_numa_stats()

Completed in 111 milliseconds