/Linux-v5.4/drivers/s390/block/ |
D | dasd_erp.c | 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() [all …]
|
D | dasd.c | 702 struct dasd_ccw_req *cqr, in dasd_profile_start() argument 737 device = cqr->startdev; in dasd_profile_start() 812 struct dasd_ccw_req *cqr, in dasd_profile_end() argument 822 device = cqr->startdev; in dasd_profile_end() 829 if (!cqr->buildclk || !cqr->startclk || in dasd_profile_end() 830 !cqr->stopclk || !cqr->endclk || in dasd_profile_end() 834 strtime = ((cqr->startclk - cqr->buildclk) >> 12); in dasd_profile_end() 835 irqtime = ((cqr->stopclk - cqr->startclk) >> 12); in dasd_profile_end() 836 endtime = ((cqr->endclk - cqr->stopclk) >> 12); in dasd_profile_end() 837 tottime = ((cqr->endclk - cqr->buildclk) >> 12); in dasd_profile_end() [all …]
|
D | dasd_eckd.c | 86 struct dasd_ccw_req cqr; member 93 struct dasd_ccw_req cqr; member 109 struct dasd_ccw_req cqr; member 777 struct dasd_ccw_req *cqr, in dasd_eckd_fill_rcd_cqr() argument 791 ccw = cqr->cpaddr; in dasd_eckd_fill_rcd_cqr() 796 cqr->magic = DASD_ECKD_MAGIC; in dasd_eckd_fill_rcd_cqr() 798 cqr->startdev = device; in dasd_eckd_fill_rcd_cqr() 799 cqr->memdev = device; in dasd_eckd_fill_rcd_cqr() 800 cqr->block = NULL; in dasd_eckd_fill_rcd_cqr() 801 cqr->expires = 10*HZ; in dasd_eckd_fill_rcd_cqr() [all …]
|
D | dasd_diag.c | 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() [all …]
|
D | dasd_eer.c | 294 struct dasd_ccw_req *cqr, in dasd_eer_write_standard_trigger() argument 307 for (temp_cqr = cqr; temp_cqr; temp_cqr = temp_cqr->refers) in dasd_eer_write_standard_trigger() 323 for (temp_cqr = cqr; temp_cqr; temp_cqr = temp_cqr->refers) { in dasd_eer_write_standard_trigger() 338 struct dasd_ccw_req *cqr, in dasd_eer_write_snss_trigger() argument 348 snss_rc = (cqr->status == DASD_CQR_DONE) ? 0 : -EIO; in dasd_eer_write_snss_trigger() 367 dasd_eer_write_buffer(eerb, cqr->data, SNSS_DATA_SIZE); in dasd_eer_write_snss_trigger() 378 void dasd_eer_write(struct dasd_device *device, struct dasd_ccw_req *cqr, in dasd_eer_write() argument 386 dasd_eer_write_standard_trigger(device, cqr, id); in dasd_eer_write() 393 dasd_eer_write_snss_trigger(device, cqr, id); in dasd_eer_write() 408 struct dasd_ccw_req *cqr; in dasd_eer_snss() local [all …]
|
D | dasd_fba.c | 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() [all …]
|
D | dasd_3990_erp.c | 55 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() 1435 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_inspect_alias() local 1438 if (cqr->block && in dasd_3990_erp_inspect_alias() 1439 (cqr->block->base != cqr->startdev)) { in dasd_3990_erp_inspect_alias() 1445 if (!test_bit(DASD_FLAG_OFFLINE, &cqr->startdev->flags) && sense in dasd_3990_erp_inspect_alias() 1453 dasd_alias_remove_device(cqr->startdev); in dasd_3990_erp_inspect_alias() 1456 dasd_reload_device(cqr->startdev); in dasd_3990_erp_inspect_alias() 1459 if (cqr->startdev->features & DASD_FEATURE_ERPLOG) { in dasd_3990_erp_inspect_alias() [all …]
|
D | dasd_alias.c | 379 suborder_not_supported(struct dasd_ccw_req *cqr) in suborder_not_supported() argument 391 if (cqr->intrc == -ENODEV) in suborder_not_supported() 394 if (cqr->intrc == -ENOLINK) in suborder_not_supported() 397 if (cqr->intrc == -EPERM) in suborder_not_supported() 400 sense = dasd_get_sense(&cqr->irb); in suborder_not_supported() 419 struct dasd_ccw_req *cqr; in read_unit_address_configuration() local 424 cqr = dasd_smalloc_request(DASD_ECKD_MAGIC, 1 /* PSF */ + 1 /* RSSD */, in read_unit_address_configuration() 427 if (IS_ERR(cqr)) in read_unit_address_configuration() 428 return PTR_ERR(cqr); in read_unit_address_configuration() 429 cqr->startdev = device; in read_unit_address_configuration() [all …]
|
D | dasd_ioctl.c | 150 struct dasd_ccw_req *cqr, *n; in dasd_ioctl_abortio() local 162 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) { in dasd_ioctl_abortio() 163 if (test_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags) && in dasd_ioctl_abortio() 164 cqr->callback_data && in dasd_ioctl_abortio() 165 cqr->callback_data != DASD_SLEEPON_START_TAG && in dasd_ioctl_abortio() 166 cqr->callback_data != DASD_SLEEPON_END_TAG) { in dasd_ioctl_abortio() 168 blk_abort_request(cqr->callback_data); in dasd_ioctl_abortio()
|
D | dasd_int.h | 849 void dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb); 861 void dasd_eer_write(struct dasd_device *, struct dasd_ccw_req *cqr,
|