Lines Matching refs:csi
169 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; in radeon_cs_space_add_persistent_bo() local
172 for (i = 0; i < csi->bo_count; i++) { in radeon_cs_space_add_persistent_bo()
173 if (csi->bos[i].bo == boi && in radeon_cs_space_add_persistent_bo()
174 csi->bos[i].read_domains == read_domains && in radeon_cs_space_add_persistent_bo()
175 csi->bos[i].write_domain == write_domain) in radeon_cs_space_add_persistent_bo()
179 i = csi->bo_count; in radeon_cs_space_add_persistent_bo()
180 csi->bos[i].bo = boi; in radeon_cs_space_add_persistent_bo()
181 csi->bos[i].read_domains = read_domains; in radeon_cs_space_add_persistent_bo()
182 csi->bos[i].write_domain = write_domain; in radeon_cs_space_add_persistent_bo()
183 csi->bos[i].new_accounted = 0; in radeon_cs_space_add_persistent_bo()
184 csi->bo_count++; in radeon_cs_space_add_persistent_bo()
186 assert(csi->bo_count < MAX_SPACE_BOS); in radeon_cs_space_add_persistent_bo()
213 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; in radeon_cs_space_check_with_bo() local
226 ret = radeon_cs_check_space_internal(csi, bo ? &temp_bo : NULL); in radeon_cs_space_check_with_bo()
232 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; in radeon_cs_space_check() local
233 return radeon_cs_check_space_internal(csi, NULL); in radeon_cs_space_check()
238 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; in radeon_cs_space_reset_bos() local
240 for (i = 0; i < csi->bo_count; i++) { in radeon_cs_space_reset_bos()
241 radeon_bo_unref((struct radeon_bo *)csi->bos[i].bo); in radeon_cs_space_reset_bos()
242 csi->bos[i].bo = NULL; in radeon_cs_space_reset_bos()
243 csi->bos[i].read_domains = 0; in radeon_cs_space_reset_bos()
244 csi->bos[i].write_domain = 0; in radeon_cs_space_reset_bos()
245 csi->bos[i].new_accounted = 0; in radeon_cs_space_reset_bos()
247 csi->bo_count = 0; in radeon_cs_space_reset_bos()