Lines Matching refs:ulong

59 static ulong __maybe_unused end_addr =
67 static ulong __maybe_unused end_addr_new =
80 ulong addr_default = (ulong)&default_environment[0]; in env_flash_init()
81 ulong addr1 = (ulong)&(flash_addr->data); in env_flash_init()
82 ulong addr2 = (ulong)&(flash_addr_new->data); in env_flash_init()
126 ulong up_data = 0; in env_flash_save()
129 debug("Protect off %08lX ... %08lX\n", (ulong)flash_addr, end_addr); in env_flash_save()
131 if (flash_sect_protect(0, (ulong)flash_addr, end_addr)) in env_flash_save()
135 (ulong)flash_addr_new, end_addr_new); in env_flash_save()
137 if (flash_sect_protect(0, (ulong)flash_addr_new, end_addr_new)) in env_flash_save()
164 debug(" %08lX ... %08lX ...", (ulong)flash_addr_new, end_addr_new); in env_flash_save()
166 if (flash_sect_erase((ulong)flash_addr_new, end_addr_new)) in env_flash_save()
171 (ulong)&(flash_addr_new->data), in env_flash_save()
172 sizeof(env_ptr->data) + (ulong)&(flash_addr_new->data)); in env_flash_save()
173 rc = flash_write((char *)&env_new, (ulong)flash_addr_new, in env_flash_save()
178 rc = flash_write(&flag, (ulong)&(flash_addr->flags), in env_flash_save()
197 ulong ltmp = end_addr; in env_flash_save()
214 flash_sect_protect(1, (ulong)flash_addr, end_addr); in env_flash_save()
215 flash_sect_protect(1, (ulong)flash_addr_new, end_addr_new); in env_flash_save()
227 gd->env_addr = (ulong)&(env_ptr->data); in env_flash_init()
232 gd->env_addr = (ulong)&default_environment[0]; in env_flash_init()
245 ulong up_data = 0; in env_flash_save()
259 (ulong)flash_addr + CONFIG_ENV_SIZE, in env_flash_save()
261 (ulong)saved_data); in env_flash_save()
265 debug("Protect off %08lX ... %08lX\n", (ulong)flash_addr, end_addr); in env_flash_save()
286 (ulong)flash_addr + CONFIG_ENV_SIZE, up_data); in env_flash_save()
313 if (gd->env_addr != (ulong)&(flash_addr->data)) { in env_flash_load()
315 ulong ltmp = end_addr; in env_flash_load()
329 flash_sect_protect(0, (ulong)flash_addr_new, end_addr_new); in env_flash_load()
331 (ulong)&(flash_addr_new->flags), in env_flash_load()
333 flash_sect_protect(1, (ulong)flash_addr_new, end_addr_new); in env_flash_load()
341 flash_sect_protect(0, (ulong)flash_addr, end_addr); in env_flash_load()
343 (ulong)&(flash_addr->flags), in env_flash_load()
345 flash_sect_protect(1, (ulong)flash_addr, end_addr); in env_flash_load()