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);
577 struct subchannel *sch;
580 sch = to_subchannel(cdev->dev.parent);
582 chpid.id = sch->schib.pmcw.chpid[chp_idx];
611 struct subchannel *sch;
614 sch = to_subchannel(cdev->dev.parent);
615 if (!sch->schib.pmcw.ena)
631 lpm &= sch->lpm;
635 rc = cio_tm_start_key(sch, tcw, lpm, key);
715 struct subchannel *sch = to_subchannel(cdev->dev.parent);
722 mask &= sch->lpm;
724 mask = sch->lpm;
730 chpid.id = sch->schib.pmcw.chpid[i];
760 struct subchannel *sch = to_subchannel(cdev->dev.parent);
762 if (!sch->schib.pmcw.ena)
766 if (!scsw_is_tm(&sch->schib.scsw) ||
767 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND))
769 return cio_tm_intrg(sch);
780 struct subchannel *sch = to_subchannel(cdev->dev.parent);
782 *schid = sch->schid;