static void nuke(struct musb_ep *ep, const int status)
{
struct musb_request *req = NULL;
- void __iomem *epio = ep->musb->endpoints[ep->bEndNumber].regs;
+ void __iomem *epio = ep->musb->endpoints[ep->current_epnum].regs;
ep->busy = 1;
regs = hw_ep->regs;
musb = musb_ep->musb;
mbase = musb->mregs;
- bEnd = musb_ep->bEndNumber;
+ bEnd = musb_ep->current_epnum;
spin_lock_irqsave(&musb->Lock, flags);
musb_ep = to_musb_ep(ep);
musb = musb_ep->musb;
- bEnd = musb_ep->bEndNumber;
+ bEnd = musb_ep->current_epnum;
epio = musb->endpoints[bEnd].regs;
spin_lock_irqsave(&musb->Lock, flags);
if (pRequest) {
INIT_LIST_HEAD(&pRequest->request.list);
pRequest->request.dma = DMA_ADDR_INVALID;
- pRequest->bEnd = musb_ep->bEndNumber;
+ pRequest->bEnd = musb_ep->current_epnum;
pRequest->ep = musb_ep;
}
/* request is mine now... */
pRequest->request.actual = 0;
pRequest->request.status = -EINPROGRESS;
- pRequest->bEnd = musb_ep->bEndNumber;
+ pRequest->bEnd = musb_ep->current_epnum;
pRequest->bTx = musb_ep->is_in;
if (is_dma_capable() && musb_ep->dma) {
else if (is_dma_capable() && musb_ep->dma) {
struct dma_controller *c = musb->pDmaController;
- MGC_SelectEnd(musb->mregs, musb_ep->bEndNumber);
+ MGC_SelectEnd(musb->mregs, musb_ep->current_epnum);
if (c->channel_abort)
status = c->channel_abort(musb_ep->dma);
else
int musb_gadget_set_halt(struct usb_ep *ep, int value)
{
struct musb_ep *musb_ep = to_musb_ep(ep);
- u8 bEnd = musb_ep->bEndNumber;
+ u8 bEnd = musb_ep->current_epnum;
struct musb *musb = musb_ep->musb;
void __iomem *epio = musb->endpoints[bEnd].regs;
void __iomem *mbase;
if (musb_ep->desc && !musb_ep->is_in) {
struct musb *musb = musb_ep->musb;
- int bEnd = musb_ep->bEndNumber;
+ int bEnd = musb_ep->current_epnum;
void __iomem *mbase = musb->mregs;
unsigned long flags;
{
struct musb_ep *musb_ep = to_musb_ep(ep);
struct musb *musb = musb_ep->musb;
- u8 nEnd = musb_ep->bEndNumber;
+ u8 nEnd = musb_ep->current_epnum;
void __iomem *epio = musb->endpoints[nEnd].regs;
void __iomem *mbase;
unsigned long flags;
memset(ep, 0, sizeof *ep);
- ep->bEndNumber = bEnd;
+ ep->current_epnum = bEnd;
ep->musb = musb;
ep->hw_ep = hw_ep;
ep->is_in = is_in;
code = snprintf(buf, max,
"\n%s (hw%d): %s%s, csr %04x maxp %04x\n",
- ep->name, ep->bEndNumber,
+ ep->name, ep->current_epnum,
mode, ep->dma ? " dma" : "",
musb_readw(regs,
- (ep->is_in || !ep->bEndNumber)
+ (ep->is_in || !ep->current_epnum)
? MGC_O_HDRC_TXCSR
: MGC_O_HDRC_RXCSR),
musb_readw(regs, ep->is_in
buf += code;
max -= code;
- if (is_cppi_enabled() && ep->bEndNumber) {
- unsigned cppi = ep->bEndNumber - 1;
+ if (is_cppi_enabled() && ep->current_epnum) {
+ unsigned cppi = ep->current_epnum - 1;
void __iomem *base = ep->musb->ctrl_base;
unsigned off1 = cppi << 2;
void __iomem *ram = base;
"%08x %08x, %08x %08x; "
"%08x %08x %08x .. %08x\n",
ep->is_in ? 'T' : 'R',
- ep->bEndNumber - 1, tmp,
+ ep->current_epnum - 1, tmp,
musb_readl(ram, 0 * 4),
musb_readl(ram, 1 * 4),
musb_readl(ram, 2 * 4),