Lines Matching refs:sch
39 struct subchannel *sch; in ccw_timeout_log() local
44 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
45 private = to_io_private(sch); in ccw_timeout_log()
47 cc = stsch(sch->schid, &schib); in ccw_timeout_log()
57 dev_name(&sch->dev)); in ccw_timeout_log()
59 "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); in ccw_timeout_log()
130 struct subchannel *sch; in ccw_device_cancel_halt_clear() local
133 sch = to_subchannel(cdev->dev.parent); in ccw_device_cancel_halt_clear()
134 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
167 __recover_lost_chpids(struct subchannel *sch, int old_lpm) in __recover_lost_chpids() argument
175 if (!(sch->lpm & mask)) in __recover_lost_chpids()
179 chpid.id = sch->schib.pmcw.chpid[i]; in __recover_lost_chpids()
191 struct subchannel *sch; in ccw_device_recog_done() local
194 sch = to_subchannel(cdev->dev.parent); in ccw_device_recog_done()
196 if (cio_disable_subchannel(sch)) in ccw_device_recog_done()
202 old_lpm = sch->lpm; in ccw_device_recog_done()
205 if (cio_update_schib(sch)) in ccw_device_recog_done()
208 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_recog_done()
213 if (sch->lpm != old_lpm) in ccw_device_recog_done()
214 __recover_lost_chpids(sch, old_lpm); in ccw_device_recog_done()
316 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_oper_notify() local
322 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
336 struct subchannel *sch; in ccw_device_done() local
338 sch = to_subchannel(cdev->dev.parent); in ccw_device_done()
343 cio_disable_subchannel(sch); in ccw_device_done()
353 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
361 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
371 sch->schid.sch_no); in ccw_device_done()
395 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_recognition() local
407 if (cio_enable_subchannel(sch, (u32) (addr_t) sch)) { in ccw_device_recognition()
436 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_report_path_events() local
442 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
444 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
446 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
481 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_handle_broken_paths() local
482 u8 broken_paths = (sch->schib.pmcw.pam & sch->opm) ^ sch->vpm; in ccw_device_handle_broken_paths()
492 struct subchannel *sch; in ccw_device_verify_done() local
494 sch = to_subchannel(cdev->dev.parent); in ccw_device_verify_done()
496 if (cio_update_schib(sch)) { in ccw_device_verify_done()
501 sch->lpm = sch->vpm; in ccw_device_verify_done()
550 struct subchannel *sch; in ccw_device_online() local
556 sch = to_subchannel(cdev->dev.parent); in ccw_device_online()
557 ret = cio_enable_subchannel(sch, (u32)(addr_t)sch); in ccw_device_online()
593 struct subchannel *sch; in ccw_device_offline() local
610 sch = to_subchannel(cdev->dev.parent); in ccw_device_offline()
611 if (cio_update_schib(sch)) in ccw_device_offline()
613 if (scsw_actl(&sch->schib.scsw) != 0) in ccw_device_offline()
647 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_offline_verify() local
649 css_schedule_eval(sch->schid); in ccw_device_offline_verify()
658 struct subchannel *sch; in ccw_device_online_verify() local
664 sch = to_subchannel(cdev->dev.parent); in ccw_device_online_verify()
669 if (cio_update_schib(sch)) { in ccw_device_online_verify()
674 if (scsw_actl(&sch->schib.scsw) != 0 || in ccw_device_online_verify()
675 (scsw_stctl(&sch->schib.scsw) & SCSW_STCTL_STATUS_PEND) || in ccw_device_online_verify()
696 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_boxed_verify() local
699 if (cio_enable_subchannel(sch, (u32) (addr_t) sch)) in ccw_device_boxed_verify()
704 css_schedule_eval(sch->schid); in ccw_device_boxed_verify()
926 struct subchannel *sch; in ccw_device_start_id() local
928 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_id()
929 if (cio_enable_subchannel(sch, (u32)(addr_t)sch) != 0) in ccw_device_start_id()
938 struct subchannel *sch; in ccw_device_trigger_reprobe() local
943 sch = to_subchannel(cdev->dev.parent); in ccw_device_trigger_reprobe()
945 if (cio_update_schib(sch)) in ccw_device_trigger_reprobe()
951 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_trigger_reprobe()
956 io_subchannel_init_config(sch); in ccw_device_trigger_reprobe()
957 if (cio_commit_config(sch)) in ccw_device_trigger_reprobe()
962 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
963 css_schedule_eval(sch->schid); in ccw_device_trigger_reprobe()
971 struct subchannel *sch; in ccw_device_disabled_irq() local
973 sch = to_subchannel(cdev->dev.parent); in ccw_device_disabled_irq()
978 cio_disable_subchannel(sch); in ccw_device_disabled_irq()