Lines Matching refs:sch

140 	struct subchannel *sch;  in ccw_device_clear()  local
145 sch = to_subchannel(cdev->dev.parent); in ccw_device_clear()
146 if (!sch->schib.pmcw.ena) in ccw_device_clear()
154 ret = cio_clear(sch); in ccw_device_clear()
188 struct subchannel *sch; in ccw_device_start_key() local
193 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_key()
194 if (!sch->schib.pmcw.ena) in ccw_device_start_key()
209 ((sch->schib.scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) && in ccw_device_start_key()
210 !(sch->schib.scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS)) || in ccw_device_start_key()
213 ret = cio_set_options (sch, flags); in ccw_device_start_key()
218 lpm &= sch->lpm; in ccw_device_start_key()
222 ret = cio_start_key (sch, cpa, lpm, key); in ccw_device_start_key()
365 struct subchannel *sch; in ccw_device_halt() local
370 sch = to_subchannel(cdev->dev.parent); in ccw_device_halt()
371 if (!sch->schib.pmcw.ena) in ccw_device_halt()
379 ret = cio_halt(sch); in ccw_device_halt()
400 struct subchannel *sch; in ccw_device_resume() local
404 sch = to_subchannel(cdev->dev.parent); in ccw_device_resume()
405 if (!sch->schib.pmcw.ena) in ccw_device_resume()
410 !(sch->schib.scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_resume()
412 return cio_resume(sch); in ccw_device_resume()
496 struct subchannel *sch; in ccw_device_get_path_mask() local
501 sch = to_subchannel(cdev->dev.parent); in ccw_device_get_path_mask()
502 return sch->lpm; in ccw_device_get_path_mask()
523 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_stlck() local
538 spin_lock_irq(sch->lock); in ccw_device_stlck()
539 rc = cio_enable_subchannel(sch, (u32) (addr_t) sch); in ccw_device_stlck()
545 spin_unlock_irq(sch->lock); in ccw_device_stlck()
549 spin_lock_irq(sch->lock); in ccw_device_stlck()
551 spin_unlock_irq(sch->lock); in ccw_device_stlck()
556 spin_lock_irq(sch->lock); in ccw_device_stlck()
557 cio_disable_subchannel(sch); in ccw_device_stlck()
560 spin_unlock_irq(sch->lock); in ccw_device_stlck()
577 struct subchannel *sch; in ccw_device_get_chp_desc() local
580 sch = to_subchannel(cdev->dev.parent); in ccw_device_get_chp_desc()
582 chpid.id = sch->schib.pmcw.chpid[chp_idx]; in ccw_device_get_chp_desc()
611 struct subchannel *sch; in ccw_device_tm_start_key() local
614 sch = to_subchannel(cdev->dev.parent); in ccw_device_tm_start_key()
615 if (!sch->schib.pmcw.ena) in ccw_device_tm_start_key()
631 lpm &= sch->lpm; in ccw_device_tm_start_key()
635 rc = cio_tm_start_key(sch, tcw, lpm, key); in ccw_device_tm_start_key()
715 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_mdc() local
722 mask &= sch->lpm; in ccw_device_get_mdc()
724 mask = sch->lpm; in ccw_device_get_mdc()
730 chpid.id = sch->schib.pmcw.chpid[i]; in ccw_device_get_mdc()
760 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_tm_intrg() local
762 if (!sch->schib.pmcw.ena) in ccw_device_tm_intrg()
766 if (!scsw_is_tm(&sch->schib.scsw) || in ccw_device_tm_intrg()
767 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND)) in ccw_device_tm_intrg()
769 return cio_tm_intrg(sch); in ccw_device_tm_intrg()
780 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_schid() local
782 *schid = sch->schid; in ccw_device_get_schid()