/Linux-v6.6/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 | 641 struct dasd_ccw_req *cqr, in dasd_profile_start() argument 676 device = cqr->startdev; in dasd_profile_start() 751 struct dasd_ccw_req *cqr, in dasd_profile_end() argument 761 device = cqr->startdev; in dasd_profile_end() 768 if (!cqr->buildclk || !cqr->startclk || in dasd_profile_end() 769 !cqr->stopclk || !cqr->endclk || in dasd_profile_end() 773 strtime = ((cqr->startclk - cqr->buildclk) >> 12); in dasd_profile_end() 774 irqtime = ((cqr->stopclk - cqr->startclk) >> 12); in dasd_profile_end() 775 endtime = ((cqr->endclk - cqr->stopclk) >> 12); in dasd_profile_end() 776 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 818 struct dasd_ccw_req *cqr, in dasd_eckd_fill_rcd_cqr() argument 832 ccw = cqr->cpaddr; in dasd_eckd_fill_rcd_cqr() 837 cqr->magic = DASD_ECKD_MAGIC; in dasd_eckd_fill_rcd_cqr() 839 cqr->startdev = device; in dasd_eckd_fill_rcd_cqr() 840 cqr->memdev = device; in dasd_eckd_fill_rcd_cqr() 841 cqr->block = NULL; in dasd_eckd_fill_rcd_cqr() 842 cqr->expires = 10*HZ; in dasd_eckd_fill_rcd_cqr() [all …]
|
D | dasd_diag.c | 163 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 = cqr->data; in dasd_start_diag() 184 private->iob.interrupt_params = (addr_t) cqr; in dasd_start_diag() 188 cqr->startclk = get_tod_clock(); in dasd_start_diag() 189 cqr->starttime = jiffies; in dasd_start_diag() 190 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() 394 dasd_eer_write_snss_trigger(device, cqr, id); in dasd_eer_write() 409 struct dasd_ccw_req *cqr; in dasd_eer_snss() local [all …]
|
D | dasd_fba.c | 218 dasd_fba_erp_action(struct dasd_ccw_req * cqr) in dasd_fba_erp_action() argument 224 dasd_fba_erp_postaction(struct dasd_ccw_req * cqr) in dasd_fba_erp_postaction() argument 226 if (cqr->function == dasd_default_erp_action) in dasd_fba_erp_postaction() 229 DBF_DEV_EVENT(DBF_WARNING, cqr->startdev, "unknown ERP action %p", in dasd_fba_erp_postaction() 230 cqr->function); in dasd_fba_erp_postaction() 235 struct dasd_ccw_req *cqr, in dasd_fba_check_for_device_change() argument 322 struct dasd_ccw_req *cqr; in dasd_fba_build_cp_discard() local 351 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_discard() 353 if (IS_ERR(cqr)) in dasd_fba_build_cp_discard() 354 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() 1440 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_inspect_alias() local 1443 if (cqr->block && in dasd_3990_erp_inspect_alias() 1444 (cqr->block->base != cqr->startdev)) { in dasd_3990_erp_inspect_alias() 1450 if (!test_bit(DASD_FLAG_OFFLINE, &cqr->startdev->flags) && sense in dasd_3990_erp_inspect_alias() 1458 dasd_alias_remove_device(cqr->startdev); in dasd_3990_erp_inspect_alias() 1461 dasd_reload_device(cqr->startdev); in dasd_3990_erp_inspect_alias() 1464 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 | 145 struct dasd_ccw_req *cqr, *n; in dasd_ioctl_abortio() local 157 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) { in dasd_ioctl_abortio() 158 if (test_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags) && in dasd_ioctl_abortio() 159 cqr->callback_data && in dasd_ioctl_abortio() 160 cqr->callback_data != DASD_SLEEPON_START_TAG && in dasd_ioctl_abortio() 161 cqr->callback_data != DASD_SLEEPON_END_TAG) { in dasd_ioctl_abortio() 163 blk_abort_request(cqr->callback_data); in dasd_ioctl_abortio()
|
D | dasd_int.h | 841 static inline void *dasd_get_callback_data(struct dasd_ccw_req *cqr) in dasd_get_callback_data() argument 843 while (cqr->refers) in dasd_get_callback_data() 844 cqr = cqr->refers; in dasd_get_callback_data() 846 return cqr->callback_data; in dasd_get_callback_data() 987 void dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb); 999 void dasd_eer_write(struct dasd_device *, struct dasd_ccw_req *cqr,
|