Lines Matching refs:sch
35 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done() local
43 if (sch->config.mp != mpath) { in verify_done()
44 sch->config.mp = mpath; in verify_done()
45 rc = cio_commit_config(sch); in verify_done()
50 sch->vpm); in verify_done()
74 struct subchannel *sch = to_subchannel(cdev->dev.parent); in nop_do() local
77 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & sch->opm & in nop_do()
86 verify_done(cdev, sch->vpm ? 0 : -EACCES); in nop_do()
106 struct subchannel *sch = to_subchannel(cdev->dev.parent); in nop_callback() local
111 sch->vpm |= req->lpm; in nop_callback()
169 struct subchannel *sch = to_subchannel(cdev->dev.parent); in pgid_wipeout_start() local
182 req->lpm = sch->schib.pmcw.pam; in pgid_wipeout_start()
196 struct subchannel *sch = to_subchannel(cdev->dev.parent); in spid_do() local
205 if (req->lpm & sch->opm) in spid_do()
221 verify_done(cdev, sch->vpm ? 0 : -EACCES); in spid_do()
229 struct subchannel *sch = to_subchannel(cdev->dev.parent); in spid_callback() local
234 sch->vpm |= req->lpm & sch->opm; in spid_callback()
334 struct subchannel *sch = to_subchannel(cdev->dev.parent); in pgid_to_donepm() local
346 if (sch->opm & lpm) { in pgid_to_donepm()
380 struct subchannel *sch = to_subchannel(cdev->dev.parent); in snid_done() local
396 sch->vpm = donepm & sch->opm; in snid_done()
405 id->devno, rc, cdev->private->pgid_valid_mask, sch->vpm, in snid_done()
415 verify_done(cdev, sch->vpm == 0 ? -EACCES : 0); in snid_done()
454 struct subchannel *sch = to_subchannel(cdev->dev.parent); in snid_do() local
458 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & in snid_do()
511 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_start() local
515 sch->vpm = 0; in verify_start()
516 sch->lpm = sch->schib.pmcw.pam; in verify_start()
521 cdev->private->pgid_todo_mask = sch->schib.pmcw.pam; in verify_start()
574 struct subchannel *sch = to_subchannel(cdev->dev.parent); in disband_callback() local
581 if (sch->config.mp) { in disband_callback()
582 sch->config.mp = 0; in disband_callback()
583 rc = cio_commit_config(sch); in disband_callback()
601 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_disband_start() local
611 req->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_disband_start()
662 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_stlck_start() local
671 req->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_stlck_start()
683 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_stlck() local
698 spin_lock_irq(sch->lock); in ccw_device_stlck()
699 rc = cio_enable_subchannel(sch, (u32) (addr_t) sch); in ccw_device_stlck()
705 spin_unlock_irq(sch->lock); in ccw_device_stlck()
709 spin_lock_irq(sch->lock); in ccw_device_stlck()
711 spin_unlock_irq(sch->lock); in ccw_device_stlck()
716 spin_lock_irq(sch->lock); in ccw_device_stlck()
717 cio_disable_subchannel(sch); in ccw_device_stlck()
720 spin_unlock_irq(sch->lock); in ccw_device_stlck()