Lines Matching refs:hw_ep

211 		return ep->hw_ep->max_packet_sz_tx;  in max_ep_writesize()
385 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate()
527 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
530 if (hw_ep->is_shared_fifo) in rxstate()
531 musb_ep = &hw_ep->ep_in; in rxstate()
533 musb_ep = &hw_ep->ep_out; in rxstate()
654 musb_ep->hw_ep->rx_double_buffered) in rxstate()
766 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
799 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
801 if (hw_ep->is_shared_fifo) in musb_g_rx()
802 musb_ep = &hw_ep->ep_in; in musb_g_rx()
804 musb_ep = &hw_ep->ep_out; in musb_g_rx()
861 if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) in musb_g_rx()
878 hw_ep->rx_double_buffered) in musb_g_rx()
913 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
926 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
927 regs = hw_ep->regs; in musb_gadget_enable()
972 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
977 if (tmp > hw_ep->max_packet_sz_tx) { in musb_gadget_enable()
992 musb_ep->hb_mult = (hw_ep->max_packet_sz_tx / in musb_gadget_enable()
1011 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1016 if (tmp > hw_ep->max_packet_sz_rx) { in musb_gadget_enable()
1034 if (hw_ep->is_shared_fifo) { in musb_gadget_enable()
1057 musb_ep->dma = c->channel_alloc(c, hw_ep, in musb_gadget_enable()
1429 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status()
1697 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; in init_peripheral_ep() local
1703 ep->hw_ep = hw_ep; in init_peripheral_ep()
1709 (!epnum || hw_ep->is_shared_fifo) ? "" : ( in init_peripheral_ep()
1720 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_tx); in init_peripheral_ep()
1722 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_rx); in init_peripheral_ep()
1730 if (!epnum || hw_ep->is_shared_fifo) { in init_peripheral_ep()
1746 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
1752 for (epnum = 0, hw_ep = musb->endpoints; in musb_g_init_endpoints()
1754 epnum++, hw_ep++) { in musb_g_init_endpoints()
1755 if (hw_ep->is_shared_fifo /* || !epnum */) { in musb_g_init_endpoints()
1756 init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); in musb_g_init_endpoints()
1759 if (hw_ep->max_packet_sz_tx) { in musb_g_init_endpoints()
1760 init_peripheral_ep(musb, &hw_ep->ep_in, in musb_g_init_endpoints()
1764 if (hw_ep->max_packet_sz_rx) { in musb_g_init_endpoints()
1765 init_peripheral_ep(musb, &hw_ep->ep_out, in musb_g_init_endpoints()