Lines Matching refs:sv
305 struct drm_set_version *sv = data; in drm_setversion() local
308 if (sv->drm_di_major != -1) { in drm_setversion()
309 if (sv->drm_di_major != DRM_IF_MAJOR || in drm_setversion()
310 sv->drm_di_minor < 0 || sv->drm_di_minor > DRM_IF_MINOR) { in drm_setversion()
314 if_version = DRM_IF_VERSION(sv->drm_di_major, in drm_setversion()
315 sv->drm_di_minor); in drm_setversion()
317 if (sv->drm_di_minor >= 1) { in drm_setversion()
328 if (sv->drm_dd_major != -1) { in drm_setversion()
329 if (sv->drm_dd_major != dev->driver->major || in drm_setversion()
330 sv->drm_dd_minor < 0 || sv->drm_dd_minor > in drm_setversion()
337 dev->driver->set_version(dev, sv); in drm_setversion()
341 sv->drm_di_major = DRM_IF_MAJOR; in drm_setversion()
342 sv->drm_di_minor = DRM_IF_MINOR; in drm_setversion()
343 sv->drm_dd_major = dev->driver->major; in drm_setversion()
344 sv->drm_dd_minor = dev->driver->minor; in drm_setversion()