Lines Matching defs:tcd

186 	struct mpc_dma_tcd		*tcd;
200 struct mpc_dma_tcd *tcd;
220 struct mpc_dma_tcd __iomem *tcd;
290 prev->tcd->dlast_sga = mdesc->tcd_paddr;
291 prev->tcd->e_sg = 1;
292 mdesc->tcd->start = 1;
297 prev->tcd->int_maj = 1;
300 memcpy_toio(&mdma->tcd[cid], first->tcd, sizeof(struct mpc_dma_tcd));
303 mdma->tcd[cid].e_sg = 1;
491 struct mpc_dma_tcd *tcd;
498 tcd = dma_alloc_coherent(mdma->dma.dev,
501 if (!tcd)
517 mdesc->tcd = &tcd[i];
527 tcd, tcd_paddr);
532 mchan->tcd = tcd;
549 struct mpc_dma_tcd *tcd;
564 tcd = mchan->tcd;
572 tcd, tcd_paddr);
607 struct mpc_dma_tcd *tcd;
627 tcd = mdesc->tcd;
630 memset(tcd, 0, sizeof(struct mpc_dma_tcd));
633 tcd->ssize = MPC_DMA_TSIZE_32;
634 tcd->dsize = MPC_DMA_TSIZE_32;
635 tcd->soff = 32;
636 tcd->doff = 32;
639 tcd->ssize = MPC_DMA_TSIZE_16;
640 tcd->dsize = MPC_DMA_TSIZE_16;
641 tcd->soff = 16;
642 tcd->doff = 16;
644 tcd->ssize = MPC_DMA_TSIZE_4;
645 tcd->dsize = MPC_DMA_TSIZE_4;
646 tcd->soff = 4;
647 tcd->doff = 4;
649 tcd->ssize = MPC_DMA_TSIZE_2;
650 tcd->dsize = MPC_DMA_TSIZE_2;
651 tcd->soff = 2;
652 tcd->doff = 2;
654 tcd->ssize = MPC_DMA_TSIZE_1;
655 tcd->dsize = MPC_DMA_TSIZE_1;
656 tcd->soff = 1;
657 tcd->doff = 1;
660 tcd->saddr = src;
661 tcd->daddr = dst;
662 tcd->nbytes = len;
663 tcd->biter = 1;
664 tcd->citer = 1;
693 struct mpc_dma_tcd *tcd;
737 tcd = mdesc->tcd;
739 memset(tcd, 0, sizeof(struct mpc_dma_tcd));
742 tcd->saddr = per_paddr;
743 tcd->daddr = sg_dma_address(sg);
748 tcd->soff = 0;
749 tcd->doff = mchan->dwidth;
751 tcd->saddr = sg_dma_address(sg);
752 tcd->daddr = per_paddr;
757 tcd->soff = mchan->swidth;
758 tcd->doff = 0;
761 tcd->ssize = buswidth_to_dmatsize(mchan->swidth);
762 tcd->dsize = buswidth_to_dmatsize(mchan->dwidth);
765 tcd->nbytes = sg_dma_len(sg);
766 if (!IS_ALIGNED(tcd->nbytes, mchan->swidth))
770 tcd->biter = 1;
771 tcd->citer = 1;
774 tcd->nbytes = tcd_nunits * tcd->ssize;
775 if (!IS_ALIGNED(len, tcd->nbytes))
778 iter = len / tcd->nbytes;
784 tcd->biter = iter & 0x1ff;
785 tcd->biter_linkch = iter >> 9;
786 tcd->citer = tcd->biter;
787 tcd->citer_linkch = tcd->biter_linkch;
790 tcd->e_sg = 0;
791 tcd->d_req = 1;
955 mdma->tcd = (struct mpc_dma_tcd *)((u8 *)(mdma->regs)