Lines Matching refs:scsw
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()
102 if (irb->scsw.cmd.stctl == in ccw_device_accumulate_esw_valid()
104 !(irb->scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_accumulate_esw_valid()
127 if (irb->scsw.cmd.eswf) { in ccw_device_accumulate_esw()
136 if (irb->scsw.cmd.cstat & (SCHN_STAT_CHN_DATA_CHK | in ccw_device_accumulate_esw()
157 if (irb->scsw.cmd.cstat & SCHN_STAT_INTF_CTRL_CHK) in ccw_device_accumulate_esw()
202 if (!(scsw_stctl(&irb->scsw) & SCSW_STCTL_STATUS_PEND)) in ccw_device_accumulate_irb()
209 if (scsw_is_valid_pno(&irb->scsw) && scsw_pno(&irb->scsw)) in ccw_device_accumulate_irb()
212 if (scsw_is_tm(&irb->scsw)) { in ccw_device_accumulate_irb()
219 if (!scsw_is_solicited(&irb->scsw)) in ccw_device_accumulate_irb()
229 if (irb->scsw.cmd.fctl & SCSW_FCTL_CLEAR_FUNC) in ccw_device_accumulate_irb()
233 if (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) { in ccw_device_accumulate_irb()
235 cdev_irb->scsw.cmd.key = irb->scsw.cmd.key; in ccw_device_accumulate_irb()
237 cdev_irb->scsw.cmd.sctl = irb->scsw.cmd.sctl; in ccw_device_accumulate_irb()
239 cdev_irb->scsw.cmd.cc |= irb->scsw.cmd.cc; in ccw_device_accumulate_irb()
241 cdev_irb->scsw.cmd.fmt = irb->scsw.cmd.fmt; in ccw_device_accumulate_irb()
243 cdev_irb->scsw.cmd.pfch = irb->scsw.cmd.pfch; in ccw_device_accumulate_irb()
245 cdev_irb->scsw.cmd.isic = irb->scsw.cmd.isic; in ccw_device_accumulate_irb()
247 cdev_irb->scsw.cmd.alcc = irb->scsw.cmd.alcc; in ccw_device_accumulate_irb()
249 cdev_irb->scsw.cmd.ssi = irb->scsw.cmd.ssi; in ccw_device_accumulate_irb()
256 cdev_irb->scsw.cmd.fctl |= irb->scsw.cmd.fctl; in ccw_device_accumulate_irb()
258 cdev_irb->scsw.cmd.actl = irb->scsw.cmd.actl; in ccw_device_accumulate_irb()
260 cdev_irb->scsw.cmd.stctl |= irb->scsw.cmd.stctl; in ccw_device_accumulate_irb()
265 if ((irb->scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) || in ccw_device_accumulate_irb()
266 ((irb->scsw.cmd.stctl == in ccw_device_accumulate_irb()
268 (irb->scsw.cmd.actl & SCSW_ACTL_DEVACT) && in ccw_device_accumulate_irb()
269 (irb->scsw.cmd.actl & SCSW_ACTL_SCHACT)) || in ccw_device_accumulate_irb()
270 (irb->scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_accumulate_irb()
271 cdev_irb->scsw.cmd.cpa = irb->scsw.cmd.cpa; in ccw_device_accumulate_irb()
273 cdev_irb->scsw.cmd.dstat &= ~DEV_STAT_BUSY; in ccw_device_accumulate_irb()
275 if (irb->scsw.cmd.stctl & in ccw_device_accumulate_irb()
278 cdev_irb->scsw.cmd.dstat |= irb->scsw.cmd.dstat; in ccw_device_accumulate_irb()
280 cdev_irb->scsw.cmd.cstat |= irb->scsw.cmd.cstat; in ccw_device_accumulate_irb()
282 if ((irb->scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) && in ccw_device_accumulate_irb()
283 (irb->scsw.cmd.cstat & ~(SCHN_STAT_PCI | SCHN_STAT_INCORR_LEN)) in ccw_device_accumulate_irb()
285 cdev_irb->scsw.cmd.count = irb->scsw.cmd.count; in ccw_device_accumulate_irb()
302 if ((cdev_irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in ccw_device_accumulate_irb()
320 if (scsw_actl(&irb->scsw) & (SCSW_ACTL_DEVACT | SCSW_ACTL_SCHACT)) in ccw_device_do_sense()
355 if (!(scsw_stctl(&irb->scsw) & SCSW_STCTL_STATUS_PEND)) in ccw_device_accumulate_basic_sense()
362 if (scsw_is_valid_pno(&irb->scsw) && scsw_pno(&irb->scsw)) in ccw_device_accumulate_basic_sense()
365 if (!(irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in ccw_device_accumulate_basic_sense()
366 (irb->scsw.cmd.dstat & DEV_STAT_CHN_END)) { in ccw_device_accumulate_basic_sense()
384 if ((irb->scsw.cmd.actl & (SCSW_ACTL_DEVACT | SCSW_ACTL_SCHACT)) != 0) in ccw_device_accumulate_and_sense()
388 !(irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK)) { in ccw_device_accumulate_and_sense()