Lines Matching refs:cmds
104 batch->cmds = calloc(1, sizeof(struct bb_area)); in intel_batchbuffer_create()
105 if (batch->cmds == NULL) { in intel_batchbuffer_create()
112 free(batch->cmds); in intel_batchbuffer_create()
138 for (i = 0; i < batch->cmds->num_items; i++) in reloc_exists()
139 if ((batch->cmds->item[i].type == RELOC || in reloc_exists()
140 batch->cmds->item[i].type == RELOC_STATE) && in reloc_exists()
154 bb_area_align(batch->cmds, align); in intel_batch_cmd_align()
164 return bb_area_items(batch->cmds); in intel_batch_num_cmds()
174 return bb_area_get(batch->cmds, i); in intel_batch_cmd_get()
236 batch->cmds_end_offset = bb_area_used(batch->cmds) - 4; in intel_batch_relocate_state()
241 batch->state_start_offset = bb_area_used(batch->cmds); in intel_batch_relocate_state()
246 bb_area_emit(batch->cmds, s->data, s->type, s->str); in intel_batch_relocate_state()
249 for (i = 0; i < bb_area_items(batch->cmds); i++) { in intel_batch_relocate_state()
250 struct bb_item *s = bb_area_get(batch->cmds, i); in intel_batch_relocate_state()
288 bb_area_emit(batch->cmds, (cmd | (len - len_bias)), CMD, str); in intel_batch_cmd_emit_null()