| /OK3568_Linux_fs/u-boot/env/ |
| H A D | ubi.c | 41 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save() 50 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save() 81 CONFIG_ENV_SIZE)) { in env_ubi_save() 96 ALLOC_CACHE_ALIGN_BUFFER(char, env1_buf, CONFIG_ENV_SIZE); in env_ubi_load() 97 ALLOC_CACHE_ALIGN_BUFFER(char, env2_buf, CONFIG_ENV_SIZE); in env_ubi_load() 108 memset(env1_buf, 0x0, CONFIG_ENV_SIZE); in env_ubi_load() 109 memset(env2_buf, 0x0, CONFIG_ENV_SIZE); in env_ubi_load() 122 CONFIG_ENV_SIZE)) { in env_ubi_load() 128 CONFIG_ENV_SIZE)) { in env_ubi_load() 140 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_ubi_load() [all …]
|
| H A D | sf.c | 110 if (CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE) { in env_sf_save() 111 saved_size = CONFIG_ENV_SECT_SIZE - CONFIG_ENV_SIZE; in env_sf_save() 112 saved_offset = env_new_offset + CONFIG_ENV_SIZE; in env_sf_save() 124 sector = DIV_ROUND_UP(CONFIG_ENV_SIZE, CONFIG_ENV_SECT_SIZE); in env_sf_save() 135 CONFIG_ENV_SIZE, &env_new); in env_sf_save() 139 if (CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE) { in env_sf_save() 174 CONFIG_ENV_SIZE); in env_sf_load() 176 CONFIG_ENV_SIZE); in env_sf_load() 188 CONFIG_ENV_SIZE, tmp_env1); in env_sf_load() 198 CONFIG_ENV_SIZE, tmp_env2); in env_sf_load() [all …]
|
| H A D | flash.c | 32 (CONFIG_ENV_SIZE_REDUND < CONFIG_ENV_SIZE) 33 #error CONFIG_ENV_SIZE_REDUND should not be less then CONFIG_ENV_SIZE 126 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE in env_flash_save() 146 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE in env_flash_save() 147 up_data = end_addr_new + 1 - ((long)flash_addr_new + CONFIG_ENV_SIZE); in env_flash_save() 157 (void *)((long)flash_addr_new + CONFIG_ENV_SIZE), in env_flash_save() 160 (long)flash_addr_new + CONFIG_ENV_SIZE, in env_flash_save() 184 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE in env_flash_save() 187 (long)flash_addr_new + CONFIG_ENV_SIZE, up_data); in env_flash_save() 189 (long)flash_addr_new + CONFIG_ENV_SIZE, in env_flash_save() [all …]
|
| H A D | nand.c | 35 (CONFIG_ENV_SIZE_REDUND != CONFIG_ENV_SIZE) 36 #error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE 40 #define CONFIG_ENV_RANGE CONFIG_ENV_SIZE 74 tmp_env2 = (env_t *)((ulong)env_ptr + CONFIG_ENV_SIZE); in env_nand_init() 140 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in writeenv() 142 while (amount_saved < CONFIG_ENV_SIZE && offset < end) { in writeenv() 154 if (amount_saved != CONFIG_ENV_SIZE) in writeenv() 211 if (CONFIG_ENV_RANGE < CONFIG_ENV_SIZE) in env_nand_save() 245 return nand_spl_load_image(offset, CONFIG_ENV_SIZE, buf); in readenv() 261 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in readenv() [all …]
|
| H A D | nvram.c | 56 char buf[CONFIG_ENV_SIZE]; in env_nvram_load() 59 nvram_read(buf, CONFIG_ENV_ADDR, CONFIG_ENV_SIZE); in env_nvram_load() 61 memcpy(buf, (void *)CONFIG_ENV_ADDR, CONFIG_ENV_SIZE); in env_nvram_load() 78 nvram_write(CONFIG_ENV_ADDR, &env_new, CONFIG_ENV_SIZE); in env_nvram_save() 80 if (memcpy((char *)CONFIG_ENV_ADDR, &env_new, CONFIG_ENV_SIZE) == NULL) in env_nvram_save()
|
| H A D | sata.c | 23 #if !defined(CONFIG_ENV_OFFSET) || !defined(CONFIG_ENV_SIZE) 24 #error CONFIG_ENV_OFFSET or CONFIG_ENV_SIZE not defined 71 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { in env_sata_save() 96 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_sata_load() 111 if (read_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, buf)) { in env_sata_load()
|
| H A D | mmc.c | 26 (CONFIG_ENV_SIZE_REDUND != CONFIG_ENV_SIZE) 27 #error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE 57 len = (CONFIG_ENV_SIZE + info.blksz - 1) & ~(info.blksz - 1); in mmc_offset_try_partition() 230 if (write_env(mmc, CONFIG_ENV_SIZE, offset, (u_char *)env_new)) { in env_mmc_save() 291 read1_fail = read_env(mmc, CONFIG_ENV_SIZE, offset1, tmp_env1); in env_mmc_load() 292 read2_fail = read_env(mmc, CONFIG_ENV_SIZE, offset2, tmp_env2); in env_mmc_load() 329 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_mmc_load() 349 if (read_env(mmc, CONFIG_ENV_SIZE, offset, buf)) { in env_mmc_load()
|
| H A D | env_blk.c | 15 (CONFIG_ENV_SIZE_REDUND != CONFIG_ENV_SIZE) 16 #error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE 138 if (write_env(blk_desc, CONFIG_ENV_SIZE, offset, (u_char *)env_new)) { in env_blk_save() 202 read1_fail = read_env(blk_desc, CONFIG_ENV_SIZE, offset1, tmp_env1); in env_blk_load() 203 read2_fail = read_env(blk_desc, CONFIG_ENV_SIZE, offset2, tmp_env2); in env_blk_load() 240 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_blk_load() 264 if (read_env(blk_desc, CONFIG_ENV_SIZE, offset, buf)) { in env_blk_load()
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | environment.h | 37 # if defined(CONFIG_ENV_SECT_SIZE) || defined(CONFIG_ENV_SIZE) 39 # define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE 41 # ifndef CONFIG_ENV_SIZE 42 # define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro 48 # define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE 51 (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= \ 86 # ifndef CONFIG_ENV_SIZE 101 # ifndef CONFIG_ENV_SIZE 148 #if defined(CONFIG_ENV_NAND_SIZE) && (CONFIG_ENV_SIZE < CONFIG_ENV_NAND_SIZE) 151 #define ENV_SIZE_VAL CONFIG_ENV_SIZE
|
| /OK3568_Linux_fs/u-boot/include/configs/ |
| H A D | microblaze-generic.h | 98 # define CONFIG_ENV_SIZE 0x1000 macro 99 # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE) 106 # define CONFIG_ENV_SIZE 0x20000 macro 117 # define CONFIG_ENV_SIZE 0x1000 macro 118 # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE) 126 # define CONFIG_ENV_SIZE (2 * CONFIG_ENV_SECT_SIZE) macro 133 # define CONFIG_ENV_SIZE 0x1000 macro 134 # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
|
| H A D | at91sam9260ek.h | 125 #define CONFIG_ENV_SIZE 0x4200 macro 135 #define CONFIG_ENV_SIZE 0x4200 macro 147 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro 154 #define CONFIG_ENV_SIZE 0x1000 macro 168 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
|
| H A D | UCP1020.h | 363 #define CONFIG_ENV_SIZE 0x20000 macro 375 #define CONFIG_ENV_SIZE 0x3000 /* 12KB */ macro 381 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) 382 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE 387 #define CONFIG_ENV_SIZE 0x2000 macro 392 #define CONFIG_ENV_SIZE 0x2000 macro 397 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro 401 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) 402 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
|
| H A D | at91-sama5_common.h | 52 #define CONFIG_ENV_SIZE 0x1000 macro 56 #define CONFIG_ENV_SIZE 0x4000 macro 72 #define CONFIG_ENV_SIZE 0x20000 macro 79 #define CONFIG_ENV_SIZE 0x2000 macro
|
| H A D | stv0991.h | 21 #define CONFIG_ENV_SIZE 0x10000 macro 22 #define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE 25 (PHYS_SDRAM_1_SIZE - CONFIG_ENV_SIZE) 26 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 16 * 1024)
|
| H A D | omapl138_lcdk.h | 156 #define CONFIG_ENV_SIZE (128 << 9) macro 201 #define CONFIG_ENV_SIZE (128 << 10) macro 210 #define CONFIG_ENV_SIZE (64 << 10) macro 277 #define CONFIG_ENV_SIZE (16 << 10) macro 283 #undef CONFIG_ENV_SIZE 285 #define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */ macro
|
| H A D | at91sam9rlek.h | 83 #define CONFIG_ENV_SIZE 0x4200 macro 95 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro 103 #define CONFIG_ENV_SIZE 0x4000 macro 116 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
|
| H A D | mx28evk.h | 26 #define CONFIG_ENV_SIZE (16 * 1024) macro 28 #define CONFIG_ENV_SIZE (4 * 1024) macro 40 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE 52 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
|
| H A D | mx31ads.h | 28 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128 * 1024) 131 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro 135 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) 136 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
|
| H A D | at91sam9263ek.h | 87 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR - CONFIG_ENV_SIZE) 90 #define CONFIG_ENV_SIZE 0x10000 macro 238 #define CONFIG_ENV_SIZE 0x4200 macro 250 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro 261 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
|
| H A D | at91sam9261ek.h | 111 #define CONFIG_ENV_SIZE 0x4200 macro 122 #define CONFIG_ENV_SIZE 0x4200 macro 134 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro 145 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
|
| H A D | P1010RDB.h | 675 #define CONFIG_ENV_SIZE 0x2000 macro 683 #define CONFIG_ENV_SIZE 0x2000 macro 686 #define CONFIG_ENV_SIZE 0x2000 macro 690 #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE macro 691 #define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE) /* 3*16=48K for env */ 693 #define CONFIG_ENV_SIZE (16 * 1024) macro 694 #define CONFIG_ENV_RANGE (32 * CONFIG_ENV_SIZE) /* new block size 512K */ 700 #define CONFIG_ENV_SIZE 0x2000 macro 703 #define CONFIG_ENV_SIZE 0x2000 macro
|
| H A D | flea3.h | 38 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024) 133 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro 136 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) 137 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
|
| H A D | at91sam9x5ek.h | 101 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro 108 #define CONFIG_ENV_SIZE 0x3000 macro 117 #define CONFIG_ENV_SIZE 0x4200 macro 125 #define CONFIG_ENV_SIZE 0x4000 macro
|
| H A D | at91sam9n12ek.h | 105 #define CONFIG_ENV_SIZE 0x3000 macro 117 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro 131 #define CONFIG_ENV_SIZE 0x1000 macro 135 #define CONFIG_ENV_SIZE 0x4000 macro
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | envcrc.c | 34 # ifndef CONFIG_ENV_SIZE 35 # define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro 38 # define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE 41 ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)) 59 #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
|