Lines Matching defs:max3421_ep
165 struct max3421_ep {
579 struct max3421_ep *max3421_ep;
585 max3421_ep = urb->ep->hcpriv;
587 switch (max3421_ep->pkt_state) {
640 struct max3421_ep *max3421_ep;
653 max3421_ep = container_of(pos, struct max3421_ep,
655 ep = max3421_ep->ep;
693 if (frame_diff(max3421_ep->last_active,
699 if (max3421_ep->retransmit
700 && (frame_diff(max3421_ep->last_active,
714 max3421_ep->last_active)
738 if (max3421_ep->retransmit)
740 max3421_ep->retransmit = 0;
750 max3421_ep->pkt_state = PKT_STATE_SETUP;
752 max3421_ep->pkt_state = PKT_STATE_TRANSFER;
757 max3421_ep->last_active = max3421_hcd->frame_number;
774 struct max3421_ep *max3421_ep;
781 list_for_each_entry(max3421_ep, &max3421_hcd->ep_list, ep_list) {
782 ep = max3421_ep->ep;
808 struct max3421_ep *max3421_ep;
810 max3421_ep = urb->ep->hcpriv;
811 max3421_ep->retransmit = 1;
856 struct max3421_ep *max3421_ep = urb->ep->hcpriv;
865 switch_sndfifo = (max3421_ep->pkt_state == PKT_STATE_TRANSFER &&
905 if (max3421_ep->retries++ < USB_MAX_RETRIES)
927 if (max3421_ep->naks++ < NAK_MAX_FAST_RETRANSMITS) {
1017 struct max3421_ep *max3421_ep;
1031 max3421_ep = urb->ep->hcpriv;
1038 max3421_ep->naks = 0;
1039 max3421_ep->retries = 0;
1040 switch (max3421_ep->pkt_state) {
1044 max3421_ep->pkt_state = PKT_STATE_TRANSFER;
1046 max3421_ep->pkt_state = PKT_STATE_TERMINATE;
1060 max3421_ep->pkt_state = PKT_STATE_TERMINATE;
1156 struct max3421_ep *max3421_ep;
1164 list_for_each_entry(max3421_ep, &max3421_hcd->ep_list, ep_list) {
1165 ep = max3421_ep->ep;
1183 epnum, max3421_ep->pkt_state, max3421_ep->last_active,
1184 max3421_ep->retries, max3421_ep->naks,
1185 max3421_ep->retransmit, ubuf);
1507 struct max3421_ep *max3421_ep;
1526 max3421_ep = urb->ep->hcpriv;
1527 if (!max3421_ep) {
1529 max3421_ep = kzalloc(sizeof(struct max3421_ep), GFP_ATOMIC);
1530 if (!max3421_ep) {
1534 max3421_ep->ep = urb->ep;
1535 max3421_ep->last_active = max3421_hcd->frame_number;
1536 urb->ep->hcpriv = max3421_ep;
1538 list_add_tail(&max3421_ep->ep_list, &max3421_hcd->ep_list);
1584 struct max3421_ep *max3421_ep = ep->hcpriv;
1587 if (!list_empty(&max3421_ep->ep_list))
1588 list_del(&max3421_ep->ep_list);
1589 kfree(max3421_ep);