Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 122 of 122) sorted by relevance

/linux-4.4.14/drivers/macintosh/
Dwindfarm_cpufreq_clamp.c76 struct wf_control *clamp; in wf_cpufreq_clamp_init() local
78 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); in wf_cpufreq_clamp_init()
79 if (clamp == NULL) in wf_cpufreq_clamp_init()
82 clamp->ops = &clamp_ops; in wf_cpufreq_clamp_init()
83 clamp->name = "cpufreq-clamp"; in wf_cpufreq_clamp_init()
84 if (wf_register_control(clamp)) in wf_cpufreq_clamp_init()
86 clamp_control = clamp; in wf_cpufreq_clamp_init()
89 kfree(clamp); in wf_cpufreq_clamp_init()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_vp_layer.c160 dst->width = clamp(dst->width, 8U, 16 * src->full_width); in mxr_vp_fix_geometry()
161 dst->height = clamp(dst->height, 1U, 16 * src->full_height); in mxr_vp_fix_geometry()
176 src->width = clamp(src->width, round_up(dst->width / 16, 4), in mxr_vp_fix_geometry()
178 src->height = clamp(src->height, round_up(dst->height / 16, 4), in mxr_vp_fix_geometry()
182 src->width = clamp(src->width, 32U, 2047U); in mxr_vp_fix_geometry()
183 src->height = clamp(src->height, 4U, 2047U); in mxr_vp_fix_geometry()
197 src->full_width = clamp(src->full_width, in mxr_vp_fix_geometry()
199 src->full_height = clamp(src->full_height, in mxr_vp_fix_geometry()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_uds.c257 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
258 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
268 fmt->width = clamp(fmt->width, minimum, maximum); in uds_try_format()
270 fmt->height = clamp(fmt->height, minimum, maximum); in uds_try_format()
Dvsp1_sru.c260 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
261 fmt->height = clamp(fmt->height, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
Dvsp1_bru.c279 fmt->width = clamp(fmt->width, BRU_MIN_SIZE, BRU_MAX_SIZE); in bru_try_format()
280 fmt->height = clamp(fmt->height, BRU_MIN_SIZE, BRU_MAX_SIZE); in bru_try_format()
Dvsp1_video.c240 pix->width = clamp(width, VSP1_VIDEO_MIN_WIDTH, VSP1_VIDEO_MAX_WIDTH); in __vsp1_video_try_format()
241 pix->height = clamp(height, VSP1_VIDEO_MIN_HEIGHT, in __vsp1_video_try_format()
/linux-4.4.14/mm/
Dmemtest.c72 this_start = clamp(this_start, start, end); in do_one_pass()
73 this_end = clamp(this_end, start, end); in do_one_pass()
Dmemblock.c132 this_start = clamp(this_start, start, end); in __memblock_find_range_bottom_up()
133 this_end = clamp(this_end, start, end); in __memblock_find_range_bottom_up()
167 this_start = clamp(this_start, start, end); in __memblock_find_range_top_down()
168 this_end = clamp(this_end, start, end); in __memblock_find_range_top_down()
Dpage_alloc.c4992 start_pfn = clamp(start_pfn, range_start_pfn, range_end_pfn); in __absent_pages_in_range()
4993 end_pfn = clamp(end_pfn, range_start_pfn, range_end_pfn); in __absent_pages_in_range()
5027 zone_start_pfn = clamp(node_start_pfn, zone_low, zone_high); in zone_absent_pages_in_node()
5028 zone_end_pfn = clamp(node_end_pfn, zone_low, zone_high); in zone_absent_pages_in_node()
6067 min_pages = clamp(min_pages, SWAP_CLUSTER_MAX, 128UL); in __setup_per_zone_wmarks()
Dpercpu.c1167 nr_to_pop = clamp(PCPU_EMPTY_POP_PAGES_HIGH - in pcpu_balance_workfn()
Dpage-writeback.c785 return clamp(pos_ratio, 0LL, 2LL << RATELIMIT_CALC_SHIFT); in pos_ratio_polynom()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispccdc.c538 u32 clamp; in ccdc_configure_clamp() local
541 clamp = ccdc->clamp.obgain << ISPCCDC_CLAMP_OBGAIN_SHIFT; in ccdc_configure_clamp()
542 clamp |= ccdc->clamp.oblen << ISPCCDC_CLAMP_OBSLEN_SHIFT; in ccdc_configure_clamp()
543 clamp |= ccdc->clamp.oblines << ISPCCDC_CLAMP_OBSLN_SHIFT; in ccdc_configure_clamp()
544 clamp |= ccdc->clamp.obstpixel << ISPCCDC_CLAMP_OBST_SHIFT; in ccdc_configure_clamp()
545 isp_reg_writel(isp, clamp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_CLAMP); in ccdc_configure_clamp()
547 isp_reg_writel(isp, ccdc->clamp.dcsubval, in ccdc_configure_clamp()
686 if (copy_from_user(&ccdc->clamp, ccdc_struct->bclamp, in ccdc_config()
687 sizeof(ccdc->clamp))) { in ccdc_config()
860 div = clamp(div, 2U, max_div); in ccdc_config_vp()
[all …]
Dispccdc.h145 struct omap3isp_ccdc_bclamp clamp; member
Dispresizer.c806 output->height = clamp(output->height, min_height, max_height); in resizer_calc_ratios()
875 output->width = clamp(output->width, min_width, in resizer_calc_ratios()
Dispvideo.c168 bpl = clamp(bpl, min_bpl, video->bpl_max); in isp_video_mbus_to_pix()
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-tpg.c455 v = clamp(v, 0, 0xff0); in rec709_to_linear()
461 v = clamp(v, 0, 0xff0); in linear_to_rec709()
583 *r = clamp(*r >> 12, 0, 0xff0); in ycbcr2rgb()
584 *g = clamp(*g >> 12, 0, 0xff0); in ycbcr2rgb()
585 *b = clamp(*b >> 12, 0, 0xff0); in ycbcr2rgb()
767 r = clamp(r, 16 << 4, 235 << 4); in precalculate_color()
768 g = clamp(g, 16 << 4, 235 << 4); in precalculate_color()
769 b = clamp(b, 16 << 4, 235 << 4); in precalculate_color()
796 tpg->colors[k][0] = clamp(y >> 4, 1, 254); in precalculate_color()
797 tpg->colors[k][1] = clamp(cb >> 4, 1, 254); in precalculate_color()
[all …]
Dvivid-radio-rx.c204 freq = clamp(dev->radio_rx_freq, low, high); in vivid_radio_rx_s_hw_freq_seek()
Dvivid-tpg-colors.c1241 int clamp = 1; in csc() local
1277 if (clamp) { in csc()
/linux-4.4.14/drivers/thermal/
Dintel_powerclamp.c114 duration = clamp(new_duration, 6ul, 25ul); in duration_set()
162 window_size = clamp(new_window_size, 2ul, 10ul); in window_size_set()
519 set_target_ratio = clamp(set_target_ratio, 0U, MAX_TARGET_RATIO - 1); in start_power_clamp()
647 new_target_ratio = clamp(new_target_ratio, 0UL, in powerclamp_set_cur_state()
Dpower_allocator.c251 power_range = clamp(power_range, (s64)0, (s64)max_allocatable_power); in pid_controller()
/linux-4.4.14/sound/usb/line6/
Dplayback.c42 pv = clamp(val, -0x8000, 0x7fff); in change_volume()
57 val = clamp(val, -0x800000, 0x7fffff); in change_volume()
129 pov = clamp(val, -0x8000, 0x7fff); in add_monitor_signal()
/linux-4.4.14/drivers/clk/shmobile/
Dclk-rcar-gen2.c81 mult = clamp(mult, 1U, 32U); in cpg_z_clk_round_rate()
95 mult = clamp(mult, 1U, 32U); in cpg_z_clk_set_rate()
/linux-4.4.14/drivers/input/mouse/
Dfocaltech.c145 clamped_x = clamp(finger->x, 0U, priv->x_max); in focaltech_report_state()
146 clamped_y = clamp(finger->y, 0U, priv->y_max); in focaltech_report_state()
/linux-4.4.14/sound/soc/codecs/
Dsgtl5000.c343 l = clamp(l, 0x3c, 0xfc); in dac_get_volsw()
344 r = clamp(r, 0x3c, 0xfc); in dac_get_volsw()
391 l = clamp(l, 0, 0xfc - 0x3c); in dac_put_volsw()
392 r = clamp(r, 0, 0xfc - 0x3c); in dac_put_volsw()
800 reg = clamp(reg, 0x0, 0xf); in ldo_regulator_enable()
/linux-4.4.14/drivers/media/pci/zoran/
Dzoran_card.c798 settings->HorDcm = clamp(settings->HorDcm, 1, 2); in zoran_check_jpg_settings()
802 settings->VerDcm = clamp(settings->VerDcm, 1, 2); in zoran_check_jpg_settings()
806 settings->TmpDcm = clamp(settings->TmpDcm, 1, 2); in zoran_check_jpg_settings()
811 settings->field_per_buff = clamp(settings->field_per_buff, 1, 2); in zoran_check_jpg_settings()
823 settings->img_width = clamp(settings->img_width, 0, (int)BUZ_MAX_WIDTH); in zoran_check_jpg_settings()
827 settings->img_height = clamp(settings->img_height, 0, BUZ_MAX_HEIGHT / 2); in zoran_check_jpg_settings()
/linux-4.4.14/lib/
Ddynamic_queue_limits.c100 limit = clamp(limit, dql->min_limit, dql->max_limit); in dql_completed()
/linux-4.4.14/drivers/cpufreq/
Damd_freq_sensitivity.c81 clamp(sensitivity, 0, POWERSAVE_BIAS_MAX); in amd_powersave_bias_target()
/linux-4.4.14/drivers/clk/tegra/
Dcvb.c84 dfll_mv = clamp(dfll_mv, min_mv, max_mv); in build_opp_table()
Dclk-dfll.c726 force_val = clamp(force_val, FORCE_MIN, FORCE_MAX); in dfll_set_frequency_request()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv30.c85 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); in calc_ref()
/linux-4.4.14/drivers/gpu/ipu-v3/
Dipu-di.c441 div = clamp(div, 1U, 255U); in ipu_di_config_clock()
458 div = clamp(div, 1U, 255U); in ipu_di_config_clock()
481 div = clamp(div, 1U, 255U); in ipu_di_config_clock()
/linux-4.4.14/drivers/extcon/
Dextcon-arizona.c149 bool clamp) in arizona_extcon_hp_clamp() argument
165 if (clamp) { in arizona_extcon_hp_clamp()
183 if (clamp) in arizona_extcon_hp_clamp()
190 arizona->hpdet_clamp = clamp; in arizona_extcon_hp_clamp()
193 if (clamp) { in arizona_extcon_hp_clamp()
219 if (!clamp) { in arizona_extcon_hp_clamp()
/linux-4.4.14/drivers/gpu/drm/rcar-du/
Drcar_du_encoder.c96 adjusted_mode->clock = clamp(adjusted_mode->clock, in rcar_du_encoder_atomic_check()
Drcar_du_hdmienc.c78 adjusted_mode->clock = clamp(adjusted_mode->clock, in rcar_du_hdmienc_atomic_check()
Drcar_du_crtc.c122 div = clamp(div, 1U, 64U) - 1; in rcar_du_crtc_set_display_timing()
133 extdiv = clamp(extdiv, 1U, 64U) - 1; in rcar_du_crtc_set_display_timing()
/linux-4.4.14/drivers/media/i2c/
Dmt9v032.c530 width = clamp(ALIGN(format->format.width, 2), in mt9v032_set_format()
534 height = clamp(ALIGN(format->format.height, 2), in mt9v032_set_format()
586 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, in mt9v032_set_selection()
589 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection()
Dmt9m032.c464 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_selection()
466 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_selection()
Dmt9t001.c432 rect.left = clamp(ALIGN(sel->r.left, 2), in mt9t001_set_selection()
435 rect.top = clamp(ALIGN(sel->r.top, 2), in mt9t001_set_selection()
Dtvp5150.c872 rect.left = clamp(rect.left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
876 rect.top = clamp(rect.top, 0, TVP5150_MAX_CROP_TOP); in tvp5150_s_crop()
Dmt9p031.c612 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_selection()
614 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_selection()
/linux-4.4.14/drivers/media/radio/
Dtef6862.c115 freq = clamp(freq, TEF6862_LO_FREQ, TEF6862_HI_FREQ); in tef6862_s_frequency()
Dradio-tea5777.c192 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
415 tea->freq = clamp(tea->freq, rangelow, in vidioc_s_hw_freq_seek()
Dtea575x.c185 return clamp(freq * 16, bands[tea->band].rangelow, in snd_tea575x_val_to_freq()
402 tea->freq = clamp(tea->freq, bands[i].rangelow, in snd_tea575x_s_hw_freq_seek()
Dradio-sf16fmi.c123 fmi->curfreq = clamp(fmi->curfreq, RSF16_MINFREQ, RSF16_MAXFREQ); in fmi_set_freq()
Dradio-keene.c225 freq = clamp(freq, FREQ_MIN * FREQ_MUL, FREQ_MAX * FREQ_MUL); in vidioc_s_frequency()
Dradio-isa.c113 freq = clamp(freq, FREQ_LOW, FREQ_HIGH); in radio_isa_s_frequency()
Dradio-tea5764.c359 freq = clamp(freq, FREQ_MIN * FREQ_MUL, FREQ_MAX * FREQ_MUL); in vidioc_s_frequency()
Dradio-cadet.c219 freq = clamp(freq, bands[dev->is_fm_band].rangelow, in cadet_setfreq()
Dradio-si476x.c722 freq = clamp(freq, in si476x_radio_s_frequency()
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-dma.c573 pix->width = clamp(width, min_width, max_width) / info->bpp; in __xvip_dma_try_format()
574 pix->height = clamp(pix->height, XVIP_DMA_MIN_HEIGHT, in __xvip_dma_try_format()
585 pix->bytesperline = clamp(bpl, min_bpl, max_bpl); in __xvip_dma_try_format()
/linux-4.4.14/drivers/leds/
Dleds-lm3533.c233 t = clamp(t, LM3533_LED_DELAY3_TMIN, LM3533_LED_DELAY3_TMAX); in lm3533_led_get_hw_delay()
239 t = clamp(t, LM3533_LED_DELAY2_TMIN, LM3533_LED_DELAY2_TMAX); in lm3533_led_get_hw_delay()
245 t = clamp(t, LM3533_LED_DELAY1_TMIN, LM3533_LED_DELAY1_TMAX); in lm3533_led_get_hw_delay()
Dled-class-flash.c341 v = clamp(v, s->min, s->max); in led_clamp_align()
/linux-4.4.14/drivers/mtd/nand/
Dtxx9ndfmc.c300 hold = clamp(hold, 1, 15); in txx9ndfmc_probe()
302 spw = clamp(spw, 1, 15); in txx9ndfmc_probe()
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-vbi.c283 start = clamp(f->start[i], min_start, max_start); in try_fmt()
287 f->count[i] = clamp(count, (s64) 1, in try_fmt()
Dbttv-driver.c2062 *width = clamp(*width, min_width, max_width); in limit_scaled_size_lock()
2063 *height = clamp(*height, min_height, max_height); in limit_scaled_size_lock()
/linux-4.4.14/sound/usb/
Dmixer_scarlett.c326 val = clamp(val / 256, -128, (int)kctl->private_value) + in scarlett_ctl_get()
421 val = clamp(val - opt->start, 0, opt->len-1); in scarlett_ctl_enum_get()
476 ucontrol->value.enumerated.item[0] = clamp((int)buf[0], 0, 1); in scarlett_ctl_meter_get()
/linux-4.4.14/drivers/media/usb/gspca/
Dstk1135.c620 fmt->fmt.pix.width = clamp(fmt->fmt.pix.width, 32U, 1280U); in stk1135_try_fmt()
621 fmt->fmt.pix.height = clamp(fmt->fmt.pix.height, 32U, 1024U); in stk1135_try_fmt()
/linux-4.4.14/drivers/staging/iio/impedance-analyzer/
Dad5933.c435 val = clamp(val, (u16)0, (u16)0x7FF); in ad5933_store()
449 val = clamp(val, (u16)0, (u16)511); in ad5933_store()
/linux-4.4.14/drivers/pwm/
Dpwm-lp3943.c124 period_ns = clamp(period_ns, LP3943_MIN_PERIOD, LP3943_MAX_PERIOD); in lp3943_pwm_config()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dstats.c42 char ret_val = clamp(-value, 0, 33) * 3; in rtl_evm_db_to_percentage()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-common.c314 x = clamp(x, (min + ~mask) & mask, max & mask); in clamp_align()
/linux-4.4.14/drivers/spi/
Dspi-rspi.c268 rspi_write8(rspi, clamp(spbr, 0, 255), RSPI_SPBR); in rspi_set_config_register()
305 rspi_write8(rspi, clamp(spbr, 0, 255), RSPI_SPBR); in rspi_rz_set_config_register()
338 rspi_write8(rspi, clamp(spbr, 0, 255), RSPI_SPBR); in qspi_set_config_register()
Dspi-txx9.c193 n = clamp(n, SPI_MIN_DIVIDER, SPI_MAX_DIVIDER); in txx9spi_work_one()
Dspi-coldfire-qspi.c143 return clamp((MCFQSPI_BUSCLK + speed_hz - 1) / speed_hz, 2u, 255u); in mcfqspi_qmr_baud()
Dspi-img-spfi.c504 div = clamp(512 / (1 << get_count_order(div)), 1, 128); in img_spfi_config()
Dspi-ep93xx.c209 rate = clamp(rate, master->min_speed_hz, master->max_speed_hz); in ep93xx_spi_calc_divisors()
/linux-4.4.14/Documentation/input/
Drotary-encoder.txt90 and the number of steps or will clamp at the maximum and zero depending on
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks.c238 snd_efw_resp_buf_size = clamp(snd_efw_resp_buf_size, in efw_probe()
/linux-4.4.14/drivers/iio/frequency/
Dad9523.c684 tmp = clamp(tmp, 1, 1024); in ad9523_write_raw()
691 tmp = clamp(tmp, 0, 63); in ad9523_write_raw()
/linux-4.4.14/drivers/usb/gadget/function/
Df_uvc.c593 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
594 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind()
/linux-4.4.14/net/ipv4/
Dtcp_cubic.c44 #define HYSTART_DELAY_THRESH(x) clamp(x, HYSTART_DELAY_MIN, HYSTART_DELAY_MAX)
/linux-4.4.14/arch/x86/oprofile/
Dop_model_amd.c222 val = clamp(val, 0x0081ULL, 0xFF80ULL); in op_amd_start_ibs()
/linux-4.4.14/drivers/scsi/
Daha1542.c668 u8 oncmd[] = { CMD_BUSON_TIME, clamp(bus_on, 2, 15) }; in aha1542_set_bus_times()
676 u8 offcmd[] = { CMD_BUSOFF_TIME, clamp(bus_off, 1, 64) }; in aha1542_set_bus_times()
Dscsi_debug.c4895 clamp(scsi_debug_unmap_max_blocks, 0U, 0xffffffffU); in scsi_debug_init()
4898 clamp(scsi_debug_unmap_max_desc, 0U, 256U); in scsi_debug_init()
4901 clamp(scsi_debug_unmap_granularity, 1U, 0xffffffffU); in scsi_debug_init()
/linux-4.4.14/drivers/input/
Dmousedev.c184 value = clamp(value, min, max); in mousedev_abs_event()
198 value = clamp(value, min, max); in mousedev_abs_event()
Dinput.c1974 mt_slots = clamp(mt_slots, 2, 32); in input_estimate_events_per_packet()
/linux-4.4.14/drivers/media/tuners/
Dmsi001.c185 bandwidth = clamp(bandwidth, 200000U, 8000000U); in msi001_set_tuner()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_dp_helper.c686 dp_aux_i2c_transfer_size = clamp(dp_aux_i2c_transfer_size, 1, DP_AUX_MAX_PAYLOAD_BYTES); in drm_dp_i2c_xfer()
/linux-4.4.14/drivers/media/radio/si470x/
Dradio-si470x-common.c287 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp-core.c1812 clamp(fmt->format.width, in smiapp_set_format()
1816 clamp(fmt->format.height, in smiapp_set_format()
1957 a = clamp(a, sensor->limits[SMIAPP_LIMIT_SCALER_M_MIN], in smiapp_set_compose_scaler()
1959 b = clamp(b, sensor->limits[SMIAPP_LIMIT_SCALER_M_MIN], in smiapp_set_compose_scaler()
1961 max_m = clamp(max_m, sensor->limits[SMIAPP_LIMIT_SCALER_M_MIN], in smiapp_set_compose_scaler()
/linux-4.4.14/drivers/i2c/busses/
Di2c-ocores.c251 prescale = clamp(prescale, 0, 0xffff); in ocores_init()
Di2c-omap.c592 omap->threshold = clamp(size, (u8) 1, omap->fifo_size); in omap_i2c_resize_fifo()
/linux-4.4.14/include/linux/
Dkernel.h755 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) macro
Dusb.h1599 interval = clamp(interval, 1, 16); in usb_fill_int_urb()
/linux-4.4.14/drivers/gpu/drm/gma500/
Dtc35876x-dsi-lvds.c483 level = clamp(level, 0, MDFLD_DSI_BRIGHTNESS_MAX_LEVEL); in tc35876x_brightness_control()
/linux-4.4.14/drivers/media/dvb-frontends/
Dts2020.c285 f3db = clamp(f3db, 7000U, 40000U); in ts2020_set_params()
Dtda10071.c531 uitmp = clamp(uitmp, 181U, 236U); /* -75dBm - -20dBm */ in tda10071_read_signal_strength()
/linux-4.4.14/arch/arm/boot/dts/
Domap3-lilly-a83x.dtsi130 * reset can't be controlled. So we clamp this GPIO to
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Drx.c430 status->rate_idx = clamp(0, 75, head->plcp[3] & 0x7f); in carl9170_rx_mac_status()
/linux-4.4.14/Documentation/fb/
Dintel810.txt111 IMPORTANT: If you need to clamp your timings, try to give some
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c1120 uitmp = clamp(f->frequency, bands_adc_dac[0].rangelow, in hackrf_s_frequency()
1130 uitmp = clamp(f->frequency, bands_rx_tx[0].rangelow, in hackrf_s_frequency()
/linux-4.4.14/Documentation/DocBook/
Ddevice-drivers.xml.db212 API-clamp
213 API-clamp-t
214 API-clamp-val
/linux-4.4.14/drivers/usb/core/
Dconfig.c212 n = clamp(fls(d->bInterval), i, j); in usb_parse_endpoint()
/linux-4.4.14/drivers/staging/iio/adc/
Dad7280a.c656 val = clamp(val, 0L, 0xFFL); in ad7280_write_channel_config()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_sync.c1793 count = clamp(sysctl_sync_ports(ipvs), 1, IPVS_SYNC_PORTS_MAX); in start_sync_thread()
1816 clamp(dev->mtu, 1500U, 65535U) : 1500U; in start_sync_thread()
/linux-4.4.14/drivers/media/platform/davinci/
Dvpfe_capture.c903 pixfmt->width = clamp((pixfmt->width), min_width, max_width); in vpfe_check_format()
904 pixfmt->height = clamp((pixfmt->height), min_height, max_height); in vpfe_check_format()
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_ctrl.c1512 xctrl->value = clamp(xctrl->value, min, max); in uvc_ctrl_set()
1519 xctrl->value = clamp(xctrl->value, 0, 1); in uvc_ctrl_set()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_panel.c417 source_val = clamp(source_val, source_min, source_max); in scale()
446 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); in clamp_user_to_hw()
/linux-4.4.14/drivers/net/wireless/p54/
Dtxrx.c589 survey->noise = clamp(priv->noise, -128, 127); in p54_rx_stats()
/linux-4.4.14/drivers/media/platform/omap/
Domap_vout.c154 pix->height = clamp(pix->height, (u32)VID_MIN_HEIGHT, in omap_vout_try_format()
156 pix->width = clamp(pix->width, (u32)VID_MIN_WIDTH, (u32)VID_MAX_WIDTH); in omap_vout_try_format()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-ioctl.c871 sel->r.width = clamp(sel->r.width, 16U, r.width); in ivtv_s_selection()
872 sel->r.height = clamp(sel->r.height, 16U, r.height); in ivtv_s_selection()
/linux-4.4.14/drivers/firewire/
Dcore-transaction.c1081 cycles = clamp(cycles, 800u, 3u * 8000u); in update_split_timeout()
Dnet.c476 max_rec = clamp(max_rec, 8U, 11U); /* 512...4096 */ in fwnet_max_payload()
/linux-4.4.14/drivers/media/pci/saa7164/
Dsaa7164-encoder.c392 port->freq = clamp(f->frequency, in saa7164_s_frequency()
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss_video.c144 bpl = clamp(bpl, min_bpl, video->bpl_max); in iss_video_mbus_to_pix()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_debug.c597 signal_strength = clamp(signal_strength, 0, 100); in proc_set_rx_signal()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dphy.c1821 i_coff = clamp(i_coff, -32, 31); /* signed 6 bit */ in ath5k_hw_rf511x_iq_calibrate()
1827 q_coff = clamp(q_coff, -16, 15); /* signed 5 bit */ in ath5k_hw_rf511x_iq_calibrate()
/linux-4.4.14/kernel/sched/
Dfair.c1689 p->numa_scan_period = clamp(p->numa_scan_period + diff, in update_task_scan_period()
6130 interval = clamp(interval, 1UL, max_load_balance_interval); in update_group_capacity()
7222 interval = clamp(interval, 1UL, max_load_balance_interval); in get_sd_balance_interval()
8214 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES)); in sched_group_set_shares()
Dcore.c3532 increment = clamp(increment, -NICE_WIDTH, NICE_WIDTH); in SYSCALL_DEFINE1()
4171 attr->sched_nice = clamp(attr->sched_nice, MIN_NICE, MAX_NICE); in sched_copy_attr()
/linux-4.4.14/drivers/video/fbdev/
Ds3fb.c902 value = clamp((htotal + hsstart + 1) / 2 + 2, hsstart + 4, htotal + 1); in s3fb_set_par()
/linux-4.4.14/drivers/net/ethernet/adi/
Dbfin_mac.c1850 rc = clamp(mii_bus_pd->phydev_number, 0, PHY_MAX_ADDR); in bfin_mii_bus_probe()
/linux-4.4.14/drivers/crypto/
Dpicoxcell_crypto.c1199 thresh = clamp(thresh, 1UL, engine->fifo_sz - 1); in spacc_stat_irq_thresh_store()
/linux-4.4.14/drivers/platform/x86/
Dasus-wmi.c1245 value = clamp(value, 0, 255); in pwm1_store()
/linux-4.4.14/drivers/tty/serial/
Dsh-sci.c1885 br = clamp(br, 0, 255); in sci_baud_calc_hscif()
/linux-4.4.14/fs/gfs2/
Drgrp.c1516 extlen = clamp(extlen, RGRP_RSRV_MINBLKS, free_blocks); in rg_mblk_search()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c1912 bytes = clamp(bytes, (u16)1024, (u16)I40E_MAX_AQ_BUF_SIZE); in i40e_dbg_command_write()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1321 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()
/linux-4.4.14/drivers/media/platform/coda/
Dcoda-common.c424 return round_up(clamp(sizeimage, width * height / 8, in coda_estimate_sizeimage()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c2206 timer_index = clamp(timer_index, 0, SGE_TIMERREGS - 1); in napi_rx_handler()
/linux-4.4.14/net/netfilter/
DKconfig942 -j TCPMSS --clamp-mss-to-pmtu
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c73 nq = clamp(nq, 1, BNX2X_MAX_QUEUES(bp)); in bnx2x_calc_num_queues()
/linux-4.4.14/drivers/ata/
Dlibata-core.c6120 host->n_tags = clamp(sht->can_queue, 1, ATA_MAX_QUEUE - 1); in ata_host_register()