Lines Matching refs:oflags
106 uint_t oflags; in devctl_bus_acquire() local
117 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_bus_acquire()
118 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); in devctl_bus_acquire()
129 uint_t oflags; in devctl_device_acquire() local
140 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_device_acquire()
141 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL)); in devctl_device_acquire()
153 uint_t oflags; in devctl_ap_acquire() local
166 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0; in devctl_ap_acquire()
167 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR; in devctl_ap_acquire()
169 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NULL)); in devctl_ap_acquire()
181 uint_t oflags; in devctl_pm_bus_acquire() local
192 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_bus_acquire()
193 return (dc_mkhndl(DEVCTL_PM_BUS, devfs_path, oflags, NULL)); in devctl_pm_bus_acquire()
205 uint_t oflags; in devctl_pm_dev_acquire() local
216 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_dev_acquire()
217 return (dc_mkhndl(DEVCTL_PM_DEV, devfs_path, oflags, NULL)); in devctl_pm_dev_acquire()
226 dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc) in dc_mkhndl() argument
460 dcp->fd = open(iocpath, oflags); in dc_mkhndl()