Lines Matching refs:cqr
391 struct dasd_ccw_req *cqr; in read_unit_address_configuration() local
396 cqr = dasd_kmalloc_request(DASD_ECKD_MAGIC, 1 /* PSF */ + 1 /* RSSD */, in read_unit_address_configuration()
399 if (IS_ERR(cqr)) in read_unit_address_configuration()
400 return PTR_ERR(cqr); in read_unit_address_configuration()
401 cqr->startdev = device; in read_unit_address_configuration()
402 cqr->memdev = device; in read_unit_address_configuration()
403 clear_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags); in read_unit_address_configuration()
404 cqr->retries = 10; in read_unit_address_configuration()
405 cqr->expires = 20 * HZ; in read_unit_address_configuration()
408 prssdp = (struct dasd_psf_prssd_data *) cqr->data; in read_unit_address_configuration()
414 ccw = cqr->cpaddr; in read_unit_address_configuration()
428 cqr->buildclk = get_clock(); in read_unit_address_configuration()
429 cqr->status = DASD_CQR_FILLED; in read_unit_address_configuration()
437 rc = dasd_sleep_on(cqr); in read_unit_address_configuration()
438 } while (rc && (cqr->retries > 0)); in read_unit_address_configuration()
444 dasd_kfree_request(cqr, cqr->memdev); in read_unit_address_configuration()
691 struct dasd_ccw_req *cqr; in reset_summary_unit_check() local
695 cqr = lcu->rsu_cqr; in reset_summary_unit_check()
696 strncpy((char *) &cqr->magic, "ECKD", 4); in reset_summary_unit_check()
697 ASCEBC((char *) &cqr->magic, 4); in reset_summary_unit_check()
698 ccw = cqr->cpaddr; in reset_summary_unit_check()
702 ccw->cda = (__u32)(addr_t) cqr->data; in reset_summary_unit_check()
703 ((char *)cqr->data)[0] = reason; in reset_summary_unit_check()
705 clear_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags); in reset_summary_unit_check()
706 cqr->retries = 255; /* set retry counter to enable basic ERP */ in reset_summary_unit_check()
707 cqr->startdev = device; in reset_summary_unit_check()
708 cqr->memdev = device; in reset_summary_unit_check()
709 cqr->block = NULL; in reset_summary_unit_check()
710 cqr->expires = 5 * HZ; in reset_summary_unit_check()
711 cqr->buildclk = get_clock(); in reset_summary_unit_check()
712 cqr->status = DASD_CQR_FILLED; in reset_summary_unit_check()
714 rc = dasd_sleep_on_immediatly(cqr); in reset_summary_unit_check()