/linux-6.6.21/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 | 795 struct v4l2_fract *tpf) in ov7675_get_framerate() argument 810 tpf->numerator = 1; in ov7675_get_framerate() 811 tpf->denominator = (5 * pll_factor * info->clock_speed) / in ov7675_get_framerate() 829 struct v4l2_fract *tpf) in ov7675_set_framerate() argument 842 if (tpf->numerator == 0 || tpf->denominator == 0) { in ov7675_set_framerate() 846 clkrc = (5 * pll_factor * info->clock_speed * tpf->numerator) / in ov7675_set_framerate() 847 (4 * tpf->denominator); in ov7675_set_framerate() 865 ov7675_get_framerate(sd, tpf); in ov7675_set_framerate() 879 struct v4l2_fract *tpf) in ov7670_get_framerate_legacy() argument 883 tpf->numerator = 1; in ov7670_get_framerate_legacy() [all …]
|
D | ov6650.c | 200 struct v4l2_fract tpf; /* as requested with s_frame_interval */ member 800 ival->interval = priv->tpf; in ov6650_g_frame_interval() 813 struct v4l2_fract *tpf = &ival->interval; in ov6650_s_frame_interval() local 816 if (tpf->numerator == 0 || tpf->denominator == 0) in ov6650_s_frame_interval() 819 div = (tpf->numerator * FRAME_RATE_MAX) / tpf->denominator; in ov6650_s_frame_interval() 828 priv->tpf.numerator = div; in ov6650_s_frame_interval() 829 priv->tpf.denominator = FRAME_RATE_MAX; in ov6650_s_frame_interval() 831 *tpf = priv->tpf; in ov6650_s_frame_interval() 1084 priv->tpf.numerator = GET_CLKRC_DIV(DEF_CLKRC); in ov6650_probe() 1085 priv->tpf.denominator = FRAME_RATE_MAX; in ov6650_probe()
|
D | ov772x.c | 618 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 …]
|
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 | 653 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()
|
D | ov5640.c | 3585 struct v4l2_fract tpf; in ov5640_enum_frame_interval() local 3597 tpf.numerator = 1; in ov5640_enum_frame_interval() 3598 tpf.denominator = ov5640_framerates[fie->index]; in ov5640_enum_frame_interval() 3600 ret = ov5640_try_frame_interval(sensor, &tpf, mode); in ov5640_enum_frame_interval() 3604 fie->interval = tpf; in ov5640_enum_frame_interval()
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/staging/vc04_services/bcm2835-camera/ |
D | bcm2835-camera.c | 1402 struct v4l2_fract tpf; in vidioc_s_parm() local 1407 tpf = parm->parm.capture.timeperframe; in vidioc_s_parm() 1410 tpf = tpf.denominator ? tpf : tpf_default; in vidioc_s_parm() 1411 tpf = V4L2_FRACT_COMPARE(tpf, <, tpf_min) ? tpf_min : tpf; in vidioc_s_parm() 1412 tpf = V4L2_FRACT_COMPARE(tpf, >, tpf_max) ? tpf_max : tpf; in vidioc_s_parm() 1414 dev->capture.timeperframe = tpf; in vidioc_s_parm() 1415 parm->parm.capture.timeperframe = tpf; in vidioc_s_parm()
|
/linux-6.6.21/drivers/media/test-drivers/vivid/ |
D | vivid-vid-cap.c | 1686 struct v4l2_fract tpf; in vivid_vid_cap_s_parm() local 1696 tpf = parm->parm.capture.timeperframe; in vivid_vid_cap_s_parm() 1698 if (tpf.denominator == 0) in vivid_vid_cap_s_parm() 1699 tpf = webcam_intervals[ival_sz - 1]; in vivid_vid_cap_s_parm() 1701 if (V4L2_FRACT_COMPARE(tpf, >=, webcam_intervals[i])) in vivid_vid_cap_s_parm() 1706 tpf = webcam_intervals[dev->webcam_ival_idx]; in vivid_vid_cap_s_parm() 1710 dev->timeperframe_vid_cap = tpf; in vivid_vid_cap_s_parm() 1712 parm->parm.capture.timeperframe = tpf; in vivid_vid_cap_s_parm()
|
/linux-6.6.21/drivers/media/platform/chips-media/ |
D | coda-common.c | 1357 struct v4l2_fract *tpf; in coda_g_parm() local 1363 tpf = &a->parm.output.timeperframe; in coda_g_parm() 1364 tpf->denominator = ctx->params.framerate & CODA_FRATE_RES_MASK; in coda_g_parm() 1365 tpf->numerator = 1 + (ctx->params.framerate >> in coda_g_parm() 1440 struct v4l2_fract *tpf; in coda_s_parm() local 1446 tpf = &a->parm.output.timeperframe; in coda_s_parm() 1447 coda_approximate_timeperframe(tpf); in coda_s_parm() 1448 ctx->params.framerate = coda_timeperframe_to_frate(tpf); in coda_s_parm()
|
/linux-6.6.21/kernel/sched/ |
D | debug.c | 965 unsigned long tpf, unsigned long gsf, unsigned long gpf) in print_numa_stats() argument 968 SEQ_printf(m, "task_private=%lu task_shared=%lu ", tpf, tsf); in print_numa_stats()
|
D | sched.h | 2860 unsigned long tpf, unsigned long gsf, unsigned long gpf);
|
D | fair.c | 13063 unsigned long tsf = 0, tpf = 0, gsf = 0, gpf = 0; in show_numa_stats() local 13071 tpf = p->numa_faults[task_faults_idx(NUMA_MEM, node, 1)]; in show_numa_stats() 13077 print_numa_stats(m, node, tsf, tpf, gsf, gpf); in show_numa_stats()
|