Lines Matching refs:cur_idx
290 int cur_idx; in qxl_alloc_release_reserved() local
294 cur_idx = 0; in qxl_alloc_release_reserved()
297 cur_idx = 1; in qxl_alloc_release_reserved()
300 cur_idx = 2; in qxl_alloc_release_reserved()
317 if (qdev->current_release_bo_offset[cur_idx] + 1 >= releases_per_bo[cur_idx]) { in qxl_alloc_release_reserved()
318 free_bo = qdev->current_release_bo[cur_idx]; in qxl_alloc_release_reserved()
319 qdev->current_release_bo_offset[cur_idx] = 0; in qxl_alloc_release_reserved()
320 qdev->current_release_bo[cur_idx] = NULL; in qxl_alloc_release_reserved()
322 if (!qdev->current_release_bo[cur_idx]) { in qxl_alloc_release_reserved()
323 ret = qxl_release_bo_alloc(qdev, &qdev->current_release_bo[cur_idx], priority); in qxl_alloc_release_reserved()
335 bo = qxl_bo_ref(qdev->current_release_bo[cur_idx]); in qxl_alloc_release_reserved()
338 …release)->release_offset = qdev->current_release_bo_offset[cur_idx] * release_size_per_bo[cur_idx]; in qxl_alloc_release_reserved()
339 qdev->current_release_bo_offset[cur_idx]++; in qxl_alloc_release_reserved()