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()
538 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
541 if (hw_ep->is_shared_fifo) in rxstate()
542 musb_ep = &hw_ep->ep_in; in rxstate()
544 musb_ep = &hw_ep->ep_out; in rxstate()
665 musb_ep->hw_ep->rx_double_buffered) in rxstate()
774 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
807 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
809 if (hw_ep->is_shared_fifo) in musb_g_rx()
810 musb_ep = &hw_ep->ep_in; in musb_g_rx()
812 musb_ep = &hw_ep->ep_out; in musb_g_rx()
869 if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) in musb_g_rx()
886 hw_ep->rx_double_buffered) in musb_g_rx()
921 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
934 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
935 regs = hw_ep->regs; in musb_gadget_enable()
980 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
985 if (tmp > hw_ep->max_packet_sz_tx) { in musb_gadget_enable()
1000 musb_ep->hb_mult = (hw_ep->max_packet_sz_tx / in musb_gadget_enable()
1019 if (hw_ep->is_shared_fifo) in musb_gadget_enable()
1024 if (tmp > hw_ep->max_packet_sz_rx) { in musb_gadget_enable()
1042 if (hw_ep->is_shared_fifo) { in musb_gadget_enable()
1065 musb_ep->dma = c->channel_alloc(c, hw_ep, in musb_gadget_enable()
1436 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status()
1704 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; in init_peripheral_ep() local
1710 ep->hw_ep = hw_ep; in init_peripheral_ep()
1716 (!epnum || hw_ep->is_shared_fifo) ? "" : ( in init_peripheral_ep()
1727 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_tx); in init_peripheral_ep()
1729 usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_rx); in init_peripheral_ep()
1737 if (!epnum || hw_ep->is_shared_fifo) { in init_peripheral_ep()
1753 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
1759 for (epnum = 0, hw_ep = musb->endpoints; in musb_g_init_endpoints()
1761 epnum++, hw_ep++) { in musb_g_init_endpoints()
1762 if (hw_ep->is_shared_fifo /* || !epnum */) { in musb_g_init_endpoints()
1763 init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); in musb_g_init_endpoints()
1766 if (hw_ep->max_packet_sz_tx) { in musb_g_init_endpoints()
1767 init_peripheral_ep(musb, &hw_ep->ep_in, in musb_g_init_endpoints()
1771 if (hw_ep->max_packet_sz_rx) { in musb_g_init_endpoints()
1772 init_peripheral_ep(musb, &hw_ep->ep_out, in musb_g_init_endpoints()