* @halted: Set if the endpoint has been halted.
* @periodic: Set if this is a periodic ep, such as Interrupt
* @isochronous: Set if this is a isochronous ep
- * @sent_zlp: Set if we've sent a zero-length packet.
+ * @send_zlp: Set if we need to send a zero-length packet.
* @total_data: The total number of data bytes done.
* @fifo_size: The size of the FIFO (for periodic IN endpoints)
* @fifo_load: The amount of data loaded into the FIFO (periodic IN)
unsigned int halted:1;
unsigned int periodic:1;
unsigned int isochronous:1;
- unsigned int sent_zlp:1;
+ unsigned int send_zlp:1;
char name[10];
};
/* Test if zlp is actually required. */
if ((ureq->length >= hs_ep->ep.maxpacket) &&
!(ureq->length % hs_ep->ep.maxpacket))
- hs_ep->sent_zlp = 1;
+ hs_ep->send_zlp = 1;
}
epsize |= DXEPTSIZ_PKTCNT(packets);
}
hsotg->eps_out[0]->dir_in = 0;
- hsotg->eps_out[0]->sent_zlp = 0;
+ hsotg->eps_out[0]->send_zlp = 0;
hsotg->ep0_state = DWC2_EP0_SETUP;
ret = s3c_hsotg_ep_queue(&hsotg->eps_out[0]->ep, req, GFP_ATOMIC);
}
/* Zlp for all endpoints, for ep0 only in DATA IN stage */
- if (hs_ep->sent_zlp) {
+ if (hs_ep->send_zlp) {
s3c_hsotg_program_zlp(hsotg, hs_ep);
- hs_ep->sent_zlp = 0;
+ hs_ep->send_zlp = 0;
/* transfer will be completed on next complete interrupt */
return;
}