Home
last modified time | relevance | path

Searched refs:cqr (Results 1 – 10 of 10) sorted by relevance

/drivers/s390/block/
Ddasd_erp.c31 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()
[all …]
Ddasd.c664 struct dasd_ccw_req *cqr, in dasd_profile_start() argument
696 device = cqr->startdev; in dasd_profile_start()
771 struct dasd_ccw_req *cqr, in dasd_profile_end() argument
780 device = cqr->startdev; in dasd_profile_end()
787 if (!cqr->buildclk || !cqr->startclk || in dasd_profile_end()
788 !cqr->stopclk || !cqr->endclk || in dasd_profile_end()
792 strtime = ((cqr->startclk - cqr->buildclk) >> 12); in dasd_profile_end()
793 irqtime = ((cqr->stopclk - cqr->startclk) >> 12); in dasd_profile_end()
794 endtime = ((cqr->endclk - cqr->stopclk) >> 12); in dasd_profile_end()
795 tottime = ((cqr->endclk - cqr->buildclk) >> 12); in dasd_profile_end()
[all …]
Ddasd_eckd.c96 struct dasd_ccw_req cqr; member
106 struct dasd_ccw_req cqr; member
836 struct dasd_ccw_req *cqr, in dasd_eckd_fill_rcd_cqr() argument
850 ccw = cqr->cpaddr; in dasd_eckd_fill_rcd_cqr()
855 cqr->magic = DASD_ECKD_MAGIC; in dasd_eckd_fill_rcd_cqr()
857 cqr->startdev = device; in dasd_eckd_fill_rcd_cqr()
858 cqr->memdev = device; in dasd_eckd_fill_rcd_cqr()
859 cqr->block = NULL; in dasd_eckd_fill_rcd_cqr()
860 cqr->expires = 10*HZ; in dasd_eckd_fill_rcd_cqr()
861 cqr->lpm = lpm; in dasd_eckd_fill_rcd_cqr()
[all …]
Ddasd_diag.c163 dasd_start_diag(struct dasd_ccw_req * cqr) in dasd_start_diag() argument
170 device = cqr->startdev; in dasd_start_diag()
171 if (cqr->retries < 0) { in dasd_start_diag()
173 "- no retry left)", cqr); in dasd_start_diag()
174 cqr->status = DASD_CQR_ERROR; in dasd_start_diag()
178 dreq = (struct dasd_diag_req *) cqr->data; in dasd_start_diag()
184 private->iob.interrupt_params = (addr_t) cqr; in dasd_start_diag()
188 cqr->startclk = get_clock(); in dasd_start_diag()
189 cqr->starttime = jiffies; in dasd_start_diag()
190 cqr->retries--; in dasd_start_diag()
[all …]
Ddasd_eer.c293 struct dasd_ccw_req *cqr, in dasd_eer_write_standard_trigger() argument
306 for (temp_cqr = cqr; temp_cqr; temp_cqr = temp_cqr->refers) in dasd_eer_write_standard_trigger()
322 for (temp_cqr = cqr; temp_cqr; temp_cqr = temp_cqr->refers) { in dasd_eer_write_standard_trigger()
337 struct dasd_ccw_req *cqr, in dasd_eer_write_snss_trigger() argument
347 snss_rc = (cqr->status == DASD_CQR_DONE) ? 0 : -EIO; in dasd_eer_write_snss_trigger()
366 dasd_eer_write_buffer(eerb, cqr->data, SNSS_DATA_SIZE); in dasd_eer_write_snss_trigger()
377 void dasd_eer_write(struct dasd_device *device, struct dasd_ccw_req *cqr, in dasd_eer_write() argument
385 dasd_eer_write_standard_trigger(device, cqr, id); in dasd_eer_write()
391 dasd_eer_write_snss_trigger(device, cqr, id); in dasd_eer_write()
406 struct dasd_ccw_req *cqr; in dasd_eer_snss() local
[all …]
Ddasd_3990_erp.c55 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_cleanup() local
58 cqr->status = final_status; in dasd_3990_erp_cleanup()
59 return cqr; in dasd_3990_erp_cleanup()
1422 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_inspect_alias() local
1425 if (cqr->block && in dasd_3990_erp_inspect_alias()
1426 (cqr->block->base != cqr->startdev)) { in dasd_3990_erp_inspect_alias()
1432 if (!test_bit(DASD_FLAG_OFFLINE, &cqr->startdev->flags) && sense in dasd_3990_erp_inspect_alias()
1440 dasd_alias_remove_device(cqr->startdev); in dasd_3990_erp_inspect_alias()
1443 dasd_reload_device(cqr->startdev); in dasd_3990_erp_inspect_alias()
1446 if (cqr->startdev->features & DASD_FEATURE_ERPLOG) { in dasd_3990_erp_inspect_alias()
[all …]
Ddasd_fba.c223 dasd_fba_erp_action(struct dasd_ccw_req * cqr) in dasd_fba_erp_action() argument
229 dasd_fba_erp_postaction(struct dasd_ccw_req * cqr) in dasd_fba_erp_postaction() argument
231 if (cqr->function == dasd_default_erp_action) in dasd_fba_erp_postaction()
234 DBF_DEV_EVENT(DBF_WARNING, cqr->startdev, "unknown ERP action %p", in dasd_fba_erp_postaction()
235 cqr->function); in dasd_fba_erp_postaction()
240 struct dasd_ccw_req *cqr, in dasd_fba_check_for_device_change() argument
258 struct dasd_ccw_req *cqr; in dasd_fba_build_cp() local
310 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev); in dasd_fba_build_cp()
311 if (IS_ERR(cqr)) in dasd_fba_build_cp()
312 return cqr; in dasd_fba_build_cp()
[all …]
Ddasd_alias.c391 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()
[all …]
Ddasd_ioctl.c151 struct dasd_ccw_req *cqr; in dasd_format() local
182 cqr = base->discipline->format_device(base, fdata); in dasd_format()
183 if (IS_ERR(cqr)) in dasd_format()
184 return PTR_ERR(cqr); in dasd_format()
185 rc = dasd_sleep_on_interruptible(cqr); in dasd_format()
186 dasd_sfree_request(cqr, cqr->memdev); in dasd_format()
Ddasd_int.h764 void dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb);
776 void dasd_eer_write(struct dasd_device *, struct dasd_ccw_req *cqr,