• Home
  • Raw
  • Download

Lines Matching refs:cqr

31 	struct dasd_ccw_req *cqr;  in dasd_alloc_erp_request()  local
45 cqr = (struct dasd_ccw_req *) in dasd_alloc_erp_request()
48 if (cqr == NULL) in dasd_alloc_erp_request()
50 memset(cqr, 0, sizeof(struct dasd_ccw_req)); in dasd_alloc_erp_request()
51 INIT_LIST_HEAD(&cqr->devlist); in dasd_alloc_erp_request()
52 INIT_LIST_HEAD(&cqr->blocklist); in dasd_alloc_erp_request()
53 data = (char *) cqr + ((sizeof(struct dasd_ccw_req) + 7L) & -8L); in dasd_alloc_erp_request()
54 cqr->cpaddr = NULL; in dasd_alloc_erp_request()
56 cqr->cpaddr = (struct ccw1 *) data; in dasd_alloc_erp_request()
58 memset(cqr->cpaddr, 0, cplength*sizeof(struct ccw1)); in dasd_alloc_erp_request()
60 cqr->data = NULL; in dasd_alloc_erp_request()
62 cqr->data = data; in dasd_alloc_erp_request()
63 memset(cqr->data, 0, datasize); in dasd_alloc_erp_request()
65 strncpy((char *) &cqr->magic, magic, 4); in dasd_alloc_erp_request()
66 ASCEBC((char *) &cqr->magic, 4); in dasd_alloc_erp_request()
67 set_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags); in dasd_alloc_erp_request()
69 return cqr; in dasd_alloc_erp_request()
73 dasd_free_erp_request(struct dasd_ccw_req *cqr, struct dasd_device * device) in dasd_free_erp_request() argument
78 dasd_free_chunk(&device->erp_chunks, cqr); in dasd_free_erp_request()
88 dasd_default_erp_action(struct dasd_ccw_req *cqr) in dasd_default_erp_action() argument
92 device = cqr->startdev; in dasd_default_erp_action()
95 if (cqr->retries > 0) { in dasd_default_erp_action()
98 cqr->retries); in dasd_default_erp_action()
99 if (!test_bit(DASD_CQR_VERIFY_PATH, &cqr->flags)) in dasd_default_erp_action()
100 cqr->lpm = device->path_data.opm; in dasd_default_erp_action()
101 cqr->status = DASD_CQR_FILLED; in dasd_default_erp_action()
105 cqr->status = DASD_CQR_FAILED; in dasd_default_erp_action()
106 cqr->stopclk = get_clock(); in dasd_default_erp_action()
108 return cqr; in dasd_default_erp_action()
125 struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *cqr) in dasd_default_erp_postaction() argument
129 BUG_ON(cqr->refers == NULL || cqr->function == NULL); in dasd_default_erp_postaction()
131 success = cqr->status == DASD_CQR_DONE; in dasd_default_erp_postaction()
134 while (cqr->refers != NULL) { in dasd_default_erp_postaction()
137 refers = cqr->refers; in dasd_default_erp_postaction()
139 list_del(&cqr->blocklist); in dasd_default_erp_postaction()
141 dasd_free_erp_request(cqr, cqr->memdev); in dasd_default_erp_postaction()
142 cqr = refers; in dasd_default_erp_postaction()
147 cqr->status = DASD_CQR_DONE; in dasd_default_erp_postaction()
149 cqr->status = DASD_CQR_FAILED; in dasd_default_erp_postaction()
150 cqr->stopclk = get_clock(); in dasd_default_erp_postaction()
153 return cqr; in dasd_default_erp_postaction()
158 dasd_log_sense(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_log_sense() argument
162 device = cqr->startdev; in dasd_log_sense()
165 device->discipline->dump_sense(device, cqr, irb); in dasd_log_sense()
169 dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_log_sense_dbf() argument
173 device = cqr->startdev; in dasd_log_sense_dbf()