/drivers/s390/cio/ |
D | device_status.c | 32 if (!scsw_is_valid_cstat(&irb->scsw) || in ccw_device_msg_control_check() 33 !(scsw_cstat(&irb->scsw) & (SCHN_STAT_CHN_DATA_CHK | in ccw_device_msg_control_check() 42 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw)); in ccw_device_msg_control_check() 81 cdev->private->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 82 if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) && in ccw_device_accumulate_ecw() 83 !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS)) in ccw_device_accumulate_ecw() 84 cdev->private->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() 86 if (!cdev->private->irb.scsw.cmd.ectl) in ccw_device_accumulate_ecw() 98 if (!irb->scsw.cmd.eswf && in ccw_device_accumulate_esw_valid() 99 (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() 338 scsw_cstat(&sch->schib.scsw), in ccw_request_timeout() 339 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 | 80 sch->schib.scsw.eadm.actl |= SCSW_ACTL_START_PEND; in eadm_subchannel_start() 99 sch->schib.scsw.eadm.actl |= SCSW_ACTL_CLEAR_PEND; in eadm_subchannel_clear() 136 struct eadm_scsw *scsw = &sch->schib.scsw.eadm; in eadm_subchannel_irq() local 145 if ((scsw->stctl & (SCSW_STCTL_ALERT_STATUS | SCSW_STCTL_STATUS_PEND)) in eadm_subchannel_irq() 146 && scsw->eswf == 1 && irb->esw.eadm.erw.r) in eadm_subchannel_irq() 149 if (scsw->fctl & SCSW_FCTL_CLEAR_FUNC) in eadm_subchannel_irq() 161 scm_irq_handler((struct aob *)(unsigned long)scsw->aob, error); in eadm_subchannel_irq()
|
D | trace.h | 103 scsw_cc(&__entry->irb.scsw), scsw_pno(&__entry->irb.scsw), 104 scsw_fctl(&__entry->irb.scsw), scsw_actl(&__entry->irb.scsw), 105 scsw_stctl(&__entry->irb.scsw), 106 scsw_dstat(&__entry->irb.scsw), scsw_cstat(&__entry->irb.scsw)
|
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() 556 memcpy (&sch->schib.scsw, &irb->scsw, sizeof (irb->scsw)); in do_cio_interrupt() 599 memcpy(&sch->schib.scsw, &irb->scsw, sizeof(union scsw)); in cio_tsch()
|
D | chsc_sch.c | 137 if (!cc && scsw_stctl(&schib.scsw)) in chsc_subchannel_prepare() 214 return sch->schib.pmcw.ena && !scsw_fctl(&sch->schib.scsw); in chsc_subchannel_match_next_free() 270 sch->schib.scsw.cmd.fctl |= SCSW_FCTL_START_FUNC; in chsc_async() 305 if (!(scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND)) in chsc_examine_irb() 307 backed_up = scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb() 308 request->irb.scsw.cmd.cstat &= ~SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb() 309 if (scsw_cstat(&request->irb.scsw) == 0) in chsc_examine_irb() 313 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROG_CHECK) in chsc_examine_irb() 315 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROT_CHECK) in chsc_examine_irb() 317 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHN_DATA_CHK) in chsc_examine_irb() [all …]
|
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() 659 if (!scsw_is_tm(&sch->schib.scsw) || in ccw_device_tm_intrg() 660 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND)) in ccw_device_tm_intrg()
|
D | cio.h | 78 union scsw scsw; /* subchannel status word */ member
|
D | cmf.c | 316 if (scsw_fctl(&sch->schib.scsw) & SCSW_FCTL_START_FUNC) { in cmf_copy_block() 318 if ((!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_SUSPENDED)) && in cmf_copy_block() 319 (scsw_actl(&sch->schib.scsw) & in cmf_copy_block() 321 (!(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 | 1625 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32() 1642 cpa = default_erp->refers->irb.scsw.cmd.cpa; in dasd_3990_erp_action_1B_32() 1781 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B() 1800 cpa = previous_erp->irb.scsw.cmd.cpa; in dasd_3990_update_1B() 2236 if (scsw_cstat(&erp->refers->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK in dasd_3990_erp_control_check() 2456 if ((scsw_cstat(&cqr1->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK | in dasd_3990_erp_error_match() 2458 (scsw_cstat(&cqr2->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK | in dasd_3990_erp_error_match() 2732 if ((scsw_cstat(&cqr->irb.scsw) == 0x00) && in dasd_3990_erp_action() 2733 (scsw_dstat(&cqr->irb.scsw) == in dasd_3990_erp_action()
|
D | dasd_eckd.c | 2939 if (tpm && scsw_cstat(&irb.scsw) == 0x40) { in dasd_eckd_check_device_format() 3010 if ((scsw_dstat(&irb->scsw) & mask) == mask) { in dasd_eckd_check_for_device_change() 3032 (scsw_dstat(&irb->scsw) & DEV_STAT_UNIT_CHECK)) { in dasd_eckd_check_for_device_change() 3069 (scsw_dstat(&irb->scsw) & DEV_STAT_UNIT_CHECK) && in dasd_eckd_check_for_device_change() 4646 stat = (u64 *) &irb->scsw; in dasd_eckd_dump_sense_dbf() 4683 req, scsw_cc(&irb->scsw), scsw_fctl(&irb->scsw), in dasd_eckd_dump_sense_ccw() 4684 scsw_actl(&irb->scsw), scsw_stctl(&irb->scsw), in dasd_eckd_dump_sense_ccw() 4685 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw), in dasd_eckd_dump_sense_ccw() 4690 (void *) (addr_t) irb->scsw.cmd.cpa); in dasd_eckd_dump_sense_ccw() 4741 irb->scsw.cmd.cpa; /* failing CCW */ in dasd_eckd_dump_sense_ccw() [all …]
|
D | dasd.c | 1669 !(scsw_dstat(&irb->scsw) == (DEV_STAT_CHN_END | DEV_STAT_DEV_END) && in dasd_int_handler() 1670 scsw_cstat(&irb->scsw) == 0)) { in dasd_int_handler() 1705 if (scsw_dstat(&irb->scsw) & DEV_STAT_ATTENTION) { in dasd_int_handler() 1727 scsw_fctl(&irb->scsw) & SCSW_FCTL_CLEAR_FUNC) { in dasd_int_handler() 1744 if (scsw_dstat(&irb->scsw) == (DEV_STAT_CHN_END | DEV_STAT_DEV_END) && in dasd_int_handler() 1745 scsw_cstat(&irb->scsw) == 0) { in dasd_int_handler() 2408 if (scsw_cstat(&cqr->irb.scsw) == 0x40 && in _dasd_sleep_on_queue() 3958 if (scsw_is_tm(&irb->scsw) && (irb->scsw.tm.fcxs == 0x01)) { in dasd_get_sense() 3959 if (irb->scsw.tm.tcw) in dasd_get_sense() 3961 irb->scsw.tm.tcw); in dasd_get_sense()
|
/drivers/s390/net/ |
D | lcs.c | 1343 cstat = irb->scsw.cmd.cstat; in lcs_get_problem() 1344 dstat = irb->scsw.cmd.dstat; in lcs_get_problem() 1404 cstat = irb->scsw.cmd.cstat; in lcs_irq() 1405 dstat = irb->scsw.cmd.dstat; in lcs_irq() 1407 LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.cstat, in lcs_irq() 1408 irb->scsw.cmd.dstat); in lcs_irq() 1409 LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.fctl, in lcs_irq() 1410 irb->scsw.cmd.actl); in lcs_irq() 1430 (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) && in lcs_irq() 1431 (irb->scsw.cmd.cpa != 0)) { in lcs_irq() [all …]
|
D | ctcm_main.c | 1216 cstat = irb->scsw.cmd.cstat; in ctcm_irq_handler() 1217 dstat = irb->scsw.cmd.dstat; in ctcm_irq_handler() 1258 if (irb->scsw.cmd.cstat) { in ctcm_irq_handler() 1269 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in ctcm_irq_handler() 1278 if (irb->scsw.cmd.dstat & DEV_STAT_BUSY) { in ctcm_irq_handler() 1279 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) in ctcm_irq_handler() 1285 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in ctcm_irq_handler() 1289 if ((irb->scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS) || in ctcm_irq_handler() 1290 (irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND) || in ctcm_irq_handler() 1291 (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 | 801 if (irb->scsw.cmd.dstat == DEV_STAT_CHN_END) in tape_3590_unsolicited_irq() 804 else if (irb->scsw.cmd.dstat == 0x85) in tape_3590_unsolicited_irq() 807 else if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in tape_3590_unsolicited_irq() 1456 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) && in tape_3590_irq() 1457 (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) && in tape_3590_irq() 1464 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in tape_3590_irq() 1467 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in tape_3590_irq() 1468 if (irb->scsw.cmd.dstat == DEV_STAT_UNIT_EXCEP) { in tape_3590_irq() 1478 if (irb->scsw.cmd.dstat & DEV_STAT_CHN_END) { in tape_3590_irq() 1483 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() 837 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) && in tape_34xx_irq() 838 (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) && in tape_34xx_irq() 844 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in tape_34xx_irq() 847 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in tape_34xx_irq() 851 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) { in tape_34xx_irq()
|
D | con3270.c | 412 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) in con3270_irq() 416 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in con3270_irq() 420 rq->rescnt = irb->scsw.cmd.count; in con3270_irq() 421 } else if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in con3270_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 | vmur.c | 311 intparm, irb->scsw.cmd.cstat, irb->scsw.cmd.dstat, in ur_int_handler() 312 irb->scsw.cmd.count); in ur_int_handler() 323 else if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in ur_int_handler()
|
D | raw3270.c | 333 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) in raw3270_irq() 335 if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | in raw3270_irq() 340 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in raw3270_irq() 670 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in raw3270_init_irq() 677 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in raw3270_init_irq()
|
/drivers/s390/virtio/ |
D | virtio_ccw.c | 962 if (scsw_cstat(&irb->scsw) != 0) in irb_is_error() 964 if (scsw_dstat(&irb->scsw) & ~(DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in irb_is_error() 966 if (scsw_cc(&irb->scsw) != 0) in irb_is_error() 1039 (scsw_stctl(&irb->scsw) == in virtio_ccw_int_handler() 1045 if ((scsw_dstat(&irb->scsw) & DEV_STAT_UNIT_CHECK) && in virtio_ccw_int_handler()
|