Lines Matching refs:cqr
379 suborder_not_supported(struct dasd_ccw_req *cqr) in suborder_not_supported() argument
391 if (cqr->intrc == -ENODEV) in suborder_not_supported()
394 if (cqr->intrc == -ENOLINK) in suborder_not_supported()
397 if (cqr->intrc == -EPERM) in suborder_not_supported()
400 sense = dasd_get_sense(&cqr->irb); in suborder_not_supported()
419 struct dasd_ccw_req *cqr; in read_unit_address_configuration() local
424 cqr = dasd_smalloc_request(DASD_ECKD_MAGIC, 1 /* PSF */ + 1 /* RSSD */, in read_unit_address_configuration()
427 if (IS_ERR(cqr)) in read_unit_address_configuration()
428 return PTR_ERR(cqr); in read_unit_address_configuration()
429 cqr->startdev = device; in read_unit_address_configuration()
430 cqr->memdev = device; in read_unit_address_configuration()
431 clear_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags); in read_unit_address_configuration()
432 cqr->retries = 10; in read_unit_address_configuration()
433 cqr->expires = 20 * HZ; in read_unit_address_configuration()
436 prssdp = (struct dasd_psf_prssd_data *) cqr->data; in read_unit_address_configuration()
442 ccw = cqr->cpaddr; in read_unit_address_configuration()
456 cqr->buildclk = get_tod_clock(); in read_unit_address_configuration()
457 cqr->status = DASD_CQR_FILLED; in read_unit_address_configuration()
464 rc = dasd_sleep_on(cqr); in read_unit_address_configuration()
465 if (rc && !suborder_not_supported(cqr)) { in read_unit_address_configuration()
470 dasd_sfree_request(cqr, cqr->memdev); in read_unit_address_configuration()
716 struct dasd_ccw_req *cqr; in reset_summary_unit_check() local
720 cqr = lcu->rsu_cqr; in reset_summary_unit_check()
721 memcpy((char *) &cqr->magic, "ECKD", 4); in reset_summary_unit_check()
722 ASCEBC((char *) &cqr->magic, 4); in reset_summary_unit_check()
723 ccw = cqr->cpaddr; in reset_summary_unit_check()
727 ccw->cda = (__u32)(addr_t) cqr->data; in reset_summary_unit_check()
728 ((char *)cqr->data)[0] = reason; in reset_summary_unit_check()
730 clear_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags); in reset_summary_unit_check()
731 cqr->retries = 255; /* set retry counter to enable basic ERP */ in reset_summary_unit_check()
732 cqr->startdev = device; in reset_summary_unit_check()
733 cqr->memdev = device; in reset_summary_unit_check()
734 cqr->block = NULL; in reset_summary_unit_check()
735 cqr->expires = 5 * HZ; in reset_summary_unit_check()
736 cqr->buildclk = get_tod_clock(); in reset_summary_unit_check()
737 cqr->status = DASD_CQR_FILLED; in reset_summary_unit_check()
739 rc = dasd_sleep_on_immediatly(cqr); in reset_summary_unit_check()