Lines Matching refs:hw_ep

266 		return ep->hw_ep->max_packet_sz_tx;  in max_ep_writesize()
464 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate()
643 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
646 if (hw_ep->is_shared_fifo) in rxstate()
647 musb_ep = &hw_ep->ep_in; in rxstate()
649 musb_ep = &hw_ep->ep_out; in rxstate()
762 musb_ep->hw_ep->rx_double_buffered) in rxstate()
881 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
913 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
915 if (hw_ep->is_shared_fifo) in musb_g_rx()
916 musb_ep = &hw_ep->ep_in; in musb_g_rx()
918 musb_ep = &hw_ep->ep_out; in musb_g_rx()
979 if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) in musb_g_rx()
996 hw_ep->rx_double_buffered) in musb_g_rx()
1031 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
1044 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
1045 regs = hw_ep->regs; in musb_gadget_enable()
1091 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1096 if (tmp > hw_ep->max_packet_sz_tx) { in musb_gadget_enable()
1111 musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1131 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1136 if (tmp > hw_ep->max_packet_sz_rx) { in musb_gadget_enable()
1151 musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_tx); in musb_gadget_enable()
1157 if (hw_ep->is_shared_fifo) { in musb_gadget_enable()
1180 musb_ep->dma = c->channel_alloc(c, hw_ep, in musb_gadget_enable()
1529 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status()
1825 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; in init_peripheral_ep() local
1831 ep->hw_ep = hw_ep; in init_peripheral_ep()
1837 (!epnum || hw_ep->is_shared_fifo) ? "" : ( in init_peripheral_ep()
1847 ep->end_point.maxpacket = hw_ep->max_packet_sz_tx; in init_peripheral_ep()
1849 ep->end_point.maxpacket = hw_ep->max_packet_sz_rx; in init_peripheral_ep()
1862 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
1868 for (epnum = 0, hw_ep = musb->endpoints; in musb_g_init_endpoints()
1870 epnum++, hw_ep++) { in musb_g_init_endpoints()
1871 if (hw_ep->is_shared_fifo /* || !epnum */) { in musb_g_init_endpoints()
1872 init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); in musb_g_init_endpoints()
1875 if (hw_ep->max_packet_sz_tx) { in musb_g_init_endpoints()
1876 init_peripheral_ep(musb, &hw_ep->ep_in, in musb_g_init_endpoints()
1880 if (hw_ep->max_packet_sz_rx) { in musb_g_init_endpoints()
1881 init_peripheral_ep(musb, &hw_ep->ep_out, in musb_g_init_endpoints()
2056 struct musb_hw_ep *hw_ep; in stop_activity() local
2075 for (i = 0, hw_ep = musb->endpoints; in stop_activity()
2077 i++, hw_ep++) { in stop_activity()
2079 if (hw_ep->is_shared_fifo /* || !epnum */) { in stop_activity()
2080 nuke(&hw_ep->ep_in, -ESHUTDOWN); in stop_activity()
2082 if (hw_ep->max_packet_sz_tx) in stop_activity()
2083 nuke(&hw_ep->ep_in, -ESHUTDOWN); in stop_activity()
2084 if (hw_ep->max_packet_sz_rx) in stop_activity()
2085 nuke(&hw_ep->ep_out, -ESHUTDOWN); in stop_activity()