Lines Matching refs:devnode
36 char devnode[16]; member
122 char devnode[16]; in netbsd_get_device_list() local
130 snprintf(devnode, sizeof(devnode), "/dev/ugen%d.00", i); in netbsd_get_device_list()
132 if ((fd = open(devnode, O_RDONLY)) < 0) { in netbsd_get_device_list()
134 usbi_err(ctx, "could not open %s", devnode); in netbsd_get_device_list()
154 strlcpy(dpriv->devnode, devnode, sizeof(devnode)); in netbsd_get_device_list()
198 dpriv->fd = open(dpriv->devnode, O_RDWR); in netbsd_open()
200 dpriv->fd = open(dpriv->devnode, O_RDONLY); in netbsd_open()
208 usbi_dbg("open %s: fd %d", dpriv->devnode, dpriv->fd); in netbsd_open()
253 fd = open(dpriv->devnode, O_RDONLY); in netbsd_get_config_descriptor()
554 char *s, devnode[16]; in _access_endpoint() local
568 strlcpy(devnode, dpriv->devnode, sizeof(devnode)); in _access_endpoint()
569 s = strchr(devnode, '.'); in _access_endpoint()
573 if (((fd = open(devnode, O_RDWR)) < 0) && (errno == ENXIO)) in _access_endpoint()
574 if ((fd = open(devnode, mode)) < 0) in _access_endpoint()