Lines Matching refs:CONFIG_ENV_SIZE
34 (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()
262 while (amount_loaded < CONFIG_ENV_SIZE && offset < end) { in readenv()
277 if (amount_loaded != CONFIG_ENV_SIZE) in readenv()
326 tmp_env1 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_nand_load()
327 tmp_env2 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_nand_load()
358 ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); in env_nand_load()