/linux-2.6.39/drivers/usb/gadget/ |
D | dummy_hcd.c | 99 (struct usb_request *_req) in usb_request_to_dummy_request() argument 101 return container_of (_req, struct dummy_request, req); in usb_request_to_dummy_request() 484 dummy_free_request (struct usb_ep *_ep, struct usb_request *_req) in dummy_free_request() argument 490 if (!ep || !_req || (!ep->desc && _ep->name != ep0name)) in dummy_free_request() 493 req = usb_request_to_dummy_request (_req); in dummy_free_request() 504 dummy_queue (struct usb_ep *_ep, struct usb_request *_req, in dummy_queue() argument 512 req = usb_request_to_dummy_request (_req); in dummy_queue() 513 if (!_req || !list_empty (&req->queue) || !_req->complete) in dummy_queue() 526 ep, _req, _ep->name, _req->length, _req->buf); in dummy_queue() 529 _req->status = -EINPROGRESS; in dummy_queue() [all …]
|
D | s3c2410_udc.c | 1200 s3c2410_udc_free_request(struct usb_ep *_ep, struct usb_request *_req) in s3c2410_udc_free_request() argument 1203 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_free_request() 1205 dprintk(DEBUG_VERBOSE, "%s(%p,%p)\n", __func__, _ep, _req); in s3c2410_udc_free_request() 1207 if (!ep || !_req || (!ep->desc && _ep->name != ep0name)) in s3c2410_udc_free_request() 1217 static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c2410_udc_queue() argument 1220 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_queue() 1240 if (unlikely(!_req || !_req->complete in s3c2410_udc_queue() 1241 || !_req->buf || !list_empty(&req->queue))) { in s3c2410_udc_queue() 1242 if (!_req) in s3c2410_udc_queue() 1246 __func__, !_req->complete,!_req->buf, in s3c2410_udc_queue() [all …]
|
D | goku_udc.c | 284 goku_free_request(struct usb_ep *_ep, struct usb_request *_req) in goku_free_request() argument 288 if (!_ep || !_req) in goku_free_request() 291 req = container_of(_req, struct goku_request, req); in goku_free_request() 713 goku_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in goku_queue() argument 722 req = container_of(_req, struct goku_request, req); in goku_queue() 723 if (unlikely(!_req || !_req->complete in goku_queue() 724 || !_req->buf || !list_empty(&req->queue))) in goku_queue() 738 if (ep->dma && _req->dma == DMA_ADDR_INVALID) { in goku_queue() 739 _req->dma = pci_map_single(dev->pdev, _req->buf, _req->length, in goku_queue() 746 _ep->name, _req, _req->length, _req->buf); in goku_queue() [all …]
|
D | net2280.c | 436 net2280_free_request (struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument 442 if (!_ep || !_req) in net2280_free_request() 445 req = container_of (_req, struct net2280_request, req); in net2280_free_request() 840 net2280_queue (struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument 850 req = container_of (_req, struct net2280_request, req); in net2280_queue() 851 if (!_req || !_req->complete || !_req->buf in net2280_queue() 854 if (_req->length > (~0 & DMA_BYTE_COUNT_MASK)) in net2280_queue() 864 if (ep->dma && _req->length == 0) in net2280_queue() 868 if (ep->dma && _req->dma == DMA_ADDR_INVALID) { in net2280_queue() 869 _req->dma = pci_map_single (dev->pdev, _req->buf, _req->length, in net2280_queue() [all …]
|
D | langwell_udc.c | 549 struct usb_request *_req) in langwell_free_request() argument 559 if (!_ep || !_req) in langwell_free_request() 562 req = container_of(_req, struct langwell_request, req); in langwell_free_request() 565 if (_req) in langwell_free_request() 763 static int langwell_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in langwell_ep_queue() argument 773 req = container_of(_req, struct langwell_request, req); in langwell_ep_queue() 776 if (!_req || !_req->complete || !_req->buf in langwell_ep_queue() 798 if (_req->dma == DMA_ADDR_INVALID) { in langwell_ep_queue() 800 if (_req->length == 0) { in langwell_ep_queue() 803 _req->length++; in langwell_ep_queue() [all …]
|
D | pxa25x_udc.c | 331 pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_free_request() argument 335 req = container_of (_req, struct pxa25x_request, req); in pxa25x_ep_free_request() 642 pxa25x_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in pxa25x_ep_queue() argument 649 req = container_of(_req, struct pxa25x_request, req); in pxa25x_ep_queue() 650 if (unlikely (!_req || !_req->complete || !_req->buf in pxa25x_ep_queue() 678 _ep->name, _req, _req->length, _req->buf); in pxa25x_ep_queue() 682 _req->status = -EINPROGRESS; in pxa25x_ep_queue() 683 _req->actual = 0; in pxa25x_ep_queue() 688 unsigned length = _req->length; in pxa25x_ep_queue() 769 static int pxa25x_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_dequeue() argument [all …]
|
D | pxa27x_udc.c | 686 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument 690 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_free_request() 1137 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument 1150 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_queue() 1153 if (unlikely(!_req || !_req->complete || !_req->buf)) in pxa_ep_queue() 1182 _req, is_first_req ? "yes" : "no", in pxa_ep_queue() 1183 _req->length, _req->buf); in pxa_ep_queue() 1186 _req->status = -ESHUTDOWN; in pxa_ep_queue() 1196 length = _req->length; in pxa_ep_queue() 1197 _req->status = -EINPROGRESS; in pxa_ep_queue() [all …]
|
D | at91_udc.c | 600 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument 604 req = container_of(_req, struct at91_request, req); in at91_ep_free_request() 610 struct usb_request *_req, gfp_t gfp_flags) in at91_ep_queue() argument 618 req = container_of(_req, struct at91_request, req); in at91_ep_queue() 621 if (!_req || !_req->complete in at91_ep_queue() 622 || !_req->buf || !list_empty(&req->queue)) { in at91_ep_queue() 639 _req->status = -EINPROGRESS; in at91_ep_queue() 640 _req->actual = 0; in at91_ep_queue() 709 static int at91_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_dequeue() argument 726 if (&req->req == _req) in at91_ep_dequeue() [all …]
|
D | mv_udc_core.c | 644 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument 648 req = container_of(_req, struct mv_req, req); in mv_free_request() 650 if (_req) in mv_free_request() 725 mv_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_ep_queue() argument 728 struct mv_req *req = container_of(_req, struct mv_req, req); in mv_ep_queue() 733 if (!_req || !req->req.complete || !req->req.buf in mv_ep_queue() 802 static int mv_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_ep_dequeue() argument 811 if (!_ep || !_req) in mv_ep_dequeue() 828 if (&req->req == _req) in mv_ep_dequeue() 831 if (&req->req != _req) { in mv_ep_dequeue() [all …]
|
D | fsl_qe_udc.c | 1693 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument 1697 req = container_of(_req, struct qe_req, req); in qe_free_request() 1699 if (_req) in qe_free_request() 1703 static int __qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req) in __qe_ep_queue() argument 1706 struct qe_req *req = container_of(_req, struct qe_req, req); in __qe_ep_queue() 1712 if (!_req || !req->req.complete || !req->req.buf in __qe_ep_queue() 1771 static int qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in qe_ep_queue() argument 1780 ret = __qe_ep_queue(_ep, _req); in qe_ep_queue() 1786 static int qe_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in qe_ep_dequeue() argument 1792 if (!_ep || !_req) in qe_ep_dequeue() [all …]
|
D | fsl_udc_core.c | 589 static void fsl_free_request(struct usb_ep *_ep, struct usb_request *_req) in fsl_free_request() argument 593 req = container_of(_req, struct fsl_req, req); in fsl_free_request() 595 if (_req) in fsl_free_request() 763 fsl_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in fsl_ep_queue() argument 766 struct fsl_req *req = container_of(_req, struct fsl_req, req); in fsl_ep_queue() 771 if (!_req || !req->req.complete || !req->req.buf in fsl_ep_queue() 835 static int fsl_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fsl_ep_dequeue() argument 843 if (!_ep || !_req) in fsl_ep_dequeue() 861 if (&req->req == _req) in fsl_ep_dequeue() 864 if (&req->req != _req) { in fsl_ep_dequeue() [all …]
|
D | omap_udc.c | 292 omap_free_request(struct usb_ep *ep, struct usb_request *_req) in omap_free_request() argument 294 struct omap_req *req = container_of(_req, struct omap_req, req); in omap_free_request() 296 if (_req) in omap_free_request() 915 omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in omap_ep_queue() argument 918 struct omap_req *req = container_of(_req, struct omap_req, req); in omap_ep_queue() 924 if (!_req || !req->req.complete || !req->req.buf in omap_ep_queue() 979 ep->ep.name, _req, _req->length, _req->buf); in omap_ep_queue() 1072 static int omap_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in omap_ep_dequeue() argument 1078 if (!_ep || !_req) in omap_ep_dequeue() 1085 if (&req->req == _req) in omap_ep_dequeue() [all …]
|
D | atmel_usba_udc.c | 699 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument 701 struct usba_request *req = to_usba_req(_req); in usba_ep_free_request() 703 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request() 767 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument 769 struct usba_request *req = to_usba_req(_req); in usba_ep_queue() 776 ep->ep.name, req, _req->length); in usba_ep_queue() 785 _req->status = -EINPROGRESS; in usba_ep_queue() 786 _req->actual = 0; in usba_ep_queue() 849 static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_dequeue() argument 853 struct usba_request *req = to_usba_req(_req); in usba_ep_dequeue()
|
D | r8a66597-udc.c | 50 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, 1275 static void r8a66597_free_request(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_free_request() argument 1279 req = container_of(_req, struct r8a66597_request, req); in r8a66597_free_request() 1283 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, in r8a66597_queue() argument 1292 req = container_of(_req, struct r8a66597_request, req); in r8a66597_queue() 1318 static int r8a66597_dequeue(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_dequeue() argument 1325 req = container_of(_req, struct r8a66597_request, req); in r8a66597_dequeue()
|
D | m66592-udc.c | 50 static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req, 1338 static void m66592_free_request(struct usb_ep *_ep, struct usb_request *_req) in m66592_free_request() argument 1342 req = container_of(_req, struct m66592_request, req); in m66592_free_request() 1346 static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req, in m66592_queue() argument 1355 req = container_of(_req, struct m66592_request, req); in m66592_queue() 1381 static int m66592_dequeue(struct usb_ep *_ep, struct usb_request *_req) in m66592_dequeue() argument 1388 req = container_of(_req, struct m66592_request, req); in m66592_dequeue()
|
D | fusb300_udc.c | 293 static void fusb300_free_request(struct usb_ep *_ep, struct usb_request *_req) in fusb300_free_request() argument 297 req = container_of(_req, struct fusb300_request, req); in fusb300_free_request() 431 static int fusb300_queue(struct usb_ep *_ep, struct usb_request *_req, in fusb300_queue() argument 440 req = container_of(_req, struct fusb300_request, req); in fusb300_queue() 465 static int fusb300_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fusb300_dequeue() argument 472 req = container_of(_req, struct fusb300_request, req); in fusb300_dequeue()
|
D | amd5536udc.c | 614 struct usb_request *_req = NULL; in udc_alloc_bna_dummy() local 617 _req = udc_alloc_request(&ep->ep, GFP_ATOMIC); in udc_alloc_bna_dummy() 618 if (_req) { in udc_alloc_bna_dummy() 619 req = container_of(_req, struct udc_request, req); in udc_alloc_bna_dummy()
|
/linux-2.6.39/drivers/scsi/ |
D | hptiop.c | 234 void __iomem *_req, u32 millisec) in iop_send_sync_request_itl() argument 236 struct hpt_iop_request_header __iomem *req = _req; in iop_send_sync_request_itl() 704 struct hptiop_request *_req) in hptiop_post_req_itl() argument 706 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_itl() 709 (u32)_req->index); in hptiop_post_req_itl() 723 writel(_req->req_shifted_phy | size_bits, in hptiop_post_req_itl() 726 writel(_req->req_shifted_phy | IOPMU_QUEUE_ADDR_HOST_BIT, in hptiop_post_req_itl() 731 struct hptiop_request *_req) in hptiop_post_req_mv() argument 733 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_mv() 736 reqhdr->context = cpu_to_le32(_req->index<<8 | in hptiop_post_req_mv() [all …]
|
D | hptiop.h | 299 void (*post_req)(struct hptiop_hba *hba, struct hptiop_request *_req);
|
/linux-2.6.39/drivers/staging/westbridge/astoria/gadget/ |
D | cyasgadget.c | 709 struct usb_request *_req in cyasgadget_free_request() argument 714 if (!_ep || !_req) in cyasgadget_free_request() 717 an_req = container_of(_req, cyasgadget_req, req); in cyasgadget_free_request() 726 struct usb_request *_req, in cyasgadget_queue() argument 736 as_req = container_of(_req, cyasgadget_req, req); in cyasgadget_queue() 737 if (!_req || !_req->complete || !_req->buf in cyasgadget_queue() 753 _req->status = -EINPROGRESS; in cyasgadget_queue() 754 _req->actual = 0; in cyasgadget_queue() 767 as_ep->num, _req->length, _req->buf, in cyasgadget_queue() 774 _req->status = -EALREADY; in cyasgadget_queue() [all …]
|
/linux-2.6.39/arch/arm/mach-tegra/ |
D | dma.c | 198 struct tegra_dma_req *_req) in tegra_dma_dequeue_req() argument 210 if (req == _req) { in tegra_dma_dequeue_req() 295 struct tegra_dma_req *_req) in tegra_dma_is_req_inflight() argument 302 if (req == _req) { in tegra_dma_is_req_inflight() 316 struct tegra_dma_req *_req; in tegra_dma_enqueue_req() local 327 list_for_each_entry(_req, &ch->list, node) { in tegra_dma_enqueue_req() 328 if (req == _req) { in tegra_dma_enqueue_req()
|