treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvif / mem.h
blob80ee4ab0f016be69ef5af865287ad1053bba49d7
1 #ifndef __NVIF_MEM_H__
2 #define __NVIF_MEM_H__
3 #include "mmu.h"
5 struct nvif_mem {
6 struct nvif_object object;
7 u8 type;
8 u8 page;
9 u64 addr;
10 u64 size;
13 int nvif_mem_init_type(struct nvif_mmu *mmu, s32 oclass, int type, u8 page,
14 u64 size, void *argv, u32 argc, struct nvif_mem *);
15 int nvif_mem_init(struct nvif_mmu *mmu, s32 oclass, u8 type, u8 page,
16 u64 size, void *argv, u32 argc, struct nvif_mem *);
17 void nvif_mem_fini(struct nvif_mem *);
19 int nvif_mem_init_map(struct nvif_mmu *, u8 type, u64 size, struct nvif_mem *);
20 #endif