Home
last modified time | relevance | path

Searched refs:scsw (Results 1 – 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/arch/s390/include/asm/
Dscsw.h140 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 …]
Dcio.h236 union scsw scsw; member
/kernel/linux/linux-5.10/drivers/s390/cio/
Ddevice_status.c33 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 …]
Dccwreq.c173 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()
Dvfio_ccw_fsm.c50 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()
Ddevice_fsm.c469 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 …]
Dcio.c162 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()
Deadm_sch.c75 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()
Dvfio_ccw_cp.h50 extern void cp_update_scsw(struct channel_program *cp, union scsw *scsw);
Dtrace.h128 __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);
Dchsc_sch.c133 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 …]
Ddevice_id.c148 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()
Dvfio_ccw_private.h106 union scsw scsw; member
Dcio.h79 union scsw scsw; /* subchannel status word */ member
Ddevice_ops.c216 ((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()
Dvfio_ccw_cp.c816 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()
Dvfio_ccw_drv.c94 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/
Ddasd_fba.c251 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()
Ddasd_3990_erp.c1627 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/
Dtape_core.c924 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()
Dtape_34xx.c224 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()
Dtape_3590.c802 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()
Dcon3270.c414 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/
Dlcs.c1317 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 …]
Dctcm_main.c1205 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()

12