~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/dma/mv_xor.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
671
671
        if (unlikely(len < MV_XOR_MIN_BYTE_COUNT))
672
672
                return NULL;
673
673
 
674
 
        BUG_ON(unlikely(len > MV_XOR_MAX_BYTE_COUNT));
 
674
        BUG_ON(len > MV_XOR_MAX_BYTE_COUNT);
675
675
 
676
676
        spin_lock_bh(&mv_chan->lock);
677
677
        slot_cnt = mv_chan_memcpy_slot_count(len);
710
710
        if (unlikely(len < MV_XOR_MIN_BYTE_COUNT))
711
711
                return NULL;
712
712
 
713
 
        BUG_ON(unlikely(len > MV_XOR_MAX_BYTE_COUNT));
 
713
        BUG_ON(len > MV_XOR_MAX_BYTE_COUNT);
714
714
 
715
715
        spin_lock_bh(&mv_chan->lock);
716
716
        slot_cnt = mv_chan_memset_slot_count(len);
744
744
        if (unlikely(len < MV_XOR_MIN_BYTE_COUNT))
745
745
                return NULL;
746
746
 
747
 
        BUG_ON(unlikely(len > MV_XOR_MAX_BYTE_COUNT));
 
747
        BUG_ON(len > MV_XOR_MAX_BYTE_COUNT);
748
748
 
749
749
        dev_dbg(mv_chan->device->common.dev,
750
750
                "%s src_cnt: %d len: dest %x %u flags: %ld\n",