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