Lines Matching defs:n_desc
585 u16 idx, inc, n_desc = 0, ntd_max = 0;
634 n_desc++;
661 if (n_desc > DESCNUM_THRESHOLD)
692 int n_desc)
694 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc];
715 qh->n_bytes[n_desc] = len;
725 (n_desc * sizeof(struct dwc2_dma_desc)),
746 int n_desc = 0;
761 if (n_desc) {
771 qtd->n_desc = 0;
773 if (n_desc > 1) {
774 qh->desc_list[n_desc - 1].status |= HOST_DMA_A;
777 n_desc - 1,
778 &qh->desc_list[n_desc - 1]);
781 ((n_desc - 1) *
786 dwc2_fill_host_dma_desc(hsotg, chan, qtd, qh, n_desc);
789 n_desc, &qh->desc_list[n_desc],
790 qh->desc_list[n_desc].buf,
791 qh->desc_list[n_desc].status);
792 qtd->n_desc++;
793 n_desc++;
795 n_desc != MAX_DMA_DESC_NUM_GENERIC);
797 dev_vdbg(hsotg->dev, "n_desc=%d\n", n_desc);
801 if (n_desc == MAX_DMA_DESC_NUM_GENERIC)
805 if (n_desc) {
806 qh->desc_list[n_desc - 1].status |=
809 n_desc - 1, &qh->desc_list[n_desc - 1]);
811 qh->desc_list_dma + (n_desc - 1) *
815 if (n_desc > 1) {
824 chan->ntd = n_desc;
1204 } else if (desc_num + 1 == qtd->n_desc) {
1244 qtd_desc_count = qtd->n_desc;