treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvif / fifo.h
blobe9468c9f9abfddaba36057fc93baa34d2b69cdc6
1 #ifndef __NVIF_FIFO_H__
2 #define __NVIF_FIFO_H__
3 #include <nvif/device.h>
5 /* Returns mask of runlists that support a NV_DEVICE_INFO_ENGINE_* type. */
6 u64 nvif_fifo_runlist(struct nvif_device *, u64 engine);
8 /* CE-supporting runlists (excluding GRCE, if others exist). */
9 static inline u64
10 nvif_fifo_runlist_ce(struct nvif_device *device)
12 u64 runmgr = nvif_fifo_runlist(device, NV_DEVICE_INFO_ENGINE_GR);
13 u64 runmce = nvif_fifo_runlist(device, NV_DEVICE_INFO_ENGINE_CE);
14 if (runmce && !(runmce &= ~runmgr))
15 runmce = runmgr;
16 return runmce;
18 #endif