/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmexpress.c | 203 * If -d /dev/console also specified, we send an ioctl 212 (strcmp(pmtab->p_device, "/dev/console") == 0) && 213 ((cn_fd = open("/dev/console", O_RDONLY)) != -1)) { 372 (void) strcat(devbuf, "/dev/"); 410 (void) strcpy(buf, "/dev/"); 451 revokedevaccess(char *dev, uid_t uid, gid_t gid, mode_t mode) argument 454 if (chown(dev, uid, gid) == -1) 456 } while (fdetach(dev) == 0); 460 (void) acl_strip(dev, uid, gid, mode);
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_ipnetops.c | 27 * vnode ops for the /dev/ipnet directory 47 devipnet_fill_vattr(struct vattr *vap, dev_t dev) argument 52 vap->va_rdev = dev; 67 dev_t dev; local 69 dev = ipnet_if_getdev(dv->sdev_name, getzoneid()); 70 if (dev == (dev_t)-1) 72 if (getminor(SDEVTOV(dv)->v_rdev) != getminor(dev)) 86 dev_t dev; local 90 if ((dev = ipnet_if_getdev(nm, getzoneid())) == (dev_t)-1) 93 devipnet_fill_vattr(vap, dev); 138 devipnet_filldir_entry(const char *name, void *arg, dev_t dev) argument [all...] |
H A D | sdev_netops.c | 27 * vnode ops for the /dev/net directory 80 dev_t dev; local 83 if ((error = dls_devnet_open(nm, ddhp, &dev)) != 0) { 96 vap->va_rdev = dev; 106 * Lookup for /dev/net directory 310 * A /dev/net entry will be created only after the first lookup of
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_vfs.c | 161 dev_t dev; local 181 dev = makedevice(objfs_major, 183 } while (vfs_devismounted(dev)); 184 vfs_make_fsid(&vfsp->vfs_fsid, dev, objfs_fstype); 186 vfsp->vfs_dev = dev;
|
/illumos-gate/usr/src/uts/common/fs/sharefs/ |
H A D | sharefs_vfsops.c | 186 dev_t dev; local 203 dev = makedevice(sharefs_major, 205 } while (vfs_devismounted(dev)); 206 vfs_make_fsid(&vfsp->vfs_fsid, dev, sharefs_fstype); 208 vfsp->vfs_dev = dev;
|
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_resv.c | 148 nsc_dev_t *dev = fd->sf_dev; local 158 mutex_enter(&dev->nsc_lock); 169 mutex_exit(&dev->nsc_lock); 269 nsc_dev_t *dev; local 274 dev = fd->sf_dev; 276 return (dev->nsc_wait || dev->nsc_refcnt <= 0); 301 nsc_dev_t *dev = fd->sf_dev; local 306 if (dev->nsc_wait || dev 327 nsc_dev_t *dev = fd->sf_dev; local 387 nsc_dev_t *dev; local 436 nsc_dev_t *dev = fd->sf_dev; local 516 nsc_dev_t *dev = fd->sf_dev; local 576 nsc_dev_t *dev = fd->sf_dev; local 677 nsc_dev_t *dev = iodev->si_dev; local 741 nsc_dev_t *dev = iodev->si_dev; local 841 _nsc_detach_dev(nsc_dev_t *dev, nsc_iodev_t *keep, int flag) argument 907 _nsc_call_dev(nsc_dev_t *dev, blindfn_t fn, blind_t arg, int *ap, int *pp, int a, int flag, nsc_iodev_t *iodev) argument [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_ddi.c | 227 _nskern_print(dev_t dev, char *s) argument
|
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_ioctl.c | 87 hci1394_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, argument 97 instance = getminor(dev);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | bl.c | 120 bl_ioctl(dev_t dev, int cmd, intptr_t data, int flag, cred_t *cred, int *rvalp) argument
|
H A D | cpuid_drv.c | 102 cpuid_open(dev_t *dev, int flag, int otyp, cred_t *cr) argument 104 return (getminor(*dev) == CPUID_SELF_CPUID_MINOR ? 0 : ENXIO); 111 cpuid_read(dev_t dev, uio_t *uio, cred_t *cr) argument 150 cpuid_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval) argument
|
H A D | dump.c | 92 dump_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, int *rvalp) argument
|
H A D | sad_conf.c | 265 sad_ap_find_by_dev(dev_t dev, str_stack_t *ss) argument 274 apc.apc_major = getmajor(dev); 275 apc.apc_minor = getminor(dev);
|
H A D | tirdwr.c | 68 static int tirdwropen(queue_t *q, dev_t *dev, 162 dev_t *dev, 160 tirdwropen( queue_t *q, dev_t *dev, int flag, int sflag, cred_t *cr) argument
|
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_context.c | 67 drm_ctxbitmap_free(drm_device_t *dev, int ctx_handle) argument 70 dev->ctx_bitmap == NULL) { 78 clear_bit(ctx_handle, dev->ctx_bitmap); 79 dev->context_sareas[ctx_handle] = NULL; 85 drm_ctxbitmap_next(drm_device_t *dev) argument 89 if (dev->ctx_bitmap == NULL) 93 bit = find_first_zero_bit(dev->ctx_bitmap, DRM_MAX_CTXBITMAP); 99 set_bit(bit, dev->ctx_bitmap); 101 if ((bit+1) > dev->max_context) { 102 dev 136 drm_ctxbitmap_init(drm_device_t *dev) argument 159 drm_ctxbitmap_cleanup(drm_device_t *dev) argument 267 drm_context_switch(drm_device_t *dev, int old, int new) argument 286 drm_context_switch_complete(drm_device_t *dev, int new) argument [all...] |
H A D | drm_drv.c | 169 drm_firstopen(drm_device_t *dev) argument 176 retval = drm_addmap(dev, 0, SAREA_MAX, _DRM_SHM, 183 if (dev->driver->use_agp) { 184 DRM_DEBUG("drm_firstopen: use_agp=%d", dev->driver->use_agp); 185 if (drm_device_is_agp(dev)) 186 dev->agp = drm_agp_init(dev); 187 if (dev->driver->require_agp && dev->agp == NULL) { 193 if (dev 234 drm_lastclose(drm_device_t *dev) argument 318 drm_load(drm_device_t *dev) argument 390 drm_unload(drm_device_t *dev) argument 430 drm_open(drm_device_t *dev, drm_cminor_t *mp, int openflags, int otyp, cred_t *credp) argument 450 drm_close(drm_device_t *dev, int minor, int flag, int otyp, cred_t *credp) argument 525 drm_attach(drm_device_t *dev) argument 531 drm_detach(drm_device_t *dev) argument 539 drm_get_businfo(drm_device_t *dev) argument 559 drm_probe(drm_device_t *dev, drm_pci_id_list_t *idlist) argument [all...] |
H A D | drm_ioctl.c | 69 if (u1.unique_len >= dev->unique_len) { 70 if (dev->unique_len == 0) { 71 DRM_ERROR("drm_getunique: dev->unique_len = 0"); 74 if (DRM_COPY_TO_USER(u1.unique, dev->unique, dev->unique_len)) 77 u1.unique_len = dev->unique_len; 106 drm_set_busid(drm_device_t *dev) argument 110 if (dev->unique != NULL) { 115 dev->unique_len = 20; 116 dev [all...] |
H A D | drm_irq.c | 51 if ((irq.busnum >> 8) != dev->pci_domain || 52 (irq.busnum & 0xff) != dev->pci_bus || 53 irq.devnum != dev->pci_slot || 54 irq.funcnum != dev->pci_func) 57 irq.irq = dev->irq; 71 drm_device_t *dev = (void *)arg; local 74 mutex_enter(&dev->irq_lock); 75 ret = dev->driver->irq_handler(arg); 76 mutex_exit(&dev->irq_lock); 83 struct drm_device *dev local 102 drm_vblank_cleanup(struct drm_device *dev) argument 129 drm_vblank_init(struct drm_device *dev, int num_crtcs) argument 190 drm_install_irq_handle(drm_device_t *dev) argument 224 drm_irq_install(drm_device_t *dev) argument 262 drm_uninstall_irq_handle(drm_device_t *dev) argument 271 drm_irq_uninstall(drm_device_t *dev) argument 322 drm_vblank_count(struct drm_device *dev, int crtc) argument 327 drm_update_vblank_count(struct drm_device *dev, int crtc) argument 351 drm_vblank_get(struct drm_device *dev, int crtc) argument 380 drm_vblank_put(struct drm_device *dev, int crtc) argument 571 drm_vbl_send_signals(drm_device_t *dev) argument 577 drm_handle_vblank(struct drm_device *dev, int crtc) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | session.c | 684 dev_t dev; local 698 dev = sp->s_dev; 700 return (dev);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | systeminfo.c | 288 i_path_find_node(dev_info_t *dev, void *arg) argument 293 if (ddi_get_nodeid(dev) == (int)f->nodeid) { 294 f->dip = dev;
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xenbus_client.c | 72 xenbus_watch_path(struct xenbus_device *dev, const char *path, argument 87 xenbus_dev_fatal(dev, err, "adding watch on %s", path); 95 xenbus_watch_path2(struct xenbus_device *dev, const char *path, argument 108 err = xenbus_watch_path(dev, state, watch, callback); 126 xenbus_switch_state(struct xenbus_device *dev, xenbus_transaction_t xbt, argument 132 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); 143 err = xenbus_printf(xbt, dev->nodename, "state", "%d", state); 145 xenbus_dev_fatal(dev, err, "writing new state"); 157 error_path(struct xenbus_device *dev) argument 161 path_buffer = kmem_alloc(strlen("error/") + strlen(dev 171 common_dev_error(struct xenbus_device *dev, int err, const char *fmt, va_list ap) argument 211 xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...) argument 222 xenbus_dev_fatal(struct xenbus_device *dev, int err, const char *fmt, ...) argument 235 xenbus_dev_ok(struct xenbus_device *dev) argument 247 xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn) argument 257 xenbus_alloc_evtchn(struct xenbus_device *dev, int *port) argument [all...] |
/illumos-gate/usr/src/uts/common/xen/sys/ |
H A D | xenbus_impl.h | 79 struct xenbus_device *dev; member in struct:xenbus_watch 165 extern int xenbus_watch_path(struct xenbus_device *dev, const char *path, 180 extern int xenbus_watch_path2(struct xenbus_device *dev, const char *path, 193 extern int xenbus_switch_state(struct xenbus_device *dev, 203 extern int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn); 212 extern int xenbus_alloc_evtchn(struct xenbus_device *dev, int *port); 226 extern void xenbus_dev_error(struct xenbus_device *dev, int err, 231 * Equivalent to xenbus_dev_error(dev, err, fmt, args), followed by 232 * xenbus_switch_state(dev, NULL, XenbusStateClosing) to schedule an orderly 235 extern void xenbus_dev_fatal(struct xenbus_device *dev, [all...] |
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_pci.c | 86 gfxp_pci_get_bsf(dev_info_t *dip, uint8_t *bus, uint8_t *dev, uint8_t *func) argument 102 *dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 117 uint8_t bus, dev, func; local 135 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) 140 if ((bus == pci_bsf->bus) && (dev == pci_bsf->slot) && 199 uint8_t bus, dev, func; local 204 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) 207 val = (*pci_getb_func)(bus, dev, func, offset); 216 uint8_t bus, dev, func; local 221 if (gfxp_pci_get_bsf(dip, &bus, &dev, 233 uint8_t bus, dev, func; local 249 uint8_t bus, dev, func; local 264 uint8_t bus, dev, func; local 279 uint8_t bus, dev, func; local [all...] |
/illumos-gate/usr/src/uts/common/io/usb/hubd/ |
H A D | hubd.c | 42 static int hubd_close(dev_t dev, int flag, int otyp, cred_t *credp); 43 static int hubd_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, 137 hubd_get_dip(dev_t dev) argument 139 minor_t minor = getminor(dev); 158 dev_t dev; local 170 dev = (dev_t)arg; 171 instance = HUBD_UNIT(dev); 191 hubd_close(dev_t dev, int flag, int otyp, cred_t *credp) argument 193 dev_info_t *dip = hubd_get_dip(dev); 195 return (usba_hubdi_close(dip, dev, fla 200 hubd_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | hotkey_drv.h | 76 struct acpi_drv_dev dev; member in struct:hotkey_drv 114 int acpi_drv_set_int(ACPI_HANDLE dev, char *method, uint32_t aint);
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfsetbuf.c | 271 else /* special case /dev/null */ 272 { reg int dev, ino; local 273 dev = (int)st.st_dev; 276 dev == (int)st.st_dev &&
|