/linux/drivers/iio/afe/ |
A D | iio-rescale.c | 34 s32 denominator; member 71 *val2 *= rescale->denominator; in rescale_read_raw() 75 if (rescale->denominator == 1) in rescale_read_raw() 77 *val2 = rescale->denominator; in rescale_read_raw() 81 do_div(tmp, rescale->denominator); in rescale_read_raw() 203 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props() 211 rescale->denominator /= factor; in rescale_current_sense_amplifier_props() 232 rescale->denominator = shunt / factor; in rescale_current_sense_shunt_props() 244 &rescale->denominator); in rescale_voltage_divider_props() 259 rescale->denominator /= factor; in rescale_voltage_divider_props() [all …]
|
/linux/include/trace/events/ |
A D | kyber.h | 18 unsigned int denominator, unsigned int samples), 20 TP_ARGS(dev, domain, type, percentile, numerator, denominator, samples), 28 __field( u8, denominator ) 38 __entry->denominator = denominator; 45 __entry->denominator, __entry->samples)
|
/linux/drivers/media/i2c/et8ek8/ |
A 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/lib/ |
A D | flex_proportions.c | 141 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_single() argument 163 *denominator = den; in fprop_fraction_single() 230 unsigned long *numerator, unsigned long *denominator) in fprop_fraction_percpu() argument 252 *denominator = den; in fprop_fraction_percpu() 264 unsigned long numerator, denominator; in __fprop_add_percpu_max() local 267 fprop_fraction_percpu(p, pl, &numerator, &denominator); in __fprop_add_percpu_max() 269 tmp = (u64)denominator * max_frac - in __fprop_add_percpu_max()
|
/linux/drivers/media/test-drivers/vivid/ |
A 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()
|
A 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()
|
A D | vivid-kthread-cap.c | 664 if (WARN_ON(dev->timeperframe_vid_cap.denominator == 0)) in vivid_cap_update_frame_period() 665 dev->timeperframe_vid_cap.denominator = 1; in vivid_cap_update_frame_period() 666 do_div(f_period, dev->timeperframe_vid_cap.denominator); in vivid_cap_update_frame_period() 803 unsigned denominator; in vivid_thread_vid_cap() local 839 denominator = dev->timeperframe_vid_cap.denominator; in vivid_thread_vid_cap() 842 denominator *= 2; in vivid_thread_vid_cap() 847 buffers_since_start = (u64)jiffies_since_start * denominator + in vivid_thread_vid_cap() 886 denominator / 2; in vivid_thread_vid_cap() 887 do_div(next_jiffies_since_start, denominator); in vivid_thread_vid_cap()
|
/linux/drivers/phy/freescale/ |
A 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 …]
|
/linux/drivers/media/i2c/ |
A 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()
|
A 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()
|
A D | imx274.c | 1348 imx274->frame_interval.denominator); in imx274_g_frame_interval() 1382 / fi->interval.denominator; in imx274_s_frame_interval() 1396 / fi->interval.denominator); in imx274_s_frame_interval() 1415 priv->frame_interval.denominator = IMX274_DEF_FRAME_RATE; in imx274_load_default() 1848 frame_interval.denominator); in imx274_set_frame_interval() 1851 frame_interval.denominator = IMX274_DEF_FRAME_RATE; in imx274_set_frame_interval() 1855 req_frame_rate = (u32)(frame_interval.denominator in imx274_set_frame_interval() 1861 frame_interval.denominator = priv->mode->max_fps; in imx274_set_frame_interval() 1864 frame_interval.denominator = IMX274_MIN_FRAME_RATE; in imx274_set_frame_interval() 1886 if (hmax == 0 || frame_interval.denominator == 0) { in imx274_set_frame_interval() [all …]
|
A 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() 518 if (fi->interval.denominator == 0) in mt9m032_set_frame_interval() 519 fi->interval.denominator = 1; in mt9m032_set_frame_interval() 750 sensor->frame_interval.denominator = 30; in mt9m032_probe()
|
A 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() 1197 tpf.denominator = mt9v111->fps; in mt9v111_probe()
|
A D | ov7670.c | 812 tpf->denominator = (5 * pll_factor * info->clock_speed) / in ov7675_get_framerate() 843 if (tpf->numerator == 0 || tpf->denominator == 0) { in ov7675_set_framerate() 848 (4 * tpf->denominator); in ov7675_set_framerate() 885 tpf->denominator = info->clock_speed; in ov7670_get_framerate_legacy() 887 tpf->denominator /= (info->clkrc & CLK_SCALE); in ov7670_get_framerate_legacy() 896 if (tpf->numerator == 0 || tpf->denominator == 0) in ov7670_set_framerate_legacy() 899 div = (tpf->numerator * info->clock_speed) / tpf->denominator; in ov7670_set_framerate_legacy() 906 tpf->denominator = info->clock_speed / div; in ov7670_set_framerate_legacy() 1237 fie->interval.denominator = ov7670_frame_rates[fie->index]; in ov7670_enum_frame_interval() 1942 tpf.denominator = 30; in ov7670_probe()
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-dv-timings.c | 348 bt->picture_aspect.denominator); in v4l2_print_dv_timings() 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() 726 aspect.denominator = 9; in v4l2_detect_gtf() 818 aspect.denominator = vert_portrait; in v4l2_calc_aspect_ratio() 827 aspect.denominator = 9; in v4l2_calc_aspect_ratio() 830 aspect.denominator = 3; in v4l2_calc_aspect_ratio() 833 aspect.denominator = 9; in v4l2_calc_aspect_ratio() 836 aspect.denominator = 100; in v4l2_calc_aspect_ratio() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/calcs/ |
A 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/drivers/media/usb/uvc/ |
A D | uvc_v4l2.c | 373 u32 numerator, denominator; in uvc_v4l2_get_streamparm() local 382 denominator = 10000000; in uvc_v4l2_get_streamparm() 392 parm->parm.capture.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm() 399 parm->parm.output.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm() 425 timeperframe.denominator); in uvc_v4l2_set_streamparm() 477 timeperframe.denominator = 10000000; in uvc_v4l2_set_streamparm() 479 &timeperframe.denominator, 8, 333); in uvc_v4l2_set_streamparm() 1269 fival->discrete.denominator = 10000000; in uvc_ioctl_enum_frameintervals() 1271 &fival->discrete.denominator, 8, 333); in uvc_ioctl_enum_frameintervals() 1275 fival->stepwise.min.denominator = 10000000; in uvc_ioctl_enum_frameintervals() [all …]
|
/linux/arch/h8300/lib/ |
A 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
|
A 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
|
/linux/drivers/gpu/drm/amd/display/dc/basics/ |
A D | fixpt31_32.c | 71 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction() argument 76 bool arg2_negative = denominator < 0; in dc_fixpt_from_fraction() 79 unsigned long long arg2_value = arg2_negative ? -denominator : denominator; in dc_fixpt_from_fraction()
|
/linux/drivers/media/usb/pvrusb2/ |
A D | pvrusb2-std.c | 231 .denominator= 25 242 .denominator= 30000 251 .denominator= 30000 260 .denominator= 30000
|
/linux/include/linux/ |
A D | flex_proportions.h | 61 unsigned long *denominator); 92 unsigned long *denominator);
|
/linux/drivers/media/platform/sti/delta/ |
A D | delta-debug.c | 29 s->pixelaspect.denominator); in delta_streaminfo_str() 50 f->pixelaspect.denominator); in delta_frameinfo_str()
|
/linux/drivers/media/pci/tw5864/ |
A 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()
|
/linux/drivers/media/pci/cx25821/ |
A 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()
|