Lines Matching refs:v_lli
174 struct sun6i_dma_lli *v_lli; member
362 for (lli = txd->v_lli; lli; lli = lli->v_lli_next) { in sun6i_get_chan_size()
383 txd->v_lli = next; in sun6i_dma_lli_add()
396 struct sun6i_dma_lli *v_lli, in sun6i_dma_dump_lli() argument
403 &p_lli, v_lli, in sun6i_dma_dump_lli()
404 v_lli->cfg, v_lli->src, v_lli->dst, in sun6i_dma_dump_lli()
405 v_lli->len, v_lli->para, v_lli->p_lli_next); in sun6i_dma_dump_lli()
412 struct sun6i_dma_lli *v_lli, *v_next; in sun6i_dma_free_desc() local
419 v_lli = txd->v_lli; in sun6i_dma_free_desc()
421 while (v_lli) { in sun6i_dma_free_desc()
422 v_next = v_lli->v_lli_next; in sun6i_dma_free_desc()
423 p_next = v_lli->p_lli_next; in sun6i_dma_free_desc()
425 dma_pool_free(sdev->pool, v_lli, p_lli); in sun6i_dma_free_desc()
427 v_lli = v_next; in sun6i_dma_free_desc()
455 sun6i_dma_dump_lli(vchan, pchan->desc->v_lli, pchan->desc->p_lli); in sun6i_dma_start_desc()
637 struct sun6i_dma_lli *v_lli, in sun6i_dma_set_addr() argument
640 v_lli->src = lower_32_bits(src); in sun6i_dma_set_addr()
641 v_lli->dst = lower_32_bits(dst); in sun6i_dma_set_addr()
644 v_lli->para |= SRC_HIGH_ADDR(upper_32_bits(src)) | in sun6i_dma_set_addr()
654 struct sun6i_dma_lli *v_lli; in sun6i_dma_prep_dma_memcpy() local
670 v_lli = dma_pool_alloc(sdev->pool, GFP_DMA32 | GFP_NOWAIT, &p_lli); in sun6i_dma_prep_dma_memcpy()
671 if (!v_lli) { in sun6i_dma_prep_dma_memcpy()
676 v_lli->len = len; in sun6i_dma_prep_dma_memcpy()
677 v_lli->para = NORMAL_WAIT; in sun6i_dma_prep_dma_memcpy()
678 sun6i_dma_set_addr(sdev, v_lli, src, dest); in sun6i_dma_prep_dma_memcpy()
682 v_lli->cfg = DMA_CHAN_CFG_SRC_WIDTH(width) | in sun6i_dma_prep_dma_memcpy()
685 sdev->cfg->set_burst_length(&v_lli->cfg, burst, burst); in sun6i_dma_prep_dma_memcpy()
686 sdev->cfg->set_drq(&v_lli->cfg, DRQ_SDRAM, DRQ_SDRAM); in sun6i_dma_prep_dma_memcpy()
687 sdev->cfg->set_mode(&v_lli->cfg, LINEAR_MODE, LINEAR_MODE); in sun6i_dma_prep_dma_memcpy()
689 sun6i_dma_lli_add(NULL, v_lli, p_lli, txd); in sun6i_dma_prep_dma_memcpy()
691 sun6i_dma_dump_lli(vchan, v_lli, p_lli); in sun6i_dma_prep_dma_memcpy()
708 struct sun6i_dma_lli *v_lli, *prev = NULL; in sun6i_dma_prep_slave_sg() local
729 v_lli = dma_pool_alloc(sdev->pool, GFP_DMA32 | GFP_NOWAIT, &p_lli); in sun6i_dma_prep_slave_sg()
730 if (!v_lli) in sun6i_dma_prep_slave_sg()
733 v_lli->len = sg_dma_len(sg); in sun6i_dma_prep_slave_sg()
734 v_lli->para = NORMAL_WAIT; in sun6i_dma_prep_slave_sg()
737 sun6i_dma_set_addr(sdev, v_lli, in sun6i_dma_prep_slave_sg()
740 v_lli->cfg = lli_cfg; in sun6i_dma_prep_slave_sg()
741 sdev->cfg->set_drq(&v_lli->cfg, DRQ_SDRAM, vchan->port); in sun6i_dma_prep_slave_sg()
742 sdev->cfg->set_mode(&v_lli->cfg, LINEAR_MODE, IO_MODE); in sun6i_dma_prep_slave_sg()
751 sun6i_dma_set_addr(sdev, v_lli, in sun6i_dma_prep_slave_sg()
754 v_lli->cfg = lli_cfg; in sun6i_dma_prep_slave_sg()
755 sdev->cfg->set_drq(&v_lli->cfg, vchan->port, DRQ_SDRAM); in sun6i_dma_prep_slave_sg()
756 sdev->cfg->set_mode(&v_lli->cfg, IO_MODE, LINEAR_MODE); in sun6i_dma_prep_slave_sg()
765 prev = sun6i_dma_lli_add(prev, v_lli, p_lli, txd); in sun6i_dma_prep_slave_sg()
769 for (p_lli = txd->p_lli, v_lli = txd->v_lli; v_lli; in sun6i_dma_prep_slave_sg()
770 p_lli = v_lli->p_lli_next, v_lli = v_lli->v_lli_next) in sun6i_dma_prep_slave_sg()
771 sun6i_dma_dump_lli(vchan, v_lli, p_lli); in sun6i_dma_prep_slave_sg()
776 for (p_lli = txd->p_lli, v_lli = txd->v_lli; v_lli; in sun6i_dma_prep_slave_sg()
777 p_lli = v_lli->p_lli_next, v_lli = v_lli->v_lli_next) in sun6i_dma_prep_slave_sg()
778 dma_pool_free(sdev->pool, v_lli, p_lli); in sun6i_dma_prep_slave_sg()
794 struct sun6i_dma_lli *v_lli, *prev = NULL; in sun6i_dma_prep_dma_cyclic() local
812 v_lli = dma_pool_alloc(sdev->pool, GFP_DMA32 | GFP_NOWAIT, &p_lli); in sun6i_dma_prep_dma_cyclic()
813 if (!v_lli) { in sun6i_dma_prep_dma_cyclic()
818 v_lli->len = period_len; in sun6i_dma_prep_dma_cyclic()
819 v_lli->para = NORMAL_WAIT; in sun6i_dma_prep_dma_cyclic()
822 sun6i_dma_set_addr(sdev, v_lli, in sun6i_dma_prep_dma_cyclic()
825 v_lli->cfg = lli_cfg; in sun6i_dma_prep_dma_cyclic()
826 sdev->cfg->set_drq(&v_lli->cfg, DRQ_SDRAM, vchan->port); in sun6i_dma_prep_dma_cyclic()
827 sdev->cfg->set_mode(&v_lli->cfg, LINEAR_MODE, IO_MODE); in sun6i_dma_prep_dma_cyclic()
829 sun6i_dma_set_addr(sdev, v_lli, in sun6i_dma_prep_dma_cyclic()
832 v_lli->cfg = lli_cfg; in sun6i_dma_prep_dma_cyclic()
833 sdev->cfg->set_drq(&v_lli->cfg, vchan->port, DRQ_SDRAM); in sun6i_dma_prep_dma_cyclic()
834 sdev->cfg->set_mode(&v_lli->cfg, IO_MODE, LINEAR_MODE); in sun6i_dma_prep_dma_cyclic()
837 prev = sun6i_dma_lli_add(prev, v_lli, p_lli, txd); in sun6i_dma_prep_dma_cyclic()
847 for (p_lli = txd->p_lli, v_lli = txd->v_lli; v_lli; in sun6i_dma_prep_dma_cyclic()
848 p_lli = v_lli->p_lli_next, v_lli = v_lli->v_lli_next) in sun6i_dma_prep_dma_cyclic()
849 dma_pool_free(sdev->pool, v_lli, p_lli); in sun6i_dma_prep_dma_cyclic()
975 for (lli = txd->v_lli; lli != NULL; lli = lli->v_lli_next) in sun6i_dma_tx_status()