Home
last modified time | relevance | path

Searched refs:env_t (Results 1 – 18 of 18) sorted by relevance

/openbmc/u-boot/env/
H A Deeprom.c76 off + index + offsetof(env_t, data), &c, 1); in env_eeprom_get_char()
100 off_env[i] + offsetof(env_t, crc), in env_eeprom_load()
104 off_env[i] + offsetof(env_t, flags), in env_eeprom_load()
109 off = off_env[i] + offsetof(env_t, data); in env_eeprom_load()
154 CONFIG_ENV_OFFSET + offsetof(env_t, crc), in env_eeprom_load()
159 off = offsetof(env_t, data); in env_eeprom_load()
191 env_t env_new; in env_eeprom_save()
218 off_red + offsetof(env_t, flags), in env_eeprom_save()
H A Dflash.c50 static env_t *env_ptr = &environment;
53 static env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
56 static __maybe_unused env_t *flash_addr = (env_t *)CONFIG_ENV_ADDR;
64 static env_t __maybe_unused *flash_addr_new = (env_t *)CONFIG_ENV_ADDR_REDUND;
121 env_t env_new; in env_flash_save()
196 env_t *etmp = flash_addr; in env_flash_save()
241 env_t env_new; in env_flash_save()
314 env_t *etmp = flash_addr; in env_flash_load()
H A Dnand.c43 static env_t *env_ptr = &environment;
45 static env_t *env_ptr = (env_t *)CONFIG_NAND_ENV_DST;
66 env_t *tmp_env1; in env_nand_init()
69 env_t *tmp_env2; in env_nand_init()
71 tmp_env2 = (env_t *)((ulong)env_ptr + CONFIG_ENV_SIZE); in env_nand_init()
186 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_nand_save()
321 env_t *tmp_env1, *tmp_env2; in env_nand_load()
324 tmp_env1 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_nand_load()
325 tmp_env2 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_nand_load()
H A Dubi.c24 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
66 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
98 env_t *tmp_env1, *tmp_env2; in env_ubi_load()
111 tmp_env1 = (env_t *)env1_buf; in env_ubi_load()
112 tmp_env2 = (env_t *)env2_buf; in env_ubi_load()
H A Dsf.c75 env_t env_new; in env_sf_save()
134 ret = spi_flash_write(env_flash, env_offset + offsetof(env_t, flags), in env_sf_save()
157 env_t *tmp_env1, *tmp_env2; in env_sf_load()
159 tmp_env1 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load()
161 tmp_env2 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load()
196 env_t env_new; in env_sf_save()
298 env_t *env_ptr = (env_t *)env_sf_get_env_addr(); in env_sf_init()
H A Dremote.c14 env_t *env_ptr = &environment;
16 env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
H A Dcommon.c109 env_t *ep = (env_t *)buf; in env_import()
142 env_t *ep, *tmp_env1, *tmp_env2; in env_import_redund()
144 tmp_env1 = (env_t *)buf1; in env_import_redund()
145 tmp_env2 = (env_t *)buf2; in env_import_redund()
202 int env_export(env_t *env_out) in env_export()
H A Dnvram.c39 env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
70 env_t env_new; in env_nvram_save()
H A Dembedded.c72 env_t redundand_environment __UBOOT_ENV_SECTION__(redundand_environment) = {
89 unsigned long env_size __UBOOT_ENV_SECTION__(env_size) = sizeof(env_t);
H A Dext4.c36 env_t env_new; in env_ext4_save()
63 sizeof(env_t)); in env_ext4_save()
H A Dfat.c36 env_t __aligned(ARCH_DMA_MINALIGN) env_new; in env_fat_save()
64 err = file_fat_write(CONFIG_ENV_FAT_FILE, (void *)&env_new, 0, sizeof(env_t), in env_fat_save()
H A Dmmc.c201 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_mmc_save()
272 ALLOC_CACHE_ALIGN_BUFFER(env_t, tmp_env1, 1); in env_mmc_load()
273 ALLOC_CACHE_ALIGN_BUFFER(env_t, tmp_env2, 1); in env_mmc_load()
H A Donenand.c67 env_t env_new; in env_onenand_save()
H A Dsata.c47 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_sata_save()
/openbmc/u-boot/include/
H A Denvironment.h153 } env_t; typedef
156 extern env_t environment;
274 int env_export(env_t *env_out);
H A Denv_default.h13 env_t environment __UBOOT_ENV_SECTION__(environment) = {
/openbmc/u-boot/cmd/
H A Dnvedit.c918 env_t *envp; in do_env_export()
984 envp = (env_t *)ptr; in do_env_export()
1002 size ? size - offsetof(env_t, data) : ENV_SIZE); in do_env_export()
1007 env_set_hex("filesize", len + offsetof(env_t, data)); in do_env_export()
1131 env_t *ep = (env_t *)ptr; in do_env_import()
1133 size -= offsetof(env_t, data); in do_env_import()
/openbmc/u-boot/tools/
H A Denvcrc.c64 extern env_t environment;