Lines Matching full:dwc
49 static struct dw_desc *dwc_first_active(struct dw_dma_chan *dwc) in dwc_first_active() argument
51 return to_dw_desc(dwc->active_list.next); in dwc_first_active()
57 struct dw_dma_chan *dwc = to_dw_dma_chan(tx->chan); in dwc_tx_submit() local
61 spin_lock_irqsave(&dwc->lock, flags); in dwc_tx_submit()
70 list_add_tail(&desc->desc_node, &dwc->queue); in dwc_tx_submit()
71 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_tx_submit()
78 static struct dw_desc *dwc_desc_get(struct dw_dma_chan *dwc) in dwc_desc_get() argument
80 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_get()
88 dwc->descs_allocated++; in dwc_desc_get()
90 dma_async_tx_descriptor_init(&desc->txd, &dwc->chan); in dwc_desc_get()
97 static void dwc_desc_put(struct dw_dma_chan *dwc, struct dw_desc *desc) in dwc_desc_put() argument
99 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_put()
108 dwc->descs_allocated--; in dwc_desc_put()
112 dwc->descs_allocated--; in dwc_desc_put()
115 static void dwc_initialize(struct dw_dma_chan *dwc) in dwc_initialize() argument
117 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_initialize()
119 dw->initialize_chan(dwc); in dwc_initialize()
122 channel_set_bit(dw, MASK.XFER, dwc->mask); in dwc_initialize()
123 channel_set_bit(dw, MASK.ERROR, dwc->mask); in dwc_initialize()
128 static inline void dwc_dump_chan_regs(struct dw_dma_chan *dwc) in dwc_dump_chan_regs() argument
130 dev_err(chan2dev(&dwc->chan), in dwc_dump_chan_regs()
132 channel_readl(dwc, SAR), in dwc_dump_chan_regs()
133 channel_readl(dwc, DAR), in dwc_dump_chan_regs()
134 channel_readl(dwc, LLP), in dwc_dump_chan_regs()
135 channel_readl(dwc, CTL_HI), in dwc_dump_chan_regs()
136 channel_readl(dwc, CTL_LO)); in dwc_dump_chan_regs()
139 static inline void dwc_chan_disable(struct dw_dma *dw, struct dw_dma_chan *dwc) in dwc_chan_disable() argument
141 channel_clear_bit(dw, CH_EN, dwc->mask); in dwc_chan_disable()
142 while (dma_readl(dw, CH_EN) & dwc->mask) in dwc_chan_disable()
149 static inline void dwc_do_single_block(struct dw_dma_chan *dwc, in dwc_do_single_block() argument
152 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_do_single_block()
161 channel_writel(dwc, SAR, lli_read(desc, sar)); in dwc_do_single_block()
162 channel_writel(dwc, DAR, lli_read(desc, dar)); in dwc_do_single_block()
163 channel_writel(dwc, CTL_LO, ctllo); in dwc_do_single_block()
164 channel_writel(dwc, CTL_HI, lli_read(desc, ctlhi)); in dwc_do_single_block()
165 channel_set_bit(dw, CH_EN, dwc->mask); in dwc_do_single_block()
168 dwc->tx_node_active = dwc->tx_node_active->next; in dwc_do_single_block()
171 /* Called with dwc->lock held and bh disabled */
172 static void dwc_dostart(struct dw_dma_chan *dwc, struct dw_desc *first) in dwc_dostart() argument
174 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_dostart()
175 u8 lms = DWC_LLP_LMS(dwc->dws.m_master); in dwc_dostart()
179 if (dma_readl(dw, CH_EN) & dwc->mask) { in dwc_dostart()
180 dev_err(chan2dev(&dwc->chan), in dwc_dostart()
183 dwc_dump_chan_regs(dwc); in dwc_dostart()
189 if (dwc->nollp) { in dwc_dostart()
191 &dwc->flags); in dwc_dostart()
193 dev_err(chan2dev(&dwc->chan), in dwc_dostart()
198 dwc_initialize(dwc); in dwc_dostart()
201 dwc->tx_node_active = &first->tx_list; in dwc_dostart()
204 dwc_do_single_block(dwc, first); in dwc_dostart()
209 dwc_initialize(dwc); in dwc_dostart()
211 channel_writel(dwc, LLP, first->txd.phys | lms); in dwc_dostart()
212 channel_writel(dwc, CTL_LO, DWC_CTLL_LLP_D_EN | DWC_CTLL_LLP_S_EN); in dwc_dostart()
213 channel_writel(dwc, CTL_HI, 0); in dwc_dostart()
214 channel_set_bit(dw, CH_EN, dwc->mask); in dwc_dostart()
217 static void dwc_dostart_first_queued(struct dw_dma_chan *dwc) in dwc_dostart_first_queued() argument
221 if (list_empty(&dwc->queue)) in dwc_dostart_first_queued()
224 list_move(dwc->queue.next, &dwc->active_list); in dwc_dostart_first_queued()
225 desc = dwc_first_active(dwc); in dwc_dostart_first_queued()
226 dev_vdbg(chan2dev(&dwc->chan), "%s: started %u\n", __func__, desc->txd.cookie); in dwc_dostart_first_queued()
227 dwc_dostart(dwc, desc); in dwc_dostart_first_queued()
233 dwc_descriptor_complete(struct dw_dma_chan *dwc, struct dw_desc *desc, in dwc_descriptor_complete() argument
241 dev_vdbg(chan2dev(&dwc->chan), "descriptor %u complete\n", txd->cookie); in dwc_descriptor_complete()
243 spin_lock_irqsave(&dwc->lock, flags); in dwc_descriptor_complete()
254 dwc_desc_put(dwc, desc); in dwc_descriptor_complete()
255 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_descriptor_complete()
260 static void dwc_complete_all(struct dw_dma *dw, struct dw_dma_chan *dwc) in dwc_complete_all() argument
266 spin_lock_irqsave(&dwc->lock, flags); in dwc_complete_all()
267 if (dma_readl(dw, CH_EN) & dwc->mask) { in dwc_complete_all()
268 dev_err(chan2dev(&dwc->chan), in dwc_complete_all()
272 dwc_chan_disable(dw, dwc); in dwc_complete_all()
279 list_splice_init(&dwc->active_list, &list); in dwc_complete_all()
280 dwc_dostart_first_queued(dwc); in dwc_complete_all()
282 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_complete_all()
285 dwc_descriptor_complete(dwc, desc, true); in dwc_complete_all()
289 static inline u32 dwc_get_sent(struct dw_dma_chan *dwc) in dwc_get_sent() argument
291 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_get_sent()
292 u32 ctlhi = channel_readl(dwc, CTL_HI); in dwc_get_sent()
293 u32 ctllo = channel_readl(dwc, CTL_LO); in dwc_get_sent()
295 return dw->block2bytes(dwc, ctlhi, ctllo >> 4 & 7); in dwc_get_sent()
298 static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc) in dwc_scan_descriptors() argument
306 spin_lock_irqsave(&dwc->lock, flags); in dwc_scan_descriptors()
307 llp = channel_readl(dwc, LLP); in dwc_scan_descriptors()
310 if (status_xfer & dwc->mask) { in dwc_scan_descriptors()
312 dma_writel(dw, CLEAR.XFER, dwc->mask); in dwc_scan_descriptors()
314 if (test_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags)) { in dwc_scan_descriptors()
315 struct list_head *head, *active = dwc->tx_node_active; in dwc_scan_descriptors()
321 desc = dwc_first_active(dwc); in dwc_scan_descriptors()
334 dwc_do_single_block(dwc, child); in dwc_scan_descriptors()
336 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
341 clear_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags); in dwc_scan_descriptors()
344 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
346 dwc_complete_all(dw, dwc); in dwc_scan_descriptors()
350 if (list_empty(&dwc->active_list)) { in dwc_scan_descriptors()
351 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
355 if (test_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags)) { in dwc_scan_descriptors()
356 dev_vdbg(chan2dev(&dwc->chan), "%s: soft LLP mode\n", __func__); in dwc_scan_descriptors()
357 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
361 dev_vdbg(chan2dev(&dwc->chan), "%s: llp=%pad\n", __func__, &llp); in dwc_scan_descriptors()
363 list_for_each_entry_safe(desc, _desc, &dwc->active_list, desc_node) { in dwc_scan_descriptors()
369 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
376 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
377 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
385 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
386 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
396 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
397 dwc_descriptor_complete(dwc, desc, true); in dwc_scan_descriptors()
398 spin_lock_irqsave(&dwc->lock, flags); in dwc_scan_descriptors()
401 dev_err(chan2dev(&dwc->chan), in dwc_scan_descriptors()
405 dwc_chan_disable(dw, dwc); in dwc_scan_descriptors()
407 dwc_dostart_first_queued(dwc); in dwc_scan_descriptors()
408 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_scan_descriptors()
411 static inline void dwc_dump_lli(struct dw_dma_chan *dwc, struct dw_desc *desc) in dwc_dump_lli() argument
413 dev_crit(chan2dev(&dwc->chan), " desc: s0x%x d0x%x l0x%x c0x%x:%x\n", in dwc_dump_lli()
421 static void dwc_handle_error(struct dw_dma *dw, struct dw_dma_chan *dwc) in dwc_handle_error() argument
427 dwc_scan_descriptors(dw, dwc); in dwc_handle_error()
429 spin_lock_irqsave(&dwc->lock, flags); in dwc_handle_error()
436 bad_desc = dwc_first_active(dwc); in dwc_handle_error()
438 list_move(dwc->queue.next, dwc->active_list.prev); in dwc_handle_error()
441 dma_writel(dw, CLEAR.ERROR, dwc->mask); in dwc_handle_error()
442 if (!list_empty(&dwc->active_list)) in dwc_handle_error()
443 dwc_dostart(dwc, dwc_first_active(dwc)); in dwc_handle_error()
452 dev_WARN(chan2dev(&dwc->chan), "Bad descriptor submitted for DMA!\n" in dwc_handle_error()
454 dwc_dump_lli(dwc, bad_desc); in dwc_handle_error()
456 dwc_dump_lli(dwc, child); in dwc_handle_error()
458 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_handle_error()
461 dwc_descriptor_complete(dwc, bad_desc, true); in dwc_handle_error()
467 struct dw_dma_chan *dwc; in dw_dma_tasklet() local
478 dwc = &dw->chan[i]; in dw_dma_tasklet()
479 if (test_bit(DW_DMA_IS_CYCLIC, &dwc->flags)) in dw_dma_tasklet()
482 dwc_handle_error(dw, dwc); in dw_dma_tasklet()
484 dwc_scan_descriptors(dw, dwc); in dw_dma_tasklet()
541 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_prep_dma_memcpy() local
548 u8 m_master = dwc->dws.m_master; in dwc_prep_dma_memcpy()
564 dwc->direction = DMA_MEM_TO_MEM; in dwc_prep_dma_memcpy()
568 ctllo = dw->prepare_ctllo(dwc) in dwc_prep_dma_memcpy()
577 desc = dwc_desc_get(dwc); in dwc_prep_dma_memcpy()
581 ctlhi = dw->bytes2block(dwc, len - offset, src_width, &xfer_count); in dwc_prep_dma_memcpy()
610 dwc_desc_put(dwc, first); in dwc_prep_dma_memcpy()
619 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_prep_slave_sg() local
621 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dwc_prep_slave_sg()
625 u8 lms = DWC_LLP_LMS(dwc->dws.m_master); in dwc_prep_slave_sg()
638 dwc->direction = direction; in dwc_prep_slave_sg()
646 ctllo = dw->prepare_ctllo(dwc) in dwc_prep_slave_sg()
665 desc = dwc_desc_get(dwc); in dwc_prep_slave_sg()
669 ctlhi = dw->bytes2block(dwc, len, mem_width, &dlen); in dwc_prep_slave_sg()
696 ctllo = dw->prepare_ctllo(dwc) in dwc_prep_slave_sg()
713 desc = dwc_desc_get(dwc); in dwc_prep_slave_sg()
717 ctlhi = dw->bytes2block(dwc, len, reg_width, &dlen); in dwc_prep_slave_sg()
759 dwc_desc_put(dwc, first); in dwc_prep_slave_sg()
765 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dw_dma_filter() local
772 if (dws->channels && !(dws->channels & dwc->mask)) in dw_dma_filter()
776 memcpy(&dwc->dws, dws, sizeof(struct dw_dma_slave)); in dw_dma_filter()
784 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_verify_p_buswidth() local
788 if (dwc->dma_sconfig.direction == DMA_MEM_TO_DEV) in dwc_verify_p_buswidth()
789 reg_width = dwc->dma_sconfig.dst_addr_width; in dwc_verify_p_buswidth()
790 else if (dwc->dma_sconfig.direction == DMA_DEV_TO_MEM) in dwc_verify_p_buswidth()
791 reg_width = dwc->dma_sconfig.src_addr_width; in dwc_verify_p_buswidth()
795 max_width = dw->pdata->data_width[dwc->dws.p_master]; in dwc_verify_p_buswidth()
806 if (dwc->dma_sconfig.direction == DMA_MEM_TO_DEV) in dwc_verify_p_buswidth()
807 dwc->dma_sconfig.dst_addr_width = reg_width; in dwc_verify_p_buswidth()
809 dwc->dma_sconfig.src_addr_width = reg_width; in dwc_verify_p_buswidth()
816 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_verify_m_buswidth() local
820 mem_width = dw->pdata->data_width[dwc->dws.m_master]; in dwc_verify_m_buswidth()
833 if (dwc->dma_sconfig.direction == DMA_MEM_TO_DEV) { in dwc_verify_m_buswidth()
834 reg_width = dwc->dma_sconfig.dst_addr_width; in dwc_verify_m_buswidth()
838 dwc->dma_sconfig.src_addr_width = mem_width; in dwc_verify_m_buswidth()
839 } else if (dwc->dma_sconfig.direction == DMA_DEV_TO_MEM) { in dwc_verify_m_buswidth()
840 reg_width = dwc->dma_sconfig.src_addr_width; in dwc_verify_m_buswidth()
841 reg_burst = rounddown_pow_of_two(dwc->dma_sconfig.src_maxburst); in dwc_verify_m_buswidth()
843 dwc->dma_sconfig.dst_addr_width = min(mem_width, reg_width * reg_burst); in dwc_verify_m_buswidth()
851 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_config() local
855 memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); in dwc_config()
857 dwc->dma_sconfig.src_maxburst = in dwc_config()
858 clamp(dwc->dma_sconfig.src_maxburst, 1U, dwc->max_burst); in dwc_config()
859 dwc->dma_sconfig.dst_maxburst = in dwc_config()
860 clamp(dwc->dma_sconfig.dst_maxburst, 1U, dwc->max_burst); in dwc_config()
870 dw->encode_maxburst(dwc, &dwc->dma_sconfig.src_maxburst); in dwc_config()
871 dw->encode_maxburst(dwc, &dwc->dma_sconfig.dst_maxburst); in dwc_config()
876 static void dwc_chan_pause(struct dw_dma_chan *dwc, bool drain) in dwc_chan_pause() argument
878 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_chan_pause()
881 dw->suspend_chan(dwc, drain); in dwc_chan_pause()
883 while (!(channel_readl(dwc, CFG_LO) & DWC_CFGL_FIFO_EMPTY) && count--) in dwc_chan_pause()
886 set_bit(DW_DMA_IS_PAUSED, &dwc->flags); in dwc_chan_pause()
891 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_pause() local
894 spin_lock_irqsave(&dwc->lock, flags); in dwc_pause()
895 dwc_chan_pause(dwc, false); in dwc_pause()
896 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_pause()
901 static inline void dwc_chan_resume(struct dw_dma_chan *dwc, bool drain) in dwc_chan_resume() argument
903 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_chan_resume()
905 dw->resume_chan(dwc, drain); in dwc_chan_resume()
907 clear_bit(DW_DMA_IS_PAUSED, &dwc->flags); in dwc_chan_resume()
912 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_resume() local
915 spin_lock_irqsave(&dwc->lock, flags); in dwc_resume()
917 if (test_bit(DW_DMA_IS_PAUSED, &dwc->flags)) in dwc_resume()
918 dwc_chan_resume(dwc, false); in dwc_resume()
920 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_resume()
927 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_terminate_all() local
933 spin_lock_irqsave(&dwc->lock, flags); in dwc_terminate_all()
935 clear_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags); in dwc_terminate_all()
937 dwc_chan_pause(dwc, true); in dwc_terminate_all()
939 dwc_chan_disable(dw, dwc); in dwc_terminate_all()
941 dwc_chan_resume(dwc, true); in dwc_terminate_all()
944 list_splice_init(&dwc->queue, &list); in dwc_terminate_all()
945 list_splice_init(&dwc->active_list, &list); in dwc_terminate_all()
947 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_terminate_all()
951 dwc_descriptor_complete(dwc, desc, false); in dwc_terminate_all()
956 static struct dw_desc *dwc_find_desc(struct dw_dma_chan *dwc, dma_cookie_t c) in dwc_find_desc() argument
960 list_for_each_entry(desc, &dwc->active_list, desc_node) in dwc_find_desc()
967 static u32 dwc_get_residue_and_status(struct dw_dma_chan *dwc, dma_cookie_t cookie, in dwc_get_residue_and_status() argument
974 spin_lock_irqsave(&dwc->lock, flags); in dwc_get_residue_and_status()
976 desc = dwc_find_desc(dwc, cookie); in dwc_get_residue_and_status()
978 if (desc == dwc_first_active(dwc)) { in dwc_get_residue_and_status()
980 if (test_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags) && residue) in dwc_get_residue_and_status()
981 residue -= dwc_get_sent(dwc); in dwc_get_residue_and_status()
982 if (test_bit(DW_DMA_IS_PAUSED, &dwc->flags)) in dwc_get_residue_and_status()
991 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_get_residue_and_status()
1000 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_tx_status() local
1007 dwc_scan_descriptors(to_dw_dma(chan->device), dwc); in dwc_tx_status()
1013 dma_set_residue(txstate, dwc_get_residue_and_status(dwc, cookie, &ret)); in dwc_tx_status()
1019 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_issue_pending() local
1022 spin_lock_irqsave(&dwc->lock, flags); in dwc_issue_pending()
1023 if (list_empty(&dwc->active_list)) in dwc_issue_pending()
1024 dwc_dostart_first_queued(dwc); in dwc_issue_pending()
1025 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_issue_pending()
1051 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_alloc_chan_resources() local
1057 if (dma_readl(dw, CH_EN) & dwc->mask) { in dwc_alloc_chan_resources()
1081 dw->in_use |= dwc->mask; in dwc_alloc_chan_resources()
1088 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_free_chan_resources() local
1093 dwc->descs_allocated); in dwc_free_chan_resources()
1096 BUG_ON(!list_empty(&dwc->active_list)); in dwc_free_chan_resources()
1097 BUG_ON(!list_empty(&dwc->queue)); in dwc_free_chan_resources()
1098 BUG_ON(dma_readl(to_dw_dma(chan->device), CH_EN) & dwc->mask); in dwc_free_chan_resources()
1100 spin_lock_irqsave(&dwc->lock, flags); in dwc_free_chan_resources()
1103 memset(&dwc->dws, 0, sizeof(struct dw_dma_slave)); in dwc_free_chan_resources()
1106 channel_clear_bit(dw, MASK.XFER, dwc->mask); in dwc_free_chan_resources()
1107 channel_clear_bit(dw, MASK.BLOCK, dwc->mask); in dwc_free_chan_resources()
1108 channel_clear_bit(dw, MASK.ERROR, dwc->mask); in dwc_free_chan_resources()
1110 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_free_chan_resources()
1113 dw->in_use &= ~dwc->mask; in dwc_free_chan_resources()
1122 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); in dwc_caps() local
1124 caps->max_burst = dwc->max_burst; in dwc_caps()
1133 if (dwc->nollp) in dwc_caps()
1225 struct dw_dma_chan *dwc = &dw->chan[i]; in do_dma_probe() local
1227 dwc->chan.device = &dw->dma; in do_dma_probe()
1228 dma_cookie_init(&dwc->chan); in do_dma_probe()
1230 list_add_tail(&dwc->chan.device_node, in do_dma_probe()
1233 list_add(&dwc->chan.device_node, &dw->dma.channels); in do_dma_probe()
1237 dwc->priority = pdata->nr_channels - i - 1; in do_dma_probe()
1239 dwc->priority = i; in do_dma_probe()
1241 dwc->ch_regs = &__dw_regs(dw)->CHAN[i]; in do_dma_probe()
1242 spin_lock_init(&dwc->lock); in do_dma_probe()
1243 dwc->mask = 1 << i; in do_dma_probe()
1245 INIT_LIST_HEAD(&dwc->active_list); in do_dma_probe()
1246 INIT_LIST_HEAD(&dwc->queue); in do_dma_probe()
1248 channel_clear_bit(dw, CH_EN, dwc->mask); in do_dma_probe()
1250 dwc->direction = DMA_TRANS_NONE; in do_dma_probe()
1266 dwc->block_size = in do_dma_probe()
1276 dwc->nollp = in do_dma_probe()
1279 dwc->max_burst = in do_dma_probe()
1282 dwc->block_size = pdata->block_size; in do_dma_probe()
1283 dwc->nollp = !pdata->multi_block[i]; in do_dma_probe()
1284 dwc->max_burst = pdata->max_burst[i] ?: DW_DMA_MAX_BURST; in do_dma_probe()
1353 struct dw_dma_chan *dwc, *_dwc; in do_dma_remove() local
1363 list_for_each_entry_safe(dwc, _dwc, &dw->dma.channels, in do_dma_remove()
1365 list_del(&dwc->chan.device_node); in do_dma_remove()
1366 channel_clear_bit(dw, CH_EN, dwc->mask); in do_dma_remove()