Lines Matching refs:memory

270 void agp_free_memory_wrap(struct agp_memory *memory)  in agp_free_memory_wrap()  argument
272 agp_remove_from_pool(memory); in agp_free_memory_wrap()
273 agp_free_memory(memory); in agp_free_memory_wrap()
278 struct agp_memory *memory; in agp_allocate_memory_wrap() local
280 memory = agp_allocate_memory(agp_bridge, pg_count, type); in agp_allocate_memory_wrap()
281 if (memory == NULL) in agp_allocate_memory_wrap()
284 agp_insert_into_pool(memory); in agp_allocate_memory_wrap()
285 return memory; in agp_allocate_memory_wrap()
360 struct agp_memory *memory; in agp_remove_all_memory() local
363 memory = controller->pool; in agp_remove_all_memory()
365 while (memory) { in agp_remove_all_memory()
366 temp = memory; in agp_remove_all_memory()
367 memory = memory->next; in agp_remove_all_memory()
876 struct agp_memory *memory; in agpioc_allocate_wrap() local
886 memory = agp_allocate_memory_wrap(alloc.pg_count, alloc.type); in agpioc_allocate_wrap()
888 if (memory == NULL) in agpioc_allocate_wrap()
891 alloc.key = memory->key; in agpioc_allocate_wrap()
892 alloc.physical = memory->physical; in agpioc_allocate_wrap()
895 agp_free_memory_wrap(memory); in agpioc_allocate_wrap()
903 struct agp_memory *memory; in agpioc_deallocate_wrap() local
906 memory = agp_find_mem_by_key(arg); in agpioc_deallocate_wrap()
908 if (memory == NULL) in agpioc_deallocate_wrap()
911 agp_free_memory_wrap(memory); in agpioc_deallocate_wrap()
918 struct agp_memory *memory; in agpioc_bind_wrap() local
924 memory = agp_find_mem_by_key(bind_info.key); in agpioc_bind_wrap()
926 if (memory == NULL) in agpioc_bind_wrap()
929 return agp_bind_memory(memory, bind_info.pg_start); in agpioc_bind_wrap()
934 struct agp_memory *memory; in agpioc_unbind_wrap() local
941 memory = agp_find_mem_by_key(unbind.key); in agpioc_unbind_wrap()
943 if (memory == NULL) in agpioc_unbind_wrap()
946 return agp_unbind_memory(memory); in agpioc_unbind_wrap()