Lines Matching refs:cqr

164 dasd_start_diag(struct dasd_ccw_req * cqr)  in dasd_start_diag()  argument
171 device = cqr->startdev; in dasd_start_diag()
172 if (cqr->retries < 0) { in dasd_start_diag()
174 "- no retry left)", cqr); in dasd_start_diag()
175 cqr->status = DASD_CQR_ERROR; in dasd_start_diag()
179 dreq = cqr->data; in dasd_start_diag()
185 private->iob.interrupt_params = (addr_t) cqr; in dasd_start_diag()
189 cqr->startclk = get_tod_clock(); in dasd_start_diag()
190 cqr->starttime = jiffies; in dasd_start_diag()
191 cqr->retries--; in dasd_start_diag()
196 cqr->stopclk = get_tod_clock(); in dasd_start_diag()
197 cqr->status = DASD_CQR_SUCCESS; in dasd_start_diag()
203 cqr->status = DASD_CQR_IN_IO; in dasd_start_diag()
207 cqr->status = DASD_CQR_QUEUED; in dasd_start_diag()
213 cqr->intrc = rc; in dasd_start_diag()
219 dasd_diag_term_IO(struct dasd_ccw_req * cqr) in dasd_diag_term_IO() argument
223 device = cqr->startdev; in dasd_diag_term_IO()
226 cqr->status = DASD_CQR_CLEAR_PENDING; in dasd_diag_term_IO()
227 cqr->stopclk = get_tod_clock(); in dasd_diag_term_IO()
236 struct dasd_ccw_req *cqr, *next; in dasd_ext_handler() local
259 cqr = (struct dasd_ccw_req *) ip; in dasd_ext_handler()
260 device = (struct dasd_device *) cqr->startdev; in dasd_ext_handler()
261 if (strncmp(device->discipline->ebcname, (char *) &cqr->magic, 4)) { in dasd_ext_handler()
265 cqr->magic, *(int *) (&device->discipline->name)); in dasd_ext_handler()
273 if (cqr->status == DASD_CQR_CLEAR_PENDING) { in dasd_ext_handler()
274 cqr->status = DASD_CQR_CLEARED; in dasd_ext_handler()
281 cqr->stopclk = get_tod_clock(); in dasd_ext_handler()
285 cqr->status = DASD_CQR_SUCCESS; in dasd_ext_handler()
297 cqr->status = DASD_CQR_QUEUED; in dasd_ext_handler()
299 "request %p was %d (%d retries left)", cqr, in dasd_ext_handler()
300 ext_code.subcode & 0xff, cqr->retries); in dasd_ext_handler()
486 dasd_diag_erp_action(struct dasd_ccw_req * cqr) in dasd_diag_erp_action() argument
492 dasd_diag_erp_postaction(struct dasd_ccw_req * cqr) in dasd_diag_erp_postaction() argument
503 struct dasd_ccw_req *cqr; in dasd_diag_build_cp() local
539 cqr = dasd_smalloc_request(DASD_DIAG_MAGIC, 0, datasize, memdev, in dasd_diag_build_cp()
541 if (IS_ERR(cqr)) in dasd_diag_build_cp()
542 return cqr; in dasd_diag_build_cp()
544 dreq = (struct dasd_diag_req *) cqr->data; in dasd_diag_build_cp()
560 cqr->retries = memdev->default_retries; in dasd_diag_build_cp()
561 cqr->buildclk = get_tod_clock(); in dasd_diag_build_cp()
564 set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); in dasd_diag_build_cp()
565 cqr->startdev = memdev; in dasd_diag_build_cp()
566 cqr->memdev = memdev; in dasd_diag_build_cp()
567 cqr->block = block; in dasd_diag_build_cp()
568 cqr->expires = memdev->default_expires * HZ; in dasd_diag_build_cp()
569 cqr->status = DASD_CQR_FILLED; in dasd_diag_build_cp()
570 return cqr; in dasd_diag_build_cp()
576 dasd_diag_free_cp(struct dasd_ccw_req *cqr, struct request *req) in dasd_diag_free_cp() argument
580 status = cqr->status == DASD_CQR_DONE; in dasd_diag_free_cp()
581 dasd_sfree_request(cqr, cqr->memdev); in dasd_diag_free_cp()
585 static void dasd_diag_handle_terminated_request(struct dasd_ccw_req *cqr) in dasd_diag_handle_terminated_request() argument
587 if (cqr->retries < 0) in dasd_diag_handle_terminated_request()
588 cqr->status = DASD_CQR_FAILED; in dasd_diag_handle_terminated_request()
590 cqr->status = DASD_CQR_FILLED; in dasd_diag_handle_terminated_request()