treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gt / intel_engine_pool.h
blob1bd89cadc3b79984c6862b11542e0e2cff33a819
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2014-2018 Intel Corporation
5 */
7 #ifndef INTEL_ENGINE_POOL_H
8 #define INTEL_ENGINE_POOL_H
10 #include "intel_engine_pool_types.h"
11 #include "i915_active.h"
12 #include "i915_request.h"
14 struct intel_engine_pool_node *
15 intel_engine_get_pool(struct intel_engine_cs *engine, size_t size);
17 static inline int
18 intel_engine_pool_mark_active(struct intel_engine_pool_node *node,
19 struct i915_request *rq)
21 return i915_active_add_request(&node->active, rq);
24 static inline void
25 intel_engine_pool_put(struct intel_engine_pool_node *node)
27 i915_active_release(&node->active);
30 void intel_engine_pool_init(struct intel_engine_pool *pool);
31 void intel_engine_pool_park(struct intel_engine_pool *pool);
32 void intel_engine_pool_fini(struct intel_engine_pool *pool);
34 #endif /* INTEL_ENGINE_POOL_H */