Lines Matching refs:max3421_ep

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