Lines Matching refs:retcode
618 int retcode; in flash_full_status_check() local
620 retcode = flash_status_check(info, sector, tout, prompt); in flash_full_status_check()
625 if (retcode == ERR_OK && in flash_full_status_check()
627 retcode = ERR_INVAL; in flash_full_status_check()
636 retcode = ERR_NOT_ERASED; in flash_full_status_check()
643 retcode = ERR_PROTECTED; in flash_full_status_check()
654 return retcode; in flash_full_status_check()
885 int retcode; in flash_write_cfibuffer() local
908 retcode = ERR_INVAL; in flash_write_cfibuffer()
939 retcode = ERR_NOT_ERASED; in flash_write_cfibuffer()
956 retcode = flash_status_check(info, sector, in flash_write_cfibuffer()
959 if (retcode == ERR_OK) { in flash_write_cfibuffer()
984 retcode = ERR_INVAL; in flash_write_cfibuffer()
990 retcode = flash_full_status_check( in flash_write_cfibuffer()
1034 retcode = ERR_INVAL; in flash_write_cfibuffer()
1040 retcode = flash_status_poll(info, src - (1 << shift), in flash_write_cfibuffer()
1045 retcode = flash_full_status_check(info, sector, in flash_write_cfibuffer()
1052 retcode = ERR_INVAL; in flash_write_cfibuffer()
1057 return retcode; in flash_write_cfibuffer()
1489 int retcode = 0; in flash_real_protect() local
1589 retcode = flash_full_status_check(info, sector, info->erase_blk_tout, in flash_real_protect()
1591 if (retcode == 0) { in flash_real_protect()
1607 return retcode; in flash_real_protect()