/drivers/s390/cio/ |
D | device_status.c | 31 if (!scsw_is_valid_cstat(&irb->scsw) || in ccw_device_msg_control_check() 32 !(scsw_cstat(&irb->scsw) & (SCHN_STAT_CHN_DATA_CHK | in ccw_device_msg_control_check() 41 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw)); in ccw_device_msg_control_check() 80 cdev->private->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 81 if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) && in ccw_device_accumulate_ecw() 82 !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS)) in ccw_device_accumulate_ecw() 83 cdev->private->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() 85 if (!cdev->private->irb.scsw.cmd.ectl) in ccw_device_accumulate_ecw() 97 if (!irb->scsw.cmd.eswf && in ccw_device_accumulate_esw_valid() 98 (irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND)) in ccw_device_accumulate_esw_valid() [all …]
|
D | ccwreq.c | 172 struct cmd_scsw *scsw = &irb->scsw.cmd; in ccwreq_status() local 179 if (scsw->fctl & (SCSW_FCTL_HALT_FUNC | SCSW_FCTL_CLEAR_FUNC)) in ccwreq_status() 182 if (scsw->cc == 3 || scsw->pno) in ccwreq_status() 213 if (scsw->cstat != 0) in ccwreq_status() 216 if (scsw->dstat & ~(DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in ccwreq_status() 219 if (!(scsw->dstat & DEV_STAT_DEV_END)) in ccwreq_status() 222 if (scsw->cc == 1 && (scsw->stctl & SCSW_STCTL_ALERT_STATUS)) in ccwreq_status() 339 scsw_cstat(&sch->schib.scsw), in ccw_request_timeout() 340 scsw_dstat(&sch->schib.scsw), in ccw_request_timeout()
|
D | device_fsm.c | 148 if (!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_HALT_PEND) && in ccw_device_cancel_halt_clear() 149 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_CLEAR_PEND)) { in ccw_device_cancel_halt_clear() 150 if (!scsw_is_tm(&sch->schib.scsw)) { in ccw_device_cancel_halt_clear() 159 if (!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_CLEAR_PEND)) { in ccw_device_cancel_halt_clear() 502 struct cmd_scsw *scsw = &irb->scsw.cmd; in create_fake_irb() local 503 scsw->cc = 1; in create_fake_irb() 504 scsw->fctl = SCSW_FCTL_START_FUNC; in create_fake_irb() 505 scsw->actl = SCSW_ACTL_START_PEND; in create_fake_irb() 506 scsw->stctl = SCSW_STCTL_STATUS_PEND; in create_fake_irb() 508 struct tm_scsw *scsw = &irb->scsw.tm; in create_fake_irb() local [all …]
|
D | eadm_sch.c | 79 sch->schib.scsw.eadm.actl |= SCSW_ACTL_START_PEND; in eadm_subchannel_start() 98 sch->schib.scsw.eadm.actl |= SCSW_ACTL_CLEAR_PEND; in eadm_subchannel_clear() 135 struct eadm_scsw *scsw = &sch->schib.scsw.eadm; in eadm_subchannel_irq() local 144 if ((scsw->stctl & (SCSW_STCTL_ALERT_STATUS | SCSW_STCTL_STATUS_PEND)) in eadm_subchannel_irq() 145 && scsw->eswf == 1 && irb->esw.eadm.erw.r) in eadm_subchannel_irq() 148 if (scsw->fctl & SCSW_FCTL_CLEAR_FUNC) in eadm_subchannel_irq() 160 scm_irq_handler((struct aob *)(unsigned long)scsw->aob, error); in eadm_subchannel_irq()
|
D | chsc_sch.c | 133 if (!cc && scsw_stctl(&schib.scsw)) in chsc_subchannel_prepare() 212 return sch->schib.pmcw.ena && !scsw_fctl(&sch->schib.scsw); in chsc_subchannel_match_next_free() 268 sch->schib.scsw.cmd.fctl |= SCSW_FCTL_START_FUNC; in chsc_async() 303 if (!(scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND)) in chsc_examine_irb() 305 backed_up = scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb() 306 request->irb.scsw.cmd.cstat &= ~SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb() 307 if (scsw_cstat(&request->irb.scsw) == 0) in chsc_examine_irb() 311 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROG_CHECK) in chsc_examine_irb() 313 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROT_CHECK) in chsc_examine_irb() 315 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHN_DATA_CHK) in chsc_examine_irb() [all …]
|
D | cio.c | 162 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in cio_start_key() 197 sch->schib.scsw.cmd.actl |= SCSW_ACTL_RESUME_PEND; in cio_resume() 235 sch->schib.scsw.cmd.actl |= SCSW_ACTL_HALT_PEND; in cio_halt() 268 sch->schib.scsw.cmd.actl |= SCSW_ACTL_CLEAR_PEND; in cio_clear() 604 memcpy (&sch->schib.scsw, &irb->scsw, in do_IRQ() 605 sizeof (irb->scsw)); in do_IRQ() 643 memcpy(&sch->schib.scsw, &irb->scsw, sizeof(union scsw)); in cio_tsch()
|
D | device_id.c | 145 struct cmd_scsw *scsw = &cdev->private->irb.scsw.cmd; in snsid_check() local 146 int len = sizeof(struct senseid) - scsw->count; in snsid_check()
|
D | device_ops.c | 209 ((sch->schib.scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) && in ccw_device_start_key() 210 !(sch->schib.scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS)) || in ccw_device_start_key() 410 !(sch->schib.scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_resume() 432 stctl = scsw_stctl(&cdev->private->irb.scsw); in ccw_device_call_handler() 757 if (!scsw_is_tm(&sch->schib.scsw) || in ccw_device_tm_intrg() 758 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND)) in ccw_device_tm_intrg()
|
D | cio.h | 66 union scsw scsw; /* subchannel status word */ member
|
D | cmf.c | 308 if (scsw_fctl(&sch->schib.scsw) & SCSW_FCTL_START_FUNC) { in cmf_copy_block() 310 if ((!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_SUSPENDED)) && in cmf_copy_block() 311 (scsw_actl(&sch->schib.scsw) & in cmf_copy_block() 313 (!(scsw_stctl(&sch->schib.scsw) & SCSW_STCTL_SEC_STATUS))) in cmf_copy_block()
|
/drivers/s390/block/ |
D | dasd_fba.c | 246 if ((irb->scsw.cmd.dstat & mask) == mask) in dasd_fba_check_for_device_change() 457 scsw_is_tm(&irb->scsw) ? "t" : "c", in dasd_fba_dump_sense_dbf() 458 scsw_cc(&irb->scsw), scsw_cstat(&irb->scsw), in dasd_fba_dump_sense_dbf() 459 scsw_dstat(&irb->scsw), sense[0], sense[1], in dasd_fba_dump_sense_dbf() 487 irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); in dasd_fba_dump_sense() 491 (void *) (addr_t) irb->scsw.cmd.cpa); in dasd_fba_dump_sense() 533 if (act < ((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa) - 2) { in dasd_fba_dump_sense() 534 act = ((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa) - 2; in dasd_fba_dump_sense() 537 end = min((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa + 2, last); in dasd_fba_dump_sense()
|
D | dasd_3990_erp.c | 1613 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32() 1630 cpa = default_erp->refers->irb.scsw.cmd.cpa; in dasd_3990_erp_action_1B_32() 1769 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B() 1788 cpa = previous_erp->irb.scsw.cmd.cpa; in dasd_3990_update_1B() 2224 if (scsw_cstat(&erp->refers->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK in dasd_3990_erp_control_check() 2444 if ((scsw_cstat(&cqr1->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK | in dasd_3990_erp_error_match() 2446 (scsw_cstat(&cqr2->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK | in dasd_3990_erp_error_match() 2720 if ((scsw_cstat(&cqr->irb.scsw) == 0x00) && in dasd_3990_erp_action() 2721 (scsw_dstat(&cqr->irb.scsw) == in dasd_3990_erp_action()
|
D | dasd_eckd.c | 2425 if ((scsw_dstat(&irb->scsw) & mask) == mask) { in dasd_eckd_check_for_device_change() 2455 (scsw_dstat(&irb->scsw) & DEV_STAT_UNIT_CHECK)) { in dasd_eckd_check_for_device_change() 2472 (scsw_dstat(&irb->scsw) & DEV_STAT_UNIT_CHECK) && in dasd_eckd_check_for_device_change() 4012 stat = (u64 *) &irb->scsw; in dasd_eckd_dump_sense_dbf() 4049 req, scsw_cc(&irb->scsw), scsw_fctl(&irb->scsw), in dasd_eckd_dump_sense_ccw() 4050 scsw_actl(&irb->scsw), scsw_stctl(&irb->scsw), in dasd_eckd_dump_sense_ccw() 4051 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw), in dasd_eckd_dump_sense_ccw() 4056 (void *) (addr_t) irb->scsw.cmd.cpa); in dasd_eckd_dump_sense_ccw() 4107 irb->scsw.cmd.cpa; /* failing CCW */ in dasd_eckd_dump_sense_ccw() 4153 req, scsw_cc(&irb->scsw), scsw_fctl(&irb->scsw), in dasd_eckd_dump_sense_tcw() [all …]
|
/drivers/s390/net/ |
D | lcs.c | 1344 cstat = irb->scsw.cmd.cstat; in lcs_get_problem() 1345 dstat = irb->scsw.cmd.dstat; in lcs_get_problem() 1405 cstat = irb->scsw.cmd.cstat; in lcs_irq() 1406 dstat = irb->scsw.cmd.dstat; in lcs_irq() 1408 LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.cstat, in lcs_irq() 1409 irb->scsw.cmd.dstat); in lcs_irq() 1410 LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.fctl, in lcs_irq() 1411 irb->scsw.cmd.actl); in lcs_irq() 1431 (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) && in lcs_irq() 1432 (irb->scsw.cmd.cpa != 0)) { in lcs_irq() [all …]
|
D | claw.c | 586 irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); in claw_irq_handler() 610 if (irb->scsw.cmd.cstat && !(irb->scsw.cmd.cstat & SCHN_STAT_PCI)) { in claw_irq_handler() 615 irb->scsw.cmd.cstat, irb->scsw.cmd.dstat, in claw_irq_handler() 616 irb->scsw.cmd.cpa); in claw_irq_handler() 622 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in claw_irq_handler() 626 p_ch->last_dstat = irb->scsw.cmd.dstat; in claw_irq_handler() 630 if (!((p_ch->irb->scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS) || in claw_irq_handler() 631 (p_ch->irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND) || in claw_irq_handler() 632 (p_ch->irb->scsw.cmd.stctl == in claw_irq_handler() 639 if (!((p_ch->irb->scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS) || in claw_irq_handler() [all …]
|
D | ctcm_main.c | 1214 cstat = irb->scsw.cmd.cstat; in ctcm_irq_handler() 1215 dstat = irb->scsw.cmd.dstat; in ctcm_irq_handler() 1256 if (irb->scsw.cmd.cstat) { in ctcm_irq_handler() 1267 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in ctcm_irq_handler() 1276 if (irb->scsw.cmd.dstat & DEV_STAT_BUSY) { in ctcm_irq_handler() 1277 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) in ctcm_irq_handler() 1283 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in ctcm_irq_handler() 1287 if ((irb->scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS) || in ctcm_irq_handler() 1288 (irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND) || in ctcm_irq_handler() 1289 (irb->scsw.cmd.stctl == in ctcm_irq_handler()
|
/drivers/s390/char/ |
D | tape_core.c | 925 irb->scsw.cmd.dstat, irb->scsw.cmd.cstat); in tape_dump_sense_dbf() 1138 if (irb->scsw.cmd.cc != 0 && in __tape_do_irq() 1139 (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) && in __tape_do_irq() 1142 device->cdev_id, irb->scsw.cmd.cc, irb->scsw.cmd.fctl); in __tape_do_irq() 1150 request->rescnt = irb->scsw.cmd.count; in __tape_do_irq() 1151 else if ((irb->scsw.cmd.dstat == 0x85 || irb->scsw.cmd.dstat == 0x80) && in __tape_do_irq() 1167 if (irb->scsw.cmd.dstat != 0x0c) { in __tape_do_irq()
|
D | tape_3590.c | 806 if (irb->scsw.cmd.dstat == DEV_STAT_CHN_END) in tape_3590_unsolicited_irq() 809 else if (irb->scsw.cmd.dstat == 0x85) in tape_3590_unsolicited_irq() 812 else if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in tape_3590_unsolicited_irq() 1461 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) && in tape_3590_irq() 1462 (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) && in tape_3590_irq() 1469 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in tape_3590_irq() 1472 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in tape_3590_irq() 1473 if (irb->scsw.cmd.dstat == DEV_STAT_UNIT_EXCEP) { in tape_3590_irq() 1483 if (irb->scsw.cmd.dstat & DEV_STAT_CHN_END) { in tape_3590_irq() 1488 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in tape_3590_irq()
|
D | tape_34xx.c | 223 if (irb->scsw.cmd.dstat == 0x85) { /* READY */ in tape_34xx_unsolicited_irq() 839 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) && in tape_34xx_irq() 840 (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) && in tape_34xx_irq() 846 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in tape_34xx_irq() 849 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in tape_34xx_irq() 853 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) { in tape_34xx_irq()
|
D | fs3270.c | 224 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in fs3270_irq() 230 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in fs3270_irq() 234 rq->rescnt = irb->scsw.cmd.count; in fs3270_irq()
|
D | raw3270.c | 346 else if (irb->scsw.cmd.fctl & SCSW_FCTL_HALT_FUNC) { in raw3270_irq() 349 } else if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END | in raw3270_irq() 356 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in raw3270_irq() 687 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in raw3270_init_irq() 695 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in raw3270_init_irq() 702 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in raw3270_init_irq()
|
D | vmur.c | 310 intparm, irb->scsw.cmd.cstat, irb->scsw.cmd.dstat, in ur_int_handler() 311 irb->scsw.cmd.count); in ur_int_handler() 322 else if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in ur_int_handler()
|
D | con3270.c | 401 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) in con3270_irq() 405 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in con3270_irq() 409 rq->rescnt = irb->scsw.cmd.count; in con3270_irq()
|
D | con3215.c | 374 cstat = irb->scsw.cmd.cstat; in raw3215_irq() 375 dstat = irb->scsw.cmd.dstat; in raw3215_irq() 396 req->residual = irb->scsw.cmd.count; in raw3215_irq()
|
/drivers/s390/kvm/ |
D | virtio_ccw.c | 598 if (scsw_cstat(&irb->scsw) != 0) in irb_is_error() 600 if (scsw_dstat(&irb->scsw) & ~(DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in irb_is_error() 602 if (scsw_cc(&irb->scsw) != 0) in irb_is_error() 638 (scsw_stctl(&irb->scsw) == in virtio_ccw_int_handler()
|