Lines Matching refs:hs_req

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