Lines Matching refs:start
35 * @start: First currently dirty bit
46 unsigned long start;
57 return vbo->dirty && (vbo->dirty->start < vbo->dirty->end);
79 &dirty->start, &dirty->end);
93 &dirty->start, &dirty->end);
113 if (dirty->end <= dirty->start)
117 dirty->start + offset,
118 dirty->end - dirty->start);
127 pgoff_t start = 0;
133 &start, &end);
135 if (dirty->start < dirty->end)
136 bitmap_set(&dirty->bitmap[0], dirty->start,
137 dirty->end - dirty->start);
163 * @start: First page of the range within the buffer object.
171 pgoff_t start, pgoff_t end)
177 if (dirty->method != VMW_BO_DIRTY_PAGETABLE || start >= end)
180 wp_shared_mapping_range(mapping, start + offset, end - start);
181 clean_record_shared_mapping_range(mapping, start + offset,
182 end - start, offset,
183 &dirty->bitmap[0], &dirty->start,
190 * @start: First page of the range within the buffer object.
196 pgoff_t start, pgoff_t end)
201 vmw_bo_dirty_pre_unmap(vbo, start, end);
202 unmap_shared_mapping_range(mapping, (offset + start) << PAGE_SHIFT,
203 (loff_t) (end - start) << PAGE_SHIFT);
236 dirty->start = dirty->bitmap_size;
252 &dirty->start, &dirty->end);
297 pgoff_t start, cur, end;
305 if (res_start >= dirty->end || res_end <= dirty->start)
308 cur = max(res_start, dirty->start);
313 start = find_next_bit(&dirty->bitmap[0], res_end, cur);
314 if (start >= res_end)
317 end = find_next_zero_bit(&dirty->bitmap[0], res_end, start + 1);
319 num = end - start;
320 bitmap_clear(&dirty->bitmap[0], start, num);
321 vmw_resource_dirty_update(res, start, end);
324 if (res_start <= dirty->start && res_end > dirty->start)
325 dirty->start = res_end;
333 pgoff_t start, cur, end;
341 if (res_start >= dirty->end || res_end <= dirty->start)
344 cur = max(res_start, dirty->start);
349 start = find_next_bit(&dirty->bitmap[0], res_end, cur);
350 if (start >= res_end)
353 end = find_next_zero_bit(&dirty->bitmap[0], res_end, start + 1);
355 num = end - start;
356 bitmap_clear(&dirty->bitmap[0], start, num);
359 if (res_start <= dirty->start && res_end > dirty->start)
360 dirty->start = res_end;
383 if (res_start >= dirty->end || res_end <= dirty->start)
386 res_start = max(res_start, dirty->start);
390 if (res_start <= dirty->start && res_end > dirty->start)
391 dirty->start = res_end;
428 dirty->start = min(dirty->start, page_offset);