Home
last modified time | relevance | path

Searched refs:clamp (Results 126 - 150 of 890) sorted by relevance

12345678910>>...36

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_dp_aux_backlight.c155 f = clamp(DIV_ROUND_CLOSEST(fxp, 1 << pn), 1, 255); in intel_dp_aux_set_pwm_freq()
299 f = clamp(DIV_ROUND_CLOSEST(fxp, 1 << pn), 1, 255); in intel_dp_aux_calc_max_backlight()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
H A Dvsp1_sru.c181 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
182 fmt->height = clamp(fmt->height, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c123 pix->width = clamp(width, _fmt->hsub, CSI_MAX_WIDTH); in _sun4i_csi_try_fmt()
124 pix->height = clamp(height, _fmt->vsub, CSI_MAX_HEIGHT); in _sun4i_csi_try_fmt()
/kernel/linux/linux-6.6/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c117 pix->width = clamp(width, _fmt->hsub, CSI_MAX_WIDTH); in _sun4i_csi_try_fmt()
118 pix->height = clamp(height, _fmt->vsub, CSI_MAX_HEIGHT); in _sun4i_csi_try_fmt()
/kernel/linux/linux-6.6/drivers/soc/tegra/
H A Dregulators-tegra30.c223 core_min_uV = clamp(tegra30_core_nominal_uV(), in tegra30_voltage_update()
283 cpu_min_uV = clamp(tegra30_cpu_nominal_uV(), in tegra30_voltage_update()
/kernel/linux/linux-6.6/drivers/clk/renesas/
H A Dclk-div6.c100 return clamp(div, 1U, 64U); in cpg_div6_clock_calc_div()
127 div = clamp(div, min_div, max_div); in cpg_div6_clock_determine_rate()
H A Drcar-gen2-cpg.c78 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()
93 mult = clamp(mult, 1U, 32U); in cpg_z_clk_set_rate()
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_sru.c182 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
183 fmt->height = clamp(fmt->height, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
/kernel/linux/linux-6.6/drivers/iio/chemical/
H A Dsgp40.c173 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between 0 .. 100 %rH */ in sgp40_measure_resistance_raw()
178 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between -45 .. +130 °C */ in sgp40_measure_resistance_raw()
/kernel/linux/linux-6.6/drivers/input/mouse/
H A Dfocaltech.c131 * The touchpad might report invalid data, so we clamp in focaltech_report_state()
135 clamped_x = clamp(finger->x, 0U, priv->x_max); in focaltech_report_state()
136 clamped_y = clamp(finger->y, 0U, priv->y_max); in focaltech_report_state()
/third_party/astc-encoder/Source/
H A Dastcenc_vecmathlib_common_4.h119 ASTCENC_SIMD_INLINE vint4 clamp(int minv, int maxv, vint4 a) in clamp() function
219 ASTCENC_SIMD_INLINE vfloat4 clamp(float minv, float maxv, vfloat4 a) in clamp() function
/third_party/mesa3d/src/nouveau/codegen/lib/
H A Dgf100.asm17 shl b32 $r2 $r3 clamp $r2
55 shl b32 $r2 $r3 clamp $r2
/third_party/skia/third_party/externals/swiftshader/src/Common/
H A DMath.hpp186 inline T clamp(T x, T a, T b) in clamp() function
196 return clamp(x, 0.0f, 1.0f); in clamp01()
/third_party/skia/third_party/externals/swiftshader/src/System/
H A DMath.hpp153 inline T clamp(T x, T a, T b) in clamp() function
164 return clamp(x, 0.0f, 1.0f); in clamp01()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dsimd_vec4.hpp254 detail::fvec4SIMD clamp(
259 detail::fvec4SIMD clamp(
312 //! t = clamp ((x - edge0) / (edge1 - edge0), 0, 1);
/kernel/linux/linux-5.10/drivers/staging/media/zoran/
H A Dzoran_card.c719 settings->hor_dcm = clamp(settings->hor_dcm, 1, 2); in zoran_check_jpg_settings()
723 settings->ver_dcm = clamp(settings->ver_dcm, 1, 2); in zoran_check_jpg_settings()
727 settings->tmp_dcm = clamp(settings->tmp_dcm, 1, 2); in zoran_check_jpg_settings()
732 settings->field_per_buff = clamp(settings->field_per_buff, 1, 2); in zoran_check_jpg_settings()
744 settings->img_width = clamp(settings->img_width, 0, (int)BUZ_MAX_WIDTH); in zoran_check_jpg_settings()
748 settings->img_height = clamp(settings->img_height, 0, BUZ_MAX_HEIGHT / 2); in zoran_check_jpg_settings()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dspace-info.c245 space_info->clamp = 1; in create_space_info()
910 thresh >>= space_info->clamp; in need_preemptive_reclaim()
1220 space_info->clamp = max(1, space_info->clamp - 1); in btrfs_preempt_reclaim_metadata_space()
1566 * need to clamp specifically to keep up with dirty'ing buffered in maybe_clamp_preempt()
1570 * we're keeping up, otherwise we aren't and should probably clamp. in maybe_clamp_preempt()
1573 space_info->clamp = min(space_info->clamp + 1, 8); in maybe_clamp_preempt()
/kernel/linux/linux-6.6/drivers/media/pci/zoran/
H A Dzoran_card.c782 settings->hor_dcm = clamp(settings->hor_dcm, 1, 2); in zoran_check_jpg_settings()
786 settings->ver_dcm = clamp(settings->ver_dcm, 1, 2); in zoran_check_jpg_settings()
790 settings->tmp_dcm = clamp(settings->tmp_dcm, 1, 2); in zoran_check_jpg_settings()
795 settings->field_per_buff = clamp(settings->field_per_buff, 1, 2); in zoran_check_jpg_settings()
807 settings->img_width = clamp(settings->img_width, 0, (int)BUZ_MAX_WIDTH); in zoran_check_jpg_settings()
811 settings->img_height = clamp(settings->img_height, 0, BUZ_MAX_HEIGHT / 2); in zoran_check_jpg_settings()
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Darizona-jack.c98 bool clamp) in arizona_extcon_hp_clamp()
114 if (clamp) { in arizona_extcon_hp_clamp()
131 if (clamp) in arizona_extcon_hp_clamp()
138 arizona->hpdet_clamp = clamp; in arizona_extcon_hp_clamp()
140 /* Keep the HP output stages disabled while doing the clamp */ in arizona_extcon_hp_clamp()
141 if (clamp) { in arizona_extcon_hp_clamp()
154 dev_warn(arizona->dev, "Failed to do clamp: %d\n", ret); in arizona_extcon_hp_clamp()
159 dev_warn(arizona->dev, "Failed to do clamp: %d\n", ret); in arizona_extcon_hp_clamp()
162 /* Restore the desired state while not doing the clamp */ in arizona_extcon_hp_clamp()
163 if (!clamp) { in arizona_extcon_hp_clamp()
97 arizona_extcon_hp_clamp(struct arizona_priv *info, bool clamp) arizona_extcon_hp_clamp() argument
[all...]
H A Dcs4234.c451 .min = mclk / clamp(mclk / 30000, 256, 512), in cs4234_dai_rule_rate()
452 .max = mclk / clamp(mclk / 50000, 256, 512), in cs4234_dai_rule_rate()
455 .min = mclk / clamp(mclk / 60000, 128, 256), in cs4234_dai_rule_rate()
456 .max = mclk / clamp(mclk / 100000, 128, 256), in cs4234_dai_rule_rate()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
H A Dsb_expr.cpp327 if (bc.clamp) in apply_alu_dst_mod()
357 if (b0.clamp != b1.clamp || b0.omod != b1.omod) in ops_equal()
391 if (!sd->bc.clamp && !sd->bc.omod && !sd->bc.src[0].abs && in fold_alu_op1()
401 && n.bc.clamp == 0 && n.bc.omod == 0 in fold_alu_op1()
488 !d0->bc.clamp && !n->bc.omod && in fold_mul_add()
525 !d1->bc.clamp && !n->bc.omod && in fold_mul_add()
654 !d0->bc.omod && !d0->bc.clamp && in fold_assoc()
688 !d1->bc.omod && !d1->bc.clamp && in fold_assoc()
/third_party/python/Lib/test/
H A Dtest_decimal.py200 'clamp' : self.change_clamp}
488 def change_clamp(self, clamp):
489 self.context.clamp = clamp
2902 capitals=None, clamp=None, flags=None, traps=None)
2909 self.assertEqual(c.clamp, 0)
2948 self.assertEqual(c.clamp, e.clamp)
2963 clamp = random.randrange(2)
2970 capitals=caps, clamp
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dcs4234.c451 .min = mclk / clamp(mclk / 30000, 256, 512), in cs4234_dai_rule_rate()
452 .max = mclk / clamp(mclk / 50000, 256, 512), in cs4234_dai_rule_rate()
455 .min = mclk / clamp(mclk / 60000, 128, 256), in cs4234_dai_rule_rate()
456 .max = mclk / clamp(mclk / 100000, 128, 256), in cs4234_dai_rule_rate()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_pack.c784 boolean clamp; in lp_build_packs2() local
792 clamp = TRUE; in lp_build_packs2()
795 * saturate them, so no need to clamp for those cases. */ in lp_build_packs2()
800 clamp = FALSE; in lp_build_packs2()
802 if(clamp) { in lp_build_packs2()
/kernel/linux/linux-5.10/drivers/leds/
H A Dleds-lm3533.c215 t = clamp(t, LM3533_LED_DELAY3_TMIN, LM3533_LED_DELAY3_TMAX); in lm3533_led_get_hw_delay()
221 t = clamp(t, LM3533_LED_DELAY2_TMIN, LM3533_LED_DELAY2_TMAX); in lm3533_led_get_hw_delay()
227 t = clamp(t, LM3533_LED_DELAY1_TMIN, LM3533_LED_DELAY1_TMAX); in lm3533_led_get_hw_delay()

Completed in 25 milliseconds

12345678910>>...36