Lines Matching refs:sch
20 struct subchannel *sch; in fsm_io_helper() local
27 sch = private->sch; in fsm_io_helper()
29 spin_lock_irqsave(sch->lock, flags); in fsm_io_helper()
31 orb = cp_get_orb(&private->cp, (u32)(addr_t)sch, sch->lpm); in fsm_io_helper()
38 VFIO_CCW_TRACE_EVENT(5, dev_name(&sch->dev)); in fsm_io_helper()
41 ccode = ssch(sch->schid, orb); in fsm_io_helper()
50 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in fsm_io_helper()
62 sch->lpm &= ~lpm; in fsm_io_helper()
64 sch->lpm = 0; in fsm_io_helper()
66 if (cio_update_schib(sch)) in fsm_io_helper()
69 ret = sch->lpm ? -EACCES : -ENODEV; in fsm_io_helper()
76 spin_unlock_irqrestore(sch->lock, flags); in fsm_io_helper()
82 struct subchannel *sch; in fsm_do_halt() local
87 sch = private->sch; in fsm_do_halt()
89 spin_lock_irqsave(sch->lock, flags); in fsm_do_halt()
92 VFIO_CCW_TRACE_EVENT(2, dev_name(&sch->dev)); in fsm_do_halt()
95 ccode = hsch(sch->schid); in fsm_do_halt()
104 sch->schib.scsw.cmd.actl |= SCSW_ACTL_HALT_PEND; in fsm_do_halt()
117 spin_unlock_irqrestore(sch->lock, flags); in fsm_do_halt()
123 struct subchannel *sch; in fsm_do_clear() local
128 sch = private->sch; in fsm_do_clear()
130 spin_lock_irqsave(sch->lock, flags); in fsm_do_clear()
133 VFIO_CCW_TRACE_EVENT(2, dev_name(&sch->dev)); in fsm_do_clear()
136 ccode = csch(sch->schid); in fsm_do_clear()
145 sch->schib.scsw.cmd.actl = SCSW_ACTL_CLEAR_PEND; in fsm_do_clear()
155 spin_unlock_irqrestore(sch->lock, flags); in fsm_do_clear()
162 struct subchannel *sch = private->sch; in fsm_notoper() local
165 VFIO_CCW_TRACE_EVENT(2, dev_name(&sch->dev)); in fsm_notoper()
171 css_sched_sch_todo(sch, SCH_TODO_UNREG); in fsm_notoper()
223 struct subchannel *sch = private->sch; in fsm_disabled_irq() local
229 cio_disable_subchannel(sch); in fsm_disabled_irq()
233 return p->sch->schid; in get_schid()
360 VFIO_CCW_TRACE_EVENT(6, dev_name(&private->sch->dev)); in fsm_irq()