• Home
  • Raw
  • Download

Lines Matching refs:s_last

189 			int *s_first, int *s_last,  in flash_fill_sect_ranges()  argument
200 s_last [bank] = -1; /* last sector to erase */ in flash_fill_sect_ranges()
232 s_last[bank] = sect; in flash_fill_sect_ranges()
236 if (s_last[bank] < 0) { in flash_fill_sect_ranges()
238 s_last[bank] = s_end; in flash_fill_sect_ranges()
246 if (s_last[bank] < s_first[bank]) { in flash_fill_sect_ranges()
252 sect = s_last[bank]; in flash_fill_sect_ranges()
254 (*s_count) += s_last[bank] - s_first[bank] + 1; in flash_fill_sect_ranges()
259 } else if (s_last[bank] >= 0) { 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()
410 erased += s_last[bank] - s_first[bank] + 1; in flash_sect_erase()
414 (s_last[bank] == info->sector_count) ? in flash_sect_erase()
416 info->start[s_last[bank]+1] - 1, 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()