uchan 343 drivers/dma/sh/usb-dmac.c static void usb_dmac_soft_reset(struct usb_dmac_chan *uchan) uchan 345 drivers/dma/sh/usb-dmac.c struct dma_chan *chan = &uchan->vc.chan; uchan 351 drivers/dma/sh/usb-dmac.c if (usb_dmac_chan_is_busy(uchan)) uchan 383 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 386 drivers/dma/sh/usb-dmac.c while (uchan->descs_allocated < USB_DMAC_INITIAL_NR_DESC) { uchan 387 drivers/dma/sh/usb-dmac.c ret = usb_dmac_desc_alloc(uchan, USB_DMAC_INITIAL_NR_SG, uchan 390 drivers/dma/sh/usb-dmac.c usb_dmac_desc_free(uchan); uchan 393 drivers/dma/sh/usb-dmac.c uchan->descs_allocated++; uchan 401 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 405 drivers/dma/sh/usb-dmac.c spin_lock_irqsave(&uchan->vc.lock, flags); uchan 406 drivers/dma/sh/usb-dmac.c usb_dmac_chan_halt(uchan); uchan 407 drivers/dma/sh/usb-dmac.c spin_unlock_irqrestore(&uchan->vc.lock, flags); uchan 409 drivers/dma/sh/usb-dmac.c usb_dmac_desc_free(uchan); uchan 410 drivers/dma/sh/usb-dmac.c vchan_free_chan_resources(&uchan->vc); uchan 420 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 431 drivers/dma/sh/usb-dmac.c desc = usb_dmac_desc_get(uchan, sg_len, GFP_NOWAIT); uchan 442 drivers/dma/sh/usb-dmac.c return vchan_tx_prep(&uchan->vc, &desc->vd, dma_flags); uchan 447 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 453 drivers/dma/sh/usb-dmac.c spin_lock_irqsave(&uchan->vc.lock, flags); uchan 454 drivers/dma/sh/usb-dmac.c usb_dmac_chan_halt(uchan); uchan 455 drivers/dma/sh/usb-dmac.c vchan_get_all_descriptors(&uchan->vc, &head); uchan 456 drivers/dma/sh/usb-dmac.c if (uchan->desc) uchan 457 drivers/dma/sh/usb-dmac.c uchan->desc = NULL; uchan 458 drivers/dma/sh/usb-dmac.c list_splice_init(&uchan->desc_got, &list); uchan 460 drivers/dma/sh/usb-dmac.c list_move_tail(&desc->node, &uchan->desc_freed); uchan 461 drivers/dma/sh/usb-dmac.c spin_unlock_irqrestore(&uchan->vc.lock, flags); uchan 462 drivers/dma/sh/usb-dmac.c vchan_dma_desc_free_list(&uchan->vc, &head); uchan 532 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 542 drivers/dma/sh/usb-dmac.c spin_lock_irqsave(&uchan->vc.lock, flags); uchan 544 drivers/dma/sh/usb-dmac.c residue = usb_dmac_chan_get_residue_if_complete(uchan, cookie); uchan 546 drivers/dma/sh/usb-dmac.c residue = usb_dmac_chan_get_residue(uchan, cookie); uchan 547 drivers/dma/sh/usb-dmac.c spin_unlock_irqrestore(&uchan->vc.lock, flags); uchan 556 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 559 drivers/dma/sh/usb-dmac.c spin_lock_irqsave(&uchan->vc.lock, flags); uchan 560 drivers/dma/sh/usb-dmac.c if (vchan_issue_pending(&uchan->vc) && !uchan->desc) uchan 561 drivers/dma/sh/usb-dmac.c usb_dmac_chan_start_desc(uchan); uchan 562 drivers/dma/sh/usb-dmac.c spin_unlock_irqrestore(&uchan->vc.lock, flags); uchan 636 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan = to_usb_dmac_chan(chan); uchan 640 drivers/dma/sh/usb-dmac.c if (uchan->index != dma_spec->args[0]) uchan 706 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan, uchan 714 drivers/dma/sh/usb-dmac.c uchan->index = index; uchan 715 drivers/dma/sh/usb-dmac.c uchan->iomem = dmac->iomem + USB_DMAC_CHAN_OFFSET(index); uchan 719 drivers/dma/sh/usb-dmac.c uchan->irq = platform_get_irq_byname(pdev, pdev_irqname); uchan 720 drivers/dma/sh/usb-dmac.c if (uchan->irq < 0) uchan 728 drivers/dma/sh/usb-dmac.c ret = devm_request_irq(dmac->dev, uchan->irq, usb_dmac_isr_channel, uchan 729 drivers/dma/sh/usb-dmac.c IRQF_SHARED, irqname, uchan); uchan 732 drivers/dma/sh/usb-dmac.c uchan->irq, ret); uchan 736 drivers/dma/sh/usb-dmac.c uchan->vc.desc_free = usb_dmac_virt_desc_free; uchan 737 drivers/dma/sh/usb-dmac.c vchan_init(&uchan->vc, &dmac->engine); uchan 738 drivers/dma/sh/usb-dmac.c INIT_LIST_HEAD(&uchan->desc_freed); uchan 739 drivers/dma/sh/usb-dmac.c INIT_LIST_HEAD(&uchan->desc_got); uchan 863 drivers/dma/sh/usb-dmac.c struct usb_dmac_chan *uchan) uchan 865 drivers/dma/sh/usb-dmac.c usb_dmac_chan_halt(uchan); uchan 866 drivers/dma/sh/usb-dmac.c devm_free_irq(dmac->dev, uchan->irq, uchan);