Lines Matching refs:urbp
225 struct c67x00_urb_priv *urbp; in c67x00_release_urb() local
246 urbp = urb->hcpriv; in c67x00_release_urb()
248 list_del(&urbp->hep_node); in c67x00_release_urb()
249 kfree(urbp); in c67x00_release_urb()
371 struct c67x00_urb_priv *urbp; in c67x00_urb_enqueue() local
388 urbp = kzalloc(sizeof(*urbp), mem_flags); in c67x00_urb_enqueue()
389 if (!urbp) { in c67x00_urb_enqueue()
394 INIT_LIST_HEAD(&urbp->hep_node); in c67x00_urb_enqueue()
395 urbp->urb = urb; in c67x00_urb_enqueue()
396 urbp->port = port; in c67x00_urb_enqueue()
398 urbp->ep_data = c67x00_ep_data_alloc(c67x00, urb); in c67x00_urb_enqueue()
400 if (!urbp->ep_data) { in c67x00_urb_enqueue()
408 urb->hcpriv = urbp; in c67x00_urb_enqueue()
425 if (list_empty(&urbp->ep_data->queue)) in c67x00_urb_enqueue()
426 urb->start_frame = urbp->ep_data->next_frame; in c67x00_urb_enqueue()
431 last_urb = list_entry(urbp->ep_data->queue.prev, in c67x00_urb_enqueue()
439 urbp->cnt = 0; in c67x00_urb_enqueue()
444 list_add_tail(&urbp->hep_node, &urbp->ep_data->queue); in c67x00_urb_enqueue()
456 kfree(urbp); in c67x00_urb_enqueue()
500 struct c67x00_urb_priv *urbp; in c67x00_giveback_urb() local
505 urbp = urb->hcpriv; in c67x00_giveback_urb()
506 urbp->status = status; in c67x00_giveback_urb()
508 list_del_init(&urbp->hep_node); in c67x00_giveback_urb()
513 usb_hcd_giveback_urb(c67x00_hcd_to_hcd(c67x00), urb, urbp->status); in c67x00_giveback_urb()
522 struct c67x00_urb_priv *urbp = urb->hcpriv; in c67x00_claim_frame_bw() local
540 if (urbp->ep_data->dev->speed == USB_SPEED_LOW) { in c67x00_claim_frame_bw()
592 struct c67x00_urb_priv *urbp = urb->hcpriv; in c67x00_create_td() local
606 td->ep_data = urbp->ep_data; in c67x00_create_td()
609 !(c67x00->low_speed_ports & (1 << urbp->port))) in c67x00_create_td()
640 (urbp->port << 14) | (len & 0x3FF)); in c67x00_create_td()
755 struct c67x00_urb_priv *urbp = urb->hcpriv; in c67x00_add_int_urb() local
757 if (frame_after_eq(c67x00->current_frame, urbp->ep_data->next_frame)) { in c67x00_add_int_urb()
758 urbp->ep_data->next_frame = in c67x00_add_int_urb()
759 frame_add(urbp->ep_data->next_frame, urb->interval); in c67x00_add_int_urb()
767 struct c67x00_urb_priv *urbp = urb->hcpriv; in c67x00_add_iso_urb() local
769 if (frame_after_eq(c67x00->current_frame, urbp->ep_data->next_frame)) { in c67x00_add_iso_urb()
773 BUG_ON(urbp->cnt >= urb->number_of_packets); in c67x00_add_iso_urb()
776 urb->iso_frame_desc[urbp->cnt].offset; in c67x00_add_iso_urb()
777 len = urb->iso_frame_desc[urbp->cnt].length; in c67x00_add_iso_urb()
781 urbp->cnt); in c67x00_add_iso_urb()
784 urb->iso_frame_desc[urbp->cnt].actual_length = 0; in c67x00_add_iso_urb()
785 urb->iso_frame_desc[urbp->cnt].status = ret; in c67x00_add_iso_urb()
786 if (urbp->cnt + 1 == urb->number_of_packets) in c67x00_add_iso_urb()
790 urbp->ep_data->next_frame = in c67x00_add_iso_urb()
791 frame_add(urbp->ep_data->next_frame, urb->interval); in c67x00_add_iso_urb()
792 urbp->cnt++; in c67x00_add_iso_urb()
978 struct c67x00_urb_priv *urbp; in c67x00_handle_isoc() local
984 urbp = urb->hcpriv; in c67x00_handle_isoc()