/u-boot/scripts/kconfig/ |
H A D | nconf.h | 26 #define max(a, b) ({\ macro
|
/u-boot/include/linux/ |
H A D | kernel.h | 177 * 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 D | lmb.h | 60 * @max: Size of the region array, max value of cnt. 65 unsigned long max; member in struct:lmb_region
|
/u-boot/tools/ |
H A D | renesas_spkgimage.c | 31 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 D | pl022_spi.c | 248 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 D | ics307_clk.c | 71 diff = max(out_freq, tmp_out) - min(out_freq, tmp_out);
|
/u-boot/arch/powerpc/cpu/mpc8xxx/ |
H A D | fsl_pamu.c | 345 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 D | axp221.c | 18 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 D | clocks-common.c | 560 * 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 D | dmc-rk3368.c | 492 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 D | clk-peripheral.c | 181 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) { 188 if (periph->range.max && rate > periph->range.max)
|
/u-boot/drivers/misc/ |
H A D | atsha204a-i2c.c | 277 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 D | dram_sun20i_d1.c | 258 // 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 D | ext4_journal.c | 207 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 D | ci_udc.c | 343 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 D | lmb.c | 29 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 D | membuff.c | 325 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 D | entropy_common.c | 149 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 D | zstd_internal.h | 51 #define BOUNDED(min,val,max) (MAX(min,MIN(val,max)))
|
/u-boot/drivers/power/regulator/ |
H A D | sandbox.c | 24 .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 D | cache_v7_asm.S | 48 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 D | micrel_ksz90x1.c | 115 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 D | sandbox_sdl.c | 70 uc_plat->size = max(uc_plat->size, 1920U * 1080 * VNBYTES(VIDEO_BPP32));
|
/u-boot/test/log/ |
H A D | log_test.c | 59 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 D | universal.c | 118 #define IS_RANGE(x, min, max) ((x) > (min) && (x) < (max))
|