Lines Matching refs:addr_first

149 addr_spec(char *arg1, char *arg2, ulong *addr_first, ulong *addr_last)  in addr_spec()  argument
154 *addr_first = simple_strtoul(arg1, &ep, 16); in addr_spec()
174 *addr_last = *addr_first + *addr_last - 1; in addr_spec()
190 flash_fill_sect_ranges (ulong addr_first, ulong addr_last, in flash_fill_sect_ranges() argument
206 (bank < CONFIG_SYS_MAX_FLASH_BANKS) && (addr_first <= addr_last); in flash_fill_sect_ranges()
225 if (addr_first > end) in flash_fill_sect_ranges()
230 if (addr_first == info->start[sect]) { in flash_fill_sect_ranges()
255 addr_first = (sect == s_end) ? b_end + 1: info->start[sect + 1]; in flash_fill_sect_ranges()
257 } else if (addr_first >= info->start[0] && addr_first < b_end) { in flash_fill_sect_ranges()
307 ulong bank, addr_first, addr_last; in do_flerase() local
347 addr_first = part->offset + info->start[0]; in do_flerase()
348 addr_last = addr_first + part->size - 1; in do_flerase()
352 argv[1], bank, addr_first, in do_flerase()
355 rcode = flash_sect_erase(addr_first, addr_last); in do_flerase()
381 if (addr_spec(argv[1], argv[2], &addr_first, &addr_last) < 0){ in do_flerase()
386 if (addr_first >= addr_last) in do_flerase()
389 rcode = flash_sect_erase(addr_first, addr_last); in do_flerase()
397 int flash_sect_erase(ulong addr_first, ulong addr_last) in flash_sect_erase() argument
406 rcode = flash_fill_sect_ranges (addr_first, addr_last, in flash_sect_erase()
452 ulong addr_first, addr_last; in do_protect() local
526 addr_first = part->offset + info->start[0]; in do_protect()
527 addr_last = addr_first + part->size - 1; in do_protect()
532 bank, addr_first, addr_last); in do_protect()
534 rcode = flash_sect_protect(p, addr_first, in do_protect()
581 if (addr_spec(argv[2], argv[3], &addr_first, &addr_last) < 0){ in do_protect()
586 if (addr_first >= addr_last) in do_protect()
589 rcode = flash_sect_protect(p, addr_first, addr_last); in do_protect()
595 int flash_sect_protect(int p, ulong addr_first, ulong addr_last) in flash_sect_protect() argument
604 rcode = flash_fill_sect_ranges( addr_first, addr_last, s_first, s_last, &planned ); in flash_sect_protect()