Home
last modified time | relevance | path

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

12

/Linux-v4.19/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.c84 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
/Linux-v4.19/lib/
Dgcd.c22 unsigned long gcd(unsigned long a, unsigned long b) in gcd() function
49 unsigned long gcd(unsigned long a, unsigned long b) in gcd() function
84 EXPORT_SYMBOL_GPL(gcd);
Dlcm.c10 return (a / gcd(a, b)) * b; in lcm()
Dbch.c855 struct gf_poly *gcd; in factor_polynomial() local
868 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial()
869 if (gcd->deg < f->deg) { in factor_polynomial()
871 gf_poly_div(bch, f, gcd, q); in factor_polynomial()
873 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial()
874 gf_poly_copy(*g, gcd); in factor_polynomial()
DMakefile38 gcd.o lcm.o list_sort.o uuid.o flex_array.o iov_iter.o clz_ctz.o \
/Linux-v4.19/kernel/time/
Dtimeconst.bc3 define gcd(a,b) {
22 d = d/gcd(n,d);
74 cd=gcd(hz,1000)
96 cd=gcd(hz,1000000)
102 cd=gcd(hz,1000000000)
/Linux-v4.19/drivers/iio/afe/
Diio-rescale.c172 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
176 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props()
180 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props()
201 factor = gcd(shunt, 1000000); in rescale_current_sense_shunt_props()
228 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props()
/Linux-v4.19/sound/core/
Dpcm_timer.c43 l = gcd(mult, rate); in snd_pcm_timer_resolution_change()
49 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
/Linux-v4.19/drivers/media/i2c/
Daptina-pll.c50 div = gcd(pll->pix_clock, pll->ext_clock); in aptina_pll_calculate()
142 unsigned int mf_inc = p1 / gcd(div, p1); in aptina_pll_calculate()
Dsmiapp-pll.c456 i = gcd(pll->pll_op_clk_freq_hz, pll->ext_clk_freq_hz); in smiapp_pll_calculate()
/Linux-v4.19/include/linux/
Dgcd.h7 unsigned long gcd(unsigned long a, unsigned long b) __attribute_const__;
/Linux-v4.19/sound/soc/codecs/
Dadau-utils.c33 j = gcd(i, freq_in); in adau_calc_pll_cfg()
Drl6231.c171 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc()
Dpcm512x.c702 common = gcd(pll_rate, pllin_rate); in pcm512x_find_pll_coeff()
741 common = gcd(10000 * num, den); in pcm512x_find_pll_coeff()
/Linux-v4.19/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-v4.19/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()
1939 interval = gcd(interval, periods_in_map); in dwc2_next_periodic_start()
/Linux-v4.19/drivers/media/tuners/
Dmt2063.c714 lo_gcd = gcd(f_LO1, f_LO2); in IsSpurInBand()
715 gd_Scale = max((u32) gcd(lo_gcd, d), f_Scale); in IsSpurInBand()
717 gc_Scale = max((u32) gcd(lo_gcd, c), f_Scale); in IsSpurInBand()
719 gf_Scale = max((u32) gcd(lo_gcd, f), f_Scale); in IsSpurInBand()
Dmsi001.c225 uitmp = gcd(k_thresh, k_frac); in msi001_set_tuner()
/Linux-v4.19/arch/mips/ar7/
Dclock.c135 tmp_gcd = gcd(target, tmp_base); in calculate()
/Linux-v4.19/drivers/clk/zte/
Dclk.c375 div = gcd(m, n); in audio_calc_reg()
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpno.c318 *scan_freq = gcd(sr->scan_plans[0].interval, *scan_freq); in brcmf_pno_prep_fwconfig()
/Linux-v4.19/drivers/iio/frequency/
Dadf4350.c187 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq()
/Linux-v4.19/Documentation/core-api/
Dkernel-api.rst153 .. kernel-doc:: lib/gcd.c

12