/Linux-v5.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() 170 * numerator/denominator from overflowing. in rescale_current_sense_amplifier_props() 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() [all …]
|
/Linux-v5.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)
|
/Linux-v5.10/lib/ |
D | flex_proportions.c | 21 * This formula can be straightforwardly computed by maintaining denominator 141 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_single() argument 154 * Make fraction <= 1 and denominator > 0 even in presence of percpu in fprop_fraction_single() 163 *denominator = den; in fprop_fraction_single() 229 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_percpu() argument 242 * Make fraction <= 1 and denominator > 0 even in presence of percpu in fprop_fraction_percpu() 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()
|
/Linux-v5.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()
|
/Linux-v5.10/drivers/phy/freescale/ |
D | phy-fsl-imx8-mipi-dphy.c | 125 * nominator, denominator. 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() [all …]
|
/Linux-v5.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
|
/Linux-v5.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 …]
|
/Linux-v5.10/drivers/media/i2c/ |
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 | 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()
|
/Linux-v5.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()
|
/Linux-v5.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
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pll.c | 36 * @den: denominator 38 * @den_min: minimum value for denominator 41 * denominator, but make nominator and denominator are at least as large 61 /* make sure the denominator is large enough */ in amdgpu_pll_reduce_ratio() 73 * @den: denominator
|
/Linux-v5.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() 1277 fival->discrete.denominator = 10000000; in uvc_ioctl_enum_frameintervals() [all …]
|
/Linux-v5.10/include/video/ |
D | cirrus.h | 57 #define CL_SEQR1B 0x1b /* VCLK0 Denominator and Post-Scalar Value */ 58 #define CL_SEQR1C 0x1c /* VCLK1 Denominator and Post-Scalar Value */ 59 #define CL_SEQR1D 0x1d /* VCLK2 Denominator and Post-Scalar Value */ 60 #define CL_SEQR1E 0x1e /* VCLK3 Denominator and Post-Scalar Value */
|
/Linux-v5.10/lib/mpi/ |
D | mpi-div.c | 162 /* Normalize the denominator, i.e. make its most significant bit set by in mpi_tdiv_qr() 170 /* Shift up the denominator setting the most significant bit of in mpi_tdiv_qr() 172 * the original contents of the denominator. in mpi_tdiv_qr() 189 /* The denominator is already normalized, as required. Copy it to in mpi_tdiv_qr()
|
/Linux-v5.10/include/linux/ |
D | flex_proportions.h | 61 unsigned long *denominator); 91 unsigned long *denominator);
|
/Linux-v5.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()
|
/Linux-v5.10/drivers/clk/mmp/ |
D | clk-frac.c | 22 * numerator/denominator = Fin / (Fout * factor) 66 /* calculate denominator */ in clk_factor_recalc_rate() 136 /* calculate denominator */ in clk_factor_init()
|
/Linux-v5.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()
|
/Linux-v5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-std.c | 231 .denominator= 25 242 .denominator= 30000 251 .denominator= 30000 260 .denominator= 30000
|
/Linux-v5.10/kernel/time/ |
D | jiffies.c | 19 * shift both the nominator and denominator the same 42 * denominator clock source which should function on
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | sfp-machine.h | 26 denominator, which also happens to be the hardware I have :-> 273 * denominator) divides a UDWtype, composed by the UWtype integers 274 * HIGH_NUMERATOR and LOW_NUMERATOR, by DENOMINATOR and places the quotient 276 * than DENOMINATOR for correct operation. If, in addition, the most 277 * significant bit of DENOMINATOR must be 1, then the pre-processor symbol
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/camera/pipe/interface/ |
D | ia_css_pipe_binarydesc.h | 55 /* @brief Get numerator and denominator of bayer downscaling factor. 61 * @param[out] bds_factor_denominator: The denominator of the bayer downscaling factor. 62 * (= The denominator member in the sh_css_bds_factor structure.)
|