Lines Matching defs:lp_desc
76 struct lp_desc {
81 } *lp_desc;
196 kfree(i460.lp_desc);
234 size = current_size->num_entries * sizeof(i460.lp_desc[0]);
235 i460.lp_desc = kzalloc(size, GFP_KERNEL);
236 if (!i460.lp_desc)
358 * single GART page are possible. The i460.lp_desc array tracks partial allocation of the
361 * i460.lp_desc[pg_num].refcount tracks the number of kernel pages in use within GART page
362 * pg_num. i460.lp_desc[pg_num].paddr is the physical address of the large page and
363 * i460.lp_desc[pg_num].alloced_map is a bitmap of kernel pages that are in use (allocated).
366 static int i460_alloc_large_page (struct lp_desc *lp)
391 static void i460_free_large_page (struct lp_desc *lp)
404 struct lp_desc *start, *end, *lp;
414 start = &i460.lp_desc[pg_start / I460_KPAGES_PER_IOPAGE];
415 end = &i460.lp_desc[(pg_start + mem->page_count - 1) / I460_KPAGES_PER_IOPAGE];
419 if (end > i460.lp_desc + num_entries) {
443 pg = lp - i460.lp_desc;
465 struct lp_desc *start, *end, *lp;
472 start = &i460.lp_desc[pg_start / I460_KPAGES_PER_IOPAGE];
473 end = &i460.lp_desc[(pg_start + mem->page_count - 1) / I460_KPAGES_PER_IOPAGE];
489 pg = lp - i460.lp_desc;