Lines Matching refs:ep

94 	struct usb_ep				ep;  member
117 static inline void allow_status(struct net2280_ep *ep) in allow_status() argument
123 &ep->regs->ep_rsp); in allow_status()
124 ep->stopped = 1; in allow_status()
127 static inline void allow_status_338x(struct net2280_ep *ep) in allow_status_338x() argument
134 writel(BIT(CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE), &ep->regs->ep_rsp); in allow_status_338x()
136 ep->stopped = 1; in allow_status_338x()
139 ep->responded = 0; in allow_status_338x()
155 struct net2280_ep ep[9]; member
193 static inline void set_halt(struct net2280_ep *ep) in set_halt() argument
198 ((ep->dev->chiprev == CHIPREV_1) << SET_NAK_OUT_PACKETS) | in set_halt()
200 &ep->regs->ep_rsp); in set_halt()
203 static inline void clear_halt(struct net2280_ep *ep) in clear_halt() argument
212 ((ep->dev->chiprev == CHIPREV_1) << CLEAR_NAK_OUT_PACKETS), in clear_halt()
213 &ep->regs->ep_rsp); in clear_halt()
337 static inline void set_fifo_bytecount(struct net2280_ep *ep, unsigned count) in set_fifo_bytecount() argument
339 if (ep->dev->pdev->vendor == 0x17cc) in set_fifo_bytecount()
340 writeb(count, 2 + (u8 __iomem *) &ep->regs->ep_cfg); in set_fifo_bytecount()
342 u32 tmp = readl(&ep->cfg->ep_cfg) & in set_fifo_bytecount()
344 writel(tmp | (count << EP_FIFO_BYTE_COUNT), &ep->cfg->ep_cfg); in set_fifo_bytecount()
348 static inline void start_out_naking(struct net2280_ep *ep) in start_out_naking() argument
351 writel(BIT(SET_NAK_OUT_PACKETS), &ep->regs->ep_rsp); in start_out_naking()
353 readl(&ep->regs->ep_rsp); in start_out_naking()
356 static inline void stop_out_naking(struct net2280_ep *ep) in stop_out_naking() argument
360 tmp = readl(&ep->regs->ep_stat); in stop_out_naking()
362 writel(BIT(CLEAR_NAK_OUT_PACKETS), &ep->regs->ep_rsp); in stop_out_naking()
366 static inline void set_max_speed(struct net2280_ep *ep, u32 max) in set_max_speed() argument
372 if (ep->dev->enhanced_mode) in set_max_speed()
373 reg = ep_enhanced[ep->num]; in set_max_speed()
375 reg = (ep->num + 1) * 0x10; in set_max_speed()
376 if (ep->dev->gadget.speed != USB_SPEED_HIGH) in set_max_speed()
380 set_idx_reg(ep->dev->regs, reg, max); in set_max_speed()