/* ppc440spe_adma_check_threshold - append CDBs to h/w chain if threshold has been achieved  */
static void ppc440spe_adma_check_threshold(struct ppc440spe_adma_chan *chan)
/* ppc440spe_adma_check_threshold - append CDBs to h/w chain if threshold has been achieved  */
static void ppc440spe_adma_check_threshold(struct ppc440spe_adma_chan *chan)
{
	dev_dbg(chan->device->common.dev, "ppc440spe adma%d: pending: %d\n",
		chan->device->id, chan->pending);
	if (chan->pending >= PPC440SPE_ADMA_THRESHOLD) {
		chan->pending = 0;
		ppc440spe_chan_append(chan);
	}
}