Lines Matching refs:DRM_DIR_NAME
355 sprintf(buf, dev_name, DRM_DIR_NAME, minor); in drmOpenDevice()
365 if (stat(DRM_DIR_NAME, &st)) { in drmOpenDevice()
368 mkdir(DRM_DIR_NAME, DRM_DEV_DIRMODE); in drmOpenDevice()
369 chown_check_return(DRM_DIR_NAME, 0, 0); /* root:root */ in drmOpenDevice()
370 chmod(DRM_DIR_NAME, DRM_DEV_DIRMODE); in drmOpenDevice()
391 if (stat(DRM_DIR_NAME, &st)) { in drmOpenDevice()
479 sprintf(buf, dev_name, DRM_DIR_NAME, minor); in drmOpenMinor()
2716 snprintf(name, sizeof name, DRM_DEV_NAME, DRM_DIR_NAME, i); in drmGetDeviceNameFromFd()
2822 snprintf(dev_name, sizeof(dev_name), DRM_DIR_NAME "/%s", in drmGetMinorNameForFD()
2870 n = snprintf(buf, sizeof(buf), dev_name, DRM_DIR_NAME, min - base); in drmGetMinorNameForFD()
3073 return sizeof(DRM_DIR_NAME) + in drmGetMaxNodeName()
3746 n = snprintf(node, PATH_MAX, dev_name, DRM_DIR_NAME, min - base); in drmGetDevice2()
3798 sysdir = opendir(DRM_DIR_NAME); in drmGetDevice2()
3810 snprintf(node, PATH_MAX, "%s/%s", DRM_DIR_NAME, dent->d_name); in drmGetDevice2()
3948 sysdir = opendir(DRM_DIR_NAME); in drmGetDevices2()
3960 snprintf(node, PATH_MAX, "%s/%s", DRM_DIR_NAME, dent->d_name); in drmGetDevices2()
4136 n = snprintf(node, PATH_MAX, dev_name, DRM_DIR_NAME, min - base); in drmGetDeviceNameFromFd2()