/Linux-v4.19/net/netfilter/ipvs/ |
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() 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 …]
|
D | ip_vs_wrr.c | 84 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
|
/Linux-v4.19/lib/ |
D | gcd.c | 22 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);
|
D | lcm.c | 10 return (a / gcd(a, b)) * b; in lcm()
|
D | bch.c | 855 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()
|
D | Makefile | 38 gcd.o lcm.o list_sort.o uuid.o flex_array.o iov_iter.o clz_ctz.o \
|
/Linux-v4.19/kernel/time/ |
D | timeconst.bc | 3 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/ |
D | iio-rescale.c | 172 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/ |
D | pcm_timer.c | 43 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/ |
D | aptina-pll.c | 50 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()
|
D | smiapp-pll.c | 456 i = gcd(pll->pll_op_clk_freq_hz, pll->ext_clk_freq_hz); in smiapp_pll_calculate()
|
/Linux-v4.19/include/linux/ |
D | gcd.h | 7 unsigned long gcd(unsigned long a, unsigned long b) __attribute_const__;
|
/Linux-v4.19/sound/soc/codecs/ |
D | adau-utils.c | 33 j = gcd(i, freq_in); in adau_calc_pll_cfg()
|
D | rl6231.c | 171 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc()
|
D | pcm512x.c | 702 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/ |
D | amdgpu_afmt.c | 61 div = gcd(n, cts); in amdgpu_afmt_calc_cts()
|
D | amdgpu_pll.c | 50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
|
/Linux-v4.19/drivers/usb/dwc2/ |
D | hcd_queue.c | 245 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/ |
D | mt2063.c | 714 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()
|
D | msi001.c | 225 uitmp = gcd(k_thresh, k_frac); in msi001_set_tuner()
|
/Linux-v4.19/arch/mips/ar7/ |
D | clock.c | 135 tmp_gcd = gcd(target, tmp_base); in calculate()
|
/Linux-v4.19/drivers/clk/zte/ |
D | clk.c | 375 div = gcd(m, n); in audio_calc_reg()
|
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | pno.c | 318 *scan_freq = gcd(sr->scan_plans[0].interval, *scan_freq); in brcmf_pno_prep_fwconfig()
|
/Linux-v4.19/drivers/iio/frequency/ |
D | adf4350.c | 187 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq()
|
/Linux-v4.19/Documentation/core-api/ |
D | kernel-api.rst | 153 .. kernel-doc:: lib/gcd.c
|