Home
last modified time | relevance | path

Searched refs:gcd (Results 1 – 25 of 51) sorted by relevance

123

/linux-5.19.10/net/netfilter/ipvs/
Dip_vs_mh.c66 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()
333 g = gcd(weight, g); in ip_vs_mh_gcd_weight()
344 static int ip_vs_mh_shift_weight(struct ip_vs_service *svc, int gcd) in ip_vs_mh_shift_weight() argument
354 if (gcd < 1) in ip_vs_mh_shift_weight()
366 mw = weight / gcd; in ip_vs_mh_shift_weight()
400 s->gcd = ip_vs_mh_gcd_weight(svc); in ip_vs_mh_init_svc()
401 s->rshift = ip_vs_mh_shift_weight(svc, s->gcd); in ip_vs_mh_init_svc()
[all …]
Dip_vs_wrr.c79 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
/linux-5.19.10/lib/math/
Dgcd.c23 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);
Dlcm.c11 return (a / gcd(a, b)) * b; in lcm()
DMakefile2 obj-y += div64.o gcd.o lcm.o int_pow.o int_sqrt.o reciprocal_div.o
/linux-5.19.10/kernel/time/
Dtimeconst.bc5 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)
/linux-5.19.10/drivers/net/ethernet/microchip/sparx5/
Dsparx5_calendar.c285 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()
/linux-5.19.10/drivers/iio/afe/
Diio-rescale.c333 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
337 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props()
341 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props()
362 factor = gcd(shunt, 1000000); in rescale_current_sense_shunt_props()
389 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props()
428 factor = gcd(tmp, 1000000); in rescale_temp_sense_rtd_props()
/linux-5.19.10/sound/core/
Dpcm_timer.c28 l = gcd(mult, rate); in snd_pcm_timer_resolution_change()
34 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
/linux-5.19.10/drivers/media/i2c/
Daptina-pll.c42 div = gcd(pll->pix_clock, pll->ext_clock); in aptina_pll_calculate()
134 unsigned int mf_inc = p1 / gcd(div, p1); in aptina_pll_calculate()
Dccs-pll.c386 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()
/linux-5.19.10/include/linux/
Dgcd.h7 unsigned long gcd(unsigned long a, unsigned long b) __attribute_const__;
/linux-5.19.10/sound/soc/codecs/
Dadau-utils.c32 j = gcd(i, freq_in); in adau_calc_pll_cfg()
Drl6231.c173 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc()
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_afmt.c61 div = gcd(n, cts); in amdgpu_afmt_calc_cts()
Damdgpu_pll.c50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
/linux-5.19.10/drivers/usb/dwc2/
Dhcd_queue.c245 interval = gcd(interval, periods_in_map); in pmap_schedule()
349 interval = gcd(interval, periods_in_map); in pmap_unschedule()
720 host_interval_in_sched = gcd(qh->host_interval, in dwc2_uframe_schedule_split()
1132 interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES); in dwc2_pick_first_frame()
1144 interval = gcd(qh->host_interval, DWC2_LS_SCHEDULE_FRAMES); in dwc2_pick_first_frame()
1946 interval = gcd(interval, periods_in_map); in dwc2_next_periodic_start()
/linux-5.19.10/lib/
Dbch.c912 struct gf_poly *gcd; in factor_polynomial() local
925 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial()
926 if (gcd->deg < f->deg) { in factor_polynomial()
928 gf_poly_div(bch, f, gcd, q); in factor_polynomial()
930 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial()
931 gf_poly_copy(*g, gcd); in factor_polynomial()
/linux-5.19.10/Documentation/translations/zh_CN/core-api/
Dkernel-api.rst170 lib/math/gcd.c
/linux-5.19.10/drivers/media/tuners/
Dmt2063.c705 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()
Dmsi001.c216 uitmp = gcd(k_thresh, k_frac); in msi001_set_tuner()
/linux-5.19.10/arch/mips/ar7/
Dclock.c124 tmp_gcd = gcd(target, tmp_base); in calculate()
/linux-5.19.10/drivers/staging/media/meson/vdec/
Dvdec_helpers.c436 div = gcd(sess->pixelaspect.numerator, sess->pixelaspect.denominator); in amvdec_set_par_from_dar()
/linux-5.19.10/drivers/iio/frequency/
Dadf4350.c193 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq()
Dadf4371.c231 gcd_div = gcd(*fract2, *mod2); in adf4371_pll_fract_n_compute()

123