Lines Matching refs:hw_ep
267 return ep->hw_ep->max_packet_sz_tx; in max_ep_writesize()
465 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate()
644 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
647 if (hw_ep->is_shared_fifo) in rxstate()
648 musb_ep = &hw_ep->ep_in; in rxstate()
650 musb_ep = &hw_ep->ep_out; in rxstate()
763 musb_ep->hw_ep->rx_double_buffered) in rxstate()
882 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
914 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
916 if (hw_ep->is_shared_fifo) in musb_g_rx()
917 musb_ep = &hw_ep->ep_in; in musb_g_rx()
919 musb_ep = &hw_ep->ep_out; in musb_g_rx()
980 if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) in musb_g_rx()
997 hw_ep->rx_double_buffered) in musb_g_rx()
1032 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
1045 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
1046 regs = hw_ep->regs; in musb_gadget_enable()
1092 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1097 if (tmp > hw_ep->max_packet_sz_tx) { in musb_gadget_enable()
1112 musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1132 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1137 if (tmp > hw_ep->max_packet_sz_rx) { in musb_gadget_enable()
1152 musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1158 if (hw_ep->is_shared_fifo) { in musb_gadget_enable()
1181 musb_ep->dma = c->channel_alloc(c, hw_ep, in musb_gadget_enable()
1530 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status()
1815 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; in init_peripheral_ep() local
1821 ep->hw_ep = hw_ep; in init_peripheral_ep()
1827 (!epnum || hw_ep->is_shared_fifo) ? "" : ( in init_peripheral_ep()
1837 ep->end_point.maxpacket = hw_ep->max_packet_sz_tx; in init_peripheral_ep()
1839 ep->end_point.maxpacket = hw_ep->max_packet_sz_rx; in init_peripheral_ep()
1852 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
1858 for (epnum = 0, hw_ep = musb->endpoints; in musb_g_init_endpoints()
1860 epnum++, hw_ep++) { in musb_g_init_endpoints()
1861 if (hw_ep->is_shared_fifo /* || !epnum */) { in musb_g_init_endpoints()
1862 init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); in musb_g_init_endpoints()
1865 if (hw_ep->max_packet_sz_tx) { in musb_g_init_endpoints()
1866 init_peripheral_ep(musb, &hw_ep->ep_in, in musb_g_init_endpoints()
1870 if (hw_ep->max_packet_sz_rx) { in musb_g_init_endpoints()
1871 init_peripheral_ep(musb, &hw_ep->ep_out, in musb_g_init_endpoints()
2046 struct musb_hw_ep *hw_ep; in stop_activity() local
2065 for (i = 0, hw_ep = musb->endpoints; in stop_activity()
2067 i++, hw_ep++) { in stop_activity()
2069 if (hw_ep->is_shared_fifo /* || !epnum */) { in stop_activity()
2070 nuke(&hw_ep->ep_in, -ESHUTDOWN); in stop_activity()
2072 if (hw_ep->max_packet_sz_tx) in stop_activity()
2073 nuke(&hw_ep->ep_in, -ESHUTDOWN); in stop_activity()
2074 if (hw_ep->max_packet_sz_rx) in stop_activity()
2075 nuke(&hw_ep->ep_out, -ESHUTDOWN); in stop_activity()