Lines Matching refs:CONFIG_ENV_SIZE
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()
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()
215 if (CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE) { in env_sf_save()
216 saved_size = CONFIG_ENV_SECT_SIZE - CONFIG_ENV_SIZE; in env_sf_save()
217 saved_offset = CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE; in env_sf_save()
232 sector = DIV_ROUND_UP(CONFIG_ENV_SIZE, CONFIG_ENV_SECT_SIZE); in env_sf_save()
242 CONFIG_ENV_SIZE, &env_new); in env_sf_save()
246 if (CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE) { in env_sf_save()
269 buf = (char *)memalign(ARCH_DMA_MINALIGN, CONFIG_ENV_SIZE); in env_sf_load()
280 CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, buf); in env_sf_load()