Lines Matching refs:irb

776 		     struct irb *irb, int rc)  in tape_3590_erp_failed()  argument
780 tape_dump_sense_dbf(device, request, irb); in tape_3590_erp_failed()
789 struct irb *irb) in tape_3590_erp_retry() argument
792 tape_dump_sense_dbf(device, request, irb); in tape_3590_erp_retry()
800 tape_3590_unsolicited_irq(struct tape_device *device, struct irb *irb) in tape_3590_unsolicited_irq() argument
802 if (irb->scsw.cmd.dstat == DEV_STAT_CHN_END) in tape_3590_unsolicited_irq()
805 else if (irb->scsw.cmd.dstat == 0x85) in tape_3590_unsolicited_irq()
808 else if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in tape_3590_unsolicited_irq()
812 tape_dump_sense_dbf(device, NULL, irb); in tape_3590_unsolicited_irq()
824 struct irb *irb, int rc) in tape_3590_erp_basic() argument
828 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_erp_basic()
832 return tape_3590_erp_failed(device, request, irb, rc); in tape_3590_erp_basic()
836 return tape_3590_erp_retry(device, request, irb); in tape_3590_erp_basic()
838 return tape_3590_erp_failed(device, request, irb, rc); in tape_3590_erp_basic()
850 struct tape_request *request, struct irb *irb) in tape_3590_erp_read_buf_log() argument
856 return tape_3590_erp_basic(device, request, irb, -EIO); in tape_3590_erp_read_buf_log()
864 struct irb *irb) in tape_3590_erp_swap() argument
874 return tape_3590_erp_basic(device, request, irb, -EIO); in tape_3590_erp_swap()
882 struct tape_request *request, struct irb *irb) in tape_3590_erp_long_busy() argument
893 struct tape_request *request, struct irb *irb) in tape_3590_erp_special_interrupt() argument
895 return tape_3590_erp_basic(device, request, irb, -EIO); in tape_3590_erp_special_interrupt()
903 struct tape_request *request, struct irb *irb) in tape_3590_erp_read_alternate() argument
925 return tape_3590_erp_retry(device, request, irb); in tape_3590_erp_read_alternate()
933 struct tape_request *request, struct irb *irb) in tape_3590_erp_read_opposite() argument
942 return tape_3590_erp_retry(device, request, irb); in tape_3590_erp_read_opposite()
945 return tape_3590_erp_failed(device, request, irb, -EIO); in tape_3590_erp_read_opposite()
948 return tape_3590_erp_failed(device, request, irb, -EIO); in tape_3590_erp_read_opposite()
956 tape_3590_print_mim_msg_f0(struct tape_device *device, struct irb *irb) in tape_3590_print_mim_msg_f0() argument
967 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_print_mim_msg_f0()
1020 tape_3590_print_io_sim_msg_f1(struct tape_device *device, struct irb *irb) in tape_3590_print_io_sim_msg_f1() argument
1031 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_print_io_sim_msg_f1()
1131 tape_3590_print_dev_sim_msg_f2(struct tape_device *device, struct irb *irb) in tape_3590_print_dev_sim_msg_f2() argument
1142 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_print_dev_sim_msg_f2()
1243 tape_3590_print_era_msg(struct tape_device *device, struct irb *irb) in tape_3590_print_era_msg() argument
1247 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_print_era_msg()
1268 tape_3590_print_mim_msg_f0(device, irb); in tape_3590_print_era_msg()
1279 tape_3590_print_io_sim_msg_f1(device, irb); in tape_3590_print_era_msg()
1290 tape_3590_print_dev_sim_msg_f2(device, irb); in tape_3590_print_era_msg()
1302 struct tape_request *request, struct irb *irb) in tape_3590_crypt_error() argument
1308 sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data; in tape_3590_crypt_error()
1313 return tape_3590_erp_basic(device, request, irb, -EKEYREJECTED); in tape_3590_crypt_error()
1316 return tape_3590_erp_basic(device, request, irb, -ENOTCONN); in tape_3590_crypt_error()
1321 return tape_3590_erp_basic(device, request, irb, -ENOKEY); in tape_3590_crypt_error()
1331 struct irb *irb) in tape_3590_unit_check() argument
1335 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_unit_check()
1347 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1348 return tape_3590_erp_read_buf_log(device, request, irb); in tape_3590_unit_check()
1351 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1352 return tape_3590_erp_read_alternate(device, request, irb); in tape_3590_unit_check()
1356 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1357 return tape_3590_erp_special_interrupt(device, request, irb); in tape_3590_unit_check()
1359 return tape_3590_crypt_error(device, request, irb); in tape_3590_unit_check()
1364 return tape_3590_erp_basic(device, request, irb, -ENOSPC); in tape_3590_unit_check()
1368 return tape_3590_erp_basic(device, request, irb, -ENOSPC); in tape_3590_unit_check()
1371 return tape_3590_erp_basic(device, request, irb, -ENOSPC); in tape_3590_unit_check()
1376 return tape_3590_erp_basic(device, request, irb, -EIO); in tape_3590_unit_check()
1382 return tape_3590_erp_basic(device, request, irb, 0); in tape_3590_unit_check()
1391 return tape_3590_erp_basic(device, request, irb, -ENOMEDIUM); in tape_3590_unit_check()
1395 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1396 return tape_3590_erp_basic(device, request, irb, -EBUSY); in tape_3590_unit_check()
1399 return tape_3590_erp_long_busy(device, request, irb); in tape_3590_unit_check()
1404 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1405 return tape_3590_erp_swap(device, request, irb); in tape_3590_unit_check()
1409 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1411 irb); in tape_3590_unit_check()
1413 return tape_3590_erp_basic(device, request, irb, -EIO); in tape_3590_unit_check()
1420 tape_3590_print_era_msg(device, irb); in tape_3590_unit_check()
1421 return tape_3590_erp_swap(device, request, irb); in tape_3590_unit_check()
1425 return tape_3590_erp_basic(device, request, irb, -EMEDIUMTYPE); in tape_3590_unit_check()
1431 return tape_3590_erp_basic(device, request, irb, -ENOMEDIUM); in tape_3590_unit_check()
1434 return tape_3590_erp_basic(device, request, irb, -EMEDIUMTYPE); in tape_3590_unit_check()
1437 return tape_3590_erp_basic(device, request, irb, -EPERM); in tape_3590_unit_check()
1441 return tape_3590_erp_basic(device, request, irb, -EPERM); in tape_3590_unit_check()
1443 return tape_3590_erp_basic(device, request, irb, -EIO); in tape_3590_unit_check()
1452 struct irb *irb) in tape_3590_irq() argument
1455 return tape_3590_unsolicited_irq(device, irb); in tape_3590_irq()
1457 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) && in tape_3590_irq()
1458 (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) && in tape_3590_irq()
1462 return tape_3590_erp_failed(device, request, irb, -ENOSPC); in tape_3590_irq()
1465 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in tape_3590_irq()
1466 return tape_3590_unit_check(device, request, irb); in tape_3590_irq()
1468 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in tape_3590_irq()
1469 if (irb->scsw.cmd.dstat == DEV_STAT_UNIT_EXCEP) { in tape_3590_irq()
1479 if (irb->scsw.cmd.dstat & DEV_STAT_CHN_END) { in tape_3590_irq()
1484 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in tape_3590_irq()
1490 tape_dump_sense_dbf(device, request, irb); in tape_3590_irq()