Lines Matching refs:sch

41 	struct subchannel *sch;  in ccw_timeout_log()  local
46 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
47 private = to_io_private(sch); in ccw_timeout_log()
49 cc = stsch(sch->schid, &schib); in ccw_timeout_log()
59 dev_name(&sch->dev)); in ccw_timeout_log()
61 "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); in ccw_timeout_log()
126 struct subchannel *sch; in ccw_device_cancel_halt_clear() local
129 sch = to_subchannel(cdev->dev.parent); in ccw_device_cancel_halt_clear()
130 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()
310 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_oper_notify() local
316 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
330 struct subchannel *sch; in ccw_device_done() local
332 sch = to_subchannel(cdev->dev.parent); in ccw_device_done()
337 cio_disable_subchannel(sch); in ccw_device_done()
347 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
355 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
365 sch->schid.sch_no); in ccw_device_done()
389 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_recognition() local
401 if (cio_enable_subchannel(sch, (u32)virt_to_phys(sch))) { in ccw_device_recognition()
430 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_report_path_events() local
436 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
438 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
440 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
475 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_handle_broken_paths() local
476 u8 broken_paths = (sch->schib.pmcw.pam & sch->opm) ^ sch->vpm; in ccw_device_handle_broken_paths()
486 struct subchannel *sch; in ccw_device_verify_done() local
488 sch = to_subchannel(cdev->dev.parent); in ccw_device_verify_done()
490 if (cio_update_schib(sch)) { in ccw_device_verify_done()
495 sch->lpm = sch->vpm; in ccw_device_verify_done()
545 struct subchannel *sch; in ccw_device_online() local
551 sch = to_subchannel(cdev->dev.parent); in ccw_device_online()
552 ret = cio_enable_subchannel(sch, (u32)virt_to_phys(sch)); in ccw_device_online()
588 struct subchannel *sch; in ccw_device_offline() local
605 sch = to_subchannel(cdev->dev.parent); in ccw_device_offline()
606 if (cio_update_schib(sch)) in ccw_device_offline()
608 if (scsw_actl(&sch->schib.scsw) != 0) in ccw_device_offline()
642 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_offline_verify() local
644 css_schedule_eval(sch->schid); in ccw_device_offline_verify()
653 struct subchannel *sch; in ccw_device_online_verify() local
659 sch = to_subchannel(cdev->dev.parent); in ccw_device_online_verify()
664 if (cio_update_schib(sch)) { in ccw_device_online_verify()
669 if (scsw_actl(&sch->schib.scsw) != 0 || in ccw_device_online_verify()
670 (scsw_stctl(&sch->schib.scsw) & SCSW_STCTL_STATUS_PEND) || in ccw_device_online_verify()
692 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_boxed_verify() local
695 if (cio_enable_subchannel(sch, (u32)virt_to_phys(sch))) in ccw_device_boxed_verify()
700 css_schedule_eval(sch->schid); in ccw_device_boxed_verify()
923 struct subchannel *sch; in ccw_device_start_id() local
925 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_id()
926 if (cio_enable_subchannel(sch, (u32)virt_to_phys(sch)) != 0) in ccw_device_start_id()
935 struct subchannel *sch; in ccw_device_trigger_reprobe() local
940 sch = to_subchannel(cdev->dev.parent); in ccw_device_trigger_reprobe()
942 if (cio_update_schib(sch)) in ccw_device_trigger_reprobe()
948 sch->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_trigger_reprobe()
953 io_subchannel_init_config(sch); in ccw_device_trigger_reprobe()
954 if (cio_commit_config(sch)) in ccw_device_trigger_reprobe()
959 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
960 css_schedule_eval(sch->schid); in ccw_device_trigger_reprobe()
968 struct subchannel *sch; in ccw_device_disabled_irq() local
970 sch = to_subchannel(cdev->dev.parent); in ccw_device_disabled_irq()
975 cio_disable_subchannel(sch); in ccw_device_disabled_irq()