Lines Matching defs:max3421_ep

159 struct max3421_ep {
573 struct max3421_ep *max3421_ep;
579 max3421_ep = urb->ep->hcpriv;
581 switch (max3421_ep->pkt_state) {
634 struct max3421_ep *max3421_ep;
647 max3421_ep = container_of(pos, struct max3421_ep,
649 ep = max3421_ep->ep;
687 if (frame_diff(max3421_ep->last_active,
693 if (max3421_ep->retransmit
694 && (frame_diff(max3421_ep->last_active,
708 max3421_ep->last_active)
732 if (max3421_ep->retransmit)
734 max3421_ep->retransmit = 0;
744 max3421_ep->pkt_state = PKT_STATE_SETUP;
746 max3421_ep->pkt_state = PKT_STATE_TRANSFER;
751 max3421_ep->last_active = max3421_hcd->frame_number;
768 struct max3421_ep *max3421_ep;
775 list_for_each_entry(max3421_ep, &max3421_hcd->ep_list, ep_list) {
776 ep = max3421_ep->ep;
802 struct max3421_ep *max3421_ep;
804 max3421_ep = urb->ep->hcpriv;
805 max3421_ep->retransmit = 1;
850 struct max3421_ep *max3421_ep = urb->ep->hcpriv;
859 switch_sndfifo = (max3421_ep->pkt_state == PKT_STATE_TRANSFER &&
899 if (max3421_ep->retries++ < USB_MAX_RETRIES)
1008 struct max3421_ep *max3421_ep;
1022 max3421_ep = urb->ep->hcpriv;
1029 max3421_ep->naks = 0;
1030 max3421_ep->retries = 0;
1031 switch (max3421_ep->pkt_state) {
1035 max3421_ep->pkt_state = PKT_STATE_TRANSFER;
1037 max3421_ep->pkt_state = PKT_STATE_TERMINATE;
1051 max3421_ep->pkt_state = PKT_STATE_TERMINATE;
1146 struct max3421_ep *max3421_ep;
1154 list_for_each_entry(max3421_ep, &max3421_hcd->ep_list, ep_list) {
1155 ep = max3421_ep->ep;
1173 epnum, max3421_ep->pkt_state, max3421_ep->last_active,
1174 max3421_ep->retries, max3421_ep->naks,
1175 max3421_ep->retransmit, ubuf);
1497 struct max3421_ep *max3421_ep;
1517 max3421_ep = urb->ep->hcpriv;
1518 if (!max3421_ep) {
1520 max3421_ep = kzalloc(sizeof(struct max3421_ep), GFP_ATOMIC);
1521 if (!max3421_ep) {
1525 max3421_ep->ep = urb->ep;
1526 max3421_ep->last_active = max3421_hcd->frame_number;
1527 urb->ep->hcpriv = max3421_ep;
1529 list_add_tail(&max3421_ep->ep_list, &max3421_hcd->ep_list);
1575 struct max3421_ep *max3421_ep = ep->hcpriv;
1578 if (!list_empty(&max3421_ep->ep_list))
1579 list_del(&max3421_ep->ep_list);
1580 kfree(max3421_ep);