| /linux/net/dccp/ccids/ |
| H A D | ccid2.c | |
| /linux/drivers/video/fbdev/aty/ |
| H A D | radeon_base.c | 580 int hTotal, vTotal, num, denom, m, n; in radeon_probe_pll_params() local 627 denom = 1; in radeon_probe_pll_params() 633 denom = 2*m; in radeon_probe_pll_params() 639 denom = 2*m; in radeon_probe_pll_params() 650 denom *= m; in radeon_probe_pll_params() 654 denom *= 2; in radeon_probe_pll_params() 657 denom *= 4; in radeon_probe_pll_params() 660 denom *= 8; in radeon_probe_pll_params() 663 denom *= 3; in radeon_probe_pll_params() 666 denom * in radeon_probe_pll_params() [all...] |
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 4965.c | 553 il4965_math_div_round(s32 num, s32 denom, s32 * res) in il4965_math_div_round() argument 561 if (denom < 0) { in il4965_math_div_round() 563 denom = -denom; in il4965_math_div_round() 565 *res = ((num * 2 + denom) / (denom * 2)) * sign; in il4965_math_div_round()
|
| /linux/drivers/scsi/ |
| H A D | scsi_transport_spi.c | 87 static int sprint_frac(char *dest, int value, int denom) in sprint_frac() argument 89 int frac = value % denom; in sprint_frac() 90 int result = sprintf(dest, "%d", value / denom); in sprint_frac() 97 denom /= 10; in sprint_frac() 98 sprintf(dest + result, "%d", frac / denom); in sprint_frac() 100 frac %= denom; in sprint_frac()
|
| H A D | scsi_debug.c | 9477 int denom = (flags & F_SYNC_DELAY) ? 20 : 1; in scsi_debug_queuecommand() 9479 jdelay = mult_frac(USER_HZ * jdelay, HZ, denom * USER_HZ); in scsi_debug_queuecommand() 9487 int denom = (flags & F_SYNC_DELAY) ? 20 : 1; scsi_debug_queuecommand() local
|
| /linux/drivers/media/test-drivers/vivid/ |
| H A D | vivid-vid-cap.c | 1437 u32 *num, u32 *denom) in find_aspect_ratio() 1441 *denom = 3; in find_aspect_ratio() 1444 *denom = 9; in find_aspect_ratio() 1447 *denom = 10; 1450 *denom = 4; in valid_cvt_gtf_timings() 1453 *denom = 9; in valid_cvt_gtf_timings() 1456 *denom = 9; in valid_cvt_gtf_timings() 1425 find_aspect_ratio(u32 width,u32 height,u32 * num,u32 * denom) find_aspect_ratio() argument
|
| /linux/drivers/clk/ |
| H A D | clk-versaclock7.c | 783 u64 numer, denom, hi, lo, divisor; in vc7_calc_fod_1st_stage_rate() local 786 denom = BIT_ULL(VC7_FOD_DENOMINATOR_BITS); in vc7_calc_fod_1st_stage_rate() 789 vc7_64_mul_64_to_128(parent_rate, denom, &hi, &lo); in vc7_calc_fod_1st_stage_rate() 790 divisor = ((u64)fod_1st_int * denom) + numer; in vc7_calc_fod_1st_stage_rate()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | dib7000p.c | 1795 u32 tmp, denom; in dib7000p_get_time_us() local 1866 denom = bits_per_symbol * rate_num * fft_div * 384; in dib7000p_get_time_us() 1874 if (!denom) in dib7000p_get_time_us() 1882 time_us += denom / 2; in dib7000p_get_time_us() 1883 do_div(time_us, denom); in dib7000p_get_time_us() 2444 u32 denom = P_Kout; in dib7090_calcSyncFreq() local 2445 u32 syncFreq = ((nom << quantif) / denom); in dib7090_calcSyncFreq()
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_wacom_generic.py | 809 self.empty_pad_sync(num=3, denom=16, reverse=True) 811 def empty_pad_sync(self, num, denom, reverse): argument 827 value += num * delta // denom
|
| /linux/drivers/media/tuners/ |
| H A D | mt2063.c | 1403 static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num, u32 denom) in MT2063_fLO_FractionalTerm() argument 1406 u32 term1 = t1 / denom; in MT2063_fLO_FractionalTerm() 1407 u32 loss = t1 % denom; in MT2063_fLO_FractionalTerm() 1409 (((f_ref & 0x00003FFF) * num + (loss << 14)) + (denom / 2)) / denom; in MT2063_fLO_FractionalTerm()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | fastops_test.c | 103 : [denom]"rm"(__rm), bt_constraint(__rm) \
|
| /linux/sound/soc/codecs/ |
| H A D | wcd937x.c | 1557 s32 denom; in wcd937x_mbhc_get_result_params() 1584 denom = (x1 * d1) - (1 << (14 - noff)); in wcd937x_mbhc_get_result_params() 1585 if (denom > 0) in wcd937x_mbhc_get_result_params() 1586 *zdet = (WCD937X_MBHC_ZDET_CONST * 1000) / denom; in wcd937x_mbhc_get_result_params() 1538 s32 denom; wcd937x_mbhc_get_result_params() local
|
| H A D | wcd938x.c | 2076 int32_t denom; in wcd938x_mbhc_get_result_params() local 2103 denom = (x1 * d1) - (1 << (14 - noff)); in wcd938x_mbhc_get_result_params() 2104 if (denom > 0) in wcd938x_mbhc_get_result_params() 2105 *zdet = (WCD938X_MBHC_ZDET_CONST * 1000) / denom; in wcd938x_mbhc_get_result_params()
|
| H A D | wcd939x.c | 2042 s32 x1, d1, denom; in wcd939x_mbhc_get_result_params() local 2075 denom = (x1 * d1) - (1 << (14 - zdet_param->noff)); in wcd939x_mbhc_get_result_params() 2076 if (denom > 0) in wcd939x_mbhc_get_result_params() 2077 *zdet = (WCD939X_ANA_MBHC_ZDET_CONST * 1000) / denom; in wcd939x_mbhc_get_result_params()
|
| H A D | wcd934x.c | 2589 int32_t denom; in wcd934x_mbhc_get_result_params() local 2616 denom = (x1 * d1) - (1 << (14 - noff)); in wcd934x_mbhc_get_result_params() 2617 if (denom > 0) in wcd934x_mbhc_get_result_params() 2618 *zdet = (WCD934X_MBHC_ZDET_CONST * 1000) / denom; in wcd934x_mbhc_get_result_params()
|
| /linux/drivers/hid/ |
| H A D | wacom_wac.c | 1823 int value, int num, int denom) in wacom_offset_rotation() argument 1828 value += num*range/denom; in wacom_offset_rotation()
|