priv_req          298 drivers/usb/cdns3/gadget.c void cdns3_move_deq_to_next_trb(struct cdns3_request *priv_req)
priv_req          300 drivers/usb/cdns3/gadget.c 	struct cdns3_endpoint *priv_ep = priv_req->priv_ep;
priv_req          301 drivers/usb/cdns3/gadget.c 	int current_trb = priv_req->start_trb;
priv_req          303 drivers/usb/cdns3/gadget.c 	while (current_trb != priv_req->end_trb) {
priv_req          440 drivers/usb/cdns3/gadget.c 					      struct cdns3_request *priv_req)
priv_req          443 drivers/usb/cdns3/gadget.c 	    priv_req->flags & REQUEST_INTERNAL) {
priv_req          468 drivers/usb/cdns3/gadget.c 	return &priv_req->request;
priv_req          473 drivers/usb/cdns3/gadget.c 			      struct cdns3_request *priv_req)
priv_req          503 drivers/usb/cdns3/gadget.c 		    !(priv_req->flags & REQUEST_INTERNAL)) {
priv_req          505 drivers/usb/cdns3/gadget.c 						     &priv_req->request);
priv_req          509 drivers/usb/cdns3/gadget.c 			list_add_tail(&priv_req->request.list,
priv_req          511 drivers/usb/cdns3/gadget.c 			cdns3_gadget_giveback(priv_ep, priv_req,
priv_req          512 drivers/usb/cdns3/gadget.c 					      priv_req->request.status);
priv_req          531 drivers/usb/cdns3/gadget.c 		if (priv_req->flags & REQUEST_INTERNAL)
priv_req          532 drivers/usb/cdns3/gadget.c 			list_add_tail(&priv_req->list,
priv_req          541 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req          546 drivers/usb/cdns3/gadget.c 		priv_req = cdns3_next_priv_request(&priv_ep->wa2_descmiss_req_list);
priv_req          547 drivers/usb/cdns3/gadget.c 		chain = !!(priv_req->flags & REQUEST_INTERNAL_CH);
priv_req          551 drivers/usb/cdns3/gadget.c 		kfree(priv_req->request.buf);
priv_req          553 drivers/usb/cdns3/gadget.c 					     &priv_req->request);
priv_req          554 drivers/usb/cdns3/gadget.c 		list_del_init(&priv_req->list);
priv_req          571 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req          589 drivers/usb/cdns3/gadget.c 	priv_req = to_cdns3_request(request);
priv_req          590 drivers/usb/cdns3/gadget.c 	priv_req->flags |= REQUEST_INTERNAL;
priv_req          601 drivers/usb/cdns3/gadget.c 	priv_req->request.buf = kzalloc(CDNS3_DESCMIS_BUF_SIZE,
priv_req          605 drivers/usb/cdns3/gadget.c 	if (!priv_req->request.buf) {
priv_req          610 drivers/usb/cdns3/gadget.c 	priv_req->request.length = CDNS3_DESCMIS_BUF_SIZE;
priv_req          611 drivers/usb/cdns3/gadget.c 	priv_ep->descmis_req = priv_req;
priv_req          635 drivers/usb/cdns3/gadget.c 			   struct cdns3_request *priv_req,
priv_req          639 drivers/usb/cdns3/gadget.c 	struct usb_request *request = &priv_req->request;
priv_req          649 drivers/usb/cdns3/gadget.c 	if ((priv_req->flags & REQUEST_UNALIGNED) &&
priv_req          651 drivers/usb/cdns3/gadget.c 		memcpy(request->buf, priv_req->aligned_buf->buf,
priv_req          654 drivers/usb/cdns3/gadget.c 	priv_req->flags &= ~(REQUEST_PENDING | REQUEST_UNALIGNED);
priv_req          655 drivers/usb/cdns3/gadget.c 	trace_cdns3_gadget_giveback(priv_req);
priv_req          659 drivers/usb/cdns3/gadget.c 						    priv_req);
priv_req          722 drivers/usb/cdns3/gadget.c static int cdns3_prepare_aligned_request_buf(struct cdns3_request *priv_req)
priv_req          724 drivers/usb/cdns3/gadget.c 	struct cdns3_endpoint *priv_ep = priv_req->priv_ep;
priv_req          729 drivers/usb/cdns3/gadget.c 	if (!((uintptr_t)priv_req->request.buf & 0x7))
priv_req          732 drivers/usb/cdns3/gadget.c 	buf = priv_req->aligned_buf;
priv_req          734 drivers/usb/cdns3/gadget.c 	if (!buf || priv_req->request.length > buf->size) {
priv_req          739 drivers/usb/cdns3/gadget.c 		buf->size = priv_req->request.length;
priv_req          750 drivers/usb/cdns3/gadget.c 		if (priv_req->aligned_buf) {
priv_req          751 drivers/usb/cdns3/gadget.c 			trace_cdns3_free_aligned_request(priv_req);
priv_req          752 drivers/usb/cdns3/gadget.c 			priv_req->aligned_buf->in_use = 0;
priv_req          758 drivers/usb/cdns3/gadget.c 		priv_req->aligned_buf = buf;
priv_req          765 drivers/usb/cdns3/gadget.c 		memcpy(buf->buf, priv_req->request.buf,
priv_req          766 drivers/usb/cdns3/gadget.c 		       priv_req->request.length);
priv_req          769 drivers/usb/cdns3/gadget.c 	priv_req->flags |= REQUEST_UNALIGNED;
priv_req          770 drivers/usb/cdns3/gadget.c 	trace_cdns3_prepare_aligned_request(priv_req);
priv_req          820 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req          840 drivers/usb/cdns3/gadget.c 	priv_req = to_cdns3_request(request);
priv_req          846 drivers/usb/cdns3/gadget.c 	if (priv_req->flags & REQUEST_UNALIGNED)
priv_req          847 drivers/usb/cdns3/gadget.c 		trb_dma = priv_req->aligned_buf->dma;
priv_req          852 drivers/usb/cdns3/gadget.c 	priv_req->start_trb = priv_ep->enqueue;
priv_req          853 drivers/usb/cdns3/gadget.c 	priv_req->trb = trb;
priv_req          941 drivers/usb/cdns3/gadget.c 			priv_req->trb->control = control;
priv_req          945 drivers/usb/cdns3/gadget.c 		priv_req->end_trb = priv_ep->enqueue;
priv_req          950 drivers/usb/cdns3/gadget.c 	trb = priv_req->trb;
priv_req          952 drivers/usb/cdns3/gadget.c 	priv_req->flags |= REQUEST_PENDING;
priv_req          969 drivers/usb/cdns3/gadget.c 	trace_cdns3_prepare_trb(priv_ep, priv_req->trb);
priv_req          995 drivers/usb/cdns3/gadget.c 					priv_req->start_trb * TRB_SIZE),
priv_req         1089 drivers/usb/cdns3/gadget.c 				  struct cdns3_request *priv_req)
priv_req         1092 drivers/usb/cdns3/gadget.c 	struct cdns3_trb *trb = priv_req->trb;
priv_req         1100 drivers/usb/cdns3/gadget.c 	trb = &priv_ep->trb_pool[priv_req->start_trb];
priv_req         1122 drivers/usb/cdns3/gadget.c 		if (priv_req->end_trb >= priv_ep->dequeue &&
priv_req         1123 drivers/usb/cdns3/gadget.c 		    priv_req->end_trb < current_index)
priv_req         1126 drivers/usb/cdns3/gadget.c 		if (priv_req->end_trb  < current_index ||
priv_req         1127 drivers/usb/cdns3/gadget.c 		    priv_req->end_trb >= priv_ep->dequeue)
priv_req         1132 drivers/usb/cdns3/gadget.c 	trace_cdns3_request_handled(priv_req, current_index, handled);
priv_req         1140 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req         1146 drivers/usb/cdns3/gadget.c 		priv_req = to_cdns3_request(request);
priv_req         1153 drivers/usb/cdns3/gadget.c 			cdns3_move_deq_to_next_trb(priv_req);
priv_req         1161 drivers/usb/cdns3/gadget.c 		if (!cdns3_request_handled(priv_ep, priv_req))
priv_req         1167 drivers/usb/cdns3/gadget.c 		if (trb != priv_req->trb)
priv_req         1170 drivers/usb/cdns3/gadget.c 				 priv_req->trb, trb);
priv_req         1173 drivers/usb/cdns3/gadget.c 		cdns3_move_deq_to_next_trb(priv_req);
priv_req         1174 drivers/usb/cdns3/gadget.c 		cdns3_gadget_giveback(priv_ep, priv_req, 0);
priv_req         1734 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req         1736 drivers/usb/cdns3/gadget.c 	priv_req = kzalloc(sizeof(*priv_req), gfp_flags);
priv_req         1737 drivers/usb/cdns3/gadget.c 	if (!priv_req)
priv_req         1740 drivers/usb/cdns3/gadget.c 	priv_req->priv_ep = priv_ep;
priv_req         1742 drivers/usb/cdns3/gadget.c 	trace_cdns3_alloc_request(priv_req);
priv_req         1743 drivers/usb/cdns3/gadget.c 	return &priv_req->request;
priv_req         1754 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req = to_cdns3_request(request);
priv_req         1756 drivers/usb/cdns3/gadget.c 	if (priv_req->aligned_buf)
priv_req         1757 drivers/usb/cdns3/gadget.c 		priv_req->aligned_buf->in_use = 0;
priv_req         1759 drivers/usb/cdns3/gadget.c 	trace_cdns3_free_request(priv_req);
priv_req         1760 drivers/usb/cdns3/gadget.c 	kfree(priv_req);
priv_req         1886 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req         1940 drivers/usb/cdns3/gadget.c 		priv_req = cdns3_next_priv_request(&priv_ep->wa2_descmiss_req_list);
priv_req         1942 drivers/usb/cdns3/gadget.c 		kfree(priv_req->request.buf);
priv_req         1944 drivers/usb/cdns3/gadget.c 					     &priv_req->request);
priv_req         1945 drivers/usb/cdns3/gadget.c 		list_del_init(&priv_req->list);
priv_req         1980 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req         1985 drivers/usb/cdns3/gadget.c 	priv_req = to_cdns3_request(request);
priv_req         1986 drivers/usb/cdns3/gadget.c 	trace_cdns3_ep_queue(priv_req);
priv_req         1990 drivers/usb/cdns3/gadget.c 						priv_req);
priv_req         1996 drivers/usb/cdns3/gadget.c 	ret = cdns3_prepare_aligned_request_buf(priv_req);
priv_req         2040 drivers/usb/cdns3/gadget.c 		struct cdns3_request *priv_req;
priv_req         2046 drivers/usb/cdns3/gadget.c 		priv_req = to_cdns3_request(zlp_request);
priv_req         2047 drivers/usb/cdns3/gadget.c 		priv_req->flags |= REQUEST_ZLP;
priv_req         2071 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req         2082 drivers/usb/cdns3/gadget.c 	priv_req = to_cdns3_request(request);
priv_req         2084 drivers/usb/cdns3/gadget.c 	trace_cdns3_ep_dequeue(priv_req);
priv_req         2105 drivers/usb/cdns3/gadget.c 	link_trb = priv_req->trb;
priv_req         2110 drivers/usb/cdns3/gadget.c 			((priv_req->end_trb + 1) * TRB_SIZE));
priv_req         2114 drivers/usb/cdns3/gadget.c 		if (priv_ep->wa1_trb == priv_req->trb)
priv_req         2118 drivers/usb/cdns3/gadget.c 	cdns3_gadget_giveback(priv_ep, priv_req, -ECONNRESET);
priv_req         2155 drivers/usb/cdns3/gadget.c 	struct cdns3_request *priv_req;
priv_req         2164 drivers/usb/cdns3/gadget.c 		priv_req = to_cdns3_request(request);
priv_req         2165 drivers/usb/cdns3/gadget.c 		trb = priv_req->trb;
priv_req         1328 drivers/usb/cdns3/gadget.h 			   struct cdns3_request *priv_req,
priv_req          285 drivers/usb/cdns3/trace.h 	TP_PROTO(struct cdns3_request *priv_req),
priv_req          286 drivers/usb/cdns3/trace.h 	TP_ARGS(priv_req),
priv_req          288 drivers/usb/cdns3/trace.h 		__string(name, priv_req->priv_ep->name)
priv_req          297 drivers/usb/cdns3/trace.h 		__assign_str(name, priv_req->priv_ep->name);
priv_req          298 drivers/usb/cdns3/trace.h 		__entry->req = &priv_req->request;
priv_req          299 drivers/usb/cdns3/trace.h 		__entry->buf = priv_req->request.buf;
priv_req          300 drivers/usb/cdns3/trace.h 		__entry->dma = priv_req->request.dma;
priv_req          301 drivers/usb/cdns3/trace.h 		__entry->aligned_buf = priv_req->aligned_buf->buf;
priv_req          302 drivers/usb/cdns3/trace.h 		__entry->aligned_dma = priv_req->aligned_buf->dma;
priv_req          303 drivers/usb/cdns3/trace.h 		__entry->aligned_buf_size = priv_req->aligned_buf->size;
priv_req          447 drivers/usb/cdns3/trace.h 	TP_PROTO(struct cdns3_request *priv_req, int current_index,
priv_req          449 drivers/usb/cdns3/trace.h 	TP_ARGS(priv_req, current_index, handled),
priv_req          451 drivers/usb/cdns3/trace.h 		__field(struct cdns3_request *, priv_req)
priv_req          460 drivers/usb/cdns3/trace.h 		__entry->priv_req = priv_req;
priv_req          463 drivers/usb/cdns3/trace.h 		__entry->dequeue_idx = priv_req->priv_ep->dequeue;
priv_req          464 drivers/usb/cdns3/trace.h 		__entry->enqueue_idx = priv_req->priv_ep->enqueue;
priv_req          465 drivers/usb/cdns3/trace.h 		__entry->start_trb = priv_req->start_trb;
priv_req          466 drivers/usb/cdns3/trace.h 		__entry->end_trb = priv_req->end_trb;
priv_req          470 drivers/usb/cdns3/trace.h 		__entry->priv_req,
priv_req          479 drivers/usb/cdns3/trace.h 	TP_PROTO(struct cdns3_request *priv_req, int current_index,
priv_req          481 drivers/usb/cdns3/trace.h 	TP_ARGS(priv_req, current_index, handled)