|
@@ -398,7 +398,7 @@ int drm_legacy_addmap_ioctl(struct drm_device *dev, void *data,
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_KMS_LEGACY_CONTEXT) &&
|
|
|
!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
err = drm_addmap_core(dev, map->offset, map->size, map->type,
|
|
|
map->flags, &maplist);
|
|
@@ -444,7 +444,7 @@ int drm_legacy_getmap_ioctl(struct drm_device *dev, void *data,
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_KMS_LEGACY_CONTEXT) &&
|
|
|
!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
idx = map->offset;
|
|
|
if (idx < 0)
|
|
@@ -596,7 +596,7 @@ int drm_legacy_rmmap_ioctl(struct drm_device *dev, void *data,
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_KMS_LEGACY_CONTEXT) &&
|
|
|
!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
mutex_lock(&dev->struct_mutex);
|
|
|
list_for_each_entry(r_list, &dev->maplist, head) {
|
|
@@ -860,7 +860,7 @@ int drm_legacy_addbufs_pci(struct drm_device *dev,
|
|
|
struct drm_buf **temp_buflist;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_PCI_DMA))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!dma)
|
|
|
return -EINVAL;
|
|
@@ -1064,7 +1064,7 @@ static int drm_legacy_addbufs_sg(struct drm_device *dev,
|
|
|
struct drm_buf **temp_buflist;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_SG))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!dma)
|
|
|
return -EINVAL;
|
|
@@ -1221,10 +1221,10 @@ int drm_legacy_addbufs(struct drm_device *dev, void *data,
|
|
|
int ret;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_AGP)
|
|
|
if (request->flags & _DRM_AGP_BUFFER)
|
|
@@ -1267,10 +1267,10 @@ int __drm_legacy_infobufs(struct drm_device *dev,
|
|
|
int count;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!dma)
|
|
|
return -EINVAL;
|
|
@@ -1352,10 +1352,10 @@ int drm_legacy_markbufs(struct drm_device *dev, void *data,
|
|
|
struct drm_buf_entry *entry;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!dma)
|
|
|
return -EINVAL;
|
|
@@ -1400,10 +1400,10 @@ int drm_legacy_freebufs(struct drm_device *dev, void *data,
|
|
|
struct drm_buf *buf;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!dma)
|
|
|
return -EINVAL;
|
|
@@ -1455,10 +1455,10 @@ int __drm_legacy_mapbufs(struct drm_device *dev, void *data, int *p,
|
|
|
int i;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (!dma)
|
|
|
return -EINVAL;
|
|
@@ -1545,7 +1545,7 @@ int drm_legacy_dma_ioctl(struct drm_device *dev, void *data,
|
|
|
struct drm_file *file_priv)
|
|
|
{
|
|
|
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
|
|
|
- return -EINVAL;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (dev->driver->dma_ioctl)
|
|
|
return dev->driver->dma_ioctl(dev, data, file_priv);
|