/linux/drivers/usb/gadget/udc/ |
H A D | udc-xilinx.c | 106 #define to_xusb_req(req) container_of((req), struct xusb_req, usb_req) 115 struct usb_request usb_req; member 384 src = req->usb_req.dma + req->usb_req.actual; in xudc_dma_send() 385 if (req->usb_req.length) in xudc_dma_send() 438 dst = req->usb_req.dma + req->usb_req.actual; in xudc_dma_receive() 557 if (req->usb_req.status == -EINPROGRESS) in xudc_done() 558 req->usb_req.status = status; in xudc_done() 560 status = req->usb_req.status; in xudc_done() 566 if (udc->dma_enabled && ep->epnumber && req->usb_req.length) in xudc_done() 567 usb_gadget_unmap_request(&udc->gadget, &req->usb_req, in xudc_done() [all …]
|
H A D | max3420_udc.c | 150 struct usb_request usb_req; member 185 #define to_max3420_req(r) container_of((r), struct max3420_req, usb_req) 671 if (req->usb_req.status == -EINPROGRESS) in max3420_req_done() 672 req->usb_req.status = status; in max3420_req_done() 674 status = req->usb_req.status; in max3420_req_done() 680 if (req->usb_req.complete) in max3420_req_done() 681 req->usb_req.complete(&ep->ep_usb, &req->usb_req); in max3420_req_done() 695 buf = req->usb_req.buf + req->usb_req.actual; in max3420_do_data() 698 length = req->usb_req.length - req->usb_req.actual; in max3420_do_data() 722 req->usb_req.actual += length; in max3420_do_data() [all …]
|
H A D | tegra-xudc.c | 382 struct usb_request usb_req; member 614 return container_of(req, struct tegra_xudc_request, usb_req); in to_xudc_req() 1038 if (likely(req->usb_req.status == -EINPROGRESS)) in tegra_xudc_req_done() 1039 req->usb_req.status = status; in tegra_xudc_req_done() 1044 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done() 1048 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done() 1053 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in tegra_xudc_req_done() 1088 len = min_t(size_t, XUDC_TRB_MAX_BUFFER_SIZE, req->usb_req.length - in tegra_xudc_queue_one_trb() 1091 buf_addr = req->usb_req.dma + req->buf_queued; in tegra_xudc_queue_one_trb() 1134 trb_write_stream_id(trb, req->usb_req.stream_id); in tegra_xudc_queue_one_trb() [all …]
|
/linux/drivers/usb/usbip/ |
H A D | vudc_sysfs.c | 25 struct vrequest *usb_req; in get_gadget_descs() local 47 usb_req = list_last_entry(&ep0->req_queue, struct vrequest, req_entry); in get_gadget_descs() 48 list_del(&usb_req->req_entry); in get_gadget_descs() 50 if (usb_req->req.length > sizeof(*ddesc)) { in get_gadget_descs() 55 memcpy(ddesc, usb_req->req.buf, sizeof(*ddesc)); in get_gadget_descs() 59 usb_req->req.status = 0; in get_gadget_descs() 60 usb_req->req.actual = usb_req->req.length; in get_gadget_descs() 61 usb_gadget_giveback_request(&(ep0->ep), &(usb_req->req)); in get_gadget_descs()
|
/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_ep.c | 199 if (req->usb_req.length == 0) in bd_needed_req() 203 remaining = req->usb_req.length % BD_MAX_BUFF_SIZE; in bd_needed_req() 208 remaining = req->usb_req.length / BD_MAX_BUFF_SIZE; in bd_needed_req() 390 req_len = req->usb_req.length; in setup_first_bd_ep0() 427 dma_addr_t buf_add = req->usb_req.dma; in setup_bd_list_xfr() 442 req_len = req->usb_req.length; in setup_bd_list_xfr() 444 tfs = roundup(req->usb_req.length, maxp); in setup_bd_list_xfr() 548 req->usb_req.status = status; in bdc_req_complete() 549 usb_gadget_unmap_request(&bdc->gadget, &req->usb_req, ep->dir); in bdc_req_complete() 550 if (req->usb_req.complete) { in bdc_req_complete() [all …]
|
H A D | bdc.h | 263 #define to_bdc_req(r) container_of(r, struct bdc_req, usb_req) 334 struct usb_request usb_req; member
|
/linux/drivers/net/wireless/purelifi/plfxlc/ |
H A D | usb.c | 446 struct plf_usb_req *usb_req) in get_usb_req() argument 450 u8 *buffer_dst = usb_req->buf; in get_usb_req() 453 usb_req->id = cpu_to_be32(usb_req_id); in get_usb_req() 454 usb_req->len = cpu_to_be32(0); in get_usb_req() 459 if (usb_req->id == cpu_to_be32(USB_REQ_BEACON_WR)) { in get_usb_req() 487 usb_req->len = cpu_to_be32(temp_usb_len); in get_usb_req() 517 struct plf_usb_req usb_req; in plfxlc_usb_wreq() local 522 get_usb_req(udev, buffer, buffer_len, usb_req_id, &usb_req); in plfxlc_usb_wreq() 524 be32_to_cpu(usb_req.len); in plfxlc_usb_wreq() 526 dma_buffer = kmemdup(&usb_req, usb_bulk_msg_len, GFP_KERNEL); in plfxlc_usb_wreq()
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | af9035.c | 32 static int af9035_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req) in af9035_ctrl_msg() 119 struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL }; in af9035_wr_regs() 142 struct usb_req req = { CMD_MEM_RD, mbox, sizeof(wbuf), wbuf, len, val }; in af9035_rd_regs() 344 struct usb_req req = { CMD_I2C_RD, 0, 5 + msg[0].len, in af9035_i2c_master_xfer() 403 struct usb_req req = { CMD_I2C_WR, 0, 5 + msg[0].len, in af9035_i2c_master_xfer() 436 struct usb_req req = { CMD_I2C_RD, 0, sizeof(buf), in af9035_i2c_master_xfer() 494 struct usb_req req = { CMD_FW_QUERYINFO, 0, sizeof(wbuf), wbuf, in af9035_identify_state() 602 struct usb_req req = { 0, 0, 0, NULL, 0, NULL }; in af9035_download_firmware_old() 603 struct usb_req req_fw_dl = { CMD_FW_DL, 0, 0, wbuf, 0, NULL }; in af9035_download_firmware_old() 686 struct usb_req req_fw_dl = { CMD_FW_SCATTER_WR, 0, 0, NULL, 0, NULL }; in af9035_download_firmware_new() [all …]
|
H A D | ce6230.h | 17 struct usb_req { struct
|
H A D | ce6230.c | 12 static int ce6230_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req) in ce6230_ctrl_msg() 90 struct usb_req req; in ce6230_i2c_master_xfer()
|
H A D | af9035.h | 36 struct usb_req { struct
|
/linux/drivers/usb/gadget/function/ |
H A D | f_fs.c | 1589 struct usb_request *usb_req; in ffs_dmabuf_transfer() local 1661 usb_req = usb_ep_alloc_request(ep->ep, GFP_ATOMIC); in ffs_dmabuf_transfer() 1662 if (!usb_req) { in ffs_dmabuf_transfer() 1684 usb_req->length = req->length; in ffs_dmabuf_transfer() 1685 usb_req->buf = NULL; in ffs_dmabuf_transfer() 1686 usb_req->sg = priv->sgt->sgl; in ffs_dmabuf_transfer() 1687 usb_req->num_sgs = sg_nents_for_len(priv->sgt->sgl, req->length); in ffs_dmabuf_transfer() 1688 usb_req->sg_was_mapped = true; in ffs_dmabuf_transfer() 1689 usb_req->context = fence; in ffs_dmabuf_transfer() 1690 usb_req->complete = ffs_epfile_dmabuf_io_complete; in ffs_dmabuf_transfer() [all …]
|
/linux/sound/usb/ |
H A D | mixer_quirks.c | 2569 u16 usb_req, usb_idx, usb_val; in snd_bbfpro_ctl_update() local 2577 usb_req = SND_BBFPRO_USBREQ_CTL_REG1; in snd_bbfpro_ctl_update() 2586 usb_req = SND_BBFPRO_USBREQ_CTL_REG2; in snd_bbfpro_ctl_update() 2592 usb_sndctrlpipe(chip->dev, 0), usb_req, in snd_bbfpro_ctl_update()
|
H A D | mixer_scarlett2.c | 2314 u32 usb_req, void *buf, u16 size) in scarlett2_usb_rx() argument 2317 usb_req, in scarlett2_usb_rx()
|