/linux-4.1.27/arch/x86/kernel/ |
H A D | check.c | 95 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 D | vsp1_hsit.c | 138 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 D | vsp1_lif.c | 170 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 D | vsp1_lut.c | 179 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 D | vsp1_rwpf.c | 124 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 D | vsp1_bru.c | 367 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 D | vsp1_video.c | 254 bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, __vsp1_video_try_format()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_rect.c | 77 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 D | notifier-error-inject.c | 7 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); debugfs_errno_set()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | stmp3xxx_rtc_wdt.c | 78 stmp3xxx_wdd.timeout = clamp_t(unsigned, heartbeat, 1, STMP3XXX_MAX_TIMEOUT); stmp3xxx_wdt_probe()
|
H A D | imx2_wdt.c | 265 wdog->timeout = clamp_t(unsigned, timeout, 1, IMX2_WDT_MAX_TIME); imx2_wdt_probe()
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
H A D | iss_ipipeif.c | 405 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 D | iss_ipipe.c | 217 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 D | iss_resizer.c | 462 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 D | iss_csi2.c | 862 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 D | intel_pstate.c | 403 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 D | lv5207lp.c | 118 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, lv5207lp_probe()
|
H A D | bd6107.c | 160 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, bd6107_probe()
|
/linux-4.1.27/arch/powerpc/platforms/85xx/ |
H A D | p1022_rdk.c | 75 pxclk = clamp_t(u32, pxclk, 2, 255); p1022rdk_set_pixel_clock()
|
H A D | p1022_ds.c | 405 pxclk = clamp_t(u32, pxclk, 2, 255); p1022ds_set_pixel_clock()
|
/linux-4.1.27/drivers/media/platform/vivid/ |
H A D | vivid-vid-cap.c | 1083 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 D | vivid-radio-common.c | 177 freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow, vivid_radio_s_frequency()
|
H A D | vivid-vid-out.c | 863 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 D | vivid-sdr-cap.c | 358 freq = clamp_t(unsigned, freq, vivid_sdr_s_frequency() 372 dev->sdr_fm_freq = clamp_t(unsigned, freq, vivid_sdr_s_frequency()
|
H A D | vivid-core.c | 1302 n_devs = clamp_t(unsigned, n_devs, 1, VIVID_MAX_DEVS); vivid_probe()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | mt9t001.c | 382 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 D | mt9m032.c | 223 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 D | s5k6aa.c | 1147 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 D | mt9p031.c | 562 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 D | mt9v032.c | 592 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 D | tvp5150.c | 867 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 D | s5k5baf.c | 1156 state->req_fiv = clamp_t(u32, s5k5baf_set_frame_interval()
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | scan.c | 23 (clamp_t(s32, (x), MIN_SIGNAL_LEVEL, MAX_SIGNAL_LEVEL) \
|
/linux-4.1.27/drivers/media/platform/xilinx/ |
H A D | xilinx-vip.c | 153 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 D | ispccp2.c | 263 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 D | ispresizer.c | 813 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 D | isppreview.c | 1759 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 D | ispccdc.c | 1989 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 D | ispcsi2.c | 575 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 D | clk-div6.c | 97 return clamp_t(unsigned int, div, 1, 64); cpg_div6_clock_calc_div()
|
/linux-4.1.27/arch/powerpc/platforms/86xx/ |
H A D | mpc8610_hpcd.c | 261 pxclk = clamp_t(u32, pxclk, 2, 31); mpc8610hpcd_set_pixel_clock()
|
/linux-4.1.27/drivers/staging/media/davinci_vpfe/ |
H A D | dm365_resizer.c | 1344 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 D | dm365_ipipeif.c | 639 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 D | dm365_ipipe.c | 1471 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 D | dm365_isif.c | 302 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 D | i40evf_ethtool.c | 252 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 D | airspy.c | 772 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 D | i915_sysfs.c | 419 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 D | intel_panel.c | 1143 min = clamp_t(int, dev_priv->vbt.backlight.min_brightness, 0, 64); get_backlight_min_vbt()
|
H A D | i915_irq.c | 1134 new_delay = clamp_t(int, new_delay, gen6_pm_rps_work()
|
H A D | intel_dp.c | 967 ret = clamp_t(int, rxbuf[1], 0, msg->size); intel_dp_aux_transfer()
|
H A D | intel_pm.c | 4238 clamp_t(u8, gen6_init_rps_frequencies()
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | writeback.c | 63 clamp_t(int64_t, (int64_t) dc->writeback_rate.rate + change, __update_writeback_rate()
|
H A D | util.h | 352 var = clamp_t(typeof(var), _v, min, max); \
|
H A D | super.c | 1667 ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, for_each_cache()
|
H A D | btree.c | 2351 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 D | fimc-lite.c | 630 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 D | fimc-isp-video.c | 64 *num_buffers = clamp_t(u32, *num_buffers, FIMC_ISP_REQ_BUFS_MIN, isp_video_capture_queue_setup()
|
H A D | fimc-capture.c | 719 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 D | cdc_ncm.c | 163 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 D | dsbr100.c | 224 return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency, vidioc_s_frequency()
|
H A D | radio-miropcm20.c | 292 dev->freq = clamp_t(u32, f->frequency, 87 * 16000U, 108 * 16000U); vidioc_s_frequency()
|
H A D | radio-raremono.c | 270 freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh); vidioc_s_frequency()
|
H A D | radio-ma901.c | 267 return ma901radio_set_freq(radio, clamp_t(unsigned, f->frequency, vidioc_s_frequency()
|
H A D | tea575x.c | 368 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, vidioc_s_frequency()
|
H A D | radio-mr800.c | 211 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 D | fc0011.c | 231 xin = clamp_t(u32, frac, 512, 65024); fc0011_set_params()
|
H A D | msi001.c | 345 s->f_tuner = clamp_t(unsigned int, f->frequency, msi001_s_frequency()
|
/linux-4.1.27/drivers/clk/ |
H A D | clk-axi-clkgen.c | 172 dout = clamp_t(unsigned long, dout, 1, 128); axi_clkgen_calc_params()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | rtl2832_sdr.c | 1076 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 D | kernel.h | 773 * 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 D | stk1160-v4l.c | 532 *nbuffers = clamp_t(unsigned int, *nbuffers, queue_setup()
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_ethtool.c | 479 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 D | hackrf.c | 743 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 D | msi2500.c | 625 *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 D | init_32.c | 438 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 D | qcom-spmi-vadc.c | 345 *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 D | ak8975.c | 659 *val = clamp_t(s16, ret, -data->def->range, data->def->range); ak8975_read_axis()
|
/linux-4.1.27/drivers/net/wireless/p54/ |
H A D | main.c | 708 priv->coverage_class = clamp_t(u8, coverage_class, 0, 31); p54_set_coverage_class()
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2500usb.h | 853 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
H A D | rt2400pci.h | 953 clamp_t(char, (__txpower), MIN_TXPOWER, MAX_TXPOWER)
|
H A D | rt2500pci.h | 1233 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
H A D | rt61pci.h | 1498 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
H A D | rt73usb.h | 1077 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
H A D | rt2800lib.c | 3140 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 D | ivtv-ioctl.c | 871 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 D | ip_vs_sync.c | 1283 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 D | ip_vs_ctl.c | 3813 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 D | ethtool.c | 678 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 D | dev.c | 286 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 D | m5mols_core.c | 631 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 D | bttv-driver.c | 2879 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 D | gw.c | 954 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 D | ccid3.c | 88 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 D | sta32x.c | 1050 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; sta32x_probe_dt()
|
H A D | sta350.c | 1141 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 D | ixgbe_ethtool.c | 967 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 D | mv643xx_eth.c | 1645 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 D | mvneta.c | 2860 pp->tx_ring_size = clamp_t(u16, ring->tx_pending, mvneta_ethtool_set_ringparam()
|
/linux-4.1.27/drivers/media/platform/am437x/ |
H A D | am437x-vpfe.c | 2172 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 D | v4l2-ctrls.c | 1362 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 D | i2c-img-scb.c | 1142 prescale = clamp_t(unsigned int, prescale, 1, 8); img_i2c_init()
|
/linux-4.1.27/drivers/media/radio/si4713/ |
H A D | si4713.c | 1395 frequency = clamp_t(u16, frequency, FREQ_RANGE_LOW, FREQ_RANGE_HIGH); si4713_s_frequency()
|
/linux-4.1.27/drivers/media/usb/uvc/ |
H A D | uvc_ctrl.c | 1514 xctrl->value = clamp_t(u32, xctrl->value, min, max); uvc_ctrl_set()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | perf_cpum_sf.c | 664 return clamp_t(unsigned long, rate, hw_limit_rate()
|
/linux-4.1.27/kernel/ |
H A D | fork.c | 287 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); set_max_threads()
|
H A D | sys.c | 1134 copy = clamp_t(size_t, len, 1, sizeof(buf)); override_release()
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-tape.c | 1793 tape->best_dsc_rw_freq = clamp_t(unsigned long, t, IDETAPE_DSC_RW_MIN, idetape_setup()
|
/linux-4.1.27/drivers/net/ |
H A D | virtio_net.c | 608 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 D | smiapp-core.c | 1142 clamp_t(u32, strobe_setup->strobe_width_high_us, 1, tmp); smiapp_setup_flash_strobe()
|
/linux-4.1.27/mm/ |
H A D | vmalloc.c | 1337 align = 1ul << clamp_t(int, fls_long(size), __get_vm_area_node()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | mac.c | 455 value = clamp_t(u32, arvif->ar->hw->wiphy->frag_threshold, ath10k_mac_set_frag()
|