Lines Matching refs:epnum

45 		value |= DMISGR1_MF_IN_INT(ep->epnum - 1);
47 value |= DMISGR1_MF_OUTSPK_INT(ep->epnum - 1);
56 value &= ~DMISGR1_MF_IN_INT(ep->epnum - 1);
58 value &= ~DMISGR1_MF_OUTSPK_INT(ep->epnum - 1);
85 if (ep->epnum) {
93 static void fotg210_fifo_ep_mapping(struct fotg210_ep *ep, u32 epnum,
105 val &= ~EPMAP_FIFONOMSK(epnum, dir_in);
106 val |= EPMAP_FIFONO(epnum, dir_in);
111 val &= ~FIFOMAP_EPNOMSK(epnum);
112 val |= FIFOMAP_EPNO(epnum);
117 val |= FIFOCF_FIFO_EN(epnum - 1);
121 static void fotg210_set_fifo_dir(struct fotg210_ep *ep, u32 epnum, u32 dir_in)
127 val |= (dir_in ? FIFOMAP_DIRIN(epnum - 1) : FIFOMAP_DIROUT(epnum - 1));
131 static void fotg210_set_tfrtype(struct fotg210_ep *ep, u32 epnum, u32 type)
137 val |= FIFOCF_TYPE(type, epnum - 1);
141 static void fotg210_set_mps(struct fotg210_ep *ep, u32 epnum, u32 mps,
146 u32 offset = dir_in ? FOTG210_INEPMPSR(epnum) :
147 FOTG210_OUTEPMPSR(epnum);
159 fotg210_set_fifo_dir(ep, ep->epnum, ep->dir_in);
160 fotg210_set_tfrtype(ep, ep->epnum, ep->type);
161 fotg210_set_mps(ep, ep->epnum, ep->ep.maxpacket, ep->dir_in);
162 fotg210_fifo_ep_mapping(ep, ep->epnum, ep->dir_in);
164 fotg210->ep[ep->epnum] = ep;
177 ep->epnum = usb_endpoint_num(desc);
185 static void fotg210_reset_tseq(struct fotg210_udc *fotg210, u8 epnum)
187 struct fotg210_ep *ep = fotg210->ep[epnum];
192 fotg210->reg + FOTG210_INEPMPSR(epnum) :
193 fotg210->reg + FOTG210_OUTEPMPSR(epnum);
210 if (!ep->epnum)
212 ep->epnum = 0;
216 fotg210_reset_tseq(ep->fotg210, ep->epnum);
279 if (ep->epnum)
280 value |= DMATFNR_ACC_FN(ep->epnum - 1);
324 if (ep->epnum) {
326 FOTG210_FIBCR(ep->epnum - 1));
329 FOTG210_FIBCR(ep->epnum - 1));
345 if (ep->epnum) {
352 FOTG210_FIBCR(ep->epnum - 1)) & FIBCR_BCFX;
428 if (!ep->epnum) /* ep0 */
465 } while (!(value & DCFESR_FIFO_EMPTY(ep->epnum - 1)));
469 fotg210->reg + FOTG210_INEPMPSR(ep->epnum) :
470 fotg210->reg + FOTG210_OUTEPMPSR(ep->epnum);
483 fotg210->reg + FOTG210_INEPMPSR(ep->epnum) :
484 fotg210->reg + FOTG210_OUTEPMPSR(ep->epnum);
508 fotg210_reset_tseq(fotg210, ep->epnum);
662 u8 epnum;
663 epnum = le16_to_cpu(ctrl->wIndex) & USB_ENDPOINT_NUMBER_MASK;
664 if (epnum)
665 fotg210_set_epnstall(fotg210->ep[epnum]);
714 fotg210->reg + FOTG210_INEPMPSR(ep->epnum) :
715 fotg210->reg + FOTG210_OUTEPMPSR(ep->epnum);
737 u8 epnum;
747 epnum = ctrl->wIndex & USB_ENDPOINT_NUMBER_MASK;
748 if (epnum)
750 cpu_to_le16(fotg210_is_epnstall(fotg210->ep[epnum])
878 (disgr1 & DISGR1_SPK_INT(ep->epnum - 1)))