Lines Matching refs:hw_ep
244 return ep->hw_ep->max_packet_sz_tx; in max_ep_writesize()
419 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate()
571 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
574 if (hw_ep->is_shared_fifo) in rxstate()
575 musb_ep = &hw_ep->ep_in; in rxstate()
577 musb_ep = &hw_ep->ep_out; in rxstate()
698 musb_ep->hw_ep->rx_double_buffered) in rxstate()
807 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
840 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
842 if (hw_ep->is_shared_fifo) in musb_g_rx()
843 musb_ep = &hw_ep->ep_in; in musb_g_rx()
845 musb_ep = &hw_ep->ep_out; in musb_g_rx()
906 if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) in musb_g_rx()
923 hw_ep->rx_double_buffered) in musb_g_rx()
958 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
971 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
972 regs = hw_ep->regs; in musb_gadget_enable()
1017 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1022 if (tmp > hw_ep->max_packet_sz_tx) { in musb_gadget_enable()
1037 musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1040 musb_ep->hb_mult = (hw_ep->max_packet_sz_tx / in musb_gadget_enable()
1060 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1065 if (tmp > hw_ep->max_packet_sz_rx) { in musb_gadget_enable()
1080 musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1086 if (hw_ep->is_shared_fifo) { in musb_gadget_enable()
1109 musb_ep->dma = c->channel_alloc(c, hw_ep, in musb_gadget_enable()
1453 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status()
1746 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; in init_peripheral_ep() local
1752 ep->hw_ep = hw_ep; in init_peripheral_ep()
1758 (!epnum || hw_ep->is_shared_fifo) ? "" : ( in init_peripheral_ep()
1769 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_tx); in init_peripheral_ep()
1771 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_rx); in init_peripheral_ep()
1779 if (!epnum || hw_ep->is_shared_fifo) { in init_peripheral_ep()
1795 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
1801 for (epnum = 0, hw_ep = musb->endpoints; in musb_g_init_endpoints()
1803 epnum++, hw_ep++) { in musb_g_init_endpoints()
1804 if (hw_ep->is_shared_fifo /* || !epnum */) { in musb_g_init_endpoints()
1805 init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); in musb_g_init_endpoints()
1808 if (hw_ep->max_packet_sz_tx) { in musb_g_init_endpoints()
1809 init_peripheral_ep(musb, &hw_ep->ep_in, in musb_g_init_endpoints()
1813 if (hw_ep->max_packet_sz_rx) { in musb_g_init_endpoints()
1814 init_peripheral_ep(musb, &hw_ep->ep_out, in musb_g_init_endpoints()