• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/s390/block/

Lines Matching defs:cqr

31 	struct dasd_ccw_req *cqr;
45 cqr = (struct dasd_ccw_req *)
48 if (cqr == NULL)
50 memset(cqr, 0, sizeof(struct dasd_ccw_req));
51 INIT_LIST_HEAD(&cqr->devlist);
52 INIT_LIST_HEAD(&cqr->blocklist);
53 data = (char *) cqr + ((sizeof(struct dasd_ccw_req) + 7L) & -8L);
54 cqr->cpaddr = NULL;
56 cqr->cpaddr = (struct ccw1 *) data;
58 memset(cqr->cpaddr, 0, cplength*sizeof(struct ccw1));
60 cqr->data = NULL;
62 cqr->data = data;
63 memset(cqr->data, 0, datasize);
65 strncpy((char *) &cqr->magic, magic, 4);
66 ASCEBC((char *) &cqr->magic, 4);
67 set_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags);
69 return cqr;
73 dasd_free_erp_request(struct dasd_ccw_req *cqr, struct dasd_device * device)
78 dasd_free_chunk(&device->erp_chunks, cqr);
85 * dasd_default_erp_action just retries the current cqr
88 dasd_default_erp_action(struct dasd_ccw_req *cqr)
92 device = cqr->startdev;
95 if (cqr->retries > 0) {
98 cqr->retries);
99 cqr->lpm = LPM_ANYPATH;
100 cqr->status = DASD_CQR_FILLED;
104 cqr->status = DASD_CQR_FAILED;
105 cqr->stopclk = get_clock();
107 return cqr;
122 * cqr pointer to the original CQR
124 struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *cqr)
128 BUG_ON(cqr->refers == NULL || cqr->function == NULL);
130 success = cqr->status == DASD_CQR_DONE;
132 /* free all ERPs - but NOT the original cqr */
133 while (cqr->refers != NULL) {
136 refers = cqr->refers;
138 list_del(&cqr->blocklist);
140 dasd_free_erp_request(cqr, cqr->memdev);
141 cqr = refers;
144 /* set corresponding status to original cqr */
146 cqr->status = DASD_CQR_DONE;
148 cqr->status = DASD_CQR_FAILED;
149 cqr->stopclk = get_clock();
152 return cqr;
157 dasd_log_sense(struct dasd_ccw_req *cqr, struct irb *irb)
161 device = cqr->startdev;
164 device->discipline->dump_sense(device, cqr, irb);
168 dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb)
172 device = cqr->startdev;