Lines Matching refs:lli

316 			     struct owl_dma_lli *lli)  in owl_dma_free_lli()  argument
318 list_del(&lli->node); in owl_dma_free_lli()
319 dma_pool_free(od->lli_pool, lli, lli->phys); in owl_dma_free_lli()
324 struct owl_dma_lli *lli; in owl_dma_alloc_lli() local
327 lli = dma_pool_alloc(od->lli_pool, GFP_NOWAIT, &phys); in owl_dma_alloc_lli()
328 if (!lli) in owl_dma_alloc_lli()
331 INIT_LIST_HEAD(&lli->node); in owl_dma_alloc_lli()
332 lli->phys = phys; in owl_dma_alloc_lli()
334 return lli; in owl_dma_alloc_lli()
352 struct owl_dma_lli *lli, in owl_dma_cfg_lli() argument
356 struct owl_dma_lli_hw *hw = &lli->hw; in owl_dma_cfg_lli()
452 struct owl_dma_lli *lli; in owl_dma_start_next_txd() local
464 lli = list_first_entry(&txd->lli_list, in owl_dma_start_next_txd()
472 pchan_writel(pchan, OWL_DMAX_NEXT_DESCRIPTOR, lli->phys); in owl_dma_start_next_txd()
586 struct owl_dma_lli *lli, *_lli; in owl_dma_free_txd() local
591 list_for_each_entry_safe(lli, _lli, &txd->lli_list, node) in owl_dma_free_txd()
592 owl_dma_free_lli(od, lli); in owl_dma_free_txd()
634 struct owl_dma_lli *lli; in owl_dma_getbytes_chan() local
650 list_for_each_entry(lli, &txd->lli_list, node) { in owl_dma_getbytes_chan()
652 if (lli->phys == next_lli_phy) { in owl_dma_getbytes_chan()
653 list_for_each_entry(lli, &txd->lli_list, node) in owl_dma_getbytes_chan()
654 bytes += lli->hw.flen; in owl_dma_getbytes_chan()
668 struct owl_dma_lli *lli; in owl_dma_tx_status() local
684 list_for_each_entry(lli, &txd->lli_list, node) in owl_dma_tx_status()
685 bytes += lli->hw.flen; in owl_dma_tx_status()
733 struct owl_dma_lli *lli, *prev = NULL; in owl_dma_prep_memcpy() local
748 lli = owl_dma_alloc_lli(od); in owl_dma_prep_memcpy()
749 if (!lli) { in owl_dma_prep_memcpy()
756 ret = owl_dma_cfg_lli(vchan, lli, src + offset, dst + offset, in owl_dma_prep_memcpy()
763 prev = owl_dma_add_lli(txd, prev, lli); in owl_dma_prep_memcpy()