/kernel/linux/linux-5.10/drivers/iio/afe/ |
D | iio-rescale.c | 33 s32 denominator; member 53 *val2 *= rescale->denominator; in rescale_read_raw() 57 if (rescale->denominator == 1) in rescale_read_raw() 59 *val2 = rescale->denominator; in rescale_read_raw() 63 do_div(tmp, rescale->denominator); in rescale_read_raw() 174 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props() 178 rescale->denominator *= gain_mult / factor; in rescale_current_sense_amplifier_props() 180 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props() 182 rescale->denominator /= factor; in rescale_current_sense_amplifier_props() 203 rescale->denominator = shunt / factor; in rescale_current_sense_shunt_props() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | kyber.h | 18 unsigned int denominator, unsigned int samples), 20 TP_ARGS(q, domain, type, percentile, numerator, denominator, samples), 28 __field( u8, denominator ) 38 __entry->denominator = denominator; 45 __entry->denominator, __entry->samples)
|
/kernel/linux/linux-5.10/drivers/media/i2c/et8ek8/ |
D | et8ek8_mode.c | 50 .denominator = 1207 151 .denominator = 1292 207 .denominator = 3000 263 .denominator = 2988 319 .denominator = 2993 375 .denominator = 399 430 .denominator = 499 486 .denominator = 501 542 .denominator = 2500
|
/kernel/linux/linux-5.10/lib/ |
D | flex_proportions.c | 141 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_single() argument 163 *denominator = den; in fprop_fraction_single() 229 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_percpu() argument 251 *denominator = den; in fprop_fraction_percpu() 263 unsigned long numerator, denominator; in __fprop_inc_percpu_max() local 265 fprop_fraction_percpu(p, pl, &numerator, &denominator); in __fprop_inc_percpu_max() 267 (((u64)denominator) * max_frac) >> FPROP_FRAC_SHIFT) in __fprop_inc_percpu_max()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
D | vivid-kthread-touch.c | 53 unsigned int denominator; in vivid_thread_touch_cap() local 82 denominator = dev->timeperframe_tch_cap.denominator; in vivid_thread_touch_cap() 88 buffers_since_start = (u64)jiffies_since_start * denominator + in vivid_thread_touch_cap() 124 denominator / 2; in vivid_thread_touch_cap() 125 do_div(next_jiffies_since_start, denominator); in vivid_thread_touch_cap()
|
D | vivid-kthread-out.c | 149 unsigned denominator; in vivid_thread_vid_out() local 182 denominator = dev->timeperframe_vid_out.denominator; in vivid_thread_vid_out() 185 denominator *= 2; in vivid_thread_vid_out() 190 buffers_since_start = (u64)jiffies_since_start * denominator + in vivid_thread_vid_out() 229 denominator / 2; in vivid_thread_vid_out() 230 do_div(next_jiffies_since_start, denominator); in vivid_thread_vid_out()
|
D | vivid-kthread-cap.c | 662 if (WARN_ON(dev->timeperframe_vid_cap.denominator == 0)) in vivid_cap_update_frame_period() 663 dev->timeperframe_vid_cap.denominator = 1; in vivid_cap_update_frame_period() 664 do_div(f_period, dev->timeperframe_vid_cap.denominator); in vivid_cap_update_frame_period() 801 unsigned denominator; in vivid_thread_vid_cap() local 837 denominator = dev->timeperframe_vid_cap.denominator; in vivid_thread_vid_cap() 840 denominator *= 2; in vivid_thread_vid_cap() 845 buffers_since_start = (u64)jiffies_since_start * denominator + in vivid_thread_vid_cap() 884 denominator / 2; in vivid_thread_vid_cap() 885 do_div(next_jiffies_since_start, denominator); in vivid_thread_vid_cap()
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
D | vs6624.c | 657 ival->interval.numerator = sensor->frame_rate.denominator; in vs6624_g_frame_interval() 658 ival->interval.denominator = sensor->frame_rate.numerator; in vs6624_g_frame_interval() 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() 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() 683 sensor->frame_rate.denominator & 0xFF); in vs6624_s_frame_interval() 786 sensor->frame_rate.denominator = 1; in vs6624_probe() 793 sensor->frame_rate.denominator & 0xFF); in vs6624_probe()
|
D | mt9v011.c | 201 static void calc_fps(struct v4l2_subdev *sd, u32 *numerator, u32 *denominator) in calc_fps() argument 225 if (numerator && denominator) { in calc_fps() 227 *denominator = (u32)frames_per_ms; in calc_fps() 231 static u16 calc_speed(struct v4l2_subdev *sd, u32 numerator, u32 denominator) in calc_speed() argument 239 if (!numerator || !denominator) in calc_speed() 252 t_time += denominator / 2; in calc_speed() 253 do_div(t_time, denominator); in calc_speed() 372 &ival->interval.denominator); in mt9v011_g_frame_interval() 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 | imx274.c | 1212 imx274->frame_interval.denominator); in imx274_g_frame_interval() 1246 / fi->interval.denominator; in imx274_s_frame_interval() 1259 / fi->interval.denominator); in imx274_s_frame_interval() 1280 priv->frame_interval.denominator = IMX274_DEF_FRAME_RATE; in imx274_load_default() 1733 frame_interval.denominator); in imx274_set_frame_interval() 1735 if (frame_interval.numerator == 0 || frame_interval.denominator == 0) { in imx274_set_frame_interval() 1736 frame_interval.denominator = IMX274_DEF_FRAME_RATE; in imx274_set_frame_interval() 1740 req_frame_rate = (u32)(frame_interval.denominator in imx274_set_frame_interval() 1746 frame_interval.denominator = priv->mode->max_fps; in imx274_set_frame_interval() 1749 frame_interval.denominator = IMX274_MIN_FRAME_RATE; in imx274_set_frame_interval() [all …]
|
D | mt9m032.c | 194 (u64)row_time * interval->denominator) in mt9m032_update_timing() 199 interval->denominator = 1000; in mt9m032_update_timing() 202 (u64)row_time * interval->denominator, in mt9m032_update_timing() 205 (u64)row_time * interval->denominator) in mt9m032_update_timing() 514 if (fi->interval.denominator == 0) in mt9m032_set_frame_interval() 515 fi->interval.denominator = 1; in mt9m032_set_frame_interval() 746 sensor->frame_interval.denominator = 30; in mt9m032_probe()
|
D | mt9v111.c | 452 tpf->denominator / tpf->numerator : in mt9v111_calc_frame_rate() 453 tpf->denominator; 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() 785 tpf->denominator = mt9v111->fps; in mt9v111_g_frame_interval() 842 fie->interval.denominator = mt9v111_frame_intervals[fie->index]; in mt9v111_enum_frame_interval() 1196 tpf.denominator = mt9v111->fps; in mt9v111_probe()
|
/kernel/linux/linux-5.10/drivers/phy/freescale/ |
D | phy-fsl-imx8-mipi-dphy.c | 160 u32 lp_t, numerator, denominator; in mixel_dphy_config_from_opts() local 170 denominator = ref_clk; in mixel_dphy_config_from_opts() 171 get_best_ratio(&numerator, &denominator, 255, 256); in mixel_dphy_config_from_opts() 172 if (!numerator || !denominator) { in mixel_dphy_config_from_opts() 174 numerator, denominator, in mixel_dphy_config_from_opts() 179 while ((numerator < 16) && (denominator <= 128)) { in mixel_dphy_config_from_opts() 181 denominator <<= 1; in mixel_dphy_config_from_opts() 188 i = __ffs(denominator); in mixel_dphy_config_from_opts() 191 cfg->cn = denominator >> i; in mixel_dphy_config_from_opts() 202 numerator, denominator); in mixel_dphy_config_from_opts() [all …]
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 348 bt->picture_aspect.denominator); in v4l2_print_dv_timings() 366 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio() 367 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio() 369 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio() 370 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio() 372 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio() 411 fps_fract.denominator = n; in v4l2_calc_timeperframe() 724 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf() 726 aspect.denominator = 9; in v4l2_detect_gtf() 728 image_width = ((image_height * aspect.numerator) / aspect.denominator); in v4l2_detect_gtf() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
D | bw_fixed.c | 57 struct bw_fixed bw_frc_to_fixed(int64_t numerator, int64_t denominator) in bw_frc_to_fixed() argument 61 bool arg2_negative = denominator < 0; in bw_frc_to_fixed() 69 ASSERT(denominator != 0); in bw_frc_to_fixed() 72 arg2_value = abs_i64(denominator); in bw_frc_to_fixed()
|
/kernel/linux/linux-5.10/arch/h8300/lib/ |
D | modsi3.S | 5 ; denominator in A2/A3 46 mov.l A1P,A1P ; is the denominator -ve 65 mov.l A1P,A1P ; is the denominator -ve
|
D | moddivsi3.S | 5 ; denominator in A2/A3 46 mov.l A1P,A1P ; is the denominator -ve 65 mov.l A1P,A1P ; is the denominator -ve
|
/kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 366 u32 numerator, denominator; in uvc_v4l2_get_streamparm() local 375 denominator = 10000000; in uvc_v4l2_get_streamparm() 376 uvc_simplify_fraction(&numerator, &denominator, 8, 333); in uvc_v4l2_get_streamparm() 385 parm->parm.capture.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm() 392 parm->parm.output.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm() 418 timeperframe.denominator); in uvc_v4l2_set_streamparm() 420 timeperframe.numerator, timeperframe.denominator, interval); in uvc_v4l2_set_streamparm() 470 timeperframe.denominator = 10000000; in uvc_v4l2_set_streamparm() 472 &timeperframe.denominator, 8, 333); in uvc_v4l2_set_streamparm() 1292 fival->discrete.denominator = 10000000; in uvc_ioctl_enum_frameintervals() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | flex_proportions.h | 61 unsigned long *denominator); 91 unsigned long *denominator);
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/ |
D | delta-debug.c | 29 s->pixelaspect.denominator); in delta_streaminfo_str() 50 f->pixelaspect.denominator); in delta_frameinfo_str()
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-std.c | 231 .denominator= 25 242 .denominator= 30000 251 .denominator= 30000 260 .denominator= 30000
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/basics/ |
D | fixpt31_32.c | 67 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction() argument 72 bool arg2_negative = denominator < 0; in dc_fixpt_from_fraction() 75 unsigned long long arg2_value = arg2_negative ? -denominator : denominator; in dc_fixpt_from_fraction()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/fixedbds/fixedbds_1.0/ |
D | ia_css_fixedbds_types.h | 21 unsigned int denominator; member
|
/kernel/linux/linux-5.10/drivers/media/pci/tw5864/ |
D | tw5864-video.c | 716 frameinterval->denominator = 30000; in tw5864_frameinterval_get() 721 frameinterval->denominator = 25; in tw5864_frameinterval_get() 813 if (!t->numerator || !t->denominator) { in tw5864_s_parm() 815 t->denominator = time_base.denominator; in tw5864_s_parm() 816 } else if (t->denominator != time_base.denominator) { in tw5864_s_parm() 817 t->numerator = t->numerator * time_base.denominator / in tw5864_s_parm() 818 t->denominator; in tw5864_s_parm() 819 t->denominator = time_base.denominator; in tw5864_s_parm()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
D | cx25821-medusa-video.c | 514 int denominator; in mapM() local 527 denominator = srcMax - srcMin; in mapM() 528 quotient = numerator / denominator; in mapM() 530 if (2 * (numerator % denominator) >= denominator) in mapM()
|