search for: user_token

Displaying 1 result from an estimated 1 matches for "user_token".

2008 Mar 09
0
[PATCH 2/4] nouveau: add nouveau_map_block function
...+/* Returns zero on success; otherwise returns non-zero. */ +static int nouveau_map_block(struct drm_device *dev, struct mem_block *block) +{ + struct drm_map_list *entry; + + entry = drm_find_matching_map(dev, block->map); + if (!entry) + return -EINVAL; + + block->map_handle = entry->user_token; + block->flags |= NOUVEAU_MEM_MAPPED; + return 0; +} + static int nouveau_addmap(struct drm_device *dev, struct mem_block *block, unsigned long offset, enum drm_map_type type) { @@ -619,9 +633,7 @@ alloc_ok: if (flags&NOUVEAU_MEM_MAPPED) { - struct drm_map_list *entry; int...