Lines Matching refs:cqr

55 	struct dasd_ccw_req *cqr = erp->refers;  in dasd_3990_erp_cleanup()  local
58 cqr->status = final_status; in dasd_3990_erp_cleanup()
59 return cqr; in dasd_3990_erp_cleanup()
1435 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_inspect_alias() local
1438 if (cqr->block && in dasd_3990_erp_inspect_alias()
1439 (cqr->block->base != cqr->startdev)) { in dasd_3990_erp_inspect_alias()
1445 if (!test_bit(DASD_FLAG_OFFLINE, &cqr->startdev->flags) && sense in dasd_3990_erp_inspect_alias()
1453 dasd_alias_remove_device(cqr->startdev); in dasd_3990_erp_inspect_alias()
1456 dasd_reload_device(cqr->startdev); in dasd_3990_erp_inspect_alias()
1459 if (cqr->startdev->features & DASD_FEATURE_ERPLOG) { in dasd_3990_erp_inspect_alias()
1460 DBF_DEV_EVENT(DBF_ERR, cqr->startdev, in dasd_3990_erp_inspect_alias()
1462 " recover on base device %s", cqr, in dasd_3990_erp_inspect_alias()
1463 dev_name(&cqr->block->base->cdev->dev)); in dasd_3990_erp_inspect_alias()
1465 dasd_eckd_reset_ccw_to_base_io(cqr); in dasd_3990_erp_inspect_alias()
1466 erp->startdev = cqr->block->base; in dasd_3990_erp_inspect_alias()
1608 struct dasd_ccw_req *cqr; in dasd_3990_erp_action_1B_32() local
1621 cqr = default_erp; in dasd_3990_erp_action_1B_32()
1623 while (cqr->refers != NULL) { in dasd_3990_erp_action_1B_32()
1624 cqr = cqr->refers; in dasd_3990_erp_action_1B_32()
1627 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32()
1655 erp = dasd_alloc_erp_request((char *) &cqr->magic, in dasd_3990_erp_action_1B_32()
1669 oldccw = cqr->cpaddr; in dasd_3990_erp_action_1B_32()
1671 PFX_data = cqr->data; in dasd_3990_erp_action_1B_32()
1675 memcpy(DE_data, cqr->data, sizeof(struct DE_eckd_data)); in dasd_3990_erp_action_1B_32()
1767 struct dasd_ccw_req *cqr; in dasd_3990_update_1B() local
1777 cqr = previous_erp; in dasd_3990_update_1B()
1779 while (cqr->refers != NULL) { in dasd_3990_update_1B()
1780 cqr = cqr->refers; in dasd_3990_update_1B()
1783 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B()
2371 static struct dasd_ccw_req *dasd_3990_erp_add_erp(struct dasd_ccw_req *cqr) in dasd_3990_erp_add_erp() argument
2374 struct dasd_device *device = cqr->startdev; in dasd_3990_erp_add_erp()
2381 if (cqr->cpmode == 1) { in dasd_3990_erp_add_erp()
2391 erp = dasd_alloc_erp_request((char *) &cqr->magic, in dasd_3990_erp_add_erp()
2394 if (cqr->retries <= 0) { in dasd_3990_erp_add_erp()
2397 cqr->status = DASD_CQR_FAILED; in dasd_3990_erp_add_erp()
2398 cqr->stopclk = get_tod_clock(); in dasd_3990_erp_add_erp()
2403 cqr->retries); in dasd_3990_erp_add_erp()
2409 ccw = cqr->cpaddr; in dasd_3990_erp_add_erp()
2410 if (cqr->cpmode == 1) { in dasd_3990_erp_add_erp()
2416 *tcw = *((struct tcw *)cqr->cpaddr); in dasd_3990_erp_add_erp()
2420 erp->cpaddr = cqr->cpaddr; in dasd_3990_erp_add_erp()
2428 ccw->cda = (long)(cqr->cpaddr); in dasd_3990_erp_add_erp()
2431 erp->flags = cqr->flags; in dasd_3990_erp_add_erp()
2433 erp->refers = cqr; in dasd_3990_erp_add_erp()
2436 erp->block = cqr->block; in dasd_3990_erp_add_erp()
2437 erp->magic = cqr->magic; in dasd_3990_erp_add_erp()
2438 erp->expires = cqr->expires; in dasd_3990_erp_add_erp()
2462 dasd_3990_erp_additional_erp(struct dasd_ccw_req * cqr) in dasd_3990_erp_additional_erp() argument
2468 erp = dasd_3990_erp_add_erp(cqr); in dasd_3990_erp_additional_erp()
2474 if (erp != cqr) { in dasd_3990_erp_additional_erp()
2552 dasd_3990_erp_in_erp(struct dasd_ccw_req *cqr) in dasd_3990_erp_in_erp() argument
2555 struct dasd_ccw_req *erp_head = cqr, /* save erp chain head */ in dasd_3990_erp_in_erp()
2559 if (cqr->refers == NULL) { /* return if not in erp */ in dasd_3990_erp_in_erp()
2565 match = dasd_3990_erp_error_match(erp_head, cqr->refers); in dasd_3990_erp_in_erp()
2566 erp_match = cqr; /* save possible matching erp */ in dasd_3990_erp_in_erp()
2567 cqr = cqr->refers; /* check next erp/cqr in queue */ in dasd_3990_erp_in_erp()
2569 } while ((cqr->refers != NULL) && (!match)); in dasd_3990_erp_in_erp()
2772 dasd_3990_erp_action(struct dasd_ccw_req * cqr) in dasd_3990_erp_action() argument
2775 struct dasd_device *device = cqr->startdev; in dasd_3990_erp_action()
2782 for (temp_erp = cqr; in dasd_3990_erp_action()
2793 if ((scsw_cstat(&cqr->irb.scsw) == 0x00) && in dasd_3990_erp_action()
2794 (scsw_dstat(&cqr->irb.scsw) == in dasd_3990_erp_action()
2799 " - NO ERP necessary", cqr); in dasd_3990_erp_action()
2801 cqr->status = DASD_CQR_DONE; in dasd_3990_erp_action()
2803 return cqr; in dasd_3990_erp_action()
2807 erp = dasd_3990_erp_in_erp(cqr); in dasd_3990_erp_action()
2811 erp = dasd_3990_erp_additional_erp(cqr); in dasd_3990_erp_action()
2816 erp = dasd_3990_erp_handle_match_erp(cqr, erp); in dasd_3990_erp_action()
2825 if (test_bit(DASD_CQR_VERIFY_PATH, &erp->flags) && cqr->lpm) { in dasd_3990_erp_action()
2826 erp->lpm = cqr->lpm; in dasd_3990_erp_action()
2845 cqr->status = DASD_CQR_IN_ERP; in dasd_3990_erp_action()
2847 list_add_tail(&erp->blocklist, &cqr->blocklist); in dasd_3990_erp_action()