Lines Matching refs:page_count
181 if (curr->page_count != 0) {
186 for (i = 0; i < curr->page_count; i++) {
191 for (i = 0; i < curr->page_count; i++) {
210 * @page_count: size_t argument of the number of pages
219 size_t page_count, u32 type)
230 if ((cur_memory + page_count > bridge->max_memory_agp) ||
231 (cur_memory + page_count < page_count))
235 new = agp_generic_alloc_user(page_count, type);
242 new = bridge->driver->alloc_by_type(page_count, type);
248 scratch_pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE;
256 if (bridge->driver->agp_alloc_pages(bridge, new, page_count)) {
264 for (i = 0; i < page_count; i++) {
272 new->page_count++;
1038 if (mem->page_count == 0)
1076 if (((pg_start + mem->page_count) > num_entries) ||
1077 ((pg_start + mem->page_count) < pg_start))
1082 while (j < (pg_start + mem->page_count)) {
1093 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) {
1117 if (mem->page_count == 0)
1124 if (((pg_start + mem->page_count) > num_entries) ||
1125 ((pg_start + mem->page_count) < pg_start))
1135 for (i = pg_start; i < (mem->page_count + pg_start); i++) {
1145 struct agp_memory *agp_generic_alloc_by_type(size_t page_count, int type)
1159 struct agp_memory *agp_generic_alloc_user(size_t page_count, int type)
1165 pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE;
1166 new = agp_create_user_memory(page_count);
1170 for (i = 0; i < page_count; i++)
1172 new->page_count = 0;
1205 mem->page_count++;
1242 set_pages_array_wb(mem->pages, mem->page_count);
1245 for (i = 0; i < mem->page_count; i++) {