stm_write
count = stm_write(stm, &src->output, chan, buf, count, data);
count = stm_write(stm, &stmf->output, 0, kbuf, count, NULL);