/drivers/media/i2c/ |
D | mt9v111.c | 449 struct v4l2_fract *tpf) in mt9v111_calc_frame_rate() argument 451 unsigned int fps = tpf->numerator ? in mt9v111_calc_frame_rate() 452 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() 728 struct v4l2_fract *tpf = &ival->interval; in mt9v111_s_frame_interval() local 729 unsigned int fps = tpf->numerator ? in mt9v111_s_frame_interval() 730 tpf->denominator / tpf->numerator : in mt9v111_s_frame_interval() 731 tpf->denominator; in mt9v111_s_frame_interval() [all …]
|
D | ov7670.c | 793 struct v4l2_fract *tpf) in ov7675_get_framerate() argument 808 tpf->numerator = 1; in ov7675_get_framerate() 809 tpf->denominator = (5 * pll_factor * info->clock_speed) / in ov7675_get_framerate() 827 struct v4l2_fract *tpf) in ov7675_set_framerate() argument 840 if (tpf->numerator == 0 || tpf->denominator == 0) { in ov7675_set_framerate() 844 clkrc = (5 * pll_factor * info->clock_speed * tpf->numerator) / in ov7675_set_framerate() 845 (4 * tpf->denominator); in ov7675_set_framerate() 863 ov7675_get_framerate(sd, tpf); in ov7675_set_framerate() 877 struct v4l2_fract *tpf) in ov7670_get_framerate_legacy() argument 881 tpf->numerator = 1; in ov7670_get_framerate_legacy() [all …]
|
D | vs6624.c | 666 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()
|
D | ov6650.c | 200 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() 1074 priv->tpf.numerator = GET_CLKRC_DIV(DEF_CLKRC); in ov6650_probe() 1075 priv->tpf.denominator = FRAME_RATE_MAX; in ov6650_probe()
|
D | ov772x.c | 602 struct v4l2_fract *tpf) in ov772x_select_fps() argument 604 unsigned int fps = tpf->numerator ? in ov772x_select_fps() 605 tpf->denominator / tpf->numerator : in ov772x_select_fps() 606 tpf->denominator; in ov772x_select_fps() 710 struct v4l2_fract *tpf = &ival->interval; in ov772x_g_frame_interval() local 712 tpf->numerator = 1; in ov772x_g_frame_interval() 713 tpf->denominator = priv->fps; in ov772x_g_frame_interval() 722 struct v4l2_fract *tpf = &ival->interval; in ov772x_s_frame_interval() local 733 fps = ov772x_select_fps(priv, tpf); in ov772x_s_frame_interval() 746 tpf->numerator = 1; in ov772x_s_frame_interval() [all …]
|
D | mt9v011.c | 380 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()
|
D | ov7740.c | 655 struct v4l2_fract *tpf = &ival->interval; in ov7740_g_frame_interval() local 658 tpf->numerator = 1; in ov7740_g_frame_interval() 659 tpf->denominator = 60; in ov7740_g_frame_interval() 667 struct v4l2_fract *tpf = &ival->interval; in ov7740_s_frame_interval() local 670 tpf->numerator = 1; in ov7740_s_frame_interval() 671 tpf->denominator = 60; in ov7740_s_frame_interval()
|
D | ov2680.c | 683 struct v4l2_fract tpf; in ov2680_enum_frame_interval() local 690 tpf.denominator = OV2680_FRAME_RATE; in ov2680_enum_frame_interval() 691 tpf.numerator = 1; in ov2680_enum_frame_interval() 693 fie->interval = tpf; in ov2680_enum_frame_interval()
|
D | ov5640.c | 2821 struct v4l2_fract tpf; in ov5640_enum_frame_interval() local 2829 tpf.numerator = 1; in ov5640_enum_frame_interval() 2830 tpf.denominator = ov5640_framerates[fie->index]; in ov5640_enum_frame_interval() 2832 ret = ov5640_try_frame_interval(sensor, &tpf, in ov5640_enum_frame_interval() 2837 fie->interval = tpf; in ov5640_enum_frame_interval()
|
/drivers/media/usb/gspca/ |
D | ov534.c | 1539 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()
|
D | topro.c | 4768 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()
|
/drivers/staging/vc04_services/bcm2835-camera/ |
D | bcm2835-camera.c | 1406 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()
|
/drivers/media/test-drivers/vivid/ |
D | vivid-vid-cap.c | 1931 struct v4l2_fract tpf; in vivid_vid_cap_s_parm() local 1941 tpf = parm->parm.capture.timeperframe; in vivid_vid_cap_s_parm() 1943 if (tpf.denominator == 0) in vivid_vid_cap_s_parm() 1944 tpf = webcam_intervals[ival_sz - 1]; in vivid_vid_cap_s_parm() 1946 if (V4L2_FRACT_COMPARE(tpf, >=, webcam_intervals[i])) in vivid_vid_cap_s_parm() 1951 tpf = webcam_intervals[dev->webcam_ival_idx]; in vivid_vid_cap_s_parm() 1955 dev->timeperframe_vid_cap = tpf; in vivid_vid_cap_s_parm() 1957 parm->parm.capture.timeperframe = tpf; in vivid_vid_cap_s_parm()
|
/drivers/media/usb/cpia2/ |
D | cpia2_v4l.c | 508 struct v4l2_fract tpf = cap->timeperframe; in cpia2_s_parm() local 514 if (ret || !tpf.denominator || !tpf.numerator) in cpia2_s_parm() 522 struct v4l2_fract f1 = tpf; in cpia2_s_parm()
|
/drivers/media/platform/coda/ |
D | coda-common.c | 1360 struct v4l2_fract *tpf; in coda_g_parm() local 1366 tpf = &a->parm.output.timeperframe; in coda_g_parm() 1367 tpf->denominator = ctx->params.framerate & CODA_FRATE_RES_MASK; in coda_g_parm() 1368 tpf->numerator = 1 + (ctx->params.framerate >> in coda_g_parm() 1443 struct v4l2_fract *tpf; in coda_s_parm() local 1449 tpf = &a->parm.output.timeperframe; in coda_s_parm() 1450 coda_approximate_timeperframe(tpf); in coda_s_parm() 1451 ctx->params.framerate = coda_timeperframe_to_frate(tpf); in coda_s_parm()
|