Lines Matching defs:hs_req
411 * @hs_req: The request being processed.
418 struct s3c_hsotg_req *hs_req)
420 struct usb_request *req = &hs_req->req;
426 if (hs_req->req.length == 0)
429 if (hs_req->mapped) {
435 hs_req->mapped = 0;
445 * @hs_req: The request to write data for.
459 struct s3c_hsotg_req *hs_req)
463 int buf_pos = hs_req->req.actual;
579 to_write, hs_req->req.length, can_write, buf_pos);
584 hs_req->req.actual = buf_pos + to_write;
591 data = hs_req->req.buf + buf_pos;
640 * @hs_req: The request to start.
648 struct s3c_hsotg_req *hs_req,
651 struct usb_request *ureq = &hs_req->req;
667 } else if (hs_ep->req != hs_req && continuing) {
729 hs_ep->req = hs_req;
776 s3c_hsotg_write_fifo(hsotg, hs_ep, hs_req);
815 struct s3c_hsotg_req *hs_req = our_req(req);
820 if (hs_req->req.length == 0)
839 hs_req->mapped = 1;
843 hs_req->mapped = 0;
858 struct s3c_hsotg_req *hs_req = our_req(req);
869 INIT_LIST_HEAD(&hs_req->queue);
883 list_add_tail(&hs_req->queue, &hs_ep->queue);
886 s3c_hsotg_start_req(hs, hs_ep, hs_req, false);
896 struct s3c_hsotg_req *hs_req = our_req(req);
898 kfree(hs_req);
1224 struct s3c_hsotg_req *hs_req = our_req(req);
1234 if (!list_empty(&hs_req->queue)) {
1267 * @hs_req: The request to complete.
1278 struct s3c_hsotg_req *hs_req,
1283 if (!hs_req) {
1289 hs_ep, hs_ep->ep.name, hs_req, result, hs_req->req.complete);
1294 if (hs_req->req.status == -EINPROGRESS)
1295 hs_req->req.status = result;
1298 list_del_init(&hs_req->queue);
1301 s3c_hsotg_unmap_dma(hsotg, hs_ep, hs_req);
1306 if (hs_req->req.complete) {
1308 hs_req->req.complete(&hs_ep->ep, &hs_req->req);
1319 hs_req = get_ep_head(hs_ep);
1320 s3c_hsotg_start_req(hsotg, hs_ep, hs_req, false);
1329 * @hs_req: The request to complete.
1337 struct s3c_hsotg_req *hs_req,
1343 s3c_hsotg_complete_request(hsotg, hs_ep, hs_req, result);
1360 struct s3c_hsotg_req *hs_req = hs_ep->req;
1366 if (!hs_req) {
1384 read_ptr = hs_req->req.actual;
1385 max_req = hs_req->req.length - read_ptr;
1388 __func__, to_read, max_req, read_ptr, hs_req->req.length);
1400 hs_req->req.actual += to_read;
1405 readsl(fifo, hs_req->req.buf + read_ptr, to_read);
1469 struct s3c_hsotg_req *hs_req = hs_ep->req;
1470 struct usb_request *req = &hs_req->req;
1474 if (!hs_req) {
1498 s3c_hsotg_start_req(hsotg, hs_ep, hs_req, true);
1512 s3c_hsotg_send_zlp(hsotg, hs_req);
1515 s3c_hsotg_complete_request_lock(hsotg, hs_ep, hs_req, result);
1698 struct s3c_hsotg_req *hs_req = hs_ep->req;
1700 if (!hs_ep->dir_in || !hs_req)
1703 if (hs_req->req.actual < hs_req->req.length) {
1706 return s3c_hsotg_write_fifo(hsotg, hs_ep, hs_req);
1723 struct s3c_hsotg_req *hs_req = hs_ep->req;
1727 if (!hs_req) {
1746 if (hs_req->req.actual != size_done)
1748 __func__, hs_req->req.actual, size_done);
1750 hs_req->req.actual = size_done;
1755 if (!size_left && hs_req->req.actual < hs_req->req.length) {
1757 s3c_hsotg_start_req(hsotg, hs_ep, hs_req, true);
1759 s3c_hsotg_complete_request_lock(hsotg, hs_ep, hs_req, 0);
2399 struct s3c_hsotg_req *hs_req = our_req(req);
2406 if (hs_req == hs_ep->req) {
2413 if (!on_list(hs_ep, hs_req)) {
2418 s3c_hsotg_complete_request(hs, hs_ep, hs_req, -ECONNRESET);