Lines Matching refs:mem
283 static int amd_insert_memory(struct agp_memory *mem, off_t pg_start, int type) in amd_insert_memory() argument
291 if (type != mem->type || in amd_insert_memory()
295 if ((pg_start + mem->page_count) > num_entries) in amd_insert_memory()
299 while (j < (pg_start + mem->page_count)) { in amd_insert_memory()
307 if (!mem->is_flushed) { in amd_insert_memory()
309 mem->is_flushed = true; in amd_insert_memory()
312 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in amd_insert_memory()
316 page_to_phys(mem->pages[i]), in amd_insert_memory()
317 mem->type), in amd_insert_memory()
321 amd_irongate_tlbflush(mem); in amd_insert_memory()
325 static int amd_remove_memory(struct agp_memory *mem, off_t pg_start, int type) in amd_remove_memory() argument
331 if (type != mem->type || in amd_remove_memory()
335 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in amd_remove_memory()
342 amd_irongate_tlbflush(mem); in amd_remove_memory()