Lines Matching refs:coalesce
80 struct etna_coalesce *coalesce) in etna_coalesce_start() argument
82 coalesce->start = etna_cmd_stream_offset(stream); in etna_coalesce_start()
83 coalesce->last_reg = 0; in etna_coalesce_start()
84 coalesce->last_fixp = 0; in etna_coalesce_start()
89 struct etna_coalesce *coalesce) in etna_coalesce_end() argument
92 uint32_t size = end - coalesce->start; in etna_coalesce_end()
95 uint32_t offset = coalesce->start - 1; in etna_coalesce_end()
108 check_coalsence(struct etna_cmd_stream *stream, struct etna_coalesce *coalesce, in check_coalsence() argument
111 if (coalesce->last_reg != 0) { in check_coalsence()
112 if (((coalesce->last_reg + 4) != reg) || (coalesce->last_fixp != fixp)) { in check_coalsence()
113 etna_coalesce_end(stream, coalesce); in check_coalsence()
115 coalesce->start = etna_cmd_stream_offset(stream); in check_coalsence()
119 coalesce->start = etna_cmd_stream_offset(stream); in check_coalsence()
122 coalesce->last_reg = reg; in check_coalsence()
123 coalesce->last_fixp = fixp; in check_coalsence()
128 struct etna_coalesce *coalesce, uint32_t reg, in etna_coalsence_emit() argument
131 check_coalsence(stream, coalesce, reg, 0); in etna_coalsence_emit()
137 struct etna_coalesce *coalesce, uint32_t reg, in etna_coalsence_emit_fixp() argument
140 check_coalsence(stream, coalesce, reg, 1); in etna_coalsence_emit_fixp()
146 struct etna_coalesce *coalesce, uint32_t reg, in etna_coalsence_emit_reloc() argument
150 check_coalsence(stream, coalesce, reg, 0); in etna_coalsence_emit_reloc()
156 etna_coalsence_emit(stream, &coalesce, VIVS_##state_name, src_value)
159 etna_coalsence_emit_fixp(stream, &coalesce, VIVS_##state_name, src_value)
162 etna_coalsence_emit_reloc(stream, &coalesce, VIVS_##state_name, src_value)
172 struct etna_coalesce coalesce; in etna_submit_rs_state() local
176 etna_coalesce_start(stream, &coalesce); in etna_submit_rs_state()
193 etna_coalesce_end(stream, &coalesce); in etna_submit_rs_state()
196 etna_coalesce_start(stream, &coalesce); in etna_submit_rs_state()
224 etna_coalesce_end(stream, &coalesce); in etna_submit_rs_state()
355 struct etna_coalesce coalesce; in etna_emit_state() local
357 etna_coalesce_start(stream, &coalesce); in etna_emit_state()
699 etna_coalesce_end(stream, &coalesce); in etna_emit_state()
764 etna_coalesce_start(stream, &coalesce); in etna_emit_state()
771 etna_coalesce_end(stream, &coalesce); in etna_emit_state()
773 etna_coalesce_start(stream, &coalesce); in etna_emit_state()
780 etna_coalesce_end(stream, &coalesce); in etna_emit_state()