Lines Matching refs:dev
155 static int consconfig_setmodes(dev_t dev, struct termios *termiosp);
385 DPRINTF(DPRINT_L0, "create vnode = 0x%p - dev 0x%lx\n", vp, vp->v_rdev);
495 dev_t dev;
504 if ((dev = ddi_pathname_to_dev_t(sp->cons_fb_path)) == NODEV)
515 if ((dip = e_ddi_hold_devi_by_dev(dev, 0)) == NULL) {
516 cmn_err(CE_WARN, "consconfig: cannot hold fb dev %s",
592 consconfig_setup_polledio(cons_state_t *sp, dev_t dev)
600 if (ldi_open_by_dev(&dev, OTYP_CHR,
809 dev_t dev;
899 dev = ddi_pathname_to_dev_t(sp->cons_fb_path);
900 if (dev == NODEV) {
994 * for the console. This will ensure that we create a /dev/fb link
1529 * will be activated when /dev/console is opened by init.
1575 dev_t dev;
1580 dev = prop->cp_dev;
1581 error = ldi_open_by_dev(&dev, OTYP_CHR,
1586 ASSERT(dev == prop->cp_dev); /* clone not supported */
1643 dev_t dev;
1665 dev = makedevice(major, minor);
1666 ASSERT(dev != NODEV);
1668 DPRINTF(DPRINT_L0, "driver name = \"%s\", dev = 0x%lx, major = 0x%x\n",
1669 (char *)dacf_driver_name(minor_hdl), dev, major);
1677 if (consconfig_find_dev(sp, dev) != NULL) {
1685 prop->cp_dev = dev;
1729 dev_t dev;
1746 dev = makedevice(major, minor);
1747 ASSERT(dev != NODEV);
1754 if ((prop = consconfig_find_dev(sp, dev)) == NULL) {
1760 * This dev may be opened physically and then hotplugged out.
1764 consconfig_rem_dev(sp, dev);
1821 dev_t dev;
1828 dev = makedevice(major, minor);
1829 ASSERT(dev != NODEV);
1832 if ((prop = consconfig_find_dev(sp, dev)) == NULL) {
1838 (void) ddi_dev_pathname(dev, 0, buf);
1845 consconfig_rem_dev(sp, dev);
1855 dev_t dev;
1863 dev = makedevice(major, minor);
1864 ASSERT(dev != NODEV);
1867 if ((prop = consconfig_find_dev(sp, dev)) == NULL) {
1875 * Keep this dev on the list, for this dev is still online.
1887 consconfig_setmodes(dev_t dev, struct termios *termiosp)
1908 if (tdev == dev)
2052 * whose dev is turned into NODEV above.
2058 * Remove devices according to dev, which may be NODEV
2061 consconfig_rem_dev(cons_state_t *sp, dev_t dev)
2071 if (prop->cp_dev == dev) {
2088 * Add a dev according to prop
2098 * Find a device from our list according to dev
2101 consconfig_find_dev(cons_state_t *sp, dev_t dev)
2106 if (prop->cp_dev == dev)
2148 * After consconfig() and before userland opens /dev/sysmsg,
2152 * to open /dev/console now to get kernel console I/O to work.
2156 * Note that opening /dev/console causes rconsvp to be
2160 if (vn_open("/dev/console", UIO_SYSSPACE, FWRITE | FNOCTTY,