Lines Matching full:mem
47 struct agp_memory *mem; member
56 struct agp_memory *mem; in ttm_agp_bind() local
60 if (agp_be->mem) in ttm_agp_bind()
63 mem = agp_allocate_memory(agp_be->bridge, ttm->num_pages, AGP_USER_MEMORY); in ttm_agp_bind()
64 if (unlikely(mem == NULL)) in ttm_agp_bind()
67 mem->page_count = 0; in ttm_agp_bind()
74 mem->pages[mem->page_count++] = page; in ttm_agp_bind()
76 agp_be->mem = mem; in ttm_agp_bind()
78 mem->is_flushed = 1; in ttm_agp_bind()
79 mem->type = (cached) ? AGP_USER_CACHED_MEMORY : AGP_USER_MEMORY; in ttm_agp_bind()
81 ret = agp_bind_memory(mem, node->start); in ttm_agp_bind()
93 if (agp_be->mem) { in ttm_agp_unbind()
94 if (agp_be->mem->is_bound) { in ttm_agp_unbind()
95 agp_unbind_memory(agp_be->mem); in ttm_agp_unbind()
98 agp_free_memory(agp_be->mem); in ttm_agp_unbind()
99 agp_be->mem = NULL; in ttm_agp_unbind()
111 return (agp_be->mem != NULL); in ttm_agp_is_bound()
119 if (agp_be->mem) in ttm_agp_destroy()
136 agp_be->mem = NULL; in ttm_agp_tt_create()