Searched refs:max (Results 51 - 75 of 193) sorted by relevance

12345678

/u-boot/scripts/kconfig/
H A Dnconf.h26 #define max(a, b) ({\ macro
/u-boot/include/linux/
H A Dkernel.h177 * min()/max()/clamp() macros that also do
187 #define max(x, y) ({ \ macro
194 #define max3(x, y, z) max((typeof(x))max(x, y), z)
215 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
221 * Or not use min/max/clamp at all, of course.
253 * type and min and max are literals that will otherwise be assigned a signed
/u-boot/include/
H A Dlmb.h60 * @max: Size of the region array, max value of cnt.
65 unsigned long max; member in struct:lmb_region
/u-boot/tools/
H A Drenesas_spkgimage.c31 static int check_range(const char *name, int val, int min, int max) argument
39 if (val > max) {
40 fprintf(stderr, "Warning: param '%s' adjusted to max %d\n",
41 name, max);
42 val = max;
/u-boot/drivers/spi/
H A Dpl022_spi.c248 u32 min, max, best_freq = 0, tmp; local
252 max = spi_rate(rate, SSP_CPSR_MIN, SSP_SCR_MIN);
255 if (speed > max || speed < min) {
256 pr_err("Tried to set speed to %dHz but min=%d and max=%d\n",
257 speed, min, max);
/u-boot/board/freescale/common/
H A Dics307_clk.c71 diff = max(out_freq, tmp_out) - min(out_freq, tmp_out);
/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dfsl_pamu.c345 int max = 0; local
347 if (arr[max] < arr[i])
348 max = i;
350 return arr[max];
395 debug("max end_addr is %llx\n", max_addr);
/u-boot/drivers/power/
H A Daxp221.c18 static u8 axp221_mvolt_to_cfg(int mvolt, int min, int max, int div) argument
22 else if (mvolt > max)
23 mvolt = max;
/u-boot/arch/arm/mach-omap2/
H A Dclocks-common.c560 * if we have a group and find the max voltage,
830 u32 i, max = 100; local
833 for (i = 0; (i < max) && clk_domains && clk_domains[i]; i++) {
839 for (i = 0; (i < max) && clk_modules_hw_auto &&
847 for (i = 0; (i < max) && clk_modules_explicit_en &&
855 for (i = 0; (i < max) && clk_domains && clk_domains[i]; i++) {
866 u32 i, max = 10; local
872 for (i = 0; (i < max) && clk_domains && clk_domains[i]; i++) {
878 for (i = 0; (i < max) && clk_modules_hw_auto &&
886 for (i = 0; (i < max)
898 u32 i, max = 100; local
[all...]
/u-boot/drivers/ram/rockchip/
H A Ddmc-rk3368.c492 pctl_timing->trfc = ns_to_tCK(350, freq); /* tRFC: 350 (max) @ 8GBit */
493 pctl_timing->trp = max(4u, ps_to_tCK(13750, freq));
504 pctl_timing->trrd = max(4u, ps_to_tCK(7500, freq));
505 pctl_timing->trtp = max(4u, ps_to_tCK(7500, freq));
510 pctl_timing->twtr = max(4u, ps_to_tCK(7500, freq));
511 pctl_timing->texsr = 512; /* tEXSR(max) is tDLLLK */
512 pctl_timing->txp = max(3u, ps_to_tCK(6000, freq));
513 pctl_timing->txpdll = max(10u, ps_to_tCK(24000, freq));
514 pctl_timing->tzqcs = max(64u, ps_to_tCK(80000, freq));
517 pctl_timing->tcksre = max(
[all...]
/u-boot/drivers/clk/at91/
H A Dclk-peripheral.c181 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) {
188 if (periph->range.max && rate > periph->range.max)
/u-boot/drivers/misc/
H A Datsha204a-i2c.c277 int atsha204a_get_random(struct udevice *dev, u8 *buffer, size_t max) argument
300 memcpy(buffer, ((u8 *) &resp) + 1, max >= 32 ? 32 : max);
/u-boot/drivers/ram/sunxi/
H A Ddram_sun20i_d1.c258 // twr = max(ns_to_t(15), 2);
259 trrd = max(ns_to_t(10), 2);
260 txp = max(ns_to_t(10), 2);
317 tfaw = max(ns_to_t(50), 4);
318 trrd = max(ns_to_t(10), 1);
319 trcd = max(ns_to_t(24), 2);
328 twr = max(ns_to_t(15), 2);
361 tfaw = max(ns_to_t(50), 4);
362 trrd = max(ns_to_t(10), 1);
363 trcd = max(ns_to_
[all...]
/u-boot/fs/ext4/
H A Dext4_journal.c207 int max; local
216 max = be32_to_cpu(header->r_count);
217 printf("total bytes %d\n", max);
219 while (offset < max) {
293 int max; local
303 max = be32_to_cpu(header->r_count);
305 while (offset < max) {
/u-boot/drivers/usb/gadget/
H A Dci_udc.c343 int max = get_unaligned_le16(&desc->wMaxPacketSize); local
345 if ((max > 64) && (controller.gadget.speed == USB_SPEED_FULL))
346 max = 64;
347 if (ep->maxpacket != max) {
349 ep->maxpacket, max);
350 ep->maxpacket = max;
860 int max = 64; local
871 max = 512;
875 if (controller.ep[i].ep.maxpacket > max)
876 controller.ep[i].ep.maxpacket = max;
[all...]
/u-boot/lib/
H A Dlmb.c29 printf(" %s.cnt = 0x%lx / max = 0x%lx\n", name, rgn->cnt, rgn->max);
136 lmb->memory.max = CONFIG_LMB_MAX_REGIONS;
137 lmb->reserved.max = CONFIG_LMB_MAX_REGIONS;
139 lmb->memory.max = CONFIG_LMB_MEMORY_REGIONS;
140 lmb->reserved.max = CONFIG_LMB_RESERVED_REGIONS;
318 if (rgn->cnt >= rgn->max)
H A Dmembuff.c325 int membuff_extend_by(struct membuff *mb, int by, int max) argument
335 if (max != -1)
336 size = min(size, max);
/u-boot/lib/zstd/common/
H A Dentropy_common.c149 int const max = (2*threshold-1) - remaining; local
152 if ((bitStream & (threshold-1)) < (U32)max) {
157 if (count >= threshold) count -= max;
288 /* max (hwSize-1) values decoded, as last one is implied */
H A Dzstd_internal.h51 #define BOUNDED(min,val,max) (MAX(min,MIN(val,max)))
/u-boot/drivers/power/regulator/
H A Dsandbox.c24 .max = _max, \
33 * @max - maximum value
38 int max; member in struct:output_range
120 max_value = range[dev->driver_data - 1].max;
/u-boot/arch/arm/cpu/armv7/
H A Dcache_v7_asm.S48 ands r7, r7, r1, lsr #13 @ extract max number of the index size
50 mov r9, r7 @ create working copy of max index
118 ands r7, r7, r1, lsr #13 @ extract max number of the index size
120 mov r9, r7 @ create working copy of max index
/u-boot/drivers/net/phy/
H A Dmicrel_ksz90x1.c115 int i, changed = 0, offset, max; local
143 max = (1 << ofcfg->grp[i].size) - 1;
144 if (val[i] > ps_to_regval * max) {
145 regval |= max << offset;
/u-boot/drivers/video/
H A Dsandbox_sdl.c70 uc_plat->size = max(uc_plat->size, 1920U * 1080 * VNBYTES(VIDEO_BPP32));
/u-boot/test/log/
H A Dlog_test.c59 int max)
63 for (i = min; i <= max; i++) {
89 #define check_log_entries_flags_levels(flags, min, max) do {\
90 int ret = do_check_log_entries(uts, flags, min, max); \
58 do_check_log_entries(struct unit_test_state *uts, int flags, int min, int max) argument
/u-boot/board/samsung/universal_c210/
H A Duniversal.c118 #define IS_RANGE(x, min, max) ((x) > (min) && (x) < (max))

Completed in 357 milliseconds

12345678