Lines Matching refs:private
46 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask()
47 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask()
48 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask()
49 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask()
50 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask()
71 cdev->private->options.repall) || in ccw_device_set_options()
73 cdev->private->options.fast)) in ccw_device_set_options()
75 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options()
76 cdev->private->options.repall |= (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options()
77 cdev->private->options.pgroup |= (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options()
78 cdev->private->options.force |= (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options()
79 cdev->private->options.mpath |= (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options()
92 cdev->private->options.fast &= (flags & CCWDEV_EARLY_NOTIFICATION) == 0; in ccw_device_clear_options()
93 cdev->private->options.repall &= (flags & CCWDEV_REPORT_ALL) == 0; in ccw_device_clear_options()
94 cdev->private->options.pgroup &= (flags & CCWDEV_DO_PATHGROUP) == 0; in ccw_device_clear_options()
95 cdev->private->options.force &= (flags & CCWDEV_ALLOW_FORCE) == 0; in ccw_device_clear_options()
96 cdev->private->options.mpath &= (flags & CCWDEV_DO_MULTIPATH) == 0; in ccw_device_clear_options()
107 return cdev->private->flags.pgroup; in ccw_device_is_pathgroup()
119 return cdev->private->flags.mpath; in ccw_device_is_multipath()
148 if (cdev->private->state == DEV_STATE_NOT_OPER) in ccw_device_clear()
150 if (cdev->private->state != DEV_STATE_ONLINE && in ccw_device_clear()
151 cdev->private->state != DEV_STATE_W4SENSE) in ccw_device_clear()
156 cdev->private->intparm = intparm; in ccw_device_clear()
196 if (cdev->private->state == DEV_STATE_NOT_OPER) in ccw_device_start_key()
198 if (cdev->private->state == DEV_STATE_VERIFY) { in ccw_device_start_key()
200 if (!cdev->private->flags.fake_irb) { in ccw_device_start_key()
201 cdev->private->flags.fake_irb = FAKE_CMD_IRB; in ccw_device_start_key()
202 cdev->private->intparm = intparm; in ccw_device_start_key()
208 if (cdev->private->state != DEV_STATE_ONLINE || in ccw_device_start_key()
211 cdev->private->flags.doverify) in ccw_device_start_key()
225 cdev->private->intparm = intparm; in ccw_device_start_key()
373 if (cdev->private->state == DEV_STATE_NOT_OPER) in ccw_device_halt()
375 if (cdev->private->state != DEV_STATE_ONLINE && in ccw_device_halt()
376 cdev->private->state != DEV_STATE_W4SENSE) in ccw_device_halt()
381 cdev->private->intparm = intparm; in ccw_device_halt()
407 if (cdev->private->state == DEV_STATE_NOT_OPER) in ccw_device_resume()
409 if (cdev->private->state != DEV_STATE_ONLINE || in ccw_device_resume()
432 stctl = scsw_stctl(&cdev->private->irb.scsw); in ccw_device_call_handler()
437 !cdev->private->options.repall && in ccw_device_call_handler()
439 !(cdev->private->options.fast && in ccw_device_call_handler()
450 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler()
451 &cdev->private->irb); in ccw_device_call_handler()
456 memset(&cdev->private->irb, 0, sizeof(struct irb)); in ccw_device_call_handler()
479 if (cdev->private->flags.esid == 0) in ccw_device_get_ciw()
482 if (cdev->private->senseid.ciw[ciw_cnt].ct == ct) in ccw_device_get_ciw()
483 return cdev->private->senseid.ciw + ciw_cnt; in ccw_device_get_ciw()
530 if (!cdev->private->options.force) in ccw_device_stlck()
543 cdev->private->state = DEV_STATE_STEAL_LOCK, in ccw_device_stlck()
558 cdev->private->state = DEV_STATE_BOXED; in ccw_device_stlck()
593 *dev_id = cdev->private->dev_id; in ccw_device_get_id()
617 if (cdev->private->state == DEV_STATE_VERIFY) { in ccw_device_tm_start_key()
619 if (!cdev->private->flags.fake_irb) { in ccw_device_tm_start_key()
620 cdev->private->flags.fake_irb = FAKE_TM_IRB; in ccw_device_tm_start_key()
621 cdev->private->intparm = intparm; in ccw_device_tm_start_key()
627 if (cdev->private->state != DEV_STATE_ONLINE) in ccw_device_tm_start_key()
637 cdev->private->intparm = intparm; in ccw_device_tm_start_key()
764 if (cdev->private->state != DEV_STATE_ONLINE) in ccw_device_tm_intrg()