Lines Matching refs:sizes
45 static inline int radeon_cs_setup_bo(struct radeon_cs_space_check *sc, struct rad_sizes *sizes)
74 sizes->op_vram_write += bo->size;
76 sizes->op_gart_write += bo->size;
79 sizes->op_read += bo->size;
92 sizes->op_read -= bo->size;
93 sizes->op_vram_write += bo->size;
95 sizes->op_read -= bo->size;
96 sizes->op_gart_write += bo->size;
117 struct rad_sizes sizes;
125 memset(&sizes, 0, sizeof(struct rad_sizes));
129 ret = radeon_cs_setup_bo(&cs->bos[i], &sizes);
135 ret = radeon_cs_setup_bo(new_tmp, &sizes);
140 if (sizes.op_read < 0)
141 sizes.op_read = 0;
143 /* check sizes - operation first */
144 if ((sizes.op_read + sizes.op_gart_write > csm->gart_limit) ||
145 (sizes.op_vram_write > csm->vram_limit)) {
149 if (((csm->vram_write_used + sizes.op_vram_write) > csm->vram_limit) ||
150 ((csm->read_used + csm->gart_write_used + sizes.op_gart_write + sizes.op_read) > csm->gart_limit)) {
154 csm->gart_write_used += sizes.op_gart_write;
155 csm->vram_write_used += sizes.op_vram_write;
156 csm->read_used += sizes.op_read;