Lines Matching refs:s_last

208 			int *s_first, int *s_last,  in flash_fill_sect_ranges()  argument
219 s_last [bank] = -1; /* last sector to erase */ in flash_fill_sect_ranges()
251 s_last[bank] = sect; in flash_fill_sect_ranges()
255 if (s_last[bank] < 0) { in flash_fill_sect_ranges()
257 s_last[bank] = s_end; in flash_fill_sect_ranges()
265 if (s_last[bank] < s_first[bank]) { in flash_fill_sect_ranges()
271 sect = s_last[bank]; in flash_fill_sect_ranges()
273 (*s_count) += s_last[bank] - s_first[bank] + 1; in flash_fill_sect_ranges()
278 } else if (s_last[bank] >= 0) { in flash_fill_sect_ranges()
427 int s_first[CONFIG_SYS_MAX_FLASH_BANKS_DETECT], s_last[CONFIG_SYS_MAX_FLASH_BANKS_DETECT]; in flash_sect_erase() local
429 int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS]; in flash_sect_erase() local
436 s_first, s_last, &planned ); in flash_sect_erase()
443 erased += s_last[bank] - s_first[bank] + 1; in flash_sect_erase()
447 (s_last[bank] == info->sector_count) ? in flash_sect_erase()
449 info->start[s_last[bank]+1] - 1, in flash_sect_erase()
451 rcode = flash_erase (info, s_first[bank], s_last[bank]); in flash_sect_erase()
652 int s_first[CONFIG_SYS_MAX_FLASH_BANKS_DETECT], s_last[CONFIG_SYS_MAX_FLASH_BANKS_DETECT]; in flash_sect_protect() local
654 int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS]; in flash_sect_protect() local
660 rcode = flash_fill_sect_ranges( addr_first, addr_last, s_first, s_last, &planned ); in flash_sect_protect()
670 if (s_first[bank]>=0 && s_first[bank]<=s_last[bank]) { in flash_sect_protect()
673 s_first[bank], s_last[bank], bank+1); in flash_sect_protect()
674 protected += s_last[bank] - s_first[bank] + 1; in flash_sect_protect()
675 for (i=s_first[bank]; i<=s_last[bank]; ++i) { in flash_sect_protect()