treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gem / i915_gem_lmem.h
blobfc3f15580fe3850d7f6153e9d8cb8912a8c793d5
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
6 #ifndef __I915_GEM_LMEM_H
7 #define __I915_GEM_LMEM_H
9 #include <linux/types.h>
11 struct drm_i915_private;
12 struct drm_i915_gem_object;
13 struct intel_memory_region;
15 extern const struct drm_i915_gem_object_ops i915_gem_lmem_obj_ops;
17 bool i915_gem_object_is_lmem(struct drm_i915_gem_object *obj);
19 struct drm_i915_gem_object *
20 i915_gem_object_create_lmem(struct drm_i915_private *i915,
21 resource_size_t size,
22 unsigned int flags);
24 struct drm_i915_gem_object *
25 __i915_gem_lmem_object_create(struct intel_memory_region *mem,
26 resource_size_t size,
27 unsigned int flags);
29 #endif /* !__I915_GEM_LMEM_H */