• Home
  • Raw
  • Download

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()
1422 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_inspect_alias() local
1425 if (cqr->block && in dasd_3990_erp_inspect_alias()
1426 (cqr->block->base != cqr->startdev)) { in dasd_3990_erp_inspect_alias()
1432 if (!test_bit(DASD_FLAG_OFFLINE, &cqr->startdev->flags) && sense in dasd_3990_erp_inspect_alias()
1440 dasd_alias_remove_device(cqr->startdev); in dasd_3990_erp_inspect_alias()
1443 dasd_reload_device(cqr->startdev); in dasd_3990_erp_inspect_alias()
1446 if (cqr->startdev->features & DASD_FEATURE_ERPLOG) { in dasd_3990_erp_inspect_alias()
1447 DBF_DEV_EVENT(DBF_ERR, cqr->startdev, in dasd_3990_erp_inspect_alias()
1449 " recover on base device %s", cqr, in dasd_3990_erp_inspect_alias()
1450 dev_name(&cqr->block->base->cdev->dev)); in dasd_3990_erp_inspect_alias()
1452 dasd_eckd_reset_ccw_to_base_io(cqr); in dasd_3990_erp_inspect_alias()
1453 erp->startdev = cqr->block->base; in dasd_3990_erp_inspect_alias()
1595 struct dasd_ccw_req *cqr; in dasd_3990_erp_action_1B_32() local
1608 cqr = default_erp; in dasd_3990_erp_action_1B_32()
1610 while (cqr->refers != NULL) { in dasd_3990_erp_action_1B_32()
1611 cqr = cqr->refers; in dasd_3990_erp_action_1B_32()
1614 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32()
1642 erp = dasd_alloc_erp_request((char *) &cqr->magic, in dasd_3990_erp_action_1B_32()
1656 oldccw = cqr->cpaddr; in dasd_3990_erp_action_1B_32()
1658 PFX_data = cqr->data; in dasd_3990_erp_action_1B_32()
1662 memcpy(DE_data, cqr->data, sizeof(struct DE_eckd_data)); in dasd_3990_erp_action_1B_32()
1754 struct dasd_ccw_req *cqr; in dasd_3990_update_1B() local
1764 cqr = previous_erp; in dasd_3990_update_1B()
1766 while (cqr->refers != NULL) { in dasd_3990_update_1B()
1767 cqr = cqr->refers; in dasd_3990_update_1B()
1770 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B()
2299 static struct dasd_ccw_req *dasd_3990_erp_add_erp(struct dasd_ccw_req *cqr) in dasd_3990_erp_add_erp() argument
2302 struct dasd_device *device = cqr->startdev; in dasd_3990_erp_add_erp()
2309 if (cqr->cpmode == 1) { in dasd_3990_erp_add_erp()
2319 erp = dasd_alloc_erp_request((char *) &cqr->magic, in dasd_3990_erp_add_erp()
2322 if (cqr->retries <= 0) { in dasd_3990_erp_add_erp()
2325 cqr->status = DASD_CQR_FAILED; in dasd_3990_erp_add_erp()
2326 cqr->stopclk = get_clock (); in dasd_3990_erp_add_erp()
2331 cqr->retries); in dasd_3990_erp_add_erp()
2337 ccw = cqr->cpaddr; in dasd_3990_erp_add_erp()
2338 if (cqr->cpmode == 1) { in dasd_3990_erp_add_erp()
2344 *tcw = *((struct tcw *)cqr->cpaddr); in dasd_3990_erp_add_erp()
2348 erp->cpaddr = cqr->cpaddr; in dasd_3990_erp_add_erp()
2356 ccw->cda = (long)(cqr->cpaddr); in dasd_3990_erp_add_erp()
2359 erp->flags = cqr->flags; in dasd_3990_erp_add_erp()
2361 erp->refers = cqr; in dasd_3990_erp_add_erp()
2364 erp->block = cqr->block; in dasd_3990_erp_add_erp()
2365 erp->magic = cqr->magic; in dasd_3990_erp_add_erp()
2366 erp->expires = cqr->expires; in dasd_3990_erp_add_erp()
2390 dasd_3990_erp_additional_erp(struct dasd_ccw_req * cqr) in dasd_3990_erp_additional_erp() argument
2396 erp = dasd_3990_erp_add_erp(cqr); in dasd_3990_erp_additional_erp()
2402 if (erp != cqr) { in dasd_3990_erp_additional_erp()
2480 dasd_3990_erp_in_erp(struct dasd_ccw_req *cqr) in dasd_3990_erp_in_erp() argument
2483 struct dasd_ccw_req *erp_head = cqr, /* save erp chain head */ in dasd_3990_erp_in_erp()
2487 if (cqr->refers == NULL) { /* return if not in erp */ in dasd_3990_erp_in_erp()
2493 match = dasd_3990_erp_error_match(erp_head, cqr->refers); in dasd_3990_erp_in_erp()
2494 erp_match = cqr; /* save possible matching erp */ in dasd_3990_erp_in_erp()
2495 cqr = cqr->refers; /* check next erp/cqr in queue */ in dasd_3990_erp_in_erp()
2497 } while ((cqr->refers != NULL) && (!match)); in dasd_3990_erp_in_erp()
2700 dasd_3990_erp_action(struct dasd_ccw_req * cqr) in dasd_3990_erp_action() argument
2703 struct dasd_device *device = cqr->startdev; in dasd_3990_erp_action()
2710 for (temp_erp = cqr; in dasd_3990_erp_action()
2721 if ((scsw_cstat(&cqr->irb.scsw) == 0x00) && in dasd_3990_erp_action()
2722 (scsw_dstat(&cqr->irb.scsw) == in dasd_3990_erp_action()
2727 " - NO ERP necessary", cqr); in dasd_3990_erp_action()
2729 cqr->status = DASD_CQR_DONE; in dasd_3990_erp_action()
2731 return cqr; in dasd_3990_erp_action()
2735 erp = dasd_3990_erp_in_erp(cqr); in dasd_3990_erp_action()
2739 erp = dasd_3990_erp_additional_erp(cqr); in dasd_3990_erp_action()
2744 erp = dasd_3990_erp_handle_match_erp(cqr, erp); in dasd_3990_erp_action()
2763 cqr->status = DASD_CQR_IN_ERP; in dasd_3990_erp_action()
2765 list_add_tail(&erp->blocklist, &cqr->blocklist); in dasd_3990_erp_action()