Lines Matching refs:old_sch
951 struct subchannel *old_sch; in ccw_device_move_to_sch() local
954 old_sch = to_subchannel(cdev->dev.parent); in ccw_device_move_to_sch()
959 if (!sch_is_pseudo_sch(old_sch)) { in ccw_device_move_to_sch()
960 spin_lock_irq(old_sch->lock); in ccw_device_move_to_sch()
961 old_enabled = old_sch->schib.pmcw.ena; in ccw_device_move_to_sch()
964 rc = cio_disable_subchannel(old_sch); in ccw_device_move_to_sch()
965 spin_unlock_irq(old_sch->lock); in ccw_device_move_to_sch()
983 spin_lock_irq(old_sch->lock); in ccw_device_move_to_sch()
984 cio_enable_subchannel(old_sch, (u32)(addr_t)old_sch); in ccw_device_move_to_sch()
985 spin_unlock_irq(old_sch->lock); in ccw_device_move_to_sch()
992 if (!sch_is_pseudo_sch(old_sch)) { in ccw_device_move_to_sch()
993 spin_lock_irq(old_sch->lock); in ccw_device_move_to_sch()
994 sch_set_cdev(old_sch, NULL); in ccw_device_move_to_sch()
995 spin_unlock_irq(old_sch->lock); in ccw_device_move_to_sch()
996 css_schedule_eval(old_sch->schid); in ccw_device_move_to_sch()
999 put_device(&old_sch->dev); in ccw_device_move_to_sch()