Lines Matching refs:sch

42 	struct subchannel *sch;  in ccw_timeout_log()  local
47 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
48 private = to_io_private(sch); in ccw_timeout_log()
50 cc = stsch(sch->schid, &schib); in ccw_timeout_log()
60 dev_name(&sch->dev)); in ccw_timeout_log()
62 "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); in ccw_timeout_log()
127 struct subchannel *sch; in ccw_device_cancel_halt_clear() local
130 sch = to_subchannel(cdev->dev.parent); in ccw_device_cancel_halt_clear()
131 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
168 __recover_lost_chpids(struct subchannel *sch, int old_lpm) in __recover_lost_chpids() argument
176 if (!(sch->lpm & mask)) in __recover_lost_chpids()
180 chpid.id = sch->schib.pmcw.chpid[i]; in __recover_lost_chpids()
192 struct subchannel *sch; in ccw_device_recog_done() local
195 sch = to_subchannel(cdev->dev.parent); in ccw_device_recog_done()
197 if (cio_disable_subchannel(sch)) in ccw_device_recog_done()
203 old_lpm = sch->lpm; in ccw_device_recog_done()
206 if (cio_update_schib(sch)) in ccw_device_recog_done()
209 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_recog_done()
214 if (sch->lpm != old_lpm) in ccw_device_recog_done()
215 __recover_lost_chpids(sch, old_lpm); in ccw_device_recog_done()
311 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_oper_notify() local
317 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
331 struct subchannel *sch; in ccw_device_done() local
333 sch = to_subchannel(cdev->dev.parent); in ccw_device_done()
338 cio_disable_subchannel(sch); in ccw_device_done()
348 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
356 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
366 sch->schid.sch_no); in ccw_device_done()
390 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_recognition() local
402 if (cio_enable_subchannel(sch, (u32)virt_to_phys(sch))) { in ccw_device_recognition()
431 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_report_path_events() local
437 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
439 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
441 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
476 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_handle_broken_paths() local
477 u8 broken_paths = (sch->schib.pmcw.pam & sch->opm) ^ sch->vpm; in ccw_device_handle_broken_paths()
487 struct subchannel *sch; in ccw_device_verify_done() local
489 sch = to_subchannel(cdev->dev.parent); in ccw_device_verify_done()
491 if (cio_update_schib(sch)) { in ccw_device_verify_done()
496 sch->lpm = sch->vpm; in ccw_device_verify_done()
551 struct subchannel *sch; in ccw_device_online() local
557 sch = to_subchannel(cdev->dev.parent); in ccw_device_online()
558 ret = cio_enable_subchannel(sch, (u32)virt_to_phys(sch)); in ccw_device_online()
594 struct subchannel *sch; in ccw_device_offline() local
611 sch = to_subchannel(cdev->dev.parent); in ccw_device_offline()
612 if (cio_update_schib(sch)) in ccw_device_offline()
614 if (scsw_actl(&sch->schib.scsw) != 0) in ccw_device_offline()
648 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_offline_verify() local
650 css_schedule_eval(sch->schid); in ccw_device_offline_verify()
659 struct subchannel *sch; in ccw_device_online_verify() local
665 sch = to_subchannel(cdev->dev.parent); in ccw_device_online_verify()
670 if (cio_update_schib(sch)) { in ccw_device_online_verify()
675 if (scsw_actl(&sch->schib.scsw) != 0 || in ccw_device_online_verify()
676 (scsw_stctl(&sch->schib.scsw) & SCSW_STCTL_STATUS_PEND) || in ccw_device_online_verify()
698 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_boxed_verify() local
701 if (cio_enable_subchannel(sch, (u32)virt_to_phys(sch))) in ccw_device_boxed_verify()
706 css_schedule_eval(sch->schid); in ccw_device_boxed_verify()
929 struct subchannel *sch; in ccw_device_start_id() local
931 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_id()
932 if (cio_enable_subchannel(sch, (u32)virt_to_phys(sch)) != 0) in ccw_device_start_id()
941 struct subchannel *sch; in ccw_device_trigger_reprobe() local
946 sch = to_subchannel(cdev->dev.parent); in ccw_device_trigger_reprobe()
948 if (cio_update_schib(sch)) in ccw_device_trigger_reprobe()
954 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_trigger_reprobe()
959 io_subchannel_init_config(sch); in ccw_device_trigger_reprobe()
960 if (cio_commit_config(sch)) in ccw_device_trigger_reprobe()
965 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
966 css_schedule_eval(sch->schid); in ccw_device_trigger_reprobe()
974 struct subchannel *sch; in ccw_device_disabled_irq() local
976 sch = to_subchannel(cdev->dev.parent); in ccw_device_disabled_irq()
981 cio_disable_subchannel(sch); in ccw_device_disabled_irq()