Home
last modified time | relevance | path

Searched refs:clamp_align (Results 1 – 3 of 3) sorted by relevance

/drivers/media/v4l2-core/
Dv4l2-common.c93 static unsigned int clamp_align(unsigned int x, unsigned int min, in clamp_align() function
124 *w = clamp_align(*w, wmin, wmax, walign); in v4l_bound_align_image()
125 *h = clamp_align(*h, hmin, hmax, halign); in v4l_bound_align_image()
145 *w = clamp_align(*w, wmin, wmax, walign + 1); in v4l_bound_align_image()
148 *h = clamp_align(*h, hmin, hmax, halign + 1); in v4l_bound_align_image()
/drivers/leds/
Dleds-max77693.c698 static void clamp_align(u32 *v, u32 min, u32 max, u32 step) in clamp_align() function
723 clamp_align(&iout[i], min, max, step); in max77693_align_iout_current()
753 clamp_align(&cfg->flash_timeout_max[i], FLASH_TIMEOUT_MIN, in max77693_led_validate_configuration()
756 clamp_align(&cfg->boost_vout, FLASH_VOUT_MIN, FLASH_VOUT_MAX, in max77693_led_validate_configuration()
760 clamp_align(&cfg->low_vsys, MAX_FLASH1_VSYS_MIN, in max77693_led_validate_configuration()
/drivers/gpu/ipu-v3/
Dipu-image-convert.c1951 static unsigned int clamp_align(unsigned int x, unsigned int min, in clamp_align() function
2009 in->pix.width = clamp_align(in->pix.width, MIN_W, MAX_W, in ipu_image_convert_adjust()
2011 in->pix.height = clamp_align(in->pix.height, MIN_H, MAX_H, in ipu_image_convert_adjust()
2019 out->pix.width = clamp_align(out->pix.width, MIN_W, MAX_W, in ipu_image_convert_adjust()
2021 out->pix.height = clamp_align(out->pix.height, MIN_H, MAX_H, in ipu_image_convert_adjust()
2026 clamp_align(in->pix.width, 2 << w_align_in, MAX_W, in ipu_image_convert_adjust()
2028 clamp_align((in->pix.width * infmt->bpp) >> 3, in ipu_image_convert_adjust()