shdmac.c (265d9c673d47fcd5812d69dc07104b706285de56) | shdmac.c (ec5b103ecfde929004b691f29183255aeeadecd5) |
---|---|
1/* 2 * Renesas SuperH DMA Engine support 3 * 4 * base is drivers/dma/flsdma.c 5 * 6 * Copyright (C) 2011-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 8 * Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved. --- 409 unchanged lines hidden (view full) --- 418 419static size_t sh_dmae_get_partial(struct shdma_chan *schan, 420 struct shdma_desc *sdesc) 421{ 422 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, 423 shdma_chan); 424 struct sh_dmae_desc *sh_desc = container_of(sdesc, 425 struct sh_dmae_desc, shdma_desc); | 1/* 2 * Renesas SuperH DMA Engine support 3 * 4 * base is drivers/dma/flsdma.c 5 * 6 * Copyright (C) 2011-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 8 * Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved. --- 409 unchanged lines hidden (view full) --- 418 419static size_t sh_dmae_get_partial(struct shdma_chan *schan, 420 struct shdma_desc *sdesc) 421{ 422 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, 423 shdma_chan); 424 struct sh_dmae_desc *sh_desc = container_of(sdesc, 425 struct sh_dmae_desc, shdma_desc); |
426 return (sh_desc->hw.tcr - sh_dmae_readl(sh_chan, TCR)) << 427 sh_chan->xmit_shift; | 426 return sh_desc->hw.tcr - 427 (sh_dmae_readl(sh_chan, TCR) << sh_chan->xmit_shift); |
428} 429 430/* Called from error IRQ or NMI */ 431static bool sh_dmae_reset(struct sh_dmae_device *shdev) 432{ 433 bool ret; 434 435 /* halt the dma controller */ --- 519 unchanged lines hidden --- | 428} 429 430/* Called from error IRQ or NMI */ 431static bool sh_dmae_reset(struct sh_dmae_device *shdev) 432{ 433 bool ret; 434 435 /* halt the dma controller */ --- 519 unchanged lines hidden --- |