/* s3c_hsotg_irq_fifoempty - TX FIFO empty interrupt handler @hsotg: The device state: @periodic: True if this is a periodic FIFO interrupt  */
static void s3c_hsotg_irq_fifoempty(struct s3c_hsotg *hsotg, bool periodic)
/* s3c_hsotg_irq_fifoempty - TX FIFO empty interrupt handler @hsotg: The device state: @periodic: True if this is a periodic FIFO interrupt  */
static void s3c_hsotg_irq_fifoempty(struct s3c_hsotg *hsotg, bool periodic)
{
	struct s3c_hsotg_ep *ep;
	int epno, ret;
	for (epno = 0; epno < hsotg->num_of_eps; epno++) {
		ep = index_to_ep(hsotg, epno, 1);
		if (!ep)
			continue;
		if (!ep->dir_in)
			continue;
		if ((periodic && !ep->periodic) ||
		    (!periodic && ep->periodic))
			continue;
		ret = s3c_hsotg_trytx(hsotg, ep);
		if (ret < 0)
			break;
	}
}