Lines Matching refs:oflags
108 uint_t oflags; in devctl_bus_acquire() local
119 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_bus_acquire()
120 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); in devctl_bus_acquire()
131 uint_t oflags; in devctl_device_acquire() local
142 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_device_acquire()
143 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL)); in devctl_device_acquire()
155 uint_t oflags; in devctl_ap_acquire() local
168 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0; in devctl_ap_acquire()
169 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR; in devctl_ap_acquire()
171 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NULL)); in devctl_ap_acquire()
183 uint_t oflags; in devctl_pm_bus_acquire() local
194 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_bus_acquire()
195 return (dc_mkhndl(DEVCTL_PM_BUS, devfs_path, oflags, NULL)); in devctl_pm_bus_acquire()
207 uint_t oflags; in devctl_pm_dev_acquire() local
218 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_dev_acquire()
219 return (dc_mkhndl(DEVCTL_PM_DEV, devfs_path, oflags, NULL)); in devctl_pm_dev_acquire()
228 dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc) in dc_mkhndl() argument
462 dcp->fd = open(iocpath, oflags); in dc_mkhndl()