Lines Matching refs:sch
40 struct subchannel *sch; in ccw_timeout_log() local
45 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
46 private = to_io_private(sch); in ccw_timeout_log()
48 cc = stsch(sch->schid, &schib); in ccw_timeout_log()
58 dev_name(&sch->dev)); in ccw_timeout_log()
60 "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); in ccw_timeout_log()
129 struct subchannel *sch; in ccw_device_cancel_halt_clear() local
132 sch = to_subchannel(cdev->dev.parent); in ccw_device_cancel_halt_clear()
133 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
166 __recover_lost_chpids(struct subchannel *sch, int old_lpm) in __recover_lost_chpids() argument
174 if (!(sch->lpm & mask)) in __recover_lost_chpids()
178 chpid.id = sch->schib.pmcw.chpid[i]; in __recover_lost_chpids()
190 struct subchannel *sch; in ccw_device_recog_done() local
193 sch = to_subchannel(cdev->dev.parent); in ccw_device_recog_done()
195 if (cio_disable_subchannel(sch)) in ccw_device_recog_done()
201 old_lpm = sch->lpm; in ccw_device_recog_done()
204 if (cio_update_schib(sch)) in ccw_device_recog_done()
207 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_recog_done()
212 if (sch->lpm != old_lpm) in ccw_device_recog_done()
213 __recover_lost_chpids(sch, old_lpm); in ccw_device_recog_done()
315 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_oper_notify() local
321 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
335 struct subchannel *sch; in ccw_device_done() local
337 sch = to_subchannel(cdev->dev.parent); in ccw_device_done()
342 cio_disable_subchannel(sch); in ccw_device_done()
352 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
360 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
370 sch->schid.sch_no); in ccw_device_done()
394 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_recognition() local
406 if (cio_enable_subchannel(sch, (u32) (addr_t) sch)) { in ccw_device_recognition()
435 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_report_path_events() local
441 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
443 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
445 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
480 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_handle_broken_paths() local
481 u8 broken_paths = (sch->schib.pmcw.pam & sch->opm) ^ sch->vpm; in ccw_device_handle_broken_paths()
491 struct subchannel *sch; in ccw_device_verify_done() local
493 sch = to_subchannel(cdev->dev.parent); in ccw_device_verify_done()
495 if (cio_update_schib(sch)) { in ccw_device_verify_done()
500 sch->lpm = sch->vpm; in ccw_device_verify_done()
549 struct subchannel *sch; in ccw_device_online() local
555 sch = to_subchannel(cdev->dev.parent); in ccw_device_online()
556 ret = cio_enable_subchannel(sch, (u32)(addr_t)sch); in ccw_device_online()
592 struct subchannel *sch; in ccw_device_offline() local
609 sch = to_subchannel(cdev->dev.parent); in ccw_device_offline()
610 if (cio_update_schib(sch)) in ccw_device_offline()
612 if (scsw_actl(&sch->schib.scsw) != 0) in ccw_device_offline()
646 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_offline_verify() local
648 css_schedule_eval(sch->schid); in ccw_device_offline_verify()
657 struct subchannel *sch; in ccw_device_online_verify() local
663 sch = to_subchannel(cdev->dev.parent); in ccw_device_online_verify()
668 if (cio_update_schib(sch)) { in ccw_device_online_verify()
673 if (scsw_actl(&sch->schib.scsw) != 0 || in ccw_device_online_verify()
674 (scsw_stctl(&sch->schib.scsw) & SCSW_STCTL_STATUS_PEND) || in ccw_device_online_verify()
695 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_boxed_verify() local
698 if (cio_enable_subchannel(sch, (u32) (addr_t) sch)) in ccw_device_boxed_verify()
703 css_schedule_eval(sch->schid); in ccw_device_boxed_verify()
925 struct subchannel *sch; in ccw_device_start_id() local
927 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_id()
928 if (cio_enable_subchannel(sch, (u32)(addr_t)sch) != 0) in ccw_device_start_id()
937 struct subchannel *sch; in ccw_device_trigger_reprobe() local
942 sch = to_subchannel(cdev->dev.parent); in ccw_device_trigger_reprobe()
944 if (cio_update_schib(sch)) in ccw_device_trigger_reprobe()
950 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_trigger_reprobe()
955 io_subchannel_init_config(sch); in ccw_device_trigger_reprobe()
956 if (cio_commit_config(sch)) in ccw_device_trigger_reprobe()
961 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
962 css_schedule_eval(sch->schid); in ccw_device_trigger_reprobe()
970 struct subchannel *sch; in ccw_device_disabled_irq() local
972 sch = to_subchannel(cdev->dev.parent); in ccw_device_disabled_irq()
977 cio_disable_subchannel(sch); in ccw_device_disabled_irq()