• Home
  • Raw
  • Download

Lines Matching refs:curr

179 void agp_free_memory(struct agp_memory *curr)  in agp_free_memory()  argument
183 if (curr == NULL) in agp_free_memory()
186 if (curr->is_bound) in agp_free_memory()
187 agp_unbind_memory(curr); in agp_free_memory()
189 if (curr->type >= AGP_USER_TYPES) { in agp_free_memory()
190 agp_generic_free_by_type(curr); in agp_free_memory()
194 if (curr->type != 0) { in agp_free_memory()
195 curr->bridge->driver->free_by_type(curr); in agp_free_memory()
198 if (curr->page_count != 0) { in agp_free_memory()
199 if (curr->bridge->driver->agp_destroy_pages) { in agp_free_memory()
200 curr->bridge->driver->agp_destroy_pages(curr); in agp_free_memory()
203 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
204 curr->bridge->driver->agp_destroy_page( in agp_free_memory()
205 curr->pages[i], in agp_free_memory()
208 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
209 curr->bridge->driver->agp_destroy_page( in agp_free_memory()
210 curr->pages[i], in agp_free_memory()
215 agp_free_key(curr->key); in agp_free_memory()
216 agp_free_page_array(curr); in agp_free_memory()
217 kfree(curr); in agp_free_memory()
423 int agp_bind_memory(struct agp_memory *curr, off_t pg_start) in agp_bind_memory() argument
427 if (curr == NULL) in agp_bind_memory()
430 if (curr->is_bound) { in agp_bind_memory()
431 printk(KERN_INFO PFX "memory %p is already bound!\n", curr); in agp_bind_memory()
434 if (!curr->is_flushed) { in agp_bind_memory()
435 curr->bridge->driver->cache_flush(); in agp_bind_memory()
436 curr->is_flushed = true; in agp_bind_memory()
439 ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); in agp_bind_memory()
444 curr->is_bound = true; in agp_bind_memory()
445 curr->pg_start = pg_start; in agp_bind_memory()
447 list_add(&curr->mapped_list, &agp_bridge->mapped_list); in agp_bind_memory()
463 int agp_unbind_memory(struct agp_memory *curr) in agp_unbind_memory() argument
467 if (curr == NULL) in agp_unbind_memory()
470 if (!curr->is_bound) { in agp_unbind_memory()
471 printk(KERN_INFO PFX "memory %p was not bound!\n", curr); in agp_unbind_memory()
475 ret_val = curr->bridge->driver->remove_memory(curr, curr->pg_start, curr->type); in agp_unbind_memory()
480 curr->is_bound = false; in agp_unbind_memory()
481 curr->pg_start = 0; in agp_unbind_memory()
482 spin_lock(&curr->bridge->mapped_lock); in agp_unbind_memory()
483 list_del(&curr->mapped_list); in agp_unbind_memory()
484 spin_unlock(&curr->bridge->mapped_lock); in agp_unbind_memory()
1171 void agp_generic_free_by_type(struct agp_memory *curr) in agp_generic_free_by_type() argument
1173 agp_free_page_array(curr); in agp_generic_free_by_type()
1174 agp_free_key(curr->key); in agp_generic_free_by_type()
1175 kfree(curr); in agp_generic_free_by_type()