Lines Matching refs:sense

302 dasd_3990_erp_action_4(struct dasd_ccw_req * erp, char *sense)  in dasd_3990_erp_action_4()  argument
319 if (sense && (sense[25] == 0x1D)) { /* state change pending */ in dasd_3990_erp_action_4()
328 } else if (sense && (sense[25] == 0x1E)) { /* busy */ in dasd_3990_erp_action_4()
395 dasd_3990_handle_env_data(struct dasd_ccw_req * erp, char *sense) in dasd_3990_handle_env_data() argument
399 char msg_format = (sense[7] & 0xF0); in dasd_3990_handle_env_data()
400 char msg_no = (sense[7] & 0x0F); in dasd_3990_handle_env_data()
406 if (sense[1] & 0x10) { /* check message to operator bit */ in dasd_3990_handle_env_data()
450 "... %02x\n", sense[8]); in dasd_3990_handle_env_data()
471 sense[8]); in dasd_3990_handle_env_data()
493 "device = %02x\n", sense[4]); in dasd_3990_handle_env_data()
595 sense[8]); in dasd_3990_handle_env_data()
1032 dasd_3990_erp_com_rej(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_com_rej() argument
1040 if (sense[2] & SNS2_ENV_DATA_PRESENT) { in dasd_3990_erp_com_rej()
1045 dasd_3990_handle_env_data(erp, sense); in dasd_3990_erp_com_rej()
1049 } else if (sense[1] & SNS1_WRITE_INHIBITED) { in dasd_3990_erp_com_rej()
1118 dasd_3990_erp_equip_check(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_equip_check() argument
1125 if (sense[1] & SNS1_WRITE_INHIBITED) { in dasd_3990_erp_equip_check()
1136 } else if (sense[2] & SNS2_ENV_DATA_PRESENT) { in dasd_3990_erp_equip_check()
1141 dasd_3990_handle_env_data(erp, sense); in dasd_3990_erp_equip_check()
1143 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_equip_check()
1145 } else if (sense[1] & SNS1_PERM_ERR) { in dasd_3990_erp_equip_check()
1177 dasd_3990_erp_data_check(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_data_check() argument
1184 if (sense[2] & SNS2_CORRECTABLE) { /* correctable data check */ in dasd_3990_erp_data_check()
1195 } else if (sense[2] & SNS2_ENV_DATA_PRESENT) { in dasd_3990_erp_data_check()
1201 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_data_check()
1203 } else if (sense[1] & SNS1_PERM_ERR) { in dasd_3990_erp_data_check()
1236 dasd_3990_erp_overrun(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_overrun() argument
1265 dasd_3990_erp_inv_format(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_inv_format() argument
1272 if (sense[2] & SNS2_ENV_DATA_PRESENT) { in dasd_3990_erp_inv_format()
1278 dasd_3990_handle_env_data(erp, sense); in dasd_3990_erp_inv_format()
1280 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_inv_format()
1307 dasd_3990_erp_EOC(struct dasd_ccw_req * default_erp, char *sense) in dasd_3990_erp_EOC() argument
1332 dasd_3990_erp_env_data(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_env_data() argument
1341 dasd_3990_handle_env_data(erp, sense); in dasd_3990_erp_env_data()
1344 if (sense[7] != 0x0F) { in dasd_3990_erp_env_data()
1345 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_env_data()
1367 dasd_3990_erp_no_rec(struct dasd_ccw_req * default_erp, char *sense) in dasd_3990_erp_no_rec() argument
1436 char *sense; in dasd_3990_erp_inspect_alias() local
1441 sense = dasd_get_sense(&erp->refers->irb); in dasd_3990_erp_inspect_alias()
1445 if (!test_bit(DASD_FLAG_OFFLINE, &cqr->startdev->flags) && sense in dasd_3990_erp_inspect_alias()
1446 && (sense[0] == 0x10) && (sense[7] == 0x0F) in dasd_3990_erp_inspect_alias()
1447 && (sense[8] == 0x67)) { in dasd_3990_erp_inspect_alias()
1489 dasd_3990_erp_inspect_24(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_inspect_24() argument
1496 if ((erp_filled == NULL) && (sense[0] & SNS0_CMD_REJECT)) { in dasd_3990_erp_inspect_24()
1497 erp_filled = dasd_3990_erp_com_rej(erp, sense); in dasd_3990_erp_inspect_24()
1500 if ((erp_filled == NULL) && (sense[0] & SNS0_INTERVENTION_REQ)) { in dasd_3990_erp_inspect_24()
1504 if ((erp_filled == NULL) && (sense[0] & SNS0_BUS_OUT_CHECK)) { in dasd_3990_erp_inspect_24()
1508 if ((erp_filled == NULL) && (sense[0] & SNS0_EQUIPMENT_CHECK)) { in dasd_3990_erp_inspect_24()
1509 erp_filled = dasd_3990_erp_equip_check(erp, sense); in dasd_3990_erp_inspect_24()
1512 if ((erp_filled == NULL) && (sense[0] & SNS0_DATA_CHECK)) { in dasd_3990_erp_inspect_24()
1513 erp_filled = dasd_3990_erp_data_check(erp, sense); in dasd_3990_erp_inspect_24()
1516 if ((erp_filled == NULL) && (sense[0] & SNS0_OVERRUN)) { in dasd_3990_erp_inspect_24()
1517 erp_filled = dasd_3990_erp_overrun(erp, sense); in dasd_3990_erp_inspect_24()
1520 if ((erp_filled == NULL) && (sense[1] & SNS1_INV_TRACK_FORMAT)) { in dasd_3990_erp_inspect_24()
1521 erp_filled = dasd_3990_erp_inv_format(erp, sense); in dasd_3990_erp_inspect_24()
1524 if ((erp_filled == NULL) && (sense[1] & SNS1_EOC)) { in dasd_3990_erp_inspect_24()
1525 erp_filled = dasd_3990_erp_EOC(erp, sense); in dasd_3990_erp_inspect_24()
1528 if ((erp_filled == NULL) && (sense[2] & SNS2_ENV_DATA_PRESENT)) { in dasd_3990_erp_inspect_24()
1529 erp_filled = dasd_3990_erp_env_data(erp, sense); in dasd_3990_erp_inspect_24()
1532 if ((erp_filled == NULL) && (sense[1] & SNS1_NO_REC_FOUND)) { in dasd_3990_erp_inspect_24()
1533 erp_filled = dasd_3990_erp_no_rec(erp, sense); in dasd_3990_erp_inspect_24()
1536 if ((erp_filled == NULL) && (sense[1] & SNS1_FILE_PROTECTED)) { in dasd_3990_erp_inspect_24()
1569 dasd_3990_erp_action_10_32(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_action_10_32() argument
1603 dasd_3990_erp_action_1B_32(struct dasd_ccw_req * default_erp, char *sense) in dasd_3990_erp_action_1B_32() argument
1635 if (sense[1] & 0x01) { in dasd_3990_erp_action_1B_32()
1680 if ((sense[3] == 0x01) && (LO_data[1] & 0x01)) { in dasd_3990_erp_action_1B_32()
1685 if ((sense[7] & 0x3F) == 0x01) { in dasd_3990_erp_action_1B_32()
1689 } else if ((sense[7] & 0x3F) == 0x03) { in dasd_3990_erp_action_1B_32()
1694 LO_data[0] = sense[7]; /* operation */ in dasd_3990_erp_action_1B_32()
1697 LO_data[1] = sense[8]; /* auxiliary */ in dasd_3990_erp_action_1B_32()
1698 LO_data[2] = sense[9]; in dasd_3990_erp_action_1B_32()
1699 LO_data[3] = sense[3]; /* count */ in dasd_3990_erp_action_1B_32()
1700 LO_data[4] = sense[29]; /* seek_addr.cyl */ in dasd_3990_erp_action_1B_32()
1701 LO_data[5] = sense[30]; /* seek_addr.cyl 2nd byte */ in dasd_3990_erp_action_1B_32()
1702 LO_data[7] = sense[31]; /* seek_addr.head 2nd byte */ in dasd_3990_erp_action_1B_32()
1704 memcpy(&(LO_data[8]), &(sense[11]), 8); in dasd_3990_erp_action_1B_32()
1762 dasd_3990_update_1B(struct dasd_ccw_req * previous_erp, char *sense) in dasd_3990_update_1B() argument
1791 if (sense[1] & 0x01) { in dasd_3990_update_1B()
1820 if ((sense[3] == 0x01) && (LO_data[1] & 0x01)) { in dasd_3990_update_1B()
1827 if ((sense[7] & 0x3F) == 0x01) { in dasd_3990_update_1B()
1831 } else if ((sense[7] & 0x3F) == 0x03) { in dasd_3990_update_1B()
1836 LO_data[0] = sense[7]; /* operation */ in dasd_3990_update_1B()
1839 LO_data[1] = sense[8]; /* auxiliary */ in dasd_3990_update_1B()
1840 LO_data[2] = sense[9]; in dasd_3990_update_1B()
1841 LO_data[3] = sense[3]; /* count */ in dasd_3990_update_1B()
1842 LO_data[4] = sense[29]; /* seek_addr.cyl */ in dasd_3990_update_1B()
1843 LO_data[5] = sense[30]; /* seek_addr.cyl 2nd byte */ in dasd_3990_update_1B()
1844 LO_data[7] = sense[31]; /* seek_addr.head 2nd byte */ in dasd_3990_update_1B()
1846 memcpy(&(LO_data[8]), &(sense[11]), 8); in dasd_3990_update_1B()
1878 dasd_3990_erp_compound_retry(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_compound_retry() argument
1881 switch (sense[25] & 0x03) { in dasd_3990_erp_compound_retry()
1922 dasd_3990_erp_compound_path(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_compound_path() argument
1924 if (sense[25] & DASD_SENSE_BIT_3) { in dasd_3990_erp_compound_path()
1955 dasd_3990_erp_compound_code(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_compound_code() argument
1958 if (sense[25] & DASD_SENSE_BIT_2) { in dasd_3990_erp_compound_code()
1960 switch (sense[28]) { in dasd_3990_erp_compound_code()
2003 dasd_3990_erp_compound_config(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_compound_config() argument
2006 if ((sense[25] & DASD_SENSE_BIT_1) && (sense[26] & DASD_SENSE_BIT_2)) { in dasd_3990_erp_compound_config()
2038 dasd_3990_erp_compound(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_compound() argument
2044 dasd_3990_erp_compound_path(erp, sense); in dasd_3990_erp_compound()
2050 erp = dasd_3990_erp_compound_code(erp, sense); in dasd_3990_erp_compound()
2056 dasd_3990_erp_compound_config(erp, sense); in dasd_3990_erp_compound()
2080 dasd_3990_erp_handle_sim(struct dasd_device *device, char *sense) in dasd_3990_erp_handle_sim() argument
2083 if ((sense[24] & DASD_SIM_MSG_TO_OP) || (sense[1] & 0x10)) { in dasd_3990_erp_handle_sim()
2086 "%02x%02x%02x%02x\n", sense[22], in dasd_3990_erp_handle_sim()
2087 sense[23], sense[11], sense[12]); in dasd_3990_erp_handle_sim()
2088 } else if (sense[24] & DASD_SIM_LOG) { in dasd_3990_erp_handle_sim()
2091 "%02x%02x%02x%02x\n", sense[22], in dasd_3990_erp_handle_sim()
2092 sense[23], sense[11], sense[12]); in dasd_3990_erp_handle_sim()
2112 dasd_3990_erp_inspect_32(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_inspect_32() argument
2120 if ((sense[6] & DASD_SIM_SENSE) == DASD_SIM_SENSE) in dasd_3990_erp_inspect_32()
2121 dasd_3990_erp_handle_sim(device, sense); in dasd_3990_erp_inspect_32()
2123 if (sense[25] & DASD_SENSE_BIT_0) { in dasd_3990_erp_inspect_32()
2126 dasd_3990_erp_compound_retry(erp, sense); in dasd_3990_erp_inspect_32()
2131 switch (sense[25]) { in dasd_3990_erp_inspect_32()
2160 erp = dasd_3990_erp_action_10_32(erp, sense); in dasd_3990_erp_inspect_32()
2175 erp = dasd_3990_erp_action_1B_32(erp, sense); in dasd_3990_erp_inspect_32()
2194 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_inspect_32()
2201 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_inspect_32()
2323 char *sense; in dasd_3990_erp_inspect() local
2334 sense = dasd_get_sense(&erp->refers->irb); in dasd_3990_erp_inspect()
2335 if (!sense) in dasd_3990_erp_inspect()
2338 else if (sense[27] & DASD_SENSE_BIT_0) { in dasd_3990_erp_inspect()
2341 erp_new = dasd_3990_erp_inspect_24(erp, sense); in dasd_3990_erp_inspect()
2346 erp_new = dasd_3990_erp_inspect_32(erp, sense); in dasd_3990_erp_inspect()
2600 char *sense = dasd_get_sense(&erp->irb); in dasd_3990_erp_further_erp() local
2617 if (sense && !(sense[2] & DASD_SENSE_BIT_0)) { in dasd_3990_erp_further_erp()
2622 switch (sense[25]) { in dasd_3990_erp_further_erp()
2642 sense[25]); in dasd_3990_erp_further_erp()
2647 } else if (sense && in dasd_3990_erp_further_erp()
2653 erp = dasd_3990_erp_compound(erp, sense); in dasd_3990_erp_further_erp()
2718 char *sense = dasd_get_sense(&erp->refers->irb); in dasd_3990_erp_handle_match_erp() local
2721 if (sense && erp->function == dasd_3990_erp_action_4) { in dasd_3990_erp_handle_match_erp()
2723 erp = dasd_3990_erp_action_4(erp, sense); in dasd_3990_erp_handle_match_erp()
2725 } else if (sense && in dasd_3990_erp_handle_match_erp()
2728 erp = dasd_3990_update_1B(erp, sense); in dasd_3990_erp_handle_match_erp()
2730 } else if (sense && erp->function == dasd_3990_erp_int_req) { in dasd_3990_erp_handle_match_erp()