/Linux-v5.10/drivers/iio/afe/ |
D | iio-rescale.c | 32 s32 numerator; member 52 *val *= rescale->numerator; in rescale_read_raw() 56 *val *= rescale->numerator; in rescale_read_raw() 64 tmp *= rescale->numerator; in rescale_read_raw() 170 * numerator/denominator from overflowing. in rescale_current_sense_amplifier_props() 173 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props() 176 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props() 177 rescale->numerator /= factor; in rescale_current_sense_amplifier_props() 181 rescale->numerator *= gain_div / factor; in rescale_current_sense_amplifier_props() 202 rescale->numerator = 1000000 / factor; in rescale_current_sense_shunt_props() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/basics/ |
D | conversion.c | 39 int32_t numerator; in fixed_point_to_int_frac() local 49 numerator = (uint16_t)dc_fixpt_round( in fixed_point_to_int_frac() 54 numerator = dc_fixpt_floor( in fixed_point_to_int_frac() 63 if (numerator >= 0) in fixed_point_to_int_frac() 64 result = (uint16_t)numerator; in fixed_point_to_int_frac() 67 (1 << (integer_bits + fractional_bits + 1)) + numerator); in fixed_point_to_int_frac()
|
D | fixpt31_32.c | 67 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction() argument 71 bool arg1_negative = numerator < 0; in dc_fixpt_from_fraction() 74 unsigned long long arg1_value = arg1_negative ? -numerator : numerator; in dc_fixpt_from_fraction()
|
/Linux-v5.10/include/trace/events/ |
D | kyber.h | 17 unsigned int percentile, unsigned int numerator, 20 TP_ARGS(q, domain, type, percentile, numerator, denominator, samples), 27 __field( u8, numerator ) 37 __entry->numerator = numerator; 44 __entry->type, __entry->percentile, __entry->numerator,
|
/Linux-v5.10/lib/ |
D | flex_proportions.c | 22 * (let's call it 'd') and for each event type its numerator (let's call it 31 * To avoid iteration over all event types, we instead shift numerator of event 141 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_single() argument 164 *numerator = num; in fprop_fraction_single() 229 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_percpu() argument 252 *numerator = num; 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() 266 if (numerator > in __fprop_inc_percpu_max()
|
/Linux-v5.10/drivers/media/test-drivers/vivid/ |
D | vivid-kthread-touch.c | 52 unsigned int numerator; in vivid_thread_touch_cap() local 83 numerator = dev->timeperframe_tch_cap.numerator; in vivid_thread_touch_cap() 89 (HZ * numerator) / 2; in vivid_thread_touch_cap() 90 do_div(buffers_since_start, HZ * numerator); in vivid_thread_touch_cap() 112 numerators_since_start = ++buffers_since_start * numerator; in vivid_thread_touch_cap()
|
D | vivid-kthread-out.c | 148 unsigned numerator; in vivid_thread_vid_out() local 181 numerator = dev->timeperframe_vid_out.numerator; in vivid_thread_vid_out() 191 (HZ * numerator) / 2; in vivid_thread_vid_out() 192 do_div(buffers_since_start, HZ * numerator); in vivid_thread_vid_out() 217 numerators_since_start = buffers_since_start * numerator; in vivid_thread_vid_out() 222 /* Increase by the 'numerator' of one buffer */ in vivid_thread_vid_out() 223 numerators_since_start += numerator; in vivid_thread_vid_out()
|
/Linux-v5.10/include/linux/ |
D | flex_proportions.h | 49 raw_spinlock_t lock; /* Protect period and numerator */ 60 struct fprop_local_single *pl, unsigned long *numerator, 81 raw_spinlock_t lock; /* Protect period and numerator */ 90 struct fprop_local_percpu *pl, unsigned long *numerator,
|
/Linux-v5.10/arch/h8300/lib/ |
D | modsi3.S | 4 ; numerator in A0/A1 39 mov.l A0P,A0P ; is the numerator -ve 58 mov.l A0P,A0P ; is the numerator -ve
|
D | moddivsi3.S | 4 ; numerator in A0/A1 39 mov.l A0P,A0P ; is the numerator -ve 58 mov.l A0P,A0P ; is the numerator -ve
|
/Linux-v5.10/lib/mpi/ |
D | mpi-div.c | 113 * numerator and quotient are the same. in mpi_tdiv_qr() 151 * numerator would be gradually overwritten by the quotient limbs. in mpi_tdiv_qr() 164 * numerator the same number of steps (to keep the quotient the same!). in mpi_tdiv_qr() 178 /* Shift up the numerator, possibly introducing a new most in mpi_tdiv_qr() 179 * significant word. Move the shifted numerator in the remainder in mpi_tdiv_qr() 200 /* Move the numerator to the remainder. */ in mpi_tdiv_qr()
|
/Linux-v5.10/drivers/phy/freescale/ |
D | phy-fsl-imx8-mipi-dphy.c | 160 u32 lp_t, numerator, denominator; in mixel_dphy_config_from_opts() local 169 numerator = dphy_opts->hs_clk_rate; 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() 180 numerator <<= 1; in mixel_dphy_config_from_opts() 193 cfg->cm = numerator; in mixel_dphy_config_from_opts() 202 numerator, denominator); in mixel_dphy_config_from_opts() 207 dphy_opts->hs_clk_rate, ref_clk, numerator, denominator); in mixel_dphy_config_from_opts()
|
/Linux-v5.10/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 347 bt->picture_aspect.numerator, 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() 371 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio() 410 fps_fract.numerator = d; in v4l2_calc_timeperframe() 724 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf() 725 aspect.numerator = 16; in v4l2_detect_gtf() 728 image_width = ((image_height * aspect.numerator) / aspect.denominator); in v4l2_detect_gtf() [all …]
|
/Linux-v5.10/drivers/media/i2c/et8ek8/ |
D | et8ek8_mode.c | 49 .numerator = 100, 150 .numerator = 100, 206 .numerator = 100, 262 .numerator = 100, 318 .numerator = 100, 374 .numerator = 100, 429 .numerator = 100, 485 .numerator = 100, 541 .numerator = 100,
|
/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() 226 *numerator = 1000; 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() 250 t_time = core->xtal * ((u64)numerator); in calc_speed() 371 &ival->interval.numerator, 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() 672 tpf->numerator = 1; 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() 679 sensor->frame_rate.numerator >> 8); in vs6624_s_frame_interval() 681 sensor->frame_rate.numerator & 0xFF); in vs6624_s_frame_interval() 785 sensor->frame_rate.numerator = MAX_FRAME_RATE; in vs6624_probe() [all …]
|
D | mt9v111.c | 451 unsigned int fps = tpf->numerator ? in mt9v111_calc_frame_rate() 452 tpf->denominator / tpf->numerator : in mt9v111_calc_frame_rate() 528 tpf->numerator = 1; in mt9v111_calc_frame_rate() 729 unsigned int fps = tpf->numerator ? in mt9v111_s_frame_interval() 730 tpf->denominator / tpf->numerator : 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() 841 fie->interval.numerator = 1; in mt9v111_enum_frame_interval() 1195 tpf.numerator = 1; in mt9v111_probe()
|
/Linux-v5.10/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 366 u32 numerator, denominator; in uvc_v4l2_get_streamparm() local 372 numerator = stream->ctrl.dwFrameInterval; in uvc_v4l2_get_streamparm() 376 uvc_simplify_fraction(&numerator, &denominator, 8, 333); in uvc_v4l2_get_streamparm() 384 parm->parm.capture.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm() 391 parm->parm.output.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm() 417 interval = uvc_fraction_to_interval(timeperframe.numerator, in uvc_v4l2_set_streamparm() 420 timeperframe.numerator, timeperframe.denominator, interval); in uvc_v4l2_set_streamparm() 469 timeperframe.numerator = probe.dwFrameInterval; in uvc_v4l2_set_streamparm() 471 uvc_simplify_fraction(&timeperframe.numerator, in uvc_v4l2_set_streamparm() 1275 fival->discrete.numerator = in uvc_ioctl_enum_frameintervals() [all …]
|
/Linux-v5.10/include/video/ |
D | cirrus.h | 41 #define CL_SEQRB 0xb /* VCLK0 Numerator */ 42 #define CL_SEQRC 0xc /* VCLK1 Numerator */ 43 #define CL_SEQRD 0xd /* VCLK2 Numerator */ 44 #define CL_SEQRE 0xe /* VCLK3 Numerator */
|
/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 60 bool arg1_negative = numerator < 0; in bw_frc_to_fixed() 71 arg1_value = abs_i64(numerator); in bw_frc_to_fixed()
|
/Linux-v5.10/drivers/staging/sm750fb/ |
D | sm750.h | 184 unsigned long long numerator = 1000 * 1000 * 1000 * 1000ULL; in ps_to_hz() local 186 do_div(numerator, psvalue); in ps_to_hz() 187 return (unsigned long)numerator; in ps_to_hz()
|
/Linux-v5.10/drivers/media/platform/sti/delta/ |
D | delta-debug.c | 28 s->pixelaspect.numerator, in delta_streaminfo_str() 49 f->pixelaspect.numerator, in delta_frameinfo_str()
|
/Linux-v5.10/drivers/clk/mmp/ |
D | clk-frac.c | 22 * numerator/denominator = Fin / (Fout * factor) 63 /* calculate numerator */ in clk_factor_recalc_rate() 133 /* calculate numerator */ in clk_factor_init()
|
/Linux-v5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-std.c | 230 .numerator = 1, 241 .numerator = 1001, 250 .numerator = 1001, 259 .numerator = 1001,
|
/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. 59 * @param[out] bds_factor_numerator: The numerator of the bayer downscaling factor. 60 * (= The numerator member in the sh_css_bds_factor structure.)
|