rename ff_cavs_flush to cavs_flush and make it static