Lines Matching refs:dma_desc
516 struct dwc2_dma_desc *dma_desc = &qh->desc_list[idx]; in dwc2_fill_host_isoc_dma_desc() local
519 memset(dma_desc, 0, sizeof(*dma_desc)); in dwc2_fill_host_isoc_dma_desc()
527 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc()
528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc()
532 dma_desc->status |= HOST_DMA_A; in dwc2_fill_host_isoc_dma_desc()
540 dma_desc->status |= HOST_DMA_IOC; in dwc2_fill_host_isoc_dma_desc()
664 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; in dwc2_fill_host_dma_desc() local
684 dma_desc->status = len << HOST_DMA_NBYTES_SHIFT & HOST_DMA_NBYTES_MASK; in dwc2_fill_host_dma_desc()
689 dma_desc->status |= HOST_DMA_SUP; in dwc2_fill_host_dma_desc()
691 dma_desc->buf = (u32)chan->xfer_dma; in dwc2_fill_host_dma_desc()
867 struct dwc2_dma_desc *dma_desc; in dwc2_cmpl_host_isoc_dma_desc() local
880 dma_desc = &qh->desc_list[idx]; in dwc2_cmpl_host_isoc_dma_desc()
883 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_cmpl_host_isoc_dma_desc()
885 remain = (dma_desc->status & HOST_DMA_ISOC_NBYTES_MASK) >> in dwc2_cmpl_host_isoc_dma_desc()
888 if ((dma_desc->status & HOST_DMA_STS_MASK) == HOST_DMA_STS_PKTERR) { in dwc2_cmpl_host_isoc_dma_desc()
925 if (dma_desc->status & HOST_DMA_IOC) in dwc2_cmpl_host_isoc_dma_desc()
1040 struct dwc2_dma_desc *dma_desc, in dwc2_update_non_isoc_urb_state_ddma() argument
1048 remain = (dma_desc->status & HOST_DMA_NBYTES_MASK) >> in dwc2_update_non_isoc_urb_state_ddma()
1059 if ((dma_desc->status & HOST_DMA_STS_MASK) == HOST_DMA_STS_PKTERR) { in dwc2_update_non_isoc_urb_state_ddma()
1082 if (dma_desc->status & HOST_DMA_A) { in dwc2_update_non_isoc_urb_state_ddma()
1128 struct dwc2_dma_desc *dma_desc; in dwc2_process_non_isoc_desc() local
1143 dma_desc = &qh->desc_list[desc_num]; in dwc2_process_non_isoc_desc()
1147 qtd, urb, desc_num, dma_desc, n_bytes); in dwc2_process_non_isoc_desc()
1148 failed = dwc2_update_non_isoc_urb_state_ddma(hsotg, chan, qtd, dma_desc, in dwc2_process_non_isoc_desc()