Lines Matching refs:desc
714 void sdhci_adma_write_desc(struct sdhci_host *host, void **desc, in sdhci_adma_write_desc() argument
717 struct sdhci_adma2_64_desc *dma_desc = *desc; in sdhci_adma_write_desc()
727 *desc += host->desc_sz; in sdhci_adma_write_desc()
732 void **desc, dma_addr_t addr, in __sdhci_adma_write_desc() argument
736 host->ops->adma_write_desc(host, desc, addr, len, cmd); in __sdhci_adma_write_desc()
738 sdhci_adma_write_desc(host, desc, addr, len, cmd); in __sdhci_adma_write_desc()
741 static void sdhci_adma_mark_end(void *desc) in sdhci_adma_mark_end() argument
743 struct sdhci_adma2_64_desc *dma_desc = desc; in sdhci_adma_mark_end()
754 void *desc, *align; in sdhci_adma_table_pre() local
765 desc = host->adma_table; in sdhci_adma_table_pre()
790 __sdhci_adma_write_desc(host, &desc, align_addr, in sdhci_adma_table_pre()
811 __sdhci_adma_write_desc(host, &desc, addr, n, ADMA2_TRAN_VALID); in sdhci_adma_table_pre()
818 __sdhci_adma_write_desc(host, &desc, addr, len, in sdhci_adma_table_pre()
825 WARN_ON((desc - host->adma_table) >= host->adma_table_sz); in sdhci_adma_table_pre()
830 if (desc != host->adma_table) { in sdhci_adma_table_pre()
831 desc -= host->desc_sz; in sdhci_adma_table_pre()
832 sdhci_adma_mark_end(desc); in sdhci_adma_table_pre()
836 __sdhci_adma_write_desc(host, &desc, 0, 0, ADMA2_NOP_END_VALID); in sdhci_adma_table_pre()
1251 struct dma_async_tx_descriptor *desc; in sdhci_external_dma_setup() local
1286 desc = dmaengine_prep_slave_sg(chan, data->sg, data->sg_len, dir, in sdhci_external_dma_setup()
1288 if (!desc) in sdhci_external_dma_setup()
1291 desc->callback = NULL; in sdhci_external_dma_setup()
1292 desc->callback_param = NULL; in sdhci_external_dma_setup()
1294 cookie = dmaengine_submit(desc); in sdhci_external_dma_setup()
3343 void *desc = host->adma_table; in sdhci_adma_show_error() local
3349 struct sdhci_adma2_64_desc *dma_desc = desc; in sdhci_adma_show_error()
3365 desc += host->desc_sz; in sdhci_adma_show_error()