search for: nv_mem_access_ro

Displaying 2 results from an estimated 2 matches for "nv_mem_access_ro".

Did you mean: nv_mem_access_rw
2017 May 02
0
drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c:124:: possible unintended fallthrough ?
Hello there, drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c:124:18: warning: this statement may fall through [-Wimplicit-fallthrough=] Source code is switch (dmaobj->base.access) { case NV_MEM_ACCESS_RO: dmaobj->flags0 |= 0x00004000; break; case NV_MEM_ACCESS_WO: dmaobj->flags0 |= 0x00008000; case NV_MEM_ACCESS_RW: dmaobj->flags2 |= 0x00000002; break; default: return -EINVAL; } Suggest either document the fallthrough or add...
2014 Apr 17
0
[PATCH] drm/nouveau: add some basic debugfs dumping for nouveau's clients and vm mappings
...con.h" +#include "subdev/fb.h" static int nouveau_debugfs_vbios_image(struct seq_file *m, void *data) @@ -43,8 +51,204 @@ nouveau_debugfs_vbios_image(struct seq_file *m, void *data) return 0; } +static void nouveau_get_access(char *ba, u32 access) +{ + if (access & NV_MEM_ACCESS_RO) + *ba++ = 'R'; + else + *ba++ = '-'; + + if (access & NV_MEM_ACCESS_WO) + *ba++ = 'W'; + else + *ba++ = '-'; + + if (access & NV_MEM_ACCESS_SYS) + *ba++ = 'S'; + + if (access & NV_MEM_ACCESS_NOSNOOP) + *ba++ = 'N'; + + *ba = 0; +} +...