Lines Matching refs:s_first
189 int *s_first, int *s_last, in flash_fill_sect_ranges() argument
199 s_first[bank] = -1; /* first sector to erase */ in flash_fill_sect_ranges()
229 s_first[bank] = sect; in flash_fill_sect_ranges()
235 if (s_first[bank] >= 0) { in flash_fill_sect_ranges()
246 if (s_last[bank] < s_first[bank]) { in flash_fill_sect_ranges()
254 (*s_count) += s_last[bank] - s_first[bank] + 1; in flash_fill_sect_ranges()
397 int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS]; in flash_sect_erase() local
403 s_first, s_last, &planned ); in flash_sect_erase()
409 if (s_first[bank]>=0) { in flash_sect_erase()
410 erased += s_last[bank] - s_first[bank] + 1; in flash_sect_erase()
413 info->start[s_first[bank]], in flash_sect_erase()
418 rcode = flash_erase (info, s_first[bank], s_last[bank]); in flash_sect_erase()
593 int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS]; in flash_sect_protect() local
598 rcode = flash_fill_sect_ranges( addr_first, addr_last, s_first, s_last, &planned ); in flash_sect_protect()
608 if (s_first[bank]>=0 && s_first[bank]<=s_last[bank]) { in flash_sect_protect()
611 s_first[bank], s_last[bank], bank+1); in flash_sect_protect()
612 protected += s_last[bank] - s_first[bank] + 1; in flash_sect_protect()
613 for (i=s_first[bank]; i<=s_last[bank]; ++i) { in flash_sect_protect()