Lines Matching refs:err_code

489 	ushort err_code;  member
1808 ushort err_code; /* fatal error code */ member
2300 "%d,\n", h->iop_base, h->err_code, h->dvc_cntl, h->bug_fix_cntl); in asc_prt_asc_dvc_var()
2356 (ulong)h->iop_base, h->err_code, (unsigned)h->ultra_able); in asc_prt_adv_dvc_var()
3184 v->err_code); in asc_prt_asc_board_info()
3323 v->err_code); in asc_prt_adv_board_info()
4009 asc_dvc->err_code |= ASC_IERR_SET_PC_ADDR; in AscInitMicroCodeVar()
4014 asc_dvc->err_code |= ASC_IERR_START_STOP_CHIP; in AscInitMicroCodeVar()
4046 if (asc_dvc->err_code != 0) in AscInitAsc1000Driver()
4049 asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; in AscInitAsc1000Driver()
4059 asc_dvc->err_code |= ASC_IERR_MCODE_CHKSUM; in AscInitAsc1000Driver()
4066 asc_dvc->err_code |= ASC_IERR_MCODE_CHKSUM; in AscInitAsc1000Driver()
4074 asc_dvc->err_code |= ASC_IERR_MCODE_CHKSUM; in AscInitAsc1000Driver()
4370 if (asc_dvc->err_code != 0) in AdvInitAsc3550Driver()
4377 asc_dvc->err_code = ASC_IERR_BAD_CHIPTYPE; in AdvInitAsc3550Driver()
4425 asc_dvc->err_code = ASC_IERR_MCODE_CHKSUM; in AdvInitAsc3550Driver()
4432 asc_dvc->err_code = ASC_IERR_MCODE_CHKSUM; in AdvInitAsc3550Driver()
4437 asc_dvc->err_code = AdvLoadMicrocode(iop_base, &fw->data[4], in AdvInitAsc3550Driver()
4441 if (asc_dvc->err_code) in AdvInitAsc3550Driver()
4593 asc_dvc->err_code |= ASC_IERR_ILLEGAL_CONNECTION; in AdvInitAsc3550Driver()
4603 asc_dvc->err_code |= ASC_IERR_REVERSED_CABLE; in AdvInitAsc3550Driver()
4612 asc_dvc->err_code |= ASC_IERR_SINGLE_END_DEVICE; in AdvInitAsc3550Driver()
4714 asc_dvc->err_code |= ASC_IERR_NO_CARRIER; in AdvInitAsc3550Driver()
4728 asc_dvc->err_code |= ASC_IERR_NO_CARRIER; in AdvInitAsc3550Driver()
4814 if (asc_dvc->err_code != 0) in AdvInitAsc38C0800Driver()
4821 asc_dvc->err_code = ASC_IERR_BAD_CHIPTYPE; in AdvInitAsc38C0800Driver()
4887 asc_dvc->err_code = ASC_IERR_BIST_PRE_TEST; in AdvInitAsc38C0800Driver()
4895 asc_dvc->err_code = ASC_IERR_BIST_PRE_TEST; in AdvInitAsc38C0800Driver()
4914 asc_dvc->err_code = ASC_IERR_BIST_RAM_TEST; in AdvInitAsc38C0800Driver()
4925 asc_dvc->err_code = ASC_IERR_MCODE_CHKSUM; in AdvInitAsc38C0800Driver()
4932 asc_dvc->err_code = ASC_IERR_MCODE_CHKSUM; in AdvInitAsc38C0800Driver()
4937 asc_dvc->err_code = AdvLoadMicrocode(iop_base, &fw->data[4], in AdvInitAsc38C0800Driver()
4941 if (asc_dvc->err_code) in AdvInitAsc38C0800Driver()
5075 asc_dvc->err_code |= ASC_IERR_REVERSED_CABLE; in AdvInitAsc38C0800Driver()
5091 asc_dvc->err_code = ASC_IERR_HVD_DEVICE; in AdvInitAsc38C0800Driver()
5196 asc_dvc->err_code |= ASC_IERR_NO_CARRIER; in AdvInitAsc38C0800Driver()
5212 asc_dvc->err_code |= ASC_IERR_NO_CARRIER; in AdvInitAsc38C0800Driver()
5300 if (asc_dvc->err_code != 0) { in AdvInitAsc38C1600Driver()
5308 asc_dvc->err_code = ASC_IERR_BAD_CHIPTYPE; in AdvInitAsc38C1600Driver()
5375 asc_dvc->err_code = ASC_IERR_BIST_PRE_TEST; in AdvInitAsc38C1600Driver()
5383 asc_dvc->err_code = ASC_IERR_BIST_PRE_TEST; in AdvInitAsc38C1600Driver()
5402 asc_dvc->err_code = ASC_IERR_BIST_RAM_TEST; in AdvInitAsc38C1600Driver()
5413 asc_dvc->err_code = ASC_IERR_MCODE_CHKSUM; in AdvInitAsc38C1600Driver()
5420 asc_dvc->err_code = ASC_IERR_MCODE_CHKSUM; in AdvInitAsc38C1600Driver()
5425 asc_dvc->err_code = AdvLoadMicrocode(iop_base, &fw->data[4], in AdvInitAsc38C1600Driver()
5429 if (asc_dvc->err_code) in AdvInitAsc38C1600Driver()
5571 asc_dvc->err_code |= ASC_IERR_REVERSED_CABLE; in AdvInitAsc38C1600Driver()
5584 asc_dvc->err_code |= ASC_IERR_HVD_DEVICE; in AdvInitAsc38C1600Driver()
5691 asc_dvc->err_code |= ASC_IERR_NO_CARRIER; in AdvInitAsc38C1600Driver()
5709 asc_dvc->err_code |= ASC_IERR_NO_CARRIER; in AdvInitAsc38C1600Driver()
5817 asc_dvc->err_code = 0; in AdvResetChipAndSB()
6157 static int AscSetLibErrorCode(ASC_DVC_VAR *asc_dvc, ushort err_code) in AscSetLibErrorCode() argument
6159 if (asc_dvc->err_code == 0) { in AscSetLibErrorCode()
6160 asc_dvc->err_code = err_code; in AscSetLibErrorCode()
6162 err_code); in AscSetLibErrorCode()
6164 return err_code; in AscSetLibErrorCode()
7041 if (asc_dvc->err_code || !asc_dvc->overrun_dma) { in advansys_reset()
7043 "0x%x, status: 0x%x\n", asc_dvc->err_code, in advansys_reset()
8087 if (asc_dvc->err_code != 0) in AscExeScsiQueue()
8381 int ret, err_code; in asc_execute_scsi_cmnd() local
8398 err_code = asc_dvc->err_code; in asc_execute_scsi_cmnd()
8424 err_code = adv_dvc->err_code; in asc_execute_scsi_cmnd()
8443 "err_code 0x%x\n", err_code); in asc_execute_scsi_cmnd()
8449 "err_code 0x%x\n", err_code); in asc_execute_scsi_cmnd()
8598 asc_dvc->err_code = 0; in AscInitAscDvcVar()
8601 asc_dvc->err_code |= ASC_IERR_NO_BUS_TYPE; in AscInitAscDvcVar()
8949 asc_dvc->err_code |= ASC_IERR_START_STOP_CHIP; in AscInitFromEEP()
8954 asc_dvc->err_code |= ASC_IERR_SET_PC_ADDR; in AscInitFromEEP()
9098 if (asc_dvc->err_code != 0) in AscInitGetConfig()
9099 return asc_dvc->err_code; in AscInitGetConfig()
9108 asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; in AscInitGetConfig()
9138 if (asc_dvc->err_code != 0) in AscInitGetConfig()
9140 "0x%x\n", asc_dvc->err_code, asc_dvc->init_state); in AscInitGetConfig()
9142 return asc_dvc->err_code; in AscInitGetConfig()
9154 if (asc_dvc->err_code != 0) in AscInitSetConfig()
9155 return asc_dvc->err_code; in AscInitSetConfig()
9157 asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; in AscInitSetConfig()
9158 return asc_dvc->err_code; in AscInitSetConfig()
9192 asc_dvc->err_code |= ASC_IERR_SET_SCSI_ID; in AscInitSetConfig()
9224 if (asc_dvc->err_code != 0) in AscInitSetConfig()
9226 "0x%x\n", asc_dvc->err_code, asc_dvc->init_state); in AscInitSetConfig()
9228 return asc_dvc->err_code; in AscInitSetConfig()
10534 asc_dvc->err_code = 0; in AdvInitGetConfig()
10562 asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; in AdvInitGetConfig()
10571 asc_dvc->err_code |= ASC_IERR_BAD_CHIPTYPE; in AdvInitGetConfig()
10597 if (asc_dvc->err_code) in AdvInitGetConfig()
10599 asc_dvc->err_code); in AdvInitGetConfig()
10601 return asc_dvc->err_code; in AdvInitGetConfig()
10624 int warn_code, err_code; in advansys_wide_init_chip() local
10680 err_code = adv_dvc->err_code; in advansys_wide_init_chip()
10682 if (warn_code || err_code) { in advansys_wide_init_chip()
10684 "0x%x\n", warn_code, err_code); in advansys_wide_init_chip()
10691 err_code = ADV_ERROR; in advansys_wide_init_chip()
10693 return err_code; in advansys_wide_init_chip()
11112 if (warn_code || asc_dvc_varp->err_code) { in advansys_board_found()
11116 asc_dvc_varp->err_code); in advansys_board_found()