Lines Matching refs:cqr

226 dasd_fba_erp_action(struct dasd_ccw_req * cqr)  in dasd_fba_erp_action()  argument
232 dasd_fba_erp_postaction(struct dasd_ccw_req * cqr) in dasd_fba_erp_postaction() argument
234 if (cqr->function == dasd_default_erp_action) in dasd_fba_erp_postaction()
237 DBF_DEV_EVENT(DBF_WARNING, cqr->startdev, "unknown ERP action %p", in dasd_fba_erp_postaction()
238 cqr->function); in dasd_fba_erp_postaction()
243 struct dasd_ccw_req *cqr, in dasd_fba_check_for_device_change() argument
330 struct dasd_ccw_req *cqr; in dasd_fba_build_cp_discard() local
359 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_discard()
361 if (IS_ERR(cqr)) in dasd_fba_build_cp_discard()
362 return cqr; in dasd_fba_build_cp_discard()
364 ccw = cqr->cpaddr; in dasd_fba_build_cp_discard()
366 define_extent(ccw++, cqr->data, WRITE, blksize, first_rec, count); in dasd_fba_build_cp_discard()
367 LO_data = cqr->data + sizeof(struct DE_fba_data); in dasd_fba_build_cp_discard()
424 set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); in dasd_fba_build_cp_discard()
426 cqr->startdev = memdev; in dasd_fba_build_cp_discard()
427 cqr->memdev = memdev; in dasd_fba_build_cp_discard()
428 cqr->block = block; in dasd_fba_build_cp_discard()
429 cqr->expires = memdev->default_expires * HZ; /* default 5 minutes */ in dasd_fba_build_cp_discard()
430 cqr->retries = memdev->default_retries; in dasd_fba_build_cp_discard()
431 cqr->buildclk = get_tod_clock(); in dasd_fba_build_cp_discard()
432 cqr->status = DASD_CQR_FILLED; in dasd_fba_build_cp_discard()
434 return cqr; in dasd_fba_build_cp_discard()
445 struct dasd_ccw_req *cqr; in dasd_fba_build_cp_regular() local
494 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_regular()
496 if (IS_ERR(cqr)) in dasd_fba_build_cp_regular()
497 return cqr; in dasd_fba_build_cp_regular()
498 ccw = cqr->cpaddr; in dasd_fba_build_cp_regular()
500 define_extent(ccw++, cqr->data, rq_data_dir(req), in dasd_fba_build_cp_regular()
503 idaws = (unsigned long *) (cqr->data + sizeof(struct DE_fba_data)); in dasd_fba_build_cp_regular()
553 set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); in dasd_fba_build_cp_regular()
554 cqr->startdev = memdev; in dasd_fba_build_cp_regular()
555 cqr->memdev = memdev; in dasd_fba_build_cp_regular()
556 cqr->block = block; in dasd_fba_build_cp_regular()
557 cqr->expires = memdev->default_expires * HZ; /* default 5 minutes */ in dasd_fba_build_cp_regular()
558 cqr->retries = memdev->default_retries; in dasd_fba_build_cp_regular()
559 cqr->buildclk = get_tod_clock(); in dasd_fba_build_cp_regular()
560 cqr->status = DASD_CQR_FILLED; in dasd_fba_build_cp_regular()
561 return cqr; in dasd_fba_build_cp_regular()
575 dasd_fba_free_cp(struct dasd_ccw_req *cqr, struct request *req) in dasd_fba_free_cp() argument
577 struct dasd_fba_private *private = cqr->block->base->private; in dasd_fba_free_cp()
587 blksize = cqr->block->bp_block; in dasd_fba_free_cp()
588 ccw = cqr->cpaddr; in dasd_fba_free_cp()
616 status = cqr->status == DASD_CQR_DONE; in dasd_fba_free_cp()
617 dasd_sfree_request(cqr, cqr->memdev); in dasd_fba_free_cp()
621 static void dasd_fba_handle_terminated_request(struct dasd_ccw_req *cqr) in dasd_fba_handle_terminated_request() argument
623 if (cqr->retries < 0) in dasd_fba_handle_terminated_request()
624 cqr->status = DASD_CQR_FAILED; in dasd_fba_handle_terminated_request()
626 cqr->status = DASD_CQR_FILLED; in dasd_fba_handle_terminated_request()