Lines Matching refs:res_end
331 unsigned long res_end = res->backup_offset + res->backup_size; in vmw_bo_dirty_transfer_to_res() local
335 res_end = DIV_ROUND_UP(res_end, PAGE_SIZE); in vmw_bo_dirty_transfer_to_res()
337 if (res_start >= dirty->end || res_end <= dirty->start) in vmw_bo_dirty_transfer_to_res()
341 res_end = max(res_end, dirty->end); in vmw_bo_dirty_transfer_to_res()
342 while (cur < res_end) { in vmw_bo_dirty_transfer_to_res()
345 start = find_next_bit(&dirty->bitmap[0], res_end, cur); in vmw_bo_dirty_transfer_to_res()
346 if (start >= res_end) in vmw_bo_dirty_transfer_to_res()
349 end = find_next_zero_bit(&dirty->bitmap[0], res_end, start + 1); in vmw_bo_dirty_transfer_to_res()
356 if (res_start <= dirty->start && res_end > dirty->start) in vmw_bo_dirty_transfer_to_res()
357 dirty->start = res_end; in vmw_bo_dirty_transfer_to_res()
358 if (res_start < dirty->end && res_end >= dirty->end) in vmw_bo_dirty_transfer_to_res()
373 unsigned long res_end = res->backup_offset + res->backup_size; in vmw_bo_dirty_clear_res() local
378 res_end = DIV_ROUND_UP(res_end, PAGE_SIZE); in vmw_bo_dirty_clear_res()
380 if (res_start >= dirty->end || res_end <= dirty->start) in vmw_bo_dirty_clear_res()
384 res_end = min(res_end, dirty->end); in vmw_bo_dirty_clear_res()
385 bitmap_clear(&dirty->bitmap[0], res_start, res_end - res_start); in vmw_bo_dirty_clear_res()
387 if (res_start <= dirty->start && res_end > dirty->start) in vmw_bo_dirty_clear_res()
388 dirty->start = res_end; in vmw_bo_dirty_clear_res()
389 if (res_start < dirty->end && res_end >= dirty->end) in vmw_bo_dirty_clear_res()