Home
last modified time | relevance | path

Searched refs:CONFIG_ENV_SIZE (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/external/u-boot/env/
Dubi.c40 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
49 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
80 CONFIG_ENV_SIZE)) { in env_ubi_save()
95 ALLOC_CACHE_ALIGN_BUFFER(char, env1_buf, CONFIG_ENV_SIZE); in env_ubi_load()
96 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 (void *)tmp_env2, CONFIG_ENV_SIZE); in env_ubi_load()
139 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_ubi_load()
[all …]
Dsf.c110 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()
172 CONFIG_ENV_SIZE); in env_sf_load()
174 CONFIG_ENV_SIZE); in env_sf_load()
186 CONFIG_ENV_SIZE, tmp_env1); in env_sf_load()
188 CONFIG_ENV_SIZE, tmp_env2); in env_sf_load()
[all …]
Dflash.c31 (CONFIG_ENV_SIZE_REDUND < CONFIG_ENV_SIZE)
32 #error CONFIG_ENV_SIZE_REDUND should not be less then CONFIG_ENV_SIZE
125 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE in env_flash_save()
145 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE in env_flash_save()
146 up_data = end_addr_new + 1 - ((long)flash_addr_new + CONFIG_ENV_SIZE); in env_flash_save()
156 (void *)((long)flash_addr_new + CONFIG_ENV_SIZE), in env_flash_save()
159 (long)flash_addr_new + CONFIG_ENV_SIZE, in env_flash_save()
183 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE in env_flash_save()
186 (long)flash_addr_new + CONFIG_ENV_SIZE, up_data); in env_flash_save()
188 (long)flash_addr_new + CONFIG_ENV_SIZE, in env_flash_save()
[all …]
Dnand.c34 (CONFIG_ENV_SIZE_REDUND != CONFIG_ENV_SIZE)
35 #error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE
39 #define CONFIG_ENV_RANGE CONFIG_ENV_SIZE
73 tmp_env2 = (env_t *)((ulong)env_ptr + CONFIG_ENV_SIZE); in env_nand_init()
139 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in writeenv()
141 while (amount_saved < CONFIG_ENV_SIZE && offset < end) { in writeenv()
153 if (amount_saved != CONFIG_ENV_SIZE) in writeenv()
210 if (CONFIG_ENV_RANGE < CONFIG_ENV_SIZE) in env_nand_save()
244 return nand_spl_load_image(offset, CONFIG_ENV_SIZE, buf); in readenv()
260 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in readenv()
[all …]
Dnvram.c58 char buf[CONFIG_ENV_SIZE]; in env_nvram_load()
61 nvram_read(buf, CONFIG_ENV_ADDR, CONFIG_ENV_SIZE); in env_nvram_load()
63 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()
Dsata.c22 #if !defined(CONFIG_ENV_OFFSET) || !defined(CONFIG_ENV_SIZE)
23 #error CONFIG_ENV_OFFSET or CONFIG_ENV_SIZE not defined
68 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { in env_sata_save()
93 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_sata_load()
108 if (read_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, buf)) { in env_sata_load()
Dmmc.c25 (CONFIG_ENV_SIZE_REDUND != CONFIG_ENV_SIZE)
26 #error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE
56 len = (CONFIG_ENV_SIZE + info.blksz - 1) & ~(info.blksz - 1); in mmc_offset_try_partition()
229 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()
310 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_mmc_load()
330 if (read_env(mmc, CONFIG_ENV_SIZE, offset, buf)) { in env_mmc_load()
/external/u-boot/include/configs/
Dmicroblaze-generic.h96 # define CONFIG_ENV_SIZE 0x1000 macro
97 # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
104 # define CONFIG_ENV_SIZE 0x20000 macro
115 # define CONFIG_ENV_SIZE 0x1000 macro
116 # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
124 # define CONFIG_ENV_SIZE (2 * CONFIG_ENV_SECT_SIZE) macro
131 # define CONFIG_ENV_SIZE 0x1000 macro
132 # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
Dat91sam9260ek.h121 #define CONFIG_ENV_SIZE 0x4200 macro
131 #define CONFIG_ENV_SIZE 0x4200 macro
143 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro
150 #define CONFIG_ENV_SIZE 0x1000 macro
160 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
DUCP1020.h344 #define CONFIG_ENV_SIZE 0x20000 macro
356 #define CONFIG_ENV_SIZE 0x3000 /* 12KB */ macro
362 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
363 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
368 #define CONFIG_ENV_SIZE 0x2000 macro
373 #define CONFIG_ENV_SIZE 0x2000 macro
378 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro
382 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE)
383 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
Dat91-sama5_common.h42 #define CONFIG_ENV_SIZE 0x1000 macro
46 #define CONFIG_ENV_SIZE 0x4000 macro
62 #define CONFIG_ENV_SIZE 0x20000 macro
69 #define CONFIG_ENV_SIZE 0x2000 macro
Dstv0991.h18 #define CONFIG_ENV_SIZE 0x10000 macro
19 #define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
22 (PHYS_SDRAM_1_SIZE - CONFIG_ENV_SIZE)
23 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 16 * 1024)
Domapl138_lcdk.h148 #define CONFIG_ENV_SIZE (128 << 9) macro
193 #define CONFIG_ENV_SIZE (128 << 10) macro
202 #define CONFIG_ENV_SIZE (64 << 10) macro
273 #define CONFIG_ENV_SIZE (16 << 10) macro
279 #undef CONFIG_ENV_SIZE
281 #define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */ macro
Dat91sam9rlek.h79 #define CONFIG_ENV_SIZE 0x4200 macro
91 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro
99 #define CONFIG_ENV_SIZE 0x4000 macro
108 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
Dmx28evk.h24 #define CONFIG_ENV_SIZE (16 * 1024) macro
26 #define CONFIG_ENV_SIZE (4 * 1024) macro
38 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
50 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
Dat91sam9263ek.h75 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR - CONFIG_ENV_SIZE)
78 #define CONFIG_ENV_SIZE 0x10000 macro
227 #define CONFIG_ENV_SIZE 0x4200 macro
239 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro
246 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
Dat91sam9261ek.h107 #define CONFIG_ENV_SIZE 0x4200 macro
118 #define CONFIG_ENV_SIZE 0x4200 macro
130 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro
137 #define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
Dflea3.h36 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
124 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro
127 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
128 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
Dwoodburn_common.h34 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
130 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro
133 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
134 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
Dat91sam9x5ek.h91 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro
98 #define CONFIG_ENV_SIZE 0x3000 macro
107 #define CONFIG_ENV_SIZE 0x4200 macro
115 #define CONFIG_ENV_SIZE 0x4000 macro
Dat91sam9n12ek.h103 #define CONFIG_ENV_SIZE 0x3000 macro
115 #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ macro
129 #define CONFIG_ENV_SIZE 0x1000 macro
133 #define CONFIG_ENV_SIZE 0x4000 macro
DP1010RDB.h653 #define CONFIG_ENV_SIZE 0x2000 macro
661 #define CONFIG_ENV_SIZE 0x2000 macro
664 #define CONFIG_ENV_SIZE 0x2000 macro
668 #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE macro
669 #define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE) /* 3*16=48K for env */
671 #define CONFIG_ENV_SIZE (16 * 1024) macro
672 #define CONFIG_ENV_RANGE (32 * CONFIG_ENV_SIZE) /* new block size 512K */
678 #define CONFIG_ENV_SIZE 0x2000 macro
681 #define CONFIG_ENV_SIZE 0x2000 macro
Dmx35pdk.h32 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
138 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro
141 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
142 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
/external/u-boot/include/
Denvironment.h35 # if defined(CONFIG_ENV_SECT_SIZE) || defined(CONFIG_ENV_SIZE)
37 # define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
39 # ifndef CONFIG_ENV_SIZE
40 # define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro
46 # define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
49 (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= \
84 # ifndef CONFIG_ENV_SIZE
99 # ifndef CONFIG_ENV_SIZE
145 #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
/external/u-boot/tools/
Denvcrc.c33 # ifndef CONFIG_ENV_SIZE
34 # define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE macro
37 # define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
40 ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN))
58 #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)

12345678910>>...20