Searched refs:clamp_align (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/drivers/media/v4l2-core/ |
| D | v4l2-common.c | 94 static unsigned int clamp_align(unsigned int x, unsigned int min, in clamp_align() function 125 *w = clamp_align(*w, wmin, wmax, walign); in v4l_bound_align_image() 126 *h = clamp_align(*h, hmin, hmax, halign); in v4l_bound_align_image() 146 *w = clamp_align(*w, wmin, wmax, walign + 1); in v4l_bound_align_image() 149 *h = clamp_align(*h, hmin, hmax, halign + 1); in v4l_bound_align_image()
|
| /Linux-v5.4/drivers/leds/ |
| D | leds-max77693.c | 698 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()
|
| /Linux-v5.4/drivers/gpu/ipu-v3/ |
| D | ipu-image-convert.c | 1916 static unsigned int clamp_align(unsigned int x, unsigned int min, in clamp_align() function 1974 in->pix.width = clamp_align(in->pix.width, MIN_W, MAX_W, in ipu_image_convert_adjust() 1976 in->pix.height = clamp_align(in->pix.height, MIN_H, MAX_H, in ipu_image_convert_adjust() 1984 out->pix.width = clamp_align(out->pix.width, MIN_W, MAX_W, in ipu_image_convert_adjust() 1986 out->pix.height = clamp_align(out->pix.height, MIN_H, MAX_H, in ipu_image_convert_adjust() 1991 clamp_align(in->pix.width, 2 << w_align_in, MAX_W, in ipu_image_convert_adjust() 1993 clamp_align((in->pix.width * infmt->bpp) >> 3, in ipu_image_convert_adjust()
|