/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | scsw.h | 140 union scsw { union 225 static inline int scsw_is_tm(union scsw *scsw) in scsw_is_tm() argument 227 return css_general_characteristics.fcx && (scsw->tm.x == 1); in scsw_is_tm() 237 static inline u32 scsw_key(union scsw *scsw) in scsw_key() argument 239 if (scsw_is_tm(scsw)) in scsw_key() 240 return scsw->tm.key; in scsw_key() 242 return scsw->cmd.key; in scsw_key() 252 static inline u32 scsw_eswf(union scsw *scsw) in scsw_eswf() argument 254 if (scsw_is_tm(scsw)) in scsw_eswf() 255 return scsw->tm.eswf; in scsw_eswf() [all …]
|
D | cio.h | 236 union scsw scsw; member
|
/kernel/linux/linux-5.10/drivers/s390/cio/ |
D | device_status.c | 33 if (!scsw_is_valid_cstat(&irb->scsw) || in ccw_device_msg_control_check() 34 !(scsw_cstat(&irb->scsw) & (SCHN_STAT_CHN_DATA_CHK | in ccw_device_msg_control_check() 43 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw)); in ccw_device_msg_control_check() 82 cdev->private->dma_area->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 83 if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) && in ccw_device_accumulate_ecw() 84 !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS)) in ccw_device_accumulate_ecw() 85 cdev->private->dma_area->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() 87 if (!cdev->private->dma_area->irb.scsw.cmd.ectl) in ccw_device_accumulate_ecw() 99 if (!irb->scsw.cmd.eswf && in ccw_device_accumulate_esw_valid() 100 (irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND)) in ccw_device_accumulate_esw_valid() [all …]
|
D | ccwreq.c | 173 struct cmd_scsw *scsw = &irb->scsw.cmd; in ccwreq_status() local 180 if (scsw->fctl & (SCSW_FCTL_HALT_FUNC | SCSW_FCTL_CLEAR_FUNC)) in ccwreq_status() 183 if (scsw->cc == 3 || scsw->pno) in ccwreq_status() 215 if (scsw->cstat != 0) in ccwreq_status() 218 if (scsw->dstat & ~(DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in ccwreq_status() 221 if (!(scsw->dstat & DEV_STAT_DEV_END)) in ccwreq_status() 224 if (scsw->cc == 1 && (scsw->stctl & SCSW_STCTL_ALERT_STATUS)) in ccwreq_status() 340 scsw_cstat(&sch->schib.scsw), in ccw_request_timeout() 341 scsw_dstat(&sch->schib.scsw), in ccw_request_timeout()
|
D | vfio_ccw_fsm.c | 50 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in fsm_io_helper() 104 sch->schib.scsw.cmd.actl |= SCSW_ACTL_HALT_PEND; in fsm_do_halt() 145 sch->schib.scsw.cmd.actl = SCSW_ACTL_CLEAR_PEND; in fsm_do_clear() 243 union scsw *scsw = &private->scsw; in fsm_io_request() local 250 memcpy(scsw, io_region->scsw_area, sizeof(*scsw)); in fsm_io_request() 252 if (scsw->cmd.fctl & SCSW_FCTL_START_FUNC) { in fsm_io_request() 302 } else if (scsw->cmd.fctl & SCSW_FCTL_HALT_FUNC) { in fsm_io_request() 310 } else if (scsw->cmd.fctl & SCSW_FCTL_CLEAR_FUNC) { in fsm_io_request() 322 trace_vfio_ccw_fsm_io_request(scsw->cmd.fctl, schid, in fsm_io_request()
|
D | device_fsm.c | 469 struct cmd_scsw *scsw = &irb->scsw.cmd; in create_fake_irb() local 470 scsw->cc = 1; in create_fake_irb() 471 scsw->fctl = SCSW_FCTL_START_FUNC; in create_fake_irb() 472 scsw->actl = SCSW_ACTL_START_PEND; in create_fake_irb() 473 scsw->stctl = SCSW_STCTL_STATUS_PEND; in create_fake_irb() 475 struct tm_scsw *scsw = &irb->scsw.tm; in create_fake_irb() local 476 scsw->x = 1; in create_fake_irb() 477 scsw->cc = 1; in create_fake_irb() 478 scsw->fctl = SCSW_FCTL_START_FUNC; in create_fake_irb() 479 scsw->actl = SCSW_ACTL_START_PEND; in create_fake_irb() [all …]
|
D | cio.c | 162 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in cio_start_key() 199 sch->schib.scsw.cmd.actl |= SCSW_ACTL_RESUME_PEND; in cio_resume() 238 sch->schib.scsw.cmd.actl |= SCSW_ACTL_HALT_PEND; in cio_halt() 272 sch->schib.scsw.cmd.actl |= SCSW_ACTL_CLEAR_PEND; in cio_clear() 344 if (!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_HALT_PEND) && in cio_cancel_halt_clear() 345 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_CLEAR_PEND)) { in cio_cancel_halt_clear() 346 if (!scsw_is_tm(&sch->schib.scsw)) { in cio_cancel_halt_clear() 358 if (!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_CLEAR_PEND)) { in cio_cancel_halt_clear() 553 memcpy (&sch->schib.scsw, &irb->scsw, sizeof (irb->scsw)); in do_cio_interrupt() 592 memcpy(&sch->schib.scsw, &irb->scsw, sizeof(union scsw)); in cio_tsch()
|
D | eadm_sch.c | 75 sch->schib.scsw.eadm.actl |= SCSW_ACTL_START_PEND; in eadm_subchannel_start() 94 sch->schib.scsw.eadm.actl |= SCSW_ACTL_CLEAR_PEND; in eadm_subchannel_clear() 130 struct eadm_scsw *scsw = &sch->schib.scsw.eadm; in eadm_subchannel_irq() local 139 if ((scsw->stctl & (SCSW_STCTL_ALERT_STATUS | SCSW_STCTL_STATUS_PEND)) in eadm_subchannel_irq() 140 && scsw->eswf == 1 && irb->esw.eadm.erw.r) in eadm_subchannel_irq() 143 if (scsw->fctl & SCSW_FCTL_CLEAR_FUNC) in eadm_subchannel_irq() 155 scm_irq_handler((struct aob *)(unsigned long)scsw->aob, error); in eadm_subchannel_irq()
|
D | vfio_ccw_cp.h | 50 extern void cp_update_scsw(struct channel_program *cp, union scsw *scsw);
|
D | trace.h | 128 __entry->scsw_dcc = scsw_cc(&irb->scsw); 129 __entry->scsw_pno = scsw_pno(&irb->scsw); 130 __entry->scsw_fctl = scsw_fctl(&irb->scsw); 131 __entry->scsw_actl = scsw_actl(&irb->scsw); 132 __entry->scsw_stctl = scsw_stctl(&irb->scsw); 133 __entry->scsw_dstat = scsw_dstat(&irb->scsw); 134 __entry->scsw_cstat = scsw_cstat(&irb->scsw);
|
D | chsc_sch.c | 133 if (!cc && scsw_stctl(&schib.scsw)) in chsc_subchannel_prepare() 210 return sch->schib.pmcw.ena && !scsw_fctl(&sch->schib.scsw); in chsc_subchannel_match_next_free() 266 sch->schib.scsw.cmd.fctl |= SCSW_FCTL_START_FUNC; in chsc_async() 301 if (!(scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND)) in chsc_examine_irb() 303 backed_up = scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb() 304 request->irb.scsw.cmd.cstat &= ~SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb() 305 if (scsw_cstat(&request->irb.scsw) == 0) in chsc_examine_irb() 309 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROG_CHECK) in chsc_examine_irb() 311 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROT_CHECK) in chsc_examine_irb() 313 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHN_DATA_CHK) in chsc_examine_irb() [all …]
|
D | device_id.c | 148 struct cmd_scsw *scsw = &cdev->private->dma_area->irb.scsw.cmd; in snsid_check() local 149 int len = sizeof(struct senseid) - scsw->count; in snsid_check()
|
D | vfio_ccw_private.h | 106 union scsw scsw; member
|
D | cio.h | 79 union scsw scsw; /* subchannel status word */ member
|
D | device_ops.c | 216 ((sch->schib.scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) && in ccw_device_start_timeout_key() 217 !(sch->schib.scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS)) || in ccw_device_start_timeout_key() 417 !(sch->schib.scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_resume() 693 if (!scsw_is_tm(&sch->schib.scsw) || in ccw_device_tm_intrg() 694 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND)) in ccw_device_tm_intrg()
|
D | vfio_ccw_cp.c | 816 void cp_update_scsw(struct channel_program *cp, union scsw *scsw) in cp_update_scsw() argument 819 u32 cpa = scsw->cmd.cpa; in cp_update_scsw() 849 scsw->cmd.cpa = cpa; in cp_update_scsw()
|
D | vfio_ccw_drv.c | 94 is_final = !(scsw_actl(&irb->scsw) & in vfio_ccw_sch_io_todo() 96 if (scsw_is_solicited(&irb->scsw)) { in vfio_ccw_sch_io_todo() 97 cp_update_scsw(&private->cp, &irb->scsw); in vfio_ccw_sch_io_todo()
|
/kernel/linux/linux-5.10/drivers/s390/block/ |
D | dasd_fba.c | 251 if ((irb->scsw.cmd.dstat & mask) == mask) in dasd_fba_check_for_device_change() 657 scsw_is_tm(&irb->scsw) ? "t" : "c", in dasd_fba_dump_sense_dbf() 658 scsw_cc(&irb->scsw), scsw_cstat(&irb->scsw), in dasd_fba_dump_sense_dbf() 659 scsw_dstat(&irb->scsw), sense[0], sense[1], in dasd_fba_dump_sense_dbf() 687 irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); in dasd_fba_dump_sense() 691 (void *) (addr_t) irb->scsw.cmd.cpa); in dasd_fba_dump_sense() 733 if (act < ((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa) - 2) { in dasd_fba_dump_sense() 734 act = ((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa) - 2; in dasd_fba_dump_sense() 737 end = min((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa + 2, last); in dasd_fba_dump_sense()
|
D | dasd_3990_erp.c | 1627 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32() 1644 cpa = default_erp->refers->irb.scsw.cmd.cpa; in dasd_3990_erp_action_1B_32() 1783 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B() 1802 cpa = previous_erp->irb.scsw.cmd.cpa; in dasd_3990_update_1B() 2296 if (scsw_cstat(&erp->refers->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK in dasd_3990_erp_control_check() 2517 if ((scsw_cstat(&cqr1->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK | in dasd_3990_erp_error_match() 2519 (scsw_cstat(&cqr2->irb.scsw) & (SCHN_STAT_INTF_CTRL_CHK | in dasd_3990_erp_error_match() 2793 if ((scsw_cstat(&cqr->irb.scsw) == 0x00) && in dasd_3990_erp_action() 2794 (scsw_dstat(&cqr->irb.scsw) == in dasd_3990_erp_action()
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
D | tape_core.c | 924 irb->scsw.cmd.dstat, irb->scsw.cmd.cstat); in tape_dump_sense_dbf() 1139 if (irb->scsw.cmd.cc != 0 && in __tape_do_irq() 1140 (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) && in __tape_do_irq() 1143 device->cdev_id, irb->scsw.cmd.cc, irb->scsw.cmd.fctl); in __tape_do_irq() 1151 request->rescnt = irb->scsw.cmd.count; in __tape_do_irq() 1152 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_34xx.c | 224 if (irb->scsw.cmd.dstat == 0x85) { /* READY */ in tape_34xx_unsolicited_irq() 838 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) && in tape_34xx_irq() 839 (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) && in tape_34xx_irq() 845 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in tape_34xx_irq() 848 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in tape_34xx_irq() 852 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_EXCEP) { in tape_34xx_irq()
|
D | tape_3590.c | 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() 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() 1465 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) 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()
|
D | con3270.c | 414 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) in con3270_irq() 418 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) in con3270_irq() 422 rq->rescnt = irb->scsw.cmd.count; in con3270_irq() 423 } else if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { in con3270_irq()
|
/kernel/linux/linux-5.10/drivers/s390/net/ |
D | lcs.c | 1317 cstat = irb->scsw.cmd.cstat; in lcs_get_problem() 1318 dstat = irb->scsw.cmd.dstat; in lcs_get_problem() 1378 cstat = irb->scsw.cmd.cstat; in lcs_irq() 1379 dstat = irb->scsw.cmd.dstat; in lcs_irq() 1381 LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.cstat, in lcs_irq() 1382 irb->scsw.cmd.dstat); in lcs_irq() 1383 LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.fctl, in lcs_irq() 1384 irb->scsw.cmd.actl); in lcs_irq() 1404 (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) && in lcs_irq() 1405 (irb->scsw.cmd.cpa != 0)) { in lcs_irq() [all …]
|
D | ctcm_main.c | 1205 cstat = irb->scsw.cmd.cstat; in ctcm_irq_handler() 1206 dstat = irb->scsw.cmd.dstat; in ctcm_irq_handler() 1247 if (irb->scsw.cmd.cstat) { in ctcm_irq_handler() 1258 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in ctcm_irq_handler() 1267 if (irb->scsw.cmd.dstat & DEV_STAT_BUSY) { in ctcm_irq_handler() 1268 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) in ctcm_irq_handler() 1274 if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in ctcm_irq_handler() 1278 if ((irb->scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS) || in ctcm_irq_handler() 1279 (irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND) || in ctcm_irq_handler() 1280 (irb->scsw.cmd.stctl == in ctcm_irq_handler()
|