gcd 122 arch/mips/ar7/clock.c tmp_gcd = gcd(target, tmp_base); gcd 128 drivers/clk/clk-cdce925.c g = gcd(rate, parent_rate); gcd 559 drivers/clk/clk-si5341.c g = gcd(r, rate); gcd 372 drivers/clk/zte/clk.c div = gcd(m, n); gcd 61 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c div = gcd(n, cts); gcd 50 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c tmp = gcd(*nom, *den); gcd 559 drivers/gpu/drm/radeon/radeon_audio.c div = gcd(n, cts); gcd 891 drivers/gpu/drm/radeon/radeon_display.c tmp = gcd(*nom, *den); gcd 172 drivers/iio/afe/iio-rescale.c factor = gcd(sense, 1000000); gcd 176 drivers/iio/afe/iio-rescale.c factor = gcd(rescale->numerator, gain_mult); gcd 180 drivers/iio/afe/iio-rescale.c factor = gcd(rescale->denominator, gain_div); gcd 201 drivers/iio/afe/iio-rescale.c factor = gcd(shunt, 1000000); gcd 228 drivers/iio/afe/iio-rescale.c factor = gcd(rescale->numerator, rescale->denominator); gcd 186 drivers/iio/frequency/adf4350.c div_gcd = gcd(st->r1_mod, st->r0_fract); gcd 231 drivers/iio/frequency/adf4371.c gcd_div = gcd(*fract2, *mod2); gcd 42 drivers/media/i2c/aptina-pll.c div = gcd(pll->pix_clock, pll->ext_clock); gcd 134 drivers/media/i2c/aptina-pll.c unsigned int mf_inc = p1 / gcd(div, p1); gcd 448 drivers/media/i2c/smiapp-pll.c i = gcd(pll->pll_op_clk_freq_hz, pll->ext_clk_freq_hz); gcd 1266 drivers/media/platform/coda/coda-common.c div = gcd(s.numerator, s.denominator); gcd 216 drivers/media/tuners/msi001.c uitmp = gcd(k_thresh, k_frac); gcd 705 drivers/media/tuners/mt2063.c lo_gcd = gcd(f_LO1, f_LO2); gcd 706 drivers/media/tuners/mt2063.c gd_Scale = max((u32) gcd(lo_gcd, d), f_Scale); gcd 708 drivers/media/tuners/mt2063.c gc_Scale = max((u32) gcd(lo_gcd, c), f_Scale); gcd 710 drivers/media/tuners/mt2063.c gf_Scale = max((u32) gcd(lo_gcd, f), f_Scale); gcd 3299 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c g = gcd(nh->nh_weight, g); gcd 312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c *scan_freq = gcd(sr->scan_plans[0].interval, *scan_freq); gcd 851 drivers/staging/media/imx/imx-media-csi.c div = gcd(interval->numerator, interval->denominator); gcd 408 drivers/staging/media/meson/vdec/vdec_helpers.c div = gcd(sess->pixelaspect.numerator, sess->pixelaspect.denominator); gcd 453 drivers/tty/vt/vt.c for (i = 0; i < gcd(d, sz); i++) { gcd 245 drivers/usb/dwc2/hcd_queue.c interval = gcd(interval, periods_in_map); gcd 349 drivers/usb/dwc2/hcd_queue.c interval = gcd(interval, periods_in_map); gcd 720 drivers/usb/dwc2/hcd_queue.c host_interval_in_sched = gcd(qh->host_interval, gcd 1132 drivers/usb/dwc2/hcd_queue.c interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES); gcd 1144 drivers/usb/dwc2/hcd_queue.c interval = gcd(qh->host_interval, DWC2_LS_SCHEDULE_FRAMES); gcd 1946 drivers/usb/dwc2/hcd_queue.c interval = gcd(interval, periods_in_map); gcd 7 include/linux/gcd.h unsigned long gcd(unsigned long a, unsigned long b) __attribute_const__; gcd 855 lib/bch.c struct gf_poly *gcd; gcd 868 lib/bch.c gcd = gf_poly_gcd(bch, f2, tk); gcd 869 lib/bch.c if (gcd->deg < f->deg) { gcd 871 lib/bch.c gf_poly_div(bch, f, gcd, q); gcd 873 lib/bch.c *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; gcd 874 lib/bch.c gf_poly_copy(*g, gcd); gcd 85 lib/math/gcd.c EXPORT_SYMBOL_GPL(gcd); gcd 11 lib/math/lcm.c return (a / gcd(a, b)) * b; gcd 66 net/netfilter/ipvs/ip_vs_mh.c int gcd; gcd 134 net/netfilter/ipvs/ip_vs_mh.c if (s->gcd < 1) gcd 152 net/netfilter/ipvs/ip_vs_mh.c ds->turns = ((lw / s->gcd) >> s->rshift) ? : (lw != 0); gcd 172 net/netfilter/ipvs/ip_vs_mh.c if (s->gcd < 1) { gcd 333 net/netfilter/ipvs/ip_vs_mh.c g = gcd(weight, g); gcd 344 net/netfilter/ipvs/ip_vs_mh.c static int ip_vs_mh_shift_weight(struct ip_vs_service *svc, int gcd) gcd 354 net/netfilter/ipvs/ip_vs_mh.c if (gcd < 1) gcd 366 net/netfilter/ipvs/ip_vs_mh.c mw = weight / gcd; gcd 400 net/netfilter/ipvs/ip_vs_mh.c s->gcd = ip_vs_mh_gcd_weight(svc); gcd 401 net/netfilter/ipvs/ip_vs_mh.c s->rshift = ip_vs_mh_shift_weight(svc, s->gcd); gcd 437 net/netfilter/ipvs/ip_vs_mh.c s->gcd = ip_vs_mh_gcd_weight(svc); gcd 438 net/netfilter/ipvs/ip_vs_mh.c s->rshift = ip_vs_mh_shift_weight(svc, s->gcd); gcd 79 net/netfilter/ipvs/ip_vs_wrr.c g = gcd(weight, g); gcd 1690 net/wireless/util.c *beacon_int_gcd = gcd(*beacon_int_gcd, wdev->beacon_interval); gcd 1696 net/wireless/util.c *beacon_int_gcd = gcd(*beacon_int_gcd, new_beacon_int); gcd 28 sound/core/pcm_timer.c l = gcd(mult, rate); gcd 34 sound/core/pcm_timer.c l = gcd(rate, fsize); gcd 32 sound/soc/codecs/adau-utils.c j = gcd(i, freq_in); gcd 2286 sound/soc/codecs/arizona.c gcd_fll = gcd(target, ratio * Fref); gcd 3614 sound/soc/codecs/madera.c gcd_fll = gcd(fll->fout, ratio * fref); gcd 4385 sound/soc/codecs/madera.c fllgcd = gcd(fout, fbdiv * fref); gcd 759 sound/soc/codecs/pcm512x.c common = gcd(pll_rate, pllin_rate); gcd 798 sound/soc/codecs/pcm512x.c common = gcd(10000 * num, den); gcd 168 sound/soc/codecs/rl6231.c div_t = gcd(freq_in, freq_out); gcd 1918 sound/soc/codecs/wm2200.c gcd_fll = gcd(target, fratio * Fref); gcd 1738 sound/soc/codecs/wm5100.c gcd_fll = gcd(target, fratio * Fref); gcd 2793 sound/soc/codecs/wm8962.c gcd_fll = gcd(target, fratio * Fref); gcd 2124 sound/soc/codecs/wm8994.c gcd_fll = gcd(freq_out, freq_in); gcd 1985 sound/soc/codecs/wm8996.c gcd_fll = gcd(target, fratio * Fref);