Lines Matching refs:sch

140 	struct subchannel *sch;
145 sch = to_subchannel(cdev->dev.parent);
146 if (!sch->schib.pmcw.ena)
154 ret = cio_clear(sch);
188 struct subchannel *sch;
193 sch = to_subchannel(cdev->dev.parent);
194 if (!sch->schib.pmcw.ena)
209 ((sch->schib.scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) &&
210 !(sch->schib.scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS)) ||
213 ret = cio_set_options (sch, flags);
218 lpm &= sch->lpm;
222 ret = cio_start_key (sch, cpa, lpm, key);
365 struct subchannel *sch;
370 sch = to_subchannel(cdev->dev.parent);
371 if (!sch->schib.pmcw.ena)
379 ret = cio_halt(sch);
400 struct subchannel *sch;
404 sch = to_subchannel(cdev->dev.parent);
405 if (!sch->schib.pmcw.ena)
410 !(sch->schib.scsw.cmd.actl & SCSW_ACTL_SUSPENDED))
412 return cio_resume(sch);
496 struct subchannel *sch;
501 sch = to_subchannel(cdev->dev.parent);
502 return sch->lpm;
523 struct subchannel *sch = to_subchannel(cdev->dev.parent);
538 spin_lock_irq(sch->lock);
539 rc = cio_enable_subchannel(sch, (u32) (addr_t) sch);
545 spin_unlock_irq(sch->lock);
549 spin_lock_irq(sch->lock);
551 spin_unlock_irq(sch->lock);
556 spin_lock_irq(sch->lock);
557 cio_disable_subchannel(sch);
560 spin_unlock_irq(sch->lock);
568 struct subchannel *sch;
571 sch = to_subchannel(cdev->dev.parent);
573 chpid.id = sch->schib.pmcw.chpid[chp_no];
602 struct subchannel *sch;
605 sch = to_subchannel(cdev->dev.parent);
606 if (!sch->schib.pmcw.ena)
622 lpm &= sch->lpm;
626 rc = cio_tm_start_key(sch, tcw, lpm, key);
706 struct subchannel *sch = to_subchannel(cdev->dev.parent);
713 mask &= sch->lpm;
715 mask = sch->lpm;
721 chpid.id = sch->schib.pmcw.chpid[i];
745 struct subchannel *sch = to_subchannel(cdev->dev.parent);
747 if (!sch->schib.pmcw.ena)
751 if (!scsw_is_tm(&sch->schib.scsw) ||
752 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND))
754 return cio_tm_intrg(sch);