| /OK3568_Linux_fs/kernel/drivers/macintosh/ |
| H A D | windfarm_cpufreq_clamp.c | 68 struct wf_control *clamp; in wf_cpufreq_clamp_init() local 99 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); in wf_cpufreq_clamp_init() 100 if (clamp == NULL) { in wf_cpufreq_clamp_init() 105 clamp->ops = &clamp_ops; in wf_cpufreq_clamp_init() 106 clamp->name = "cpufreq-clamp"; in wf_cpufreq_clamp_init() 107 ret = wf_register_control(clamp); in wf_cpufreq_clamp_init() 111 clamp_control = clamp; in wf_cpufreq_clamp_init() 115 kfree(clamp); in wf_cpufreq_clamp_init()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/include/mbgl/util/ |
| H A D | projection.hpp | 48 const double constrainedZoom = util::clamp(zoom, util::MIN_ZOOM, util::MAX_ZOOM); in getMetersPerPixelAtLatitude() 50 … const double constrainedLatitude = util::clamp(lat, -util::LATITUDE_MAX, util::LATITUDE_MAX); in getMetersPerPixelAtLatitude() 55 …const double constrainedLatitude = util::clamp(latLng.latitude(), -util::LATITUDE_MAX, util::LATIT… in projectedMetersForLatLng() 56 …const double constrainedLongitude = util::clamp(latLng.longitude(), -util::LONGITUDE_MAX, util::LO… in projectedMetersForLatLng() 59 const double f = util::clamp(std::sin(util::DEG2RAD * constrainedLatitude), -m, m); in projectedMetersForLatLng() 71 latitude = util::clamp(latitude, -util::LATITUDE_MAX, util::LATITUDE_MAX); in latLngForProjectedMeters() 72 longitude = util::clamp(longitude, -util::LONGITUDE_MAX, util::LONGITUDE_MAX); in latLngForProjectedMeters() 97 … const double latitude = util::clamp(latLng.latitude(), -util::LATITUDE_MAX, util::LATITUDE_MAX); in project_()
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | tcp_clamp_kern.c | 30 int clamp = 100; in bpf_clamp() local 71 &clamp, sizeof(clamp)); in bpf_clamp() 77 &clamp, sizeof(clamp)); in bpf_clamp()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/sunxi/ |
| H A D | psci.c | 79 static void __secure clamp_release(u32 __maybe_unused *clamp) in clamp_release() argument 87 writel(tmp, clamp); in clamp_release() 94 static void __secure clamp_set(u32 __maybe_unused *clamp) in clamp_set() argument 99 writel(0xff, clamp); in clamp_set() 103 static void __secure sunxi_power_switch(u32 *clamp, u32 *pwroff, bool on, in sunxi_power_switch() argument 108 clamp_release(clamp); in sunxi_power_switch() 117 clamp_set(clamp); in sunxi_power_switch()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/geometry/ |
| H A D | dem_data.cpp | 90 int32_t xMin = util::clamp(_xMin, -border, dim + border); in backfillBorder() 91 int32_t xMax = util::clamp(_xMax, -border, dim + border); in backfillBorder() 93 int32_t yMin = util::clamp(_yMin, -border, dim + border); in backfillBorder() 94 int32_t yMax = util::clamp(_yMax, -border, dim + border); in backfillBorder()
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/ |
| H A D | sh_css_param_shading.c | 132 src_y0 = clamp(src_y0, 0, (int)table_height - 1); in crop_and_interpolate() 133 src_y1 = clamp(src_y1, 0, (int)table_height - 1); in crop_and_interpolate() 134 ty = min(clamp(ty, 0, (int)sensor_height - 1), in crop_and_interpolate() 165 src_x0 = clamp(src_x0, 0, (int)table_width - 1); in crop_and_interpolate() 166 src_x1 = clamp(src_x1, 0, (int)table_width - 1); in crop_and_interpolate() 167 tx = min(clamp(tx, 0, (int)sensor_width - 1), in crop_and_interpolate()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/include/ |
| H A D | vec-perm-indices.h | 78 element_type clamp (element_type) const; 119 vec_perm_indices::clamp (element_type elt) const in clamp() function 140 return clamp (m_encoding.elt (i));
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/10.3.1/plugin/include/ |
| H A D | vec-perm-indices.h | 78 element_type clamp (element_type) const; 119 vec_perm_indices::clamp (element_type elt) const in clamp() function 140 return clamp (m_encoding.elt (i));
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/dpkg/dpkg/ |
| H A D | 0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch | 4 Subject: [PATCH] dpkg-deb/build.c: Remove usage of --clamp-mtime in tar 6 Recently dpkg added --clamp-mtime to tar to create reproducible 34 - "--mtime", mtime, "--clamp-mtime", NULL);
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/dnn/ |
| H A D | shape_utils.hpp | 198 inline int clamp(int ax, int dims) in clamp() function 203 inline int clamp(int ax, const MatShape& shape) in clamp() function 205 return clamp(ax, (int)shape.size()); in clamp() 208 inline Range clamp(const Range& r, int axisSize) in clamp() function
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/ |
| H A D | post_process.cc | 27 inline static int clamp(float val, int min, int max) in clamp() function 288 group->results[last_count].box.left = (int)(clamp(x1, 0, model_in_w) / scale_w); in post_process() 289 group->results[last_count].box.top = (int)(clamp(y1, 0, model_in_h) / scale_h); in post_process() 290 group->results[last_count].box.right = (int)(clamp(x2, 0, model_in_w) / scale_w); in post_process() 291 group->results[last_count].box.bottom = (int)(clamp(y2, 0, model_in_h) / scale_h); in post_process()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/util/ |
| H A D | tile_coordinate.hpp | 39 …int16_t(util::clamp<int64_t>((zoomed.p.x - tileID.canonical.x - tileID.wrap * scale) * util::EXTEN… in toGeometryCoordinate() 42 int16_t(util::clamp<int64_t>((zoomed.p.y - tileID.canonical.y) * util::EXTENT, in toGeometryCoordinate()
|
| H A D | tile_range.hpp | 29 const auto minY = static_cast<uint32_t>(util::clamp(std::floor(neProj.y), 0.0 , maxTile)); in fromLatLngBounds() 30 const auto maxY = static_cast<uint32_t>(util::clamp(std::floor(swProj.y), 0.0, maxTile)); in fromLatLngBounds()
|
| H A D | tile_cover_impl.cpp | 116 …const auto y = static_cast<uint32_t>(std::floor(clamp(to_max.points.front().y, 0.0, (double)maxTil… in build_bounds_map() 120 …const auto y = static_cast<uint32_t>(std::floor(clamp(to_min.points.front().y, 0.0, (double)maxTil… in build_bounds_map() 217 const auto y = static_cast<uint32_t>(std::floor(clamp(point.y, 0.0, (double)(1 << zoom)))); in operator ()() 232 … const auto y = static_cast<uint32_t>(std::floor(clamp(point.y, 0.0, (double)(1 << zoom)))); in operator ()()
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/src/ |
| H A D | postprocess.cc | 34 inline static int clamp(float val, int min, int max) { return val > min ? (val < max ? val : max) :… in clamp() function 319 group->results[last_count].box.left = (int)(clamp(x1, 0, model_in_w) / scale_w); in post_process() 320 group->results[last_count].box.top = (int)(clamp(y1, 0, model_in_h) / scale_h); in post_process() 321 group->results[last_count].box.right = (int)(clamp(x2, 0, model_in_w) / scale_w); in post_process() 322 group->results[last_count].box.bottom = (int)(clamp(y2, 0, model_in_h) / scale_h); in post_process()
|
| /OK3568_Linux_fs/external/rknpu2/examples/RV1106_RV1103/rknn_yolov5_demo/src/ |
| H A D | postprocess.cc | 32 inline static int clamp(float val, int min, int max) in clamp() function 352 group->results[last_count].box.left = (int)(clamp(x1, 0, model_in_w) / scale_w); in post_process() 353 group->results[last_count].box.top = (int)(clamp(y1, 0, model_in_h) / scale_h); in post_process() 354 group->results[last_count].box.right = (int)(clamp(x2, 0, model_in_w) / scale_w); in post_process() 355 group->results[last_count].box.bottom = (int)(clamp(y2, 0, model_in_h) / scale_h); in post_process()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/vsp1/ |
| H A D | vsp1_uds.c | 181 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format() 182 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format() 192 fmt->width = clamp(fmt->width, minimum, maximum); in uds_try_format() 194 fmt->height = clamp(fmt->height, minimum, maximum); in uds_try_format()
|
| /OK3568_Linux_fs/kernel/drivers/clk/ |
| H A D | clk-plldig.c | 134 div = clamp(div, 1UL, MAX_RFDPHI1); in plldig_calc_target_div() 145 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_determine_rate() 159 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_set_rate()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | memtest.c | 73 this_start = clamp(this_start, start, end); in do_one_pass() 74 this_end = clamp(this_end, start, end); in do_one_pass()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/style/conversion/ |
| H A D | tileset.cpp | 96 bottom = util::clamp(*bottom, -90.0, 90.0); in operator ()() 97 top = util::clamp(*top, -90.0, 90.0); in operator ()()
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | profile.c | 71 prof_shift = clamp(par, 0, BITS_PER_LONG - 1); in profile_setup() 82 prof_shift = clamp(par, 0, BITS_PER_LONG - 1); in profile_setup() 90 prof_shift = clamp(par, 0, BITS_PER_LONG - 1); in profile_setup() 94 prof_shift = clamp(par, 0, BITS_PER_LONG - 1); in profile_setup()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/ |
| H A D | ispccdc.c | 536 u32 clamp; in ccdc_configure_clamp() local 539 clamp = ccdc->clamp.obgain << ISPCCDC_CLAMP_OBGAIN_SHIFT; in ccdc_configure_clamp() 540 clamp |= ccdc->clamp.oblen << ISPCCDC_CLAMP_OBSLEN_SHIFT; in ccdc_configure_clamp() 541 clamp |= ccdc->clamp.oblines << ISPCCDC_CLAMP_OBSLN_SHIFT; in ccdc_configure_clamp() 542 clamp |= ccdc->clamp.obstpixel << ISPCCDC_CLAMP_OBST_SHIFT; in ccdc_configure_clamp() 543 isp_reg_writel(isp, clamp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_CLAMP); in ccdc_configure_clamp() 545 isp_reg_writel(isp, ccdc->clamp.dcsubval, in ccdc_configure_clamp() 684 if (copy_from_user(&ccdc->clamp, ccdc_struct->bclamp, in ccdc_config() 685 sizeof(ccdc->clamp))) { in ccdc_config() 858 div = clamp(div, 2U, max_div); in ccdc_config_vp() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thermal/intel/ |
| H A D | intel_powerclamp.c | 110 duration = clamp(new_duration, 6ul, 25ul); in duration_set() 158 window_size = clamp(new_window_size, 2ul, 10ul); in window_size_set() 529 set_target_ratio = clamp(set_target_ratio, 0U, MAX_TARGET_RATIO - 1); in start_power_clamp() 620 new_target_ratio = clamp(new_target_ratio, 0UL, in powerclamp_set_cur_state()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/map/ |
| H A D | transform_state.cpp | 182 min_scale = zoomScale(util::clamp(minZoom, util::MIN_ZOOM, util::MAX_ZOOM)); in setMinZoom() 197 max_scale = zoomScale(util::clamp(maxZoom, util::MIN_ZOOM, util::MAX_ZOOM)); in setMaxZoom() 385 double newScale = util::clamp(zoomScale(zoom), min_scale, max_scale); in setLatLngZoom() 391 const double f = util::clamp(std::sin(util::DEG2RAD * constrained.latitude()), -m, m); in setLatLngZoom()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/include/mbgl/math/ |
| H A D | clamp.hpp | 9 T clamp(T value, T min_, T max_) { in clamp() function
|