···646646/**647647 * struct dwc3_ep - device side endpoint representation648648 * @endpoint: usb endpoint649649+ * @cancelled_list: list of cancelled requests for this endpoint649650 * @pending_list: list of pending requests for this endpoint650651 * @started_list: list of started requests on this endpoint651652 * @wait_end_transfer: wait_queue_head_t for waiting on End Transfer complete···674673 */675674struct dwc3_ep {676675 struct usb_ep endpoint;676676+ struct list_head cancelled_list;677677 struct list_head pending_list;678678 struct list_head started_list;679679
···7979 list_move_tail(&req->list, &dep->started_list);8080}81818282+/**8383+ * dwc3_gadget_move_cancelled_request - move @req to the cancelled_list8484+ * @req: the request to be moved8585+ *8686+ * Caller should take care of locking. This function will move @req from its8787+ * current list to the endpoint's cancelled_list.8888+ */8989+static inline void dwc3_gadget_move_cancelled_request(struct dwc3_request *req)9090+{9191+ struct dwc3_ep *dep = req->dep;9292+9393+ req->started = false;9494+ list_move_tail(&req->list, &dep->cancelled_list);9595+}9696+8297void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,8398 int status);8499