CMN_MAX_DTCS
int dtc_count[CMN_MAX_DTCS];
s8 dtc_idx[CMN_MAX_DTCS];
for (int i = 0, idx; i < CMN_MAX_DTCS; i++) if ((idx = hw->dtc_idx[i]) >= 0)