HomeSort by: relevance | last modified time | path
    Searched refs:ratio (Results 1 - 25 of 39) sorted by relevancy

1 2

  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce/
amdgpu_dce_scl_filters.c 1020 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio)
1022 if (ratio.value < dc_fixpt_one.value)
1024 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value)
1026 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value)
1032 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio)
1034 if (ratio.value < dc_fixpt_one.value)
1036 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value)
1038 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value)
1044 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio)
1046 if (ratio.value < dc_fixpt_one.value
    [all...]
amdgpu_dce_transform.c 49 #define IDENTITY_RATIO(ratio) (dc_fixpt_u2d19(ratio) == (1 << 19))
309 static const uint16_t *get_filter_coeffs_16p(int taps, struct fixed31_32 ratio)
312 return get_filter_4tap_16p(ratio);
314 return get_filter_3tap_16p(ratio);
350 /* 3. Calculate and program ratio, filter initialization */
874 static uint32_t decide_taps(struct fixed31_32 ratio, uint32_t in_taps, bool chroma)
878 if (IDENTITY_RATIO(ratio)) {
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn20/
amdgpu_dcn20_dwb_scl.c 535 const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio)
537 if (ratio.value < dc_fixpt_one.value)
539 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value)
541 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value)
547 const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio)
549 if (ratio.value < dc_fixpt_one.value)
551 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value)
553 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value)
559 static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio)
561 if (ratio.value < dc_fixpt_one.value
    [all...]
amdgpu_dcn20_dpp.c 377 #define IDENTITY_RATIO(ratio) (dc_fixpt_u3d19(ratio) == (1 << 19))
398 /* No support for programming ratio of 8, drop to 7.99999.. */
  /src/sys/arch/arm/amlogic/
meson_clk_div.c 45 u_int rate, ratio; local in function:meson_clk_div_get_rate
64 ratio = __SHIFTOUT(val, div->div);
66 ratio = 0;
69 return rate >> ratio;
71 if (ratio < 1 || ratio > 8)
73 return rate / ((ratio + 1) * 2);
75 return rate / (ratio + 1);
87 int ratio, error; local in function:meson_clk_div_set_rate
112 ratio = howmany(parent_rate, new_rate)
    [all...]
  /src/sys/arch/arm/sunxi/
sunxi_ccu_div.c 67 u_int rate, ratio; local in function:sunxi_ccu_div_get_rate
83 ratio = __SHIFTOUT(val, div->div);
85 ratio = 0;
87 if ((div->flags & SUNXI_CCU_DIV_ZERO_IS_ONE) != 0 && ratio == 0)
88 ratio = 1;
90 ratio = 1 << ratio;
92 ratio = ratio << 1;
93 if (ratio == 0
141 int ratio; local in function:sunxi_ccu_div_set_rate
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw/
transform.h 71 /* Active format aspect ratio */
270 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio);
271 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio);
272 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio);
273 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio);
274 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio);
275 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio);
276 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio);
277 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio);
  /src/sys/external/bsd/drm2/dist/drm/i915/display/
intel_cdclk.h 24 u8 ratio; member in struct:intel_cdclk_vals
intel_cdclk.c 1171 { .refclk = 19200, .cdclk = 144000, .divider = 8, .ratio = 60 },
1172 { .refclk = 19200, .cdclk = 288000, .divider = 4, .ratio = 60 },
1173 { .refclk = 19200, .cdclk = 384000, .divider = 3, .ratio = 60 },
1174 { .refclk = 19200, .cdclk = 576000, .divider = 2, .ratio = 60 },
1175 { .refclk = 19200, .cdclk = 624000, .divider = 2, .ratio = 65 },
1180 { .refclk = 19200, .cdclk = 79200, .divider = 8, .ratio = 33 },
1181 { .refclk = 19200, .cdclk = 158400, .divider = 4, .ratio = 33 },
1182 { .refclk = 19200, .cdclk = 316800, .divider = 2, .ratio = 33 },
1187 { .refclk = 19200, .cdclk = 168000, .divider = 4, .ratio = 35 },
1188 { .refclk = 19200, .cdclk = 336000, .divider = 2, .ratio = 35 }
1324 u32 val, ratio; local in function:bxt_de_pll_readout
1424 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); local in function:bxt_de_pll_enable
1459 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); local in function:cnl_cdclk_pll_enable
    [all...]
intel_overlay.c 655 /* make the Y scale to UV scale ratio an exact multiply */
915 u32 ratio; local in function:update_pfit_vscale_ratio
922 ratio = I915_READ(PFIT_PGM_RATIOS) >> PFIT_VERT_SCALE_SHIFT_965;
925 ratio = I915_READ(PFIT_AUTO_RATIOS);
927 ratio = I915_READ(PFIT_PGM_RATIOS);
928 ratio >>= PFIT_VERT_SCALE_SHIFT;
931 overlay->pfit_vscale_ratio = ratio;
986 /* better safe than sorry, use 4 as the maximal subsampling ratio */
  /src/usr.bin/ftp/
progressbar.c 133 int ratio, i, remaining, barlength; local in function:progressmeter
218 ratio = (int)((double)cursize * 100.0 / (double)filesize);
219 ratio = MAX(ratio, 0);
220 ratio = MIN(ratio, 100);
221 len += snprintf(buf + len, BUFLEFT, "%3d%% ", ratio);
231 i = barlength * ratio / 100;
  /src/games/rogue/
use.c 323 float ratio; local in function:potion_heal
328 ratio = ((float)rogue.hp_current) / rogue.hp_max;
330 if (ratio >= 1.00) {
334 } else if (ratio >= 0.90) {
339 if (ratio < 0.33) {
340 ratio = 0.33;
343 ratio += ratio;
345 add = (short)(ratio * (rogue.hp_max - rogue.hp_current));
  /src/usr.bin/compress/
zopen.c 156 #define ratio zs->zs_ratio macro
192 #define CHECK_GAP 10000 /* Ratio check interval. */
229 * ratio decreases, but after the table fills. The variable-length output
267 ratio = 0;
640 if (rat > ratio)
641 ratio = rat;
643 ratio = 0;
673 ratio = 0;
  /src/sys/net/
ppp_defs.h 160 unsigned int ratio; /* recent compression ratio << 8 */ member in struct:compstat
bsd-comp.c 75 * The compression ratio is checked at the first end of a packet
100 u_int ratio; /* recent compression ratio */ member in struct:bsd_db
101 u_int checkpoint; /* when to next check the ratio */
184 #define CHECK_GAP 10000 /* Ratio check interval */
205 db->ratio = 0;
214 * Compute the compression ratio using fixed-point arithmetic
218 * watch only the local compression ratio.
222 * must compute the same ratio.
230 /* age the ratio by limiting the size of the counts *
    [all...]
ppp-deflate.c 356 stats->ratio = stats->unc_bytes;
358 if (stats->ratio <= 0x7ffffff)
359 stats->ratio <<= 8;
363 stats->ratio /= out;
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/
amdgpu_dcn10_dpp_dscl.c 69 /* Autocal calculate the scaling ratio and initial phase and the
238 static const uint16_t *dpp1_dscl_get_filter_coeffs_64p(int taps, struct fixed31_32 ratio)
241 return get_filter_8tap_64p(ratio);
243 return get_filter_7tap_64p(ratio);
245 return get_filter_6tap_64p(ratio);
247 return get_filter_5tap_64p(ratio);
249 return get_filter_4tap_64p(ratio);
251 return get_filter_3tap_64p(ratio);
728 /* Manually calculate scale ratio and init values */
amdgpu_dcn10_dpp.c 75 /* Autocal calculate the scaling ratio and initial phase and the
135 #define IDENTITY_RATIO(ratio) (dc_fixpt_u2d19(ratio) == (1 << 19))
163 /* No support for programming ratio of 4, drop to 3.99999.. */
  /src/sys/dev/i2c/
tsllux.c 835 #define TSL2561_LUX_RATIOSCALE (9) /* Scale ratio by 2^9 */
933 uint32_t channel0, channel1, scale, ratio, lux = 0; local in function:tsllux_get_lux
999 /* Find the ratio of the channel values (ir / broadband) */
1001 ratio = (channel1 << (TSL2561_LUX_RATIOSCALE + 1)) / channel0;
1003 ratio = 0;
1005 /* Round the ratio value. */
1006 ratio = (ratio + 1) >> 1;
1022 if (ratio <= table[idx].k)
  /src/sys/arch/riscv/starfive/
jh71x0_clkc.c 257 u_int ratio = howmany(parent_rate, new_rate); local in function:jh71x0_clkc_div_set_rate
258 u_int div = uimin(ratio, jcc_div->jcd_maxdiv);
330 u_int ratio = howmany(parent_rate, new_rate);
331 u_int div = uimin(ratio, jcc_div->jcd_maxdiv);
446 u_int ratio = howmany(parent_rate, new_rate); local in function:jh71x0_clkc_muxdiv_set_rate
447 u_int div = uimin(ratio, jcc_muxdiv->jcmd_maxdiv);
  /src/common/dist/zlib/contrib/minizip/
miniunz.c 239 printf(" Length Method Size Ratio Date Time CRC-32 Name\n");
245 uLong ratio=0; local in function:do_list
255 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size);
286 ratio,
  /src/lib/libc/gdtoa/
smisc.c 84 ratio function
gdtoaimp.h 571 #define ratio __ratio_D2A macro
622 extern double ratio ANSI((Bigint*, Bigint*));
  /src/sys/arch/arm/imx/
imxuart.c 449 imxuspeed(long speed, struct imxuart_baudrate_ratio *ratio)
478 ratio->numerator = b-1;
479 ratio->modulator = f-1;
1179 struct imxuart_baudrate_ratio ratio; local in function:imxuparam
1210 if (imxuspeed(t->c_ospeed, &ratio) < 0)
1212 sc->sc_ratio = ratio;
2178 struct imxuart_baudrate_ratio ratio; local in function:imxuart_init
2188 if (imxuspeed(rate, &ratio) < 0)
2193 IMX_UBIR, ratio.numerator);
2195 IMX_UBMR, ratio.modulator)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_clock.cc 529 uptr ratio = sizeof(ClockBlock::clock[0]) / sizeof(ClockBlock::table[0]); local in function:__tsan::SyncClock::capacity
532 uptr top = ClockBlock::kClockCount - RoundUpTo(blocks_ + 1, ratio) / ratio;

Completed in 462 milliseconds

1 2