• Home
  • Raw
  • Download

Lines Matching refs:curr

167 void agp_free_memory(struct agp_memory *curr)  in agp_free_memory()  argument
171 if (curr == NULL) in agp_free_memory()
174 if (curr->is_bound) in agp_free_memory()
175 agp_unbind_memory(curr); in agp_free_memory()
177 if (curr->type >= AGP_USER_TYPES) { in agp_free_memory()
178 agp_generic_free_by_type(curr); in agp_free_memory()
182 if (curr->type != 0) { in agp_free_memory()
183 curr->bridge->driver->free_by_type(curr); in agp_free_memory()
186 if (curr->page_count != 0) { in agp_free_memory()
187 if (curr->bridge->driver->agp_destroy_pages) { in agp_free_memory()
188 curr->bridge->driver->agp_destroy_pages(curr); in agp_free_memory()
191 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
192 curr->bridge->driver->agp_destroy_page( in agp_free_memory()
193 curr->pages[i], in agp_free_memory()
196 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
197 curr->bridge->driver->agp_destroy_page( in agp_free_memory()
198 curr->pages[i], in agp_free_memory()
203 agp_free_key(curr->key); in agp_free_memory()
204 agp_free_page_array(curr); in agp_free_memory()
205 kfree(curr); in agp_free_memory()
411 int agp_bind_memory(struct agp_memory *curr, off_t pg_start) in agp_bind_memory() argument
415 if (curr == NULL) in agp_bind_memory()
418 if (curr->is_bound) { in agp_bind_memory()
419 printk(KERN_INFO PFX "memory %p is already bound!\n", curr); in agp_bind_memory()
422 if (!curr->is_flushed) { in agp_bind_memory()
423 curr->bridge->driver->cache_flush(); in agp_bind_memory()
424 curr->is_flushed = true; in agp_bind_memory()
427 ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); in agp_bind_memory()
432 curr->is_bound = true; in agp_bind_memory()
433 curr->pg_start = pg_start; in agp_bind_memory()
435 list_add(&curr->mapped_list, &agp_bridge->mapped_list); in agp_bind_memory()
451 int agp_unbind_memory(struct agp_memory *curr) in agp_unbind_memory() argument
455 if (curr == NULL) in agp_unbind_memory()
458 if (!curr->is_bound) { in agp_unbind_memory()
459 printk(KERN_INFO PFX "memory %p was not bound!\n", curr); in agp_unbind_memory()
463 ret_val = curr->bridge->driver->remove_memory(curr, curr->pg_start, curr->type); in agp_unbind_memory()
468 curr->is_bound = false; in agp_unbind_memory()
469 curr->pg_start = 0; in agp_unbind_memory()
470 spin_lock(&curr->bridge->mapped_lock); in agp_unbind_memory()
471 list_del(&curr->mapped_list); in agp_unbind_memory()
472 spin_unlock(&curr->bridge->mapped_lock); in agp_unbind_memory()
1159 void agp_generic_free_by_type(struct agp_memory *curr) in agp_generic_free_by_type() argument
1161 agp_free_page_array(curr); in agp_generic_free_by_type()
1162 agp_free_key(curr->key); in agp_generic_free_by_type()
1163 kfree(curr); in agp_generic_free_by_type()