Lines Matching defs:version

923  * minor and get version information.  For backward compatibility with older
928 drmVersionPtr version;
941 if ((version = drmGetVersion(fd))) {
943 drmFreeVersion(version);
1097 drmVersionPtr version;
1110 if ((version = drmGetVersion(fd))) {
1111 if (!strcmp(version->name, name)) {
1112 drmFreeVersion(version);
1123 drmFreeVersion(version);
1236 * Free the version information returned by drmGetVersion().
1238 * \param v pointer to the version information.
1256 * Free the non-public version information returned by the kernel.
1258 * \param v pointer to the version information.
1276 * Copy version information.
1300 * Query the driver version information.
1310 * It gets the version information via successive DRM_IOCTL_VERSION ioctls,
1317 drm_version_t *version = drmMalloc(sizeof(*version));
1319 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
1320 drmFreeKernelVersion(version);
1324 if (version->name_len)
1325 version->name = drmMalloc(version->name_len + 1);
1326 if (version->date_len)
1327 version->date = drmMalloc(version->date_len + 1);
1328 if (version->desc_len)
1329 version->desc = drmMalloc(version->desc_len + 1);
1331 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
1333 drmFreeKernelVersion(version);
1338 if (version->name_len) version->name[version->name_len] = '\0';
1339 if (version->date_len) version->date[version->date_len] = '\0';
1340 if (version->desc_len) version->desc[version->desc_len] = '\0';
1343 drmCopyVersion(retval, version);
1344 drmFreeKernelVersion(version);
1350 * Get version information for the DRM user space library.
1352 * This version number is driver independent.
1356 * \return version information.
1360 * version number.
1364 drm_version_t *version = drmMalloc(sizeof(*version));
1371 * added drmGetLibVersion to identify libdrm.a version
1376 version->version_major = 1;
1377 version->version_minor = 3;
1378 version->version_patchlevel = 0;
1380 return (drmVersionPtr)version;
2366 * Get AGP driver major version number.
2370 * \return major version number on success, or a negative value on failure..
2389 * Get AGP driver minor version number.
2393 * \return minor version number on success, or a negative value on failure.
2978 * Issue a set-version ioctl.
2991 drm_public int drmSetInterfaceVersion(int fd, drmSetVersion *version)
2997 sv.drm_di_major = version->drm_di_major;
2998 sv.drm_di_minor = version->drm_di_minor;
2999 sv.drm_dd_major = version->drm_dd_major;
3000 sv.drm_dd_minor = version->drm_dd_minor;
3006 version->drm_di_major = sv.drm_di_major;
3007 version->drm_di_minor = sv.drm_di_minor;
3008 version->drm_dd_major = sv.drm_dd_major;
3009 version->drm_dd_minor = sv.drm_dd_minor;
3274 /* Handle drm/ and dri/ as both are present in different FreeBSD version