Lines Matching refs:hw_ep

244 		return ep->hw_ep->max_packet_sz_tx;  in max_ep_writesize()
421 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate()
569 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
572 if (hw_ep->is_shared_fifo) in rxstate()
573 musb_ep = &hw_ep->ep_in; in rxstate()
575 musb_ep = &hw_ep->ep_out; in rxstate()
694 musb_ep->hw_ep->rx_double_buffered) in rxstate()
806 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
839 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
841 if (hw_ep->is_shared_fifo) in musb_g_rx()
842 musb_ep = &hw_ep->ep_in; in musb_g_rx()
844 musb_ep = &hw_ep->ep_out; in musb_g_rx()
905 if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) in musb_g_rx()
922 hw_ep->rx_double_buffered) in musb_g_rx()
957 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
970 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
971 regs = hw_ep->regs; in musb_gadget_enable()
1016 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1021 if (tmp > hw_ep->max_packet_sz_tx) { in musb_gadget_enable()
1036 musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1039 musb_ep->hb_mult = (hw_ep->max_packet_sz_tx / in musb_gadget_enable()
1059 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1064 if (tmp > hw_ep->max_packet_sz_rx) { in musb_gadget_enable()
1079 musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1085 if (hw_ep->is_shared_fifo) { in musb_gadget_enable()
1108 musb_ep->dma = c->channel_alloc(c, hw_ep, in musb_gadget_enable()
1452 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status()
1710 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; in init_peripheral_ep() local
1716 ep->hw_ep = hw_ep; in init_peripheral_ep()
1722 (!epnum || hw_ep->is_shared_fifo) ? "" : ( in init_peripheral_ep()
1732 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_tx); in init_peripheral_ep()
1734 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_rx); in init_peripheral_ep()
1747 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
1753 for (epnum = 0, hw_ep = musb->endpoints; in musb_g_init_endpoints()
1755 epnum++, hw_ep++) { in musb_g_init_endpoints()
1756 if (hw_ep->is_shared_fifo /* || !epnum */) { in musb_g_init_endpoints()
1757 init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); in musb_g_init_endpoints()
1760 if (hw_ep->max_packet_sz_tx) { in musb_g_init_endpoints()
1761 init_peripheral_ep(musb, &hw_ep->ep_in, in musb_g_init_endpoints()
1765 if (hw_ep->max_packet_sz_rx) { in musb_g_init_endpoints()
1766 init_peripheral_ep(musb, &hw_ep->ep_out, in musb_g_init_endpoints()