/linux-4.4.14/drivers/media/dvb-frontends/ |
D | ts2020.c | 368 gain1 = clamp_t(long, gain1, 0, 15); in ts2020_read_tuner_gain() 369 gain2 = clamp_t(long, gain2, 0, 13); in ts2020_read_tuner_gain() 370 v_agc = clamp_t(long, v_agc, 400, 1100); in ts2020_read_tuner_gain() 385 gain1 = clamp_t(long, gain1, 0, 15); in ts2020_read_tuner_gain() 386 gain2 = clamp_t(long, gain2, 2, 16); in ts2020_read_tuner_gain() 387 gain3 = clamp_t(long, gain3, 0, 6); in ts2020_read_tuner_gain() 388 v_agc = clamp_t(long, v_agc, 600, 1600); in ts2020_read_tuner_gain()
|
D | rtl2832_sdr.c | 1142 dev->f_adc = clamp_t(unsigned int, f->frequency, in rtl2832_sdr_s_frequency() 1152 dev->f_tuner = clamp_t(unsigned int, f->frequency, in rtl2832_sdr_s_frequency() 1324 val = clamp_t(s32, val, dev->bandwidth->minimum, in rtl2832_sdr_s_ctrl()
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_rect.c | 77 src->x1 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled() 82 src->y1 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled() 87 src->x2 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled() 92 src->y2 = clamp_t(int64_t, tmp, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
|
/linux-4.4.14/arch/x86/kernel/ |
D | check.c | 96 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), in setup_bios_corruption_check() 98 end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE), in setup_bios_corruption_check()
|
/linux-4.4.14/drivers/staging/media/omap4iss/ |
D | iss_ipipeif.c | 405 fmt->width = clamp_t(u32, width, 1, 8192); in ipipeif_try_format() 406 fmt->height = clamp_t(u32, height, 1, 8192); in ipipeif_try_format() 419 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); in ipipeif_try_format() 421 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipeif_try_format() 429 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipeif_try_format() 430 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipeif_try_format()
|
D | iss_ipipe.c | 223 fmt->width = clamp_t(u32, width, 1, 8192); in ipipe_try_format() 224 fmt->height = clamp_t(u32, height, 1, 8192); in ipipe_try_format() 233 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipe_try_format() 234 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipe_try_format()
|
D | iss_resizer.c | 462 fmt->width = clamp_t(u32, width, 1, 8192); in resizer_try_format() 463 fmt->height = clamp_t(u32, height, 1, 8192); in resizer_try_format() 481 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); in resizer_try_format() 483 fmt->height = clamp_t(u32, height, 32, fmt->height); in resizer_try_format()
|
D | iss_csi2.c | 866 fmt->width = clamp_t(u32, fmt->width, 1, 8191); in csi2_try_format() 867 fmt->height = clamp_t(u32, fmt->height, 1, 8191); in csi2_try_format()
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 813 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios() 884 ratio->horz = clamp_t(unsigned int, ratio->horz, in resizer_calc_ratios() 1203 crop->width = clamp_t(u32, crop->width, min_width, max_width); in resizer_try_crop() 1204 crop->height = clamp_t(u32, crop->height, min_height, max_height); in resizer_try_crop() 1207 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); in resizer_try_crop() 1208 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, in resizer_try_crop() 1210 crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); in resizer_try_crop() 1211 crop->height = clamp_t(u32, crop->height, MIN_IN_HEIGHT, in resizer_try_crop() 1391 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, in resizer_try_format() 1393 fmt->height = clamp_t(u32, fmt->height, MIN_IN_HEIGHT, in resizer_try_format()
|
D | ispccp2.c | 263 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 65536); in ccp2_vp_config() 268 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 4); in ccp2_vp_config() 650 fmt->width = clamp_t(u32, fmt->width, in ccp2_try_format() 653 fmt->height = clamp_t(u32, fmt->height, in ccp2_try_format() 657 fmt->width = clamp_t(u32, fmt->width, in ccp2_try_format() 660 fmt->height = clamp_t(u32, fmt->height, in ccp2_try_format()
|
D | ispccdc.c | 1989 fmt->width = clamp_t(u32, width, 32, 4096); in ccdc_try_format() 1990 fmt->height = clamp_t(u32, height, 32, 4096); in ccdc_try_format() 2058 fmt->width = clamp_t(u32, width, 32, fmt->width); in ccdc_try_format() 2059 fmt->height = clamp_t(u32, height, 32, fmt->height - 1); in ccdc_try_format() 2091 crop->left = clamp_t(u32, crop->left, 0, sink->width - CCDC_MIN_WIDTH); in ccdc_try_crop() 2092 crop->top = clamp_t(u32, crop->top, 0, sink->height - CCDC_MIN_HEIGHT); in ccdc_try_crop() 2100 crop->width = clamp_t(u32, crop->width, CCDC_MIN_WIDTH, max_width) in ccdc_try_crop() 2102 crop->height = clamp_t(u32, crop->height, CCDC_MIN_HEIGHT, in ccdc_try_crop()
|
D | isppreview.c | 1755 fmt->width = clamp_t(u32, fmt->width, PREV_MIN_IN_WIDTH, in preview_try_format() 1757 fmt->height = clamp_t(u32, fmt->height, in preview_try_format() 1852 crop->left = clamp_t(u32, crop->left, left, right - PREV_MIN_OUT_WIDTH); in preview_try_crop() 1853 crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); in preview_try_crop() 1854 crop->width = clamp_t(u32, crop->width, PREV_MIN_OUT_WIDTH, in preview_try_crop() 1856 crop->height = clamp_t(u32, crop->height, PREV_MIN_OUT_HEIGHT, in preview_try_crop()
|
D | ispcsi2.c | 575 clamp_t(unsigned int, pipe->l3_ick / pipe->external_rate - 1, in csi2_configure() 869 fmt->width = clamp_t(u32, fmt->width, 1, 8191); in csi2_try_format() 870 fmt->height = clamp_t(u32, fmt->height, 1, 8191); in csi2_try_format()
|
/linux-4.4.14/drivers/cpufreq/ |
D | intel_pstate.c | 433 limits->no_turbo = clamp_t(int, input, 0, 1); in store_no_turbo() 451 limits->max_sysfs_pct = clamp_t(int, input, 0 , 100); in store_max_perf_pct() 476 limits->min_sysfs_pct = clamp_t(int, input, 0 , 100); in store_min_perf_pct() 569 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in atom_set_pstate() 823 *max = clamp_t(int, max_perf_adj, in intel_pstate_get_min_max() 827 *min = clamp_t(int, min_perf, cpu->pstate.min_pstate, max_perf); in intel_pstate_get_min_max() 839 pstate = clamp_t(int, pstate, min_perf, max_perf); in intel_pstate_set_pstate() 1117 limits->min_policy_pct = clamp_t(int, limits->min_policy_pct, 0 , 100); in intel_pstate_set_policy() 1120 limits->max_policy_pct = clamp_t(int, limits->max_policy_pct, 0 , 100); in intel_pstate_set_policy()
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
D | vsp1_hsit.c | 138 format->width = clamp_t(unsigned int, fmt->format.width, in hsit_set_format() 140 format->height = clamp_t(unsigned int, fmt->format.height, in hsit_set_format()
|
D | vsp1_lut.c | 179 format->width = clamp_t(unsigned int, fmt->format.width, in lut_set_format() 181 format->height = clamp_t(unsigned int, fmt->format.height, in lut_set_format()
|
D | vsp1_lif.c | 170 format->width = clamp_t(unsigned int, fmt->format.width, in lif_set_format() 172 format->height = clamp_t(unsigned int, fmt->format.height, in lif_set_format()
|
D | vsp1_rwpf.c | 124 format->width = clamp_t(unsigned int, fmt->format.width, in vsp1_rwpf_set_format() 126 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
|
D | vsp1_bru.c | 367 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in bru_set_selection() 368 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in bru_set_selection()
|
D | vsp1_video.c | 254 bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, in __vsp1_video_try_format()
|
/linux-4.4.14/drivers/media/platform/xilinx/ |
D | xilinx-vip.c | 153 format->width = clamp_t(unsigned int, fmt->format.width, in xvip_set_format_size() 155 format->height = clamp_t(unsigned int, fmt->format.height, in xvip_set_format_size()
|
/linux-4.4.14/arch/powerpc/platforms/85xx/ |
D | p1022_rdk.c | 75 pxclk = clamp_t(u32, pxclk, 2, 255); in p1022rdk_set_pixel_clock()
|
D | p1022_ds.c | 405 pxclk = clamp_t(u32, pxclk, 2, 255); in p1022ds_set_pixel_clock()
|
/linux-4.4.14/drivers/watchdog/ |
D | stmp3xxx_rtc_wdt.c | 78 stmp3xxx_wdd.timeout = clamp_t(unsigned, heartbeat, 1, STMP3XXX_MAX_TIMEOUT); in stmp3xxx_wdt_probe()
|
D | imx2_wdt.c | 270 wdog->timeout = clamp_t(unsigned, timeout, 1, IMX2_WDT_MAX_TIME); in imx2_wdt_probe()
|
/linux-4.4.14/lib/ |
D | notifier-error-inject.c | 7 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
|
/linux-4.4.14/drivers/media/i2c/ |
D | mt9t001.c | 382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9t001_set_format() 386 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9t001_set_format() 438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9t001_set_selection() 441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9t001_set_selection()
|
D | mt9m032.c | 223 vblank = clamp_t(unsigned int, vblank, min_vblank, MT9M032_VBLANK_MAX); in mt9m032_update_timing() 468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection() 470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
|
D | s5k6aa.c | 1147 crop->width = clamp_t(unsigned int, crop->width, mf->width, in s5k6aa_set_fmt() 1149 crop->height = clamp_t(unsigned int, crop->height, mf->height, in s5k6aa_set_fmt() 1151 crop->left = clamp_t(unsigned int, crop->left, 0, in s5k6aa_set_fmt() 1153 crop->top = clamp_t(unsigned int, crop->top, 0, in s5k6aa_set_fmt() 1216 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x); in s5k6aa_set_selection() 1217 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, max_y); in s5k6aa_set_selection()
|
D | mt9p031.c | 562 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9p031_set_format() 566 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9p031_set_format() 616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection() 619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection()
|
D | mt9v032.c | 592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection() 595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection()
|
D | tvp5150.c | 873 rect.width = clamp_t(unsigned int, rect.width, in tvp5150_s_crop() 889 rect.height = clamp_t(unsigned int, rect.height, in tvp5150_s_crop()
|
D | s5k5baf.c | 1156 state->req_fiv = clamp_t(u32, in s5k5baf_set_frame_interval()
|
/linux-4.4.14/drivers/video/backlight/ |
D | lv5207lp.c | 118 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in lv5207lp_probe()
|
D | bd6107.c | 160 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in bd6107_probe()
|
/linux-4.4.14/drivers/media/platform/vivid/ |
D | vivid-vid-out.c | 871 win->w.left = clamp_t(int, win->w.left, in vidioc_try_fmt_vid_out_overlay() 873 win->w.top = clamp_t(int, win->w.top, in vidioc_try_fmt_vid_out_overlay() 893 r->top = clamp_t(s32, r->top, 0, dev->display_height - 1); in vidioc_try_fmt_vid_out_overlay() 894 r->height = clamp_t(s32, r->height, 1, dev->display_height - r->top); in vidioc_try_fmt_vid_out_overlay() 895 r->left = clamp_t(u32, r->left, 0, dev->display_width - 1); in vidioc_try_fmt_vid_out_overlay() 896 r->width = clamp_t(u32, r->width, 1, dev->display_width - r->left); in vidioc_try_fmt_vid_out_overlay()
|
D | vivid-vid-cap.c | 1095 win->w.left = clamp_t(int, win->w.left, in vidioc_try_fmt_vid_overlay() 1097 win->w.top = clamp_t(int, win->w.top, in vidioc_try_fmt_vid_overlay() 1116 r->top = clamp_t(s32, r->top, 0, dev->fb_cap.fmt.height - 1); in vidioc_try_fmt_vid_overlay() 1117 r->height = clamp_t(s32, r->height, 1, dev->fb_cap.fmt.height - r->top); in vidioc_try_fmt_vid_overlay() 1118 r->left = clamp_t(u32, r->left, 0, dev->fb_cap.fmt.width - 1); in vidioc_try_fmt_vid_overlay() 1119 r->width = clamp_t(u32, r->width, 1, dev->fb_cap.fmt.width - r->left); in vidioc_try_fmt_vid_overlay() 1250 dev->overlay_cap_left = clamp_t(int, dev->overlay_cap_left, in vivid_vid_cap_s_fbuf() 1252 dev->overlay_cap_top = clamp_t(int, dev->overlay_cap_top, in vivid_vid_cap_s_fbuf() 1445 dev->tv_freq = clamp_t(unsigned, vf->frequency, MIN_TV_FREQ, MAX_TV_FREQ); in vivid_video_s_frequency()
|
D | vivid-radio-common.c | 177 freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow, in vivid_radio_s_frequency()
|
D | vivid-sdr-cap.c | 386 freq = clamp_t(unsigned, freq, in vivid_sdr_s_frequency() 400 dev->sdr_fm_freq = clamp_t(unsigned, freq, in vivid_sdr_s_frequency()
|
D | vivid-core.c | 1316 n_devs = clamp_t(unsigned, n_devs, 1, VIVID_MAX_DEVS); in vivid_probe()
|
/linux-4.4.14/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 398 width = clamp_t(unsigned int, f->fmt.pix.width, in stk1160_try_fmt() 400 height = clamp_t(unsigned int, f->fmt.pix.height, in stk1160_try_fmt() 680 *nbuffers = clamp_t(unsigned int, *nbuffers, in queue_setup()
|
/linux-4.4.14/arch/powerpc/platforms/86xx/ |
D | mpc8610_hpcd.c | 261 pxclk = clamp_t(u32, pxclk, 2, 31); in mpc8610hpcd_set_pixel_clock()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_ethtool.c | 252 new_tx_count = clamp_t(u32, ring->tx_pending, in i40evf_set_ringparam() 257 new_rx_count = clamp_t(u32, ring->rx_pending, in i40evf_set_ringparam()
|
/linux-4.4.14/drivers/clk/shmobile/ |
D | clk-div6.c | 97 return clamp_t(unsigned int, div, 1, 64); in cpg_div6_clock_calc_div()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | scan.c | 23 (clamp_t(s32, (x), MIN_SIGNAL_LEVEL, MAX_SIGNAL_LEVEL) \
|
/linux-4.4.14/include/linux/ |
D | kernel.h | 783 #define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi) macro 796 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
|
/linux-4.4.14/arch/x86/mm/ |
D | init_32.c | 438 unsigned long pfn = clamp_t(unsigned long, PFN_UP(start), in add_highpages_with_active_regions() 440 unsigned long e_pfn = clamp_t(unsigned long, PFN_DOWN(end), in add_highpages_with_active_regions()
|
/linux-4.4.14/drivers/staging/media/davinci_vpfe/ |
D | dm365_resizer.c | 1345 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, in resizer_try_format() 1347 fmt->height = clamp_t(u32, fmt->height, MIN_IN_HEIGHT, in resizer_try_format() 1362 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_WIDTH, in resizer_try_format() 1365 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_HEIGHT, in resizer_try_format() 1380 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_WIDTH, in resizer_try_format() 1383 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_HEIGHT, in resizer_try_format()
|
D | dm365_ipipeif.c | 639 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_HEIGHT, max_out_width); in ipipeif_try_format() 640 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_WIDTH, max_out_height); in ipipeif_try_format()
|
D | dm365_ipipe.c | 1471 fmt->width = clamp_t(u32, fmt->width, MIN_OUT_HEIGHT, max_out_width); in ipipe_try_format() 1472 fmt->height = clamp_t(u32, fmt->height, MIN_OUT_WIDTH, max_out_height); in ipipe_try_format()
|
D | dm365_isif.c | 302 fmt->format.width = clamp_t(u32, width, 32, MAX_WIDTH); in isif_try_format() 303 fmt->format.height = clamp_t(u32, height, 32, MAX_HEIGHT); in isif_try_format()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_sysfs.c | 389 val = clamp_t(int, dev_priv->rps.cur_freq, in gt_max_freq_mhz_store() 448 val = clamp_t(int, dev_priv->rps.cur_freq, in gt_min_freq_mhz_store()
|
D | intel_panel.c | 1428 min = clamp_t(int, dev_priv->vbt.backlight.min_brightness, 0, 64); in get_backlight_min_vbt()
|
D | i915_irq.c | 1150 new_delay = clamp_t(int, new_delay, min, max); in gen6_pm_rps_work()
|
D | intel_dp.c | 970 ret = clamp_t(int, rxbuf[1], 0, msg->size); in intel_dp_aux_transfer()
|
D | intel_pm.c | 4700 clamp_t(u8, in gen6_init_rps_frequencies()
|
/linux-4.4.14/drivers/net/wireless/rt2x00/ |
D | rt2500usb.h | 853 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
D | rt2400pci.h | 953 clamp_t(char, (__txpower), MIN_TXPOWER, MAX_TXPOWER)
|
D | rt73usb.h | 1077 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
D | rt2500pci.h | 1233 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
D | rt61pci.h | 1498 clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
|
D | rt2800lib.c | 3116 return clamp_t(char, txpower, MIN_G_TXPOWER, MAX_G_TXPOWER); in rt2800_txpower_to_dev() 3119 return clamp_t(char, txpower, MIN_A_TXPOWER_3593, in rt2800_txpower_to_dev() 3122 return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER); in rt2800_txpower_to_dev()
|
/linux-4.4.14/drivers/media/radio/ |
D | radio-raremono.c | 270 freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh); in vidioc_s_frequency()
|
D | radio-ma901.c | 267 return ma901radio_set_freq(radio, clamp_t(unsigned, f->frequency, in vidioc_s_frequency()
|
D | dsbr100.c | 224 return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency, in vidioc_s_frequency()
|
D | radio-miropcm20.c | 292 dev->freq = clamp_t(u32, f->frequency, 87 * 16000U, 108 * 16000U); in vidioc_s_frequency()
|
D | radio-mr800.c | 211 freq = clamp_t(unsigned, freq, FREQ_MIN * FREQ_MUL, FREQ_MAX * FREQ_MUL); in amradio_set_freq()
|
D | tea575x.c | 368 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, in vidioc_s_frequency()
|
/linux-4.4.14/drivers/net/usb/ |
D | cdc_ncm.c | 163 val = clamp_t(u32, new_rx, min, max); in cdc_ncm_check_rx_max() 182 val = clamp_t(u32, new_tx, min, max); in cdc_ncm_check_tx_max() 398 ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1), in cdc_ncm_update_rxtx_max() 525 ctx->max_datagram_size = clamp_t(u32, new_size, in cdc_ncm_set_dgram_size()
|
/linux-4.4.14/drivers/media/platform/exynos4-is/ |
D | fimc-lite.c | 627 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_crop() 629 r->top = clamp_t(u32, r->top, 0, frame->f_height - r->height); in fimc_lite_try_crop() 647 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_compose() 649 r->top = clamp_t(u32, r->top, 0, fimc->out_frame.f_height - r->height); in fimc_lite_try_compose()
|
D | fimc-isp-video.c | 65 *num_buffers = clamp_t(u32, *num_buffers, FIMC_ISP_REQ_BUFS_MIN, in isp_video_capture_queue_setup()
|
D | fimc-capture.c | 715 r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width); in fimc_capture_try_selection() 716 r->top = clamp_t(u32, r->top, 0, sink->f_height - r->height); in fimc_capture_try_selection()
|
/linux-4.4.14/drivers/media/tuners/ |
D | fc0011.c | 231 xin = clamp_t(u32, frac, 512, 65024); in fc0011_set_params()
|
D | msi001.c | 363 dev->f_tuner = clamp_t(unsigned int, f->frequency, in msi001_s_frequency()
|
D | fc2580.c | 454 dev->f_frequency = clamp_t(unsigned int, f->frequency, in fc2580_s_frequency()
|
D | e4000.c | 361 dev->f_frequency = clamp_t(unsigned int, f->frequency, in e4000_s_frequency()
|
/linux-4.4.14/drivers/clk/ |
D | clk-axi-clkgen.c | 171 dout = clamp_t(unsigned long, dout, 1, 128); in axi_clkgen_calc_params()
|
/linux-4.4.14/drivers/media/usb/airspy/ |
D | airspy.c | 776 s->f_adc = clamp_t(unsigned int, f->frequency, in airspy_s_frequency() 782 s->f_rf = clamp_t(unsigned int, f->frequency, in airspy_s_frequency()
|
/linux-4.4.14/drivers/media/usb/msi2500/ |
D | msi2500.c | 629 *nbuffers = clamp_t(unsigned int, *nbuffers, 8, 32); in msi2500_queue_setup() 1070 dev->f_adc = clamp_t(unsigned int, f->frequency, in msi2500_s_frequency()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1282 val = clamp_t(int, val, (SOCK_MIN_SNDBUF + 1) / 2, in set_sock_size() 1287 val = clamp_t(int, val, (SOCK_MIN_RCVBUF + 1) / 2, in set_sock_size() 1820 c->sync_maxlen = clamp_t(unsigned int, in start_sync_thread()
|
D | ip_vs_ctl.c | 3898 ipvs->sysctl_sync_retries = clamp_t(int, DEFAULT_SYNC_RETRIES, 0, 3); in ip_vs_control_net_init_sysctl()
|
/linux-4.4.14/drivers/iio/magnetometer/ |
D | ak8975.c | 659 *val = clamp_t(s16, ret, -data->def->range, data->def->range); in ak8975_read_axis()
|
/linux-4.4.14/drivers/md/bcache/ |
D | writeback.c | 63 clamp_t(int64_t, (int64_t) dc->writeback_rate.rate + change, in __update_writeback_rate()
|
D | util.h | 347 var = clamp_t(typeof(var), _v, min, max); \
|
D | super.c | 1636 ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, in run_cache_set()
|
D | btree.c | 2351 return clamp_t(int64_t, bkey_cmp(&l->key, &r->key), -1, 1); in keybuf_nonoverlapping_cmp()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 593 new_tx_count = clamp_t(u32, ring->tx_pending, in fm10k_set_ringparam() 597 new_rx_count = clamp_t(u32, ring->rx_pending, in fm10k_set_ringparam()
|
/linux-4.4.14/net/dccp/ccids/ |
D | ccid3.c | 88 const __u32 w_init = clamp_t(__u32, 4380U, 2 * hc->tx_s, 4 * hc->tx_s); in rfc3390_initial_rate()
|
/linux-4.4.14/drivers/net/wireless/p54/ |
D | main.c | 706 priv->coverage_class = clamp_t(u8, coverage_class, 0, 31); in p54_set_coverage_class()
|
/linux-4.4.14/drivers/iio/adc/ |
D | qcom-spmi-vadc.c | 345 *data = clamp_t(u16, *data, VADC_MIN_ADC_CODE, VADC_MAX_ADC_CODE); in vadc_read_result()
|
/linux-4.4.14/drivers/media/i2c/m5mols/ |
D | m5mols_core.c | 631 fd->entry[0].length = clamp_t(u32, fd->entry[0].length, in m5mols_set_frame_desc()
|
/linux-4.4.14/sound/soc/codecs/ |
D | sta32x.c | 1049 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; in sta32x_probe_dt()
|
D | sta350.c | 1140 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; in sta350_probe_dt()
|
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
D | dev.c | 286 signal = -clamp_t(u8, agc, 25, 90) - 9; in rtl8180_handle_rx() 288 signal = -clamp_t(u8, agc, 30, 95); in rtl8180_handle_rx()
|
/linux-4.4.14/drivers/media/pci/bt8xx/ |
D | bttv-driver.c | 2880 c.rect.left = clamp_t(s32, crop->c.left, b_left, b_right - 48); in bttv_s_crop() 2883 c.rect.width = clamp_t(s32, crop->c.width, in bttv_s_crop() 2886 c.rect.top = clamp_t(s32, crop->c.top, b_top, b_bottom - 32); in bttv_s_crop() 2890 c.rect.height = clamp_t(s32, crop->c.height, in bttv_s_crop()
|
/linux-4.4.14/net/can/ |
D | gw.c | 998 max_hops = clamp_t(unsigned int, max_hops, CGW_MIN_HOPS, CGW_MAX_HOPS); in cgw_module_init()
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtv-ioctl.c | 873 sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width); in ivtv_s_selection() 874 sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height); in ivtv_s_selection()
|
/linux-4.4.14/arch/s390/kernel/ |
D | perf_cpum_sf.c | 664 return clamp_t(unsigned long, rate, in hw_limit_rate()
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-img-scb.c | 1155 prescale = clamp_t(unsigned int, prescale, 1, 8); in img_i2c_init()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 676 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam() 680 new_tx_count = clamp_t(u32, ring->tx_pending, E1000_MIN_TXD, in e1000_set_ringparam()
|
/linux-4.4.14/drivers/media/radio/si4713/ |
D | si4713.c | 1395 frequency = clamp_t(u16, frequency, FREQ_RANGE_LOW, FREQ_RANGE_HIGH); in si4713_s_frequency()
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | v4l2-ctrls.c | 1364 val = clamp_t(typeof(val), val, \ 1393 val = clamp_t(s64, val, ctrl->minimum, ctrl->maximum); in std_validate()
|
/linux-4.4.14/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 2163 r.left = clamp_t(unsigned int, r.left, 0, cr.width - r.width); in vpfe_s_selection() 2164 r.top = clamp_t(unsigned int, r.top, 0, cr.height - r.height); in vpfe_s_selection()
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 1676 mp->tx_ring_size = clamp_t(unsigned int, er->tx_pending, in mv643xx_eth_set_ringparam() 2959 mp->tx_ring_size = clamp_t(unsigned int, tx_ring_size, in set_params()
|
D | mvneta.c | 3024 pp->tx_ring_size = clamp_t(u16, ring->tx_pending, in mvneta_ethtool_set_ringparam()
|
/linux-4.4.14/drivers/media/platform/ |
D | rcar_jpu.c | 828 bpl = clamp_t(unsigned int, bpl, w, JPU_WIDTH_MAX); in __jpu_try_fmt()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 972 new_tx_count = clamp_t(u32, ring->tx_pending, in ixgbe_set_ringparam() 976 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam()
|
/linux-4.4.14/kernel/ |
D | fork.c | 288 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads()
|
D | sys.c | 1134 copy = clamp_t(size_t, len, 1, sizeof(buf)); in override_release()
|
/linux-4.4.14/drivers/ide/ |
D | ide-tape.c | 1793 tape->best_dsc_rw_freq = clamp_t(unsigned long, t, IDETAPE_DSC_RW_MIN, in idetape_setup()
|
/linux-4.4.14/drivers/media/usb/uvc/ |
D | uvc_ctrl.c | 1514 xctrl->value = clamp_t(u32, xctrl->value, min, max); in uvc_ctrl_set()
|
/linux-4.4.14/drivers/net/ |
D | virtio_net.c | 614 len = hdr_len + clamp_t(unsigned int, ewma_pkt_len_read(avg_pkt_len), in get_mergeable_buf_len()
|
/linux-4.4.14/mm/ |
D | vmalloc.c | 1339 align = 1ul << clamp_t(int, fls_long(size), in __get_vm_area_node()
|
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_dm.c | 1520 gain_range = clamp_t(long, gain_range, in _rtl92e_dm_initial_gain()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 3512 max_buf = clamp_t(u16, max_buf, 1, 63); in bnxt_hwrm_set_coal() 3513 max_buf_irq = clamp_t(u16, bp->coal_bufs_irq, 1, 63); in bnxt_hwrm_set_coal()
|
/linux-4.4.14/drivers/media/i2c/smiapp/ |
D | smiapp-core.c | 1142 clamp_t(u32, strobe_setup->strobe_width_high_us, 1, tmp); in smiapp_setup_flash_strobe()
|