Lines Matching refs:sch

141 	struct subchannel *sch;  in ccw_device_clear()  local
146 sch = to_subchannel(cdev->dev.parent); in ccw_device_clear()
147 if (!sch->schib.pmcw.ena) in ccw_device_clear()
155 ret = cio_clear(sch); in ccw_device_clear()
194 struct subchannel *sch; in ccw_device_start_timeout_key() local
199 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_timeout_key()
200 if (!sch->schib.pmcw.ena) in ccw_device_start_timeout_key()
215 ((sch->schib.scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) && in ccw_device_start_timeout_key()
216 !(sch->schib.scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS)) || in ccw_device_start_timeout_key()
219 ret = cio_set_options (sch, flags); in ccw_device_start_timeout_key()
224 lpm &= sch->lpm; in ccw_device_start_timeout_key()
228 ret = cio_start_key (sch, cpa, lpm, key); in ccw_device_start_timeout_key()
361 struct subchannel *sch; in ccw_device_halt() local
366 sch = to_subchannel(cdev->dev.parent); in ccw_device_halt()
367 if (!sch->schib.pmcw.ena) in ccw_device_halt()
375 ret = cio_halt(sch); in ccw_device_halt()
396 struct subchannel *sch; in ccw_device_resume() local
400 sch = to_subchannel(cdev->dev.parent); in ccw_device_resume()
401 if (!sch->schib.pmcw.ena) in ccw_device_resume()
406 !(sch->schib.scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_resume()
408 return cio_resume(sch); in ccw_device_resume()
446 struct subchannel *sch; in ccw_device_get_path_mask() local
451 sch = to_subchannel(cdev->dev.parent); in ccw_device_get_path_mask()
452 return sch->lpm; in ccw_device_get_path_mask()
466 struct subchannel *sch; in ccw_device_get_chp_desc() local
469 sch = to_subchannel(cdev->dev.parent); in ccw_device_get_chp_desc()
471 chpid.id = sch->schib.pmcw.chpid[chp_idx]; in ccw_device_get_chp_desc()
485 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_util_str() local
491 chpid.id = sch->schib.pmcw.chpid[chp_idx]; in ccw_device_get_util_str()
532 struct subchannel *sch; in ccw_device_tm_start_timeout_key() local
535 sch = to_subchannel(cdev->dev.parent); in ccw_device_tm_start_timeout_key()
536 if (!sch->schib.pmcw.ena) in ccw_device_tm_start_timeout_key()
552 lpm &= sch->lpm; in ccw_device_tm_start_timeout_key()
556 rc = cio_tm_start_key(sch, tcw, lpm, key); in ccw_device_tm_start_timeout_key()
631 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_mdc() local
638 mask &= sch->lpm; in ccw_device_get_mdc()
640 mask = sch->lpm; in ccw_device_get_mdc()
646 chpid.id = sch->schib.pmcw.chpid[i]; in ccw_device_get_mdc()
676 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_tm_intrg() local
678 if (!sch->schib.pmcw.ena) in ccw_device_tm_intrg()
682 if (!scsw_is_tm(&sch->schib.scsw) || in ccw_device_tm_intrg()
683 !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND)) in ccw_device_tm_intrg()
685 return cio_tm_intrg(sch); in ccw_device_tm_intrg()
696 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_get_schid() local
698 *schid = sch->schid; in ccw_device_get_schid()