Lines Matching refs:flags
38 int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options_mask() argument
43 if ((flags & CCWDEV_EARLY_NOTIFICATION) && in ccw_device_set_options_mask()
44 (flags & CCWDEV_REPORT_ALL)) in ccw_device_set_options_mask()
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()
63 int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options() argument
68 if (((flags & CCWDEV_EARLY_NOTIFICATION) && in ccw_device_set_options()
69 (flags & CCWDEV_REPORT_ALL)) || in ccw_device_set_options()
70 ((flags & CCWDEV_EARLY_NOTIFICATION) && in ccw_device_set_options()
72 ((flags & CCWDEV_REPORT_ALL) && 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()
90 void ccw_device_clear_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_clear_options() argument
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()
186 unsigned long flags) in ccw_device_start_key() argument
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()
211 cdev->private->flags.doverify) in ccw_device_start_key()
213 ret = cio_set_options (sch, flags); in ccw_device_start_key()
266 unsigned long flags, int expires) in ccw_device_start_timeout_key() argument
273 ret = ccw_device_start_key(cdev, cpa, intparm, lpm, key, flags); in ccw_device_start_timeout_key()
303 unsigned long intparm, __u8 lpm, unsigned long flags) in ccw_device_start() argument
306 PAGE_DEFAULT_KEY, flags); in ccw_device_start()
339 unsigned long flags, int expires) in ccw_device_start_timeout() argument
342 PAGE_DEFAULT_KEY, flags, in ccw_device_start_timeout()
433 if (cdev->private->flags.esid == 0) in ccw_device_get_ciw()
512 if (!cdev->private->flags.fake_irb) { in ccw_device_tm_start_key()
513 cdev->private->flags.fake_irb = FAKE_TM_IRB; in ccw_device_tm_start_key()