Lines Matching defs:sub_cs
256 * Return \a sub_cs which is in TU_CS_MODE_EXTERNAL mode. tu_cs_begin and
257 * tu_cs_reserve_space are implied and \a sub_cs is ready for command packet
261 tu_cs_begin_sub_stream(struct tu_cs *cs, uint32_t size, struct tu_cs *sub_cs)
270 tu_cs_init_external(sub_cs, cs->device, cs->cur, cs->reserved_end);
271 tu_cs_begin(sub_cs);
272 result = tu_cs_reserve_space(sub_cs, size);
313 * End command packet emission to a sub-stream. \a sub_cs becomes invalid
320 tu_cs_end_sub_stream(struct tu_cs *cs, struct tu_cs *sub_cs)
323 assert(sub_cs->start == cs->cur && sub_cs->end == cs->reserved_end);
324 tu_cs_sanity_check(sub_cs);
326 tu_cs_end(sub_cs);
328 cs->cur = sub_cs->cur;