Lines Matching refs:irb
46 void dasd_int_handler(struct ccw_device *, unsigned long, struct irb *);
1580 static int dasd_check_hpf_error(struct irb *irb) in dasd_check_hpf_error() argument
1582 return (scsw_tm_is_valid_schxs(&irb->scsw) && in dasd_check_hpf_error()
1583 (irb->scsw.tm.sesq == SCSW_SESQ_DEV_NOFCX || in dasd_check_hpf_error()
1584 irb->scsw.tm.sesq == SCSW_SESQ_PATH_NOFCX)); in dasd_check_hpf_error()
1587 static int dasd_ese_needs_format(struct dasd_block *block, struct irb *irb) in dasd_ese_needs_format() argument
1600 sense = dasd_get_sense(irb); in dasd_ese_needs_format()
1608 scsw_is_tm(&irb->scsw) && in dasd_ese_needs_format()
1627 struct irb *irb) in dasd_int_handler() argument
1639 if (IS_ERR(irb)) { in dasd_int_handler()
1640 switch (PTR_ERR(irb)) { in dasd_int_handler()
1658 PTR_ERR(irb)); in dasd_int_handler()
1667 !(scsw_dstat(&irb->scsw) == (DEV_STAT_CHN_END | DEV_STAT_DEV_END) && in dasd_int_handler()
1668 scsw_cstat(&irb->scsw) == 0)) { in dasd_int_handler()
1670 memcpy(&cqr->irb, irb, sizeof(*irb)); in dasd_int_handler()
1686 sense = dasd_get_sense(irb); in dasd_int_handler()
1706 device->discipline->dump_sense_dbf(device, irb, "int"); in dasd_int_handler()
1709 device->discipline->dump_sense(device, cqr, irb); in dasd_int_handler()
1710 device->discipline->check_for_device_change(device, cqr, irb); in dasd_int_handler()
1715 if (scsw_dstat(&irb->scsw) & DEV_STAT_ATTENTION) { in dasd_int_handler()
1719 irb->esw.esw1.lpum); in dasd_int_handler()
1735 if (dasd_ese_needs_format(cqr->block, irb)) { in dasd_int_handler()
1742 device->discipline->ese_read(cqr, irb); in dasd_int_handler()
1749 fcqr = device->discipline->ese_format(device, cqr, irb); in dasd_int_handler()
1773 scsw_fctl(&irb->scsw) & SCSW_FCTL_CLEAR_FUNC) { in dasd_int_handler()
1790 if (scsw_dstat(&irb->scsw) == (DEV_STAT_CHN_END | DEV_STAT_DEV_END) && in dasd_int_handler()
1791 scsw_cstat(&irb->scsw) == 0) { in dasd_int_handler()
1805 if (cqr->cpmode && dasd_check_hpf_error(irb) && in dasd_int_handler()
1807 device->discipline->handle_hpf_error(device, irb); in dasd_int_handler()
1839 enum uc_todo dasd_generic_uc_handler(struct ccw_device *cdev, struct irb *irb) in dasd_generic_uc_handler() argument
1854 device->discipline->dump_sense_dbf(device, irb, "uc"); in dasd_generic_uc_handler()
1855 device->discipline->check_for_device_change(device, NULL, irb); in dasd_generic_uc_handler()
2294 dasd_log_sense(cqr, &cqr->irb); in __dasd_sleep_on_erp()
2396 dasd_log_sense(maincqr, &maincqr->irb); in _dasd_sleep_on()
2473 sense = dasd_get_sense(&cqr->irb); in _dasd_sleep_on_queue()
2481 if (scsw_cstat(&cqr->irb.scsw) == 0x40 && in _dasd_sleep_on_queue()
2822 dasd_log_sense(cqr, &cqr->irb); in __dasd_process_block_ccw_queue()
4026 char *dasd_get_sense(struct irb *irb) in dasd_get_sense() argument
4031 if (scsw_is_tm(&irb->scsw) && (irb->scsw.tm.fcxs == 0x01)) { in dasd_get_sense()
4032 if (irb->scsw.tm.tcw) in dasd_get_sense()
4033 tsb = tcw_get_tsb(dma32_to_virt(irb->scsw.tm.tcw)); in dasd_get_sense()
4046 } else if (irb->esw.esw0.erw.cons) { in dasd_get_sense()
4047 sense = irb->ecw; in dasd_get_sense()