Lines Matching full:gpd
345 struct mt_gpdma_desc *gpd; /* pointer to gpd array */ member
347 dma_addr_t gpd_addr; /* the physical address of gpd array */
651 struct mt_gpdma_desc *gpd; in msdc_dma_setup() local
656 gpd = dma->gpd; in msdc_dma_setup()
659 /* modify gpd */ in msdc_dma_setup()
660 gpd->gpd_info |= GPDMA_DESC_HWO; in msdc_dma_setup()
661 gpd->gpd_info |= GPDMA_DESC_BDP; in msdc_dma_setup()
663 gpd->gpd_info &= ~GPDMA_DESC_CHECKSUM; in msdc_dma_setup()
664 gpd->gpd_info |= msdc_dma_calcs((u8 *) gpd, 16) << 8; in msdc_dma_setup()
1754 /* init gpd and bd list in msdc_drv_probe */
1757 struct mt_gpdma_desc *gpd = dma->gpd; in msdc_init_gpd_bd() local
1762 memset(gpd, 0, sizeof(struct mt_gpdma_desc) * 2); in msdc_init_gpd_bd()
1765 gpd->gpd_info = GPDMA_DESC_BDP; /* hwo, cs, bd pointer */ in msdc_init_gpd_bd()
1766 /* gpd->next is must set for desc DMA in msdc_init_gpd_bd()
1767 * That's why must alloc 2 gpd structure. in msdc_init_gpd_bd()
1769 gpd->next = lower_32_bits(dma_addr); in msdc_init_gpd_bd()
1771 gpd->gpd_info |= (upper_32_bits(dma_addr) & 0xf) << 24; in msdc_init_gpd_bd()
1774 gpd->ptr = lower_32_bits(dma->bd_addr); /* physical address */ in msdc_init_gpd_bd()
1776 gpd->gpd_info |= (upper_32_bits(dma_addr) & 0xf) << 28; in msdc_init_gpd_bd()
2525 host->dma.gpd = dma_alloc_coherent(&pdev->dev, in msdc_drv_probe()
2531 if (!host->dma.gpd || !host->dma.bd) { in msdc_drv_probe()
2565 if (host->dma.gpd) in msdc_drv_probe()
2568 host->dma.gpd, host->dma.gpd_addr); in msdc_drv_probe()
2598 host->dma.gpd, host->dma.gpd_addr); in msdc_drv_remove()