/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_mh.c | 66 int gcd; member 134 if (s->gcd < 1) in ip_vs_mh_permutate() 152 ds->turns = ((lw / s->gcd) >> s->rshift) ? : (lw != 0); in ip_vs_mh_permutate() 172 if (s->gcd < 1) { in ip_vs_mh_populate() 332 g = gcd(weight, g); in ip_vs_mh_gcd_weight() 353 if (gcd < 1) in ip_vs_mh_shift_weight() 365 mw = weight / gcd; in ip_vs_mh_shift_weight() 399 s->gcd = ip_vs_mh_gcd_weight(svc); in ip_vs_mh_init_svc() 400 s->rshift = ip_vs_mh_shift_weight(svc, s->gcd); in ip_vs_mh_init_svc() 436 s->gcd = ip_vs_mh_gcd_weight(svc); in ip_vs_mh_dest_changed() [all …]
|
H A D | ip_vs_wrr.c | 79 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | conversion.c | 118 uint32_t gcd = 0; in reduce_fraction() local 120 gcd = find_gcd(num, den); in reduce_fraction() 121 *out_num = num / gcd; in reduce_fraction() 122 *out_den = den / gcd; in reduce_fraction()
|
/openbmc/linux/lib/math/ |
H A D | gcd.c | 23 unsigned long gcd(unsigned long a, unsigned long b) in gcd() function 50 unsigned long gcd(unsigned long a, unsigned long b) in gcd() function 85 EXPORT_SYMBOL_GPL(gcd);
|
H A D | lcm.c | 11 return (a / gcd(a, b)) * b; in lcm()
|
H A D | Makefile | 2 obj-y += div64.o gcd.o lcm.o int_log.o int_pow.o int_sqrt.o reciprocal_div.o
|
/openbmc/linux/kernel/time/ |
H A D | timeconst.bc | 5 define gcd(a,b) { 24 d = d/gcd(n,d); 76 cd=gcd(hz,1000) 98 cd=gcd(hz,1000000) 104 cd=gcd(hz,1000000000)
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_calendar.c | 285 u32 gcd, idx, sum, min, factor; in sparx5_dsm_calendar_calc() local 323 gcd = min; in sparx5_dsm_calendar_calc() 325 gcd = sparx5_dsm_exb_gcd(gcd, data->taxi_speeds[jdx]); in sparx5_dsm_calendar_calc() 342 raw_spd = gcd / 5; in sparx5_dsm_calendar_calc() 344 raw_spd = gcd / 2; in sparx5_dsm_calendar_calc() 346 raw_spd = gcd; in sparx5_dsm_calendar_calc()
|
/openbmc/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 346 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props() 350 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props() 354 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props() 375 factor = gcd(shunt, 1000000); in rescale_current_sense_shunt_props() 402 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props() 441 factor = gcd(tmp, 1000000); in rescale_temp_sense_rtd_props()
|
/openbmc/linux/sound/core/ |
H A D | pcm_timer.c | 28 l = gcd(mult, rate); in snd_pcm_timer_resolution_change() 34 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | aptina-pll.c | 41 div = gcd(pll->pix_clock, pll->ext_clock); in aptina_pll_calculate() 133 unsigned int mf_inc = p1 / gcd(div, p1); in aptina_pll_calculate()
|
H A D | ccs-pll.c | 386 pre_div = gcd(pll->pixel_rate_csi, in ccs_pll_calculate_vt_tree() 412 div = gcd(pre_mul * pll_fr->pre_pll_clk_div, pre_div); in ccs_pll_calculate_vt_tree() 805 i = gcd(op_sys_clk_freq_hz_sdr, in ccs_pll_calculate()
|
/openbmc/linux/include/linux/ |
H A D | gcd.h | 7 unsigned long gcd(unsigned long a, unsigned long b) __attribute_const__;
|
/openbmc/linux/sound/soc/codecs/ |
H A D | adau-utils.c | 32 j = gcd(i, freq_in); in adau_calc_pll_cfg()
|
H A D | rl6231.c | 173 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_afmt.c | 61 div = gcd(n, cts); in amdgpu_afmt_calc_cts()
|
H A D | amdgpu_pll.c | 50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | hcd_queue.c | 215 interval = gcd(interval, periods_in_map); in pmap_schedule() 319 interval = gcd(interval, periods_in_map); in pmap_unschedule() 690 host_interval_in_sched = gcd(qh->host_interval, in dwc2_uframe_schedule_split() 1102 interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES); in dwc2_pick_first_frame() 1114 interval = gcd(qh->host_interval, DWC2_LS_SCHEDULE_FRAMES); in dwc2_pick_first_frame() 1916 interval = gcd(interval, periods_in_map); in dwc2_next_periodic_start()
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_dfl_tod.c | 148 tod_drift_adjust_fns = tod_rem / gcd(tod_rem, rate); in dfl_tod_adjust_fine() 149 tod_drift_adjust_rate = rate / gcd(tod_rem, rate); in dfl_tod_adjust_fine()
|
/openbmc/u-boot/lib/ |
H A D | bch.c | 891 struct gf_poly *gcd; in factor_polynomial() local 904 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial() 905 if (gcd->deg < f->deg) { in factor_polynomial() 907 gf_poly_div(bch, f, gcd, q); in factor_polynomial() 909 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial() 910 gf_poly_copy(*g, gcd); in factor_polynomial()
|
/openbmc/linux/lib/ |
H A D | bch.c | 878 struct gf_poly *gcd; in factor_polynomial() local 891 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial() 892 if (gcd->deg < f->deg) { in factor_polynomial() 894 gf_poly_div(bch, f, gcd, q); in factor_polynomial() 896 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial() 897 gf_poly_copy(*g, gcd); in factor_polynomial()
|
/openbmc/linux/Documentation/translations/zh_CN/core-api/ |
H A D | kernel-api.rst | 177 lib/math/gcd.c
|
/openbmc/u-boot/arch/arm/mach-imx/mx5/ |
H A D | clock.c | 531 static int gcd(int m, int n) in gcd() function 606 i = gcd(mfd, mfn); in calc_pll_params()
|
/openbmc/linux/drivers/media/tuners/ |
H A D | mt2063.c | 705 lo_gcd = gcd(f_LO1, f_LO2); in IsSpurInBand() 706 gd_Scale = max((u32) gcd(lo_gcd, d), f_Scale); in IsSpurInBand() 708 gc_Scale = max((u32) gcd(lo_gcd, c), f_Scale); in IsSpurInBand() 710 gf_Scale = max((u32) gcd(lo_gcd, f), f_Scale); in IsSpurInBand()
|
/openbmc/linux/arch/mips/ar7/ |
H A D | clock.c | 124 tmp_gcd = gcd(target, tmp_base); in calculate()
|