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