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()
450 struct subchannel *sch; in ccw_device_get_path_mask() local
455 sch = to_subchannel(cdev->dev.parent); in ccw_device_get_path_mask()
456 return sch->lpm; in ccw_device_get_path_mask()
470 struct subchannel *sch; in ccw_device_get_chp_desc() local
473 sch = to_subchannel(cdev->dev.parent); in ccw_device_get_chp_desc()
475 chpid.id = sch->schib.pmcw.chpid[chp_idx]; in ccw_device_get_chp_desc()
504 struct subchannel *sch; in ccw_device_tm_start_key() local
507 sch = to_subchannel(cdev->dev.parent); in ccw_device_tm_start_key()
508 if (!sch->schib.pmcw.ena) in ccw_device_tm_start_key()
524 lpm &= sch->lpm; in ccw_device_tm_start_key()
528 rc = cio_tm_start_key(sch, tcw, lpm, key); in ccw_device_tm_start_key()
608 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_mdc() local
615 mask &= sch->lpm; in ccw_device_get_mdc()
617 mask = sch->lpm; in ccw_device_get_mdc()
623 chpid.id = sch->schib.pmcw.chpid[i]; in ccw_device_get_mdc()
653 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_tm_intrg() local
655 if (!sch->schib.pmcw.ena) in ccw_device_tm_intrg()
659 if (!scsw_is_tm(&sch->schib.scsw) || in ccw_device_tm_intrg()
660 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND)) in ccw_device_tm_intrg()
662 return cio_tm_intrg(sch); in ccw_device_tm_intrg()
673 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_schid() local
675 *schid = sch->schid; in ccw_device_get_schid()