/* kill_all_requests - remove all requests from the endpoint's queue @hsotg: The device state. @ep: The endpoint the requests may be on.  */
static void kill_all_requests(struct s3c_hsotg *hsotg, struct s3c_hsotg_ep *ep, int result)
/* kill_all_requests - remove all requests from the endpoint's queue @hsotg: The device state. @ep: The endpoint the requests may be on.  */
static void kill_all_requests(struct s3c_hsotg *hsotg, struct s3c_hsotg_ep *ep, int result)
{
	struct s3c_hsotg_req *req, *treq;
	unsigned int size;
	ep->req = NULL;
	list_for_each_entry_safe(req, treq, &ep->queue, queue)
		s3c_hsotg_complete_request(hsotg, ep, req,
					   result);
	if (!hsotg->dedicated_fifos)
		return;
	size = (readl(hsotg->regs + DTXFSTS(ep->index)) & 0xffff) * 4;
	if (size < ep->fifo_size)
		s3c_hsotg_txfifo_flush(hsotg, ep->fifo_index);
}