Searched refs:ratio (Results 176 - 200 of 217) sorted by relevance

123456789

/linux-master/sound/soc/apple/
H A Dmca.c538 static int mca_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
542 cl->bclk_ratio = ratio;
608 dev_err(dev, "BCLK ratio (%ld) not divisible by no. of channels (%d)\n",
/linux-master/sound/soc/tegra/
H A Dtegra210_i2s.c248 * and the bclk ratio, and so is set when hw_params is called.
529 unsigned int ratio)
533 i2s->bclk_ratio = ratio;
528 tegra210_i2s_set_dai_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
/linux-master/sound/soc/codecs/
H A Dnau8825.c54 int ratio; member in struct:nau8825_fll
83 /* ratio for input clk freq */
1309 /* get the bclk and fs ratio */
2273 /* Choose the FLL ratio based on FREF */
2280 fll_param->ratio = fll_ratio[i].val;
2302 * input based on FDCO, FREF and FLL ratio.
2304 fvco = div_u64(fvco_max << fll_param->fll_frac_num, fref * fll_param->ratio);
2322 fll_param->ratio | (0x6 << NAU8825_ICTRL_LATCH_SFT));
2385 dev_dbg(component->dev, "mclk_src=%x ratio=%x fll_frac=%x fll_int=%x clk_ref_div=%x\n",
2386 fll_param.mclk_src, fll_param.ratio, fll_para
[all...]
H A Dcx2072x.c977 unsigned int ratio)
982 cx2072x->bclk_ratio = ratio;
976 cx2072x_set_dai_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
H A Dtscs454.c2654 unsigned int ratio)
2662 dev_dbg(component->dev, "set_bclk_ratio() id = %d ratio = %u\n",
2663 dai->id, ratio);
2684 switch (ratio) {
2696 dev_err(component->dev, "Unsupported bclk ratio (%d)\n", ret);
2704 "Failed to set DAI BCLK ratio (%d)\n", ret);
2653 tscs454_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
H A Drt5670.c2647 static int rt5670_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
2651 dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio);
2655 if ((ratio % 50) == 0)
H A Drt5665.c4397 static int rt5665_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
4402 dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio);
4404 rt5665->bclk[dai->id] = ratio;
4406 if (ratio == 64) {
H A Drt5659.c3584 static int rt5659_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
3589 dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio);
3591 rt5659->bclk[dai->id] = ratio;
3593 if (ratio == 64) {
/linux-master/arch/x86/kvm/mmu/
H A Dmmu.c7113 uint ratio = READ_ONCE(nx_huge_pages_recovery_ratio); local
7115 if (!enabled || !ratio)
7121 ratio = min(ratio, 3600u);
7122 *period = 60 * 60 * 1000 / ratio;
7165 unsigned int ratio; local
7180 ratio = READ_ONCE(nx_huge_pages_recovery_ratio);
7181 to_zap = ratio ? DIV_ROUND_UP(nx_lpage_splits, ratio) : 0;
/linux-master/drivers/media/i2c/
H A Dadv7511-v4l2.c1506 /* 1st order interpolation 4:2:2 -> 4:4:4 up conversion, Aspect ratio: 16:9 */
1517 /* Colorimetry, Active format aspect ratio: same as picure. */
1726 u8 ratio; local
1762 ratio = (cec_clk / 750000) - 1;
1763 adv7511_cec_write(sd, 0x4e, ratio << 2);
/linux-master/drivers/net/wireless/microchip/wilc1000/
H A Dwlan.c367 static inline int ac_balance(struct wilc *wl, u8 *ratio) argument
371 if (!ratio)
379 ratio[i] = max_count - wl->txq[i].fw.count;
/linux-master/drivers/leds/rgb/
H A Dleds-qcom-lpg.c487 u64 ratio; local
492 ratio = div64_u64(numerator, denominator);
493 m = ilog2(ratio);
/linux-master/mm/
H A Dmemory_hotplug.c175 * memory_hotplug.auto_movable_ratio: specify maximum MOVABLE:KERNEL ratio
177 * The ratio represent an upper limit and the kernel might decide to not
184 "Set the maximum ratio of MOVABLE:KERNEL memory in the system "
819 const int ratio = READ_ONCE(auto_movable_ratio); local
827 if (!ratio)
832 * satisfy the configured zone ratio.
834 pages = group->present_movable_pages * 100 / ratio;
886 * and still stay in the configured ratio.
915 * configuration and system stats. We care about the following ratio:
H A Dzsmalloc.c149 * Pages are distinguished by the ratio of used memory (that is the ratio
151 * INUSE_RATIO_10 means that the ratio of used objects is > 0% and <= 10%.
637 * depending on their usage ratio. This function returns fullness
642 int inuse, objs_per_zspage, ratio; local
652 ratio = 100 * inuse / objs_per_zspage;
655 * object out of 127 possible, will end up having 0 usage ratio,
658 return ratio / 10 + 1;
/linux-master/drivers/accel/ivpu/
H A Divpu_hw_40xx.c983 static u32 ivpu_hw_40xx_ratio_to_freq(struct ivpu_device *vdev, u32 ratio) argument
985 return PLL_RATIO_TO_FREQ(ratio);
/linux-master/drivers/gpu/drm/tegra/
H A Dsor.c1073 /* ratio between input and output */
1074 u64 ratio; member in struct:tegra_sor_params
1094 active_sym = params->ratio * tu_size;
1175 params.ratio = div64_u64(input * f, output);
1206 watermark = params.ratio * config->tu_size * (f - params.ratio);
/linux-master/tools/perf/
H A Dbuiltin-record.c2376 float ratio = 0; local
2809 ratio = (float)rec->session->bytes_transferred/(float)rec->session->bytes_compressed;
2810 session->header.env.comp_ratio = ratio + 0.5;
2866 if (ratio) {
2867 fprintf(stderr, ", compressed (original %.3f MB, ratio is %.3f)",
2869 ratio);
/linux-master/sound/pci/ice1712/
H A Daureon.c1189 unsigned char ratio; local
1190 ratio = aureon_cs8415_get(ice, CS8415_RATIO);
1191 ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750);
/linux-master/drivers/net/wireless/ath/ath5k/
H A Dphy.c2418 s16 ratio, result; local
2427 * order to get a sane ratio value (or else we 'll eg. get
2431 ratio = ((100 * y_right - 100 * y_left) / (x_right - x_left));
2434 result = y_left + (ratio * (target - x_left) / 100);
2547 * two TPs for ratio */
3547 /* CCK rates have different peak to average ratio
/linux-master/tools/testing/selftests/net/
H A Dfib_tests.sh2504 local ratio=$(echo "scale=2; $count / $expected" | bc -l)
2505 local res=$(echo "$ratio >= 0.95" | bc)
2507 log_test $? 0 "Multipath route hit ratio ($ratio)"
/linux-master/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dpp.c382 #define IDENTITY_RATIO(ratio) (dc_fixpt_u3d19(ratio) == (1 << 19))
/linux-master/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c1007 * down by the same ratio, Plane Clip position (i.e. x and y) with
1201 struct fixed31_32 ratio,
1211 * pixel 1. Next recout pixel samples int part of <init + scaling ratio> and so on.
1219 temp = dc_fixpt_mul_int(ratio, recout_offset_within_recout_full);
1223 dc_fixpt_add_int(ratio, taps + 1), 2), temp), 19);
1242 temp = dc_fixpt_add(*init, dc_fixpt_mul_int(ratio, recout_size - 1));
3998 /* TODO: un-hardcode aspect ratio */
4014 /* Active Format Aspect ratio - same as Picture Aspect Ratio. */
1195 calculate_init_and_vp( bool flip_scan_dir, int recout_offset_within_recout_full, int recout_size, int src_size, int taps, struct fixed31_32 ratio, struct fixed31_32 *init, int *vp_offset, int *vp_size) argument
/linux-master/fs/reiserfs/
H A Djournal.c2655 * journal params within boundaries which depend on the ratio
2672 int ratio = 1; local
2674 ratio = REISERFS_STANDARD_BLKSIZE / sb->s_blocksize;
2676 if (journal->j_trans_max > JOURNAL_TRANS_MAX_DEFAULT / ratio ||
2677 journal->j_trans_max < JOURNAL_TRANS_MIN_DEFAULT / ratio ||
/linux-master/arch/x86/kvm/
H A Dx86.c2431 u64 ratio; local
2451 /* TSC scaling required - calculate ratio */
2452 ratio = mul_u64_u32_div(1ULL << kvm_caps.tsc_scaling_ratio_frac_bits,
2455 if (ratio == 0 || ratio >= kvm_caps.max_tsc_scaling_ratio) {
2456 pr_warn_ratelimited("Invalid TSC scaling ratio - virtual-tsc-khz=%u\n",
2461 kvm_vcpu_write_tsc_multiplier(vcpu, ratio);
2547 * Multiply tsc by a fixed point number represented by ratio.
2549 * The most significant 64-N bits (mult) of ratio represent the
2551 * (frac) represent the fractional part, ie. ratio represent
2556 __scale_tsc(u64 ratio, u64 tsc) argument
2561 kvm_scale_tsc(u64 tsc, u64 ratio) argument
4300 u64 offset, ratio; local
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_worker.c934 const int ratio = local
939 ratio,

Completed in 452 milliseconds

123456789