Searched refs:clamp_t (Results 1 - 112 of 112) sorted by relevance

/linux-4.1.27/arch/x86/kernel/
H A Dcheck.c95 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), setup_bios_corruption_check()
97 end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE), setup_bios_corruption_check()
/linux-4.1.27/drivers/media/platform/vsp1/
H A Dvsp1_hsit.c138 format->width = clamp_t(unsigned int, fmt->format.width, hsit_set_format()
140 format->height = clamp_t(unsigned int, fmt->format.height, hsit_set_format()
H A Dvsp1_lif.c170 format->width = clamp_t(unsigned int, fmt->format.width, lif_set_format()
172 format->height = clamp_t(unsigned int, fmt->format.height, lif_set_format()
H A Dvsp1_lut.c179 format->width = clamp_t(unsigned int, fmt->format.width, lut_set_format()
181 format->height = clamp_t(unsigned int, fmt->format.height, lut_set_format()
H A Dvsp1_rwpf.c124 format->width = clamp_t(unsigned int, fmt->format.width, vsp1_rwpf_set_format()
126 format->height = clamp_t(unsigned int, fmt->format.height, vsp1_rwpf_set_format()
H A Dvsp1_bru.c367 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); bru_set_selection()
368 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); bru_set_selection()
H A Dvsp1_video.c254 bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, __vsp1_video_try_format()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_rect.c77 src->x1 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); drm_rect_clip_scaled()
82 src->y1 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); drm_rect_clip_scaled()
87 src->x2 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); drm_rect_clip_scaled()
92 src->y2 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); drm_rect_clip_scaled()
/linux-4.1.27/lib/
H A Dnotifier-error-inject.c7 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); debugfs_errno_set()
/linux-4.1.27/drivers/watchdog/
H A Dstmp3xxx_rtc_wdt.c78 stmp3xxx_wdd.timeout = clamp_t(unsigned, heartbeat, 1, STMP3XXX_MAX_TIMEOUT); stmp3xxx_wdt_probe()
H A Dimx2_wdt.c265 wdog->timeout = clamp_t(unsigned, timeout, 1, IMX2_WDT_MAX_TIME); imx2_wdt_probe()
/linux-4.1.27/drivers/staging/media/omap4iss/
H A Diss_ipipeif.c405 fmt->width = clamp_t(u32, width, 1, 8192); ipipeif_try_format()
406 fmt->height = clamp_t(u32, height, 1, 8192); ipipeif_try_format()
419 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); ipipeif_try_format()
421 fmt->height = clamp_t(u32, height, 32, fmt->height); ipipeif_try_format()
429 fmt->width = clamp_t(u32, width, 32, fmt->width); ipipeif_try_format()
430 fmt->height = clamp_t(u32, height, 32, fmt->height); ipipeif_try_format()
H A Diss_ipipe.c217 fmt->width = clamp_t(u32, width, 1, 8192); ipipe_try_format()
218 fmt->height = clamp_t(u32, height, 1, 8192); ipipe_try_format()
227 fmt->width = clamp_t(u32, width, 32, fmt->width); ipipe_try_format()
228 fmt->height = clamp_t(u32, height, 32, fmt->height); ipipe_try_format()
H A Diss_resizer.c462 fmt->width = clamp_t(u32, width, 1, 8192); resizer_try_format()
463 fmt->height = clamp_t(u32, height, 1, 8192); resizer_try_format()
481 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); resizer_try_format()
483 fmt->height = clamp_t(u32, height, 32, fmt->height); resizer_try_format()
H A Diss_csi2.c862 fmt->width = clamp_t(u32, fmt->width, 1, 8191); csi2_try_format()
863 fmt->height = clamp_t(u32, fmt->height, 1, 8191); csi2_try_format()
/linux-4.1.27/drivers/cpufreq/
H A Dintel_pstate.c403 limits.no_turbo = clamp_t(int, input, 0, 1); store_no_turbo()
421 limits.max_sysfs_pct = clamp_t(int, input, 0 , 100); store_max_perf_pct()
440 limits.min_sysfs_pct = clamp_t(int, input, 0 , 100); store_min_perf_pct()
530 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); byt_set_pstate()
701 *max = clamp_t(int, max_perf_adj, intel_pstate_get_min_max()
705 *min = clamp_t(int, min_perf, cpu->pstate.min_pstate, max_perf); intel_pstate_get_min_max()
716 pstate = clamp_t(int, pstate, min_perf, max_perf); intel_pstate_set_pstate()
979 limits.min_policy_pct = clamp_t(int, limits.min_policy_pct, 0 , 100); intel_pstate_set_policy()
984 limits.max_policy_pct = clamp_t(int, limits.max_policy_pct, 0 , 100); intel_pstate_set_policy()
/linux-4.1.27/drivers/video/backlight/
H A Dlv5207lp.c118 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, lv5207lp_probe()
H A Dbd6107.c160 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, bd6107_probe()
/linux-4.1.27/arch/powerpc/platforms/85xx/
H A Dp1022_rdk.c75 pxclk = clamp_t(u32, pxclk, 2, 255); p1022rdk_set_pixel_clock()
H A Dp1022_ds.c405 pxclk = clamp_t(u32, pxclk, 2, 255); p1022ds_set_pixel_clock()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-vid-cap.c1083 win->w.left = clamp_t(int, win->w.left, vidioc_try_fmt_vid_overlay()
1085 win->w.top = clamp_t(int, win->w.top, vidioc_try_fmt_vid_overlay()
1104 r->top = clamp_t(s32, r->top, 0, dev->fb_cap.fmt.height - 1); vidioc_try_fmt_vid_overlay()
1105 r->height = clamp_t(s32, r->height, 1, dev->fb_cap.fmt.height - r->top); vidioc_try_fmt_vid_overlay()
1106 r->left = clamp_t(u32, r->left, 0, dev->fb_cap.fmt.width - 1); vidioc_try_fmt_vid_overlay()
1107 r->width = clamp_t(u32, r->width, 1, dev->fb_cap.fmt.width - r->left); vidioc_try_fmt_vid_overlay()
1238 dev->overlay_cap_left = clamp_t(int, dev->overlay_cap_left, vivid_vid_cap_s_fbuf()
1240 dev->overlay_cap_top = clamp_t(int, dev->overlay_cap_top, vivid_vid_cap_s_fbuf()
1433 dev->tv_freq = clamp_t(unsigned, vf->frequency, MIN_TV_FREQ, MAX_TV_FREQ); vivid_video_s_frequency()
H A Dvivid-radio-common.c177 freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow, vivid_radio_s_frequency()
H A Dvivid-vid-out.c863 win->w.left = clamp_t(int, win->w.left, vidioc_try_fmt_vid_out_overlay()
865 win->w.top = clamp_t(int, win->w.top, vidioc_try_fmt_vid_out_overlay()
885 r->top = clamp_t(s32, r->top, 0, dev->display_height - 1); vidioc_try_fmt_vid_out_overlay()
886 r->height = clamp_t(s32, r->height, 1, dev->display_height - r->top); vidioc_try_fmt_vid_out_overlay()
887 r->left = clamp_t(u32, r->left, 0, dev->display_width - 1); vidioc_try_fmt_vid_out_overlay()
888 r->width = clamp_t(u32, r->width, 1, dev->display_width - r->left); vidioc_try_fmt_vid_out_overlay()
H A Dvivid-sdr-cap.c358 freq = clamp_t(unsigned, freq, vivid_sdr_s_frequency()
372 dev->sdr_fm_freq = clamp_t(unsigned, freq, vivid_sdr_s_frequency()
H A Dvivid-core.c1302 n_devs = clamp_t(unsigned, n_devs, 1, VIVID_MAX_DEVS); vivid_probe()
/linux-4.1.27/drivers/media/i2c/
H A Dmt9t001.c382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), mt9t001_set_format()
386 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), mt9t001_set_format()
438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), mt9t001_set_selection()
441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), mt9t001_set_selection()
H A Dmt9m032.c223 vblank = clamp_t(unsigned int, vblank, min_vblank, MT9M032_VBLANK_MAX); mt9m032_update_timing()
468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), mt9m032_set_pad_selection()
470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), mt9m032_set_pad_selection()
H A Ds5k6aa.c1147 crop->width = clamp_t(unsigned int, crop->width, mf->width, s5k6aa_set_fmt()
1149 crop->height = clamp_t(unsigned int, crop->height, mf->height, s5k6aa_set_fmt()
1151 crop->left = clamp_t(unsigned int, crop->left, 0, s5k6aa_set_fmt()
1153 crop->top = clamp_t(unsigned int, crop->top, 0, s5k6aa_set_fmt()
1216 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x); s5k6aa_set_selection()
1217 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, max_y); s5k6aa_set_selection()
H A Dmt9p031.c562 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), mt9p031_set_format()
566 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), mt9p031_set_format()
616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), mt9p031_set_selection()
619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), mt9p031_set_selection()
H A Dmt9v032.c592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), mt9v032_set_selection()
595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), mt9v032_set_selection()
H A Dtvp5150.c867 rect.width = clamp_t(unsigned int, rect.width, tvp5150_s_crop()
883 rect.height = clamp_t(unsigned int, rect.height, tvp5150_s_crop()
H A Ds5k5baf.c1156 state->req_fiv = clamp_t(u32, s5k5baf_set_frame_interval()
/linux-4.1.27/drivers/net/wireless/orinoco/
H A Dscan.c23 (clamp_t(s32, (x), MIN_SIGNAL_LEVEL, MAX_SIGNAL_LEVEL) \
/linux-4.1.27/drivers/media/platform/xilinx/
H A Dxilinx-vip.c153 format->width = clamp_t(unsigned int, fmt->format.width, xvip_set_format_size()
155 format->height = clamp_t(unsigned int, fmt->format.height, xvip_set_format_size()
/linux-4.1.27/drivers/media/platform/omap3isp/
H A Dispccp2.c263 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 65536); ccp2_vp_config()
268 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 4); ccp2_vp_config()
650 fmt->width = clamp_t(u32, fmt->width, ccp2_try_format()
653 fmt->height = clamp_t(u32, fmt->height, ccp2_try_format()
657 fmt->width = clamp_t(u32, fmt->width, ccp2_try_format()
660 fmt->height = clamp_t(u32, fmt->height, ccp2_try_format()
H A Dispresizer.c813 ratio->vert = clamp_t(unsigned int, ratio->vert, resizer_calc_ratios()
884 ratio->horz = clamp_t(unsigned int, ratio->horz, resizer_calc_ratios()
1203 crop->width = clamp_t(u32, crop->width, min_width, max_width); resizer_try_crop()
1204 crop->height = clamp_t(u32, crop->height, min_height, max_height); resizer_try_crop()
1207 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); resizer_try_crop()
1208 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, resizer_try_crop()
1210 crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); resizer_try_crop()
1211 crop->height = clamp_t(u32, crop->height, MIN_IN_HEIGHT, resizer_try_crop()
1391 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, resizer_try_format()
1393 fmt->height = clamp_t(u32, fmt->height, MIN_IN_HEIGHT, resizer_try_format()
H A Disppreview.c1759 fmt->width = clamp_t(u32, fmt->width, PREV_MIN_IN_WIDTH, preview_try_format()
1761 fmt->height = clamp_t(u32, fmt->height, preview_try_format()
1856 crop->left = clamp_t(u32, crop->left, left, right - PREV_MIN_OUT_WIDTH); preview_try_crop()
1857 crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); preview_try_crop()
1858 crop->width = clamp_t(u32, crop->width, PREV_MIN_OUT_WIDTH, preview_try_crop()
1860 crop->height = clamp_t(u32, crop->height, PREV_MIN_OUT_HEIGHT, preview_try_crop()
H A Dispccdc.c1989 fmt->width = clamp_t(u32, width, 32, 4096); ccdc_try_format()
1990 fmt->height = clamp_t(u32, height, 32, 4096); ccdc_try_format()
2058 fmt->width = clamp_t(u32, width, 32, fmt->width); ccdc_try_format()
2059 fmt->height = clamp_t(u32, height, 32, fmt->height - 1); ccdc_try_format()
2091 crop->left = clamp_t(u32, crop->left, 0, sink->width - CCDC_MIN_WIDTH); ccdc_try_crop()
2092 crop->top = clamp_t(u32, crop->top, 0, sink->height - CCDC_MIN_HEIGHT); ccdc_try_crop()
2100 crop->width = clamp_t(u32, crop->width, CCDC_MIN_WIDTH, max_width) ccdc_try_crop()
2102 crop->height = clamp_t(u32, crop->height, CCDC_MIN_HEIGHT, ccdc_try_crop()
H A Dispcsi2.c575 clamp_t(unsigned int, pipe->l3_ick / pipe->external_rate - 1, csi2_configure()
869 fmt->width = clamp_t(u32, fmt->width, 1, 8191); csi2_try_format()
870 fmt->height = clamp_t(u32, fmt->height, 1, 8191); csi2_try_format()
/linux-4.1.27/drivers/clk/shmobile/
H A Dclk-div6.c97 return clamp_t(unsigned int, div, 1, 64); cpg_div6_clock_calc_div()
/linux-4.1.27/arch/powerpc/platforms/86xx/
H A Dmpc8610_hpcd.c261 pxclk = clamp_t(u32, pxclk, 2, 31); mpc8610hpcd_set_pixel_clock()
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
H A Ddm365_resizer.c1344 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, resizer_try_format()
1346 fmt->height = clamp_t(u32, fmt->height, MIN_IN_HEIGHT, resizer_try_format()
1361 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_WIDTH, resizer_try_format()
1364 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_HEIGHT, resizer_try_format()
1379 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_WIDTH, resizer_try_format()
1382 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_HEIGHT, resizer_try_format()
H A Ddm365_ipipeif.c639 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_HEIGHT, max_out_width); ipipeif_try_format()
640 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_WIDTH, max_out_height); ipipeif_try_format()
H A Ddm365_ipipe.c1471 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_HEIGHT, max_out_width); ipipe_try_format()
1472 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_WIDTH, max_out_height); ipipe_try_format()
H A Ddm365_isif.c302 fmt->format.width = clamp_t(u32, width, 32, MAX_WIDTH); isif_try_format()
303 fmt->format.height = clamp_t(u32, height, 32, MAX_HEIGHT); isif_try_format()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40evf_ethtool.c252 new_tx_count = clamp_t(u32, ring->tx_pending, i40evf_set_ringparam()
257 new_rx_count = clamp_t(u32, ring->rx_pending, i40evf_set_ringparam()
/linux-4.1.27/drivers/media/usb/airspy/
H A Dairspy.c772 s->f_adc = clamp_t(unsigned int, f->frequency, airspy_s_frequency()
778 s->f_rf = clamp_t(unsigned int, f->frequency, airspy_s_frequency()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Di915_sysfs.c419 val = clamp_t(int, dev_priv->rps.cur_freq, gt_max_freq_mhz_store()
478 val = clamp_t(int, dev_priv->rps.cur_freq, gt_min_freq_mhz_store()
H A Dintel_panel.c1143 min = clamp_t(int, dev_priv->vbt.backlight.min_brightness, 0, 64); get_backlight_min_vbt()
H A Di915_irq.c1134 new_delay = clamp_t(int, new_delay, gen6_pm_rps_work()
H A Dintel_dp.c967 ret = clamp_t(int, rxbuf[1], 0, msg->size); intel_dp_aux_transfer()
H A Dintel_pm.c4238 clamp_t(u8, gen6_init_rps_frequencies()
/linux-4.1.27/drivers/md/bcache/
H A Dwriteback.c63 clamp_t(int64_t, (int64_t) dc->writeback_rate.rate + change, __update_writeback_rate()
H A Dutil.h352 var = clamp_t(typeof(var), _v, min, max); \
H A Dsuper.c1667 ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, for_each_cache()
H A Dbtree.c2351 return clamp_t(int64_t, bkey_cmp(&l->key, &r->key), -1, 1); keybuf_nonoverlapping_cmp()
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-lite.c630 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); fimc_lite_try_crop()
632 r->top = clamp_t(u32, r->top, 0, frame->f_height - r->height); fimc_lite_try_crop()
650 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); fimc_lite_try_compose()
652 r->top = clamp_t(u32, r->top, 0, fimc->out_frame.f_height - r->height); fimc_lite_try_compose()
H A Dfimc-isp-video.c64 *num_buffers = clamp_t(u32, *num_buffers, FIMC_ISP_REQ_BUFS_MIN, isp_video_capture_queue_setup()
H A Dfimc-capture.c719 r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width); fimc_capture_try_selection()
720 r->top = clamp_t(u32, r->top, 0, sink->f_height - r->height); fimc_capture_try_selection()
/linux-4.1.27/drivers/net/usb/
H A Dcdc_ncm.c163 val = clamp_t(u32, new_rx, min, max); cdc_ncm_check_rx_max()
182 val = clamp_t(u32, new_tx, min, max); cdc_ncm_check_tx_max()
398 ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1), cdc_ncm_update_rxtx_max()
525 ctx->max_datagram_size = clamp_t(u32, new_size, cdc_ncm_set_dgram_size()
/linux-4.1.27/drivers/media/radio/
H A Ddsbr100.c224 return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency, vidioc_s_frequency()
H A Dradio-miropcm20.c292 dev->freq = clamp_t(u32, f->frequency, 87 * 16000U, 108 * 16000U); vidioc_s_frequency()
H A Dradio-raremono.c270 freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh); vidioc_s_frequency()
H A Dradio-ma901.c267 return ma901radio_set_freq(radio, clamp_t(unsigned, f->frequency, vidioc_s_frequency()
H A Dtea575x.c368 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, vidioc_s_frequency()
H A Dradio-mr800.c211 freq = clamp_t(unsigned, freq, FREQ_MIN * FREQ_MUL, FREQ_MAX * FREQ_MUL); amradio_set_freq()
/linux-4.1.27/drivers/media/tuners/
H A Dfc0011.c231 xin = clamp_t(u32, frac, 512, 65024); fc0011_set_params()
H A Dmsi001.c345 s->f_tuner = clamp_t(unsigned int, f->frequency, msi001_s_frequency()
/linux-4.1.27/drivers/clk/
H A Dclk-axi-clkgen.c172 dout = clamp_t(unsigned long, dout, 1, 128); axi_clkgen_calc_params()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Drtl2832_sdr.c1076 dev->f_adc = clamp_t(unsigned int, f->frequency, rtl2832_sdr_s_frequency()
1083 dev->f_tuner = clamp_t(unsigned int, f->frequency, rtl2832_sdr_s_frequency()
1256 val = clamp_t(s32, val, dev->bandwidth->minimum, rtl2832_sdr_s_ctrl()
/linux-4.1.27/include/linux/
H A Dkernel.h773 * clamp_t - return a value clamped to a given range using a given type
782 #define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi) macro
795 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
/linux-4.1.27/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c532 *nbuffers = clamp_t(unsigned int, *nbuffers, queue_setup()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ethtool.c479 new_tx_count = clamp_t(u32, ring->tx_pending, fm10k_set_ringparam()
483 new_rx_count = clamp_t(u32, ring->rx_pending, fm10k_set_ringparam()
/linux-4.1.27/drivers/media/usb/hackrf/
H A Dhackrf.c743 dev->f_adc = clamp_t(unsigned int, f->frequency, hackrf_s_frequency()
758 dev->f_rf = clamp_t(unsigned int, f->frequency, hackrf_s_frequency()
/linux-4.1.27/drivers/media/usb/msi2500/
H A Dmsi2500.c625 *nbuffers = clamp_t(unsigned int, *nbuffers, 8, 32); msi2500_queue_setup()
1045 s->f_adc = clamp_t(unsigned int, f->frequency, msi2500_s_frequency()
/linux-4.1.27/arch/x86/mm/
H A Dinit_32.c438 unsigned long pfn = clamp_t(unsigned long, PFN_UP(start), add_highpages_with_active_regions()
440 unsigned long e_pfn = clamp_t(unsigned long, PFN_DOWN(end), add_highpages_with_active_regions()
/linux-4.1.27/drivers/iio/adc/
H A Dqcom-spmi-vadc.c345 *data = clamp_t(u16, *data, VADC_MIN_ADC_CODE, VADC_MAX_ADC_CODE); vadc_read_result()
/linux-4.1.27/drivers/iio/magnetometer/
H A Dak8975.c659 *val = clamp_t(s16, ret, -data->def->range, data->def->range); ak8975_read_axis()
/linux-4.1.27/drivers/net/wireless/p54/
H A Dmain.c708 priv->coverage_class = clamp_t(u8, coverage_class, 0, 31); p54_set_coverage_class()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2500usb.h853 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
H A Drt2400pci.h953 clamp_t(char, (__txpower), MIN_TXPOWER, MAX_TXPOWER)
H A Drt2500pci.h1233 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
H A Drt61pci.h1498 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
H A Drt73usb.h1077 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
H A Drt2800lib.c3140 return clamp_t(char, txpower, MIN_G_TXPOWER, MAX_G_TXPOWER); rt2800_txpower_to_dev()
3143 return clamp_t(char, txpower, MIN_A_TXPOWER_3593, rt2800_txpower_to_dev()
3146 return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER); rt2800_txpower_to_dev()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-ioctl.c871 sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width); ivtv_s_selection()
872 sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height); ivtv_s_selection()
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_sync.c1283 val = clamp_t(int, val, (SOCK_MIN_SNDBUF + 1) / 2, set_sock_size()
1288 val = clamp_t(int, val, (SOCK_MIN_RCVBUF + 1) / 2, set_sock_size()
H A Dip_vs_ctl.c3813 ipvs->sysctl_sync_retries = clamp_t(int, DEFAULT_SYNC_RETRIES, 0, 3); ip_vs_control_net_init_sysctl()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
H A Dethtool.c678 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, e1000_set_ringparam()
682 new_tx_count = clamp_t(u32, ring->tx_pending, E1000_MIN_TXD, e1000_set_ringparam()
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8180/
H A Ddev.c286 signal = -clamp_t(u8, agc, 25, 90) - 9; rtl8180_handle_rx()
288 signal = -clamp_t(u8, agc, 30, 95); rtl8180_handle_rx()
/linux-4.1.27/drivers/media/i2c/m5mols/
H A Dm5mols_core.c631 fd->entry[0].length = clamp_t(u32, fd->entry[0].length, m5mols_set_frame_desc()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbttv-driver.c2879 c.rect.left = clamp_t(s32, crop->c.left, b_left, b_right - 48); bttv_s_crop()
2882 c.rect.width = clamp_t(s32, crop->c.width, bttv_s_crop()
2885 c.rect.top = clamp_t(s32, crop->c.top, b_top, b_bottom - 32); bttv_s_crop()
2889 c.rect.height = clamp_t(s32, crop->c.height, bttv_s_crop()
/linux-4.1.27/net/can/
H A Dgw.c954 max_hops = clamp_t(unsigned int, max_hops, CGW_MIN_HOPS, CGW_MAX_HOPS); cgw_module_init()
/linux-4.1.27/net/dccp/ccids/
H A Dccid3.c88 const __u32 w_init = clamp_t(__u32, 4380U, 2 * hc->tx_s, 4 * hc->tx_s); rfc3390_initial_rate()
/linux-4.1.27/sound/soc/codecs/
H A Dsta32x.c1050 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; sta32x_probe_dt()
H A Dsta350.c1141 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; sta350_probe_dt()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c967 new_tx_count = clamp_t(u32, ring->tx_pending, ixgbe_set_ringparam()
971 new_rx_count = clamp_t(u32, ring->rx_pending, ixgbe_set_ringparam()
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c1645 mp->tx_ring_size = clamp_t(unsigned int, er->tx_pending, mv643xx_eth_set_ringparam()
2928 mp->tx_ring_size = clamp_t(unsigned int, tx_ring_size, set_params()
H A Dmvneta.c2860 pp->tx_ring_size = clamp_t(u16, ring->tx_pending, mvneta_ethtool_set_ringparam()
/linux-4.1.27/drivers/media/platform/am437x/
H A Dam437x-vpfe.c2172 r.left = clamp_t(unsigned int, r.left, 0, cr.width - r.width); vpfe_s_selection()
2173 r.top = clamp_t(unsigned int, r.top, 0, cr.height - r.height); vpfe_s_selection()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-ctrls.c1362 val = clamp_t(typeof(val), val, \
1391 val = clamp_t(s64, val, ctrl->minimum, ctrl->maximum); std_validate()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-img-scb.c1142 prescale = clamp_t(unsigned int, prescale, 1, 8); img_i2c_init()
/linux-4.1.27/drivers/media/radio/si4713/
H A Dsi4713.c1395 frequency = clamp_t(u16, frequency, FREQ_RANGE_LOW, FREQ_RANGE_HIGH); si4713_s_frequency()
/linux-4.1.27/drivers/media/usb/uvc/
H A Duvc_ctrl.c1514 xctrl->value = clamp_t(u32, xctrl->value, min, max); uvc_ctrl_set()
/linux-4.1.27/arch/s390/kernel/
H A Dperf_cpum_sf.c664 return clamp_t(unsigned long, rate, hw_limit_rate()
/linux-4.1.27/kernel/
H A Dfork.c287 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); set_max_threads()
H A Dsys.c1134 copy = clamp_t(size_t, len, 1, sizeof(buf)); override_release()
/linux-4.1.27/drivers/ide/
H A Dide-tape.c1793 tape->best_dsc_rw_freq = clamp_t(unsigned long, t, IDETAPE_DSC_RW_MIN, idetape_setup()
/linux-4.1.27/drivers/net/
H A Dvirtio_net.c608 len = hdr_len + clamp_t(unsigned int, ewma_read(avg_pkt_len), get_mergeable_buf_len()
/linux-4.1.27/drivers/media/i2c/smiapp/
H A Dsmiapp-core.c1142 clamp_t(u32, strobe_setup->strobe_width_high_us, 1, tmp); smiapp_setup_flash_strobe()
/linux-4.1.27/mm/
H A Dvmalloc.c1337 align = 1ul << clamp_t(int, fls_long(size), __get_vm_area_node()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dmac.c455 value = clamp_t(u32, arvif->ar->hw->wiphy->frag_threshold, ath10k_mac_set_frag()

Completed in 9601 milliseconds