hvd 414 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_vdesc *hvd) hvd 428 drivers/dma/mediatek/mtk-hsdma.c num_sgs = DIV_ROUND_UP(hvd->len, MTK_HSDMA_MAX_LEN); hvd 440 drivers/dma/mediatek/mtk-hsdma.c tlen = (hvd->len > MTK_HSDMA_MAX_LEN) ? hvd 441 drivers/dma/mediatek/mtk-hsdma.c MTK_HSDMA_MAX_LEN : hvd->len; hvd 451 drivers/dma/mediatek/mtk-hsdma.c WRITE_ONCE(txd->desc1, hvd->src); hvd 456 drivers/dma/mediatek/mtk-hsdma.c WRITE_ONCE(rxd->desc1, hvd->dest); hvd 460 drivers/dma/mediatek/mtk-hsdma.c ring->cb[ring->cur_tptr].vd = &hvd->vd; hvd 467 drivers/dma/mediatek/mtk-hsdma.c hvd->src += tlen; hvd 468 drivers/dma/mediatek/mtk-hsdma.c hvd->dest += tlen; hvd 469 drivers/dma/mediatek/mtk-hsdma.c hvd->len -= tlen; hvd 476 drivers/dma/mediatek/mtk-hsdma.c if (!hvd->len) { hvd 504 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_vdesc *hvd; hvd 506 drivers/dma/mediatek/mtk-hsdma.c hvd = to_hsdma_vdesc(vd); hvd 509 drivers/dma/mediatek/mtk-hsdma.c err = mtk_hsdma_issue_pending_vdesc(hsdma, hsdma->pc, hvd); hvd 518 drivers/dma/mediatek/mtk-hsdma.c if (err == -ENOSPC || hvd->len > 0) hvd 537 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_vdesc *hvd; hvd 579 drivers/dma/mediatek/mtk-hsdma.c hvd = to_hsdma_vdesc(cb->vd); hvd 580 drivers/dma/mediatek/mtk-hsdma.c hvd->residue -= MTK_HSDMA_DESC_PLEN_GET(rxd->desc2); hvd 682 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_vdesc *hvd; hvd 697 drivers/dma/mediatek/mtk-hsdma.c hvd = to_hsdma_vdesc(vd); hvd 698 drivers/dma/mediatek/mtk-hsdma.c bytes = hvd->residue; hvd 724 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_vdesc *hvd; hvd 726 drivers/dma/mediatek/mtk-hsdma.c hvd = kzalloc(sizeof(*hvd), GFP_NOWAIT); hvd 727 drivers/dma/mediatek/mtk-hsdma.c if (!hvd) hvd 730 drivers/dma/mediatek/mtk-hsdma.c hvd->len = len; hvd 731 drivers/dma/mediatek/mtk-hsdma.c hvd->residue = len; hvd 732 drivers/dma/mediatek/mtk-hsdma.c hvd->src = src; hvd 733 drivers/dma/mediatek/mtk-hsdma.c hvd->dest = dest; hvd 735 drivers/dma/mediatek/mtk-hsdma.c return vchan_tx_prep(to_virt_chan(c), &hvd->vd, flags);