Lines Matching defs:sch

21 	struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
28 spin_lock_irqsave(&sch->lock, flags);
30 orb = cp_get_orb(&private->cp, sch);
37 VFIO_CCW_TRACE_EVENT(5, dev_name(&sch->dev));
40 ccode = ssch(sch->schid, orb);
49 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND;
61 sch->lpm &= ~lpm;
63 sch->lpm = 0;
65 if (cio_update_schib(sch))
68 ret = sch->lpm ? -EACCES : -ENODEV;
75 spin_unlock_irqrestore(&sch->lock, flags);
81 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
86 spin_lock_irqsave(&sch->lock, flags);
89 VFIO_CCW_TRACE_EVENT(2, dev_name(&sch->dev));
92 ccode = hsch(sch->schid);
101 sch->schib.scsw.cmd.actl |= SCSW_ACTL_HALT_PEND;
114 spin_unlock_irqrestore(&sch->lock, flags);
120 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
125 spin_lock_irqsave(&sch->lock, flags);
128 VFIO_CCW_TRACE_EVENT(2, dev_name(&sch->dev));
131 ccode = csch(sch->schid);
140 sch->schib.scsw.cmd.actl = SCSW_ACTL_CLEAR_PEND;
150 spin_unlock_irqrestore(&sch->lock, flags);
157 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
159 VFIO_CCW_MSG_EVENT(2, "sch %x.%x.%04x: notoper event %x state %x\n",
160 sch->schid.cssid,
161 sch->schid.ssid,
162 sch->schid.sch_no,
170 css_sched_sch_todo(sch, SCH_TODO_UNREG);
225 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
231 cio_disable_subchannel(sch);
235 struct subchannel *sch = to_subchannel(p->vdev.dev->parent);
237 return sch->schid;
262 "sch %x.%x.%04x: transport mode\n",
271 "sch %x.%x.%04x: cp_init=%d\n",
282 "sch %x.%x.%04x: cp_prefetch=%d\n",
295 "sch %x.%x.%04x: fsm_io_helper=%d\n",
306 "sch %x.%x.%04x: halt on io_region\n",
314 "sch %x.%x.%04x: clear on io_region\n",
359 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
363 VFIO_CCW_TRACE_EVENT(6, dev_name(&sch->dev));
376 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
379 spin_lock_irq(&sch->lock);
380 sch->isc = VFIO_CCW_ISC;
381 ret = cio_enable_subchannel(sch, (u32)virt_to_phys(sch));
386 spin_unlock_irq(&sch->lock);
390 spin_unlock_irq(&sch->lock);
397 struct subchannel *sch = to_subchannel(private->vdev.dev->parent);
400 spin_lock_irq(&sch->lock);
402 if (!sch->schib.pmcw.ena)
405 ret = cio_disable_subchannel(sch);
407 ret = vfio_ccw_sch_quiesce(sch);
412 spin_unlock_irq(&sch->lock);
417 spin_unlock_irq(&sch->lock);