Lines Matching refs:urb_priv
1282 etrax_urb_priv_t *urb_priv; in etrax_usb_unlink_urb() local
1318 urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_unlink_urb()
1319 epid = urb_priv->epid; in etrax_usb_unlink_urb()
1323 urb_priv->urb_state = UNLINK; in etrax_usb_unlink_urb()
1420 kfree(urb_priv); in etrax_usb_unlink_urb()
1505 etrax_urb_priv_t *urb_priv; in etrax_usb_rx_interrupt() local
1559 urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_rx_interrupt()
1560 assert(urb_priv); in etrax_usb_rx_interrupt()
1572 assert(urb_priv->rx_offset + myNextRxDesc->hw_len in etrax_usb_rx_interrupt()
1575 memcpy(urb->transfer_buffer + urb_priv->rx_offset, in etrax_usb_rx_interrupt()
1577 urb_priv->rx_offset += myNextRxDesc->hw_len; in etrax_usb_rx_interrupt()
1588 if (urb_priv->urb_state == UNLINK) { in etrax_usb_rx_interrupt()
1591 } else if (urb_priv->urb_state == NOT_STARTED) { in etrax_usb_rx_interrupt()
1596 packet = &urb->iso_frame_desc[urb_priv->isoc_packet_counter]; in etrax_usb_rx_interrupt()
1614 urb_priv->isoc_packet_counter++; in etrax_usb_rx_interrupt()
1618 if (urb->number_of_packets == urb_priv->isoc_packet_counter) { in etrax_usb_rx_interrupt()
1622 … if (((prev_fm + urb_priv->isoc_packet_counter) % (0x7ff + 1)) != curr_fm) { in etrax_usb_rx_interrupt()
1633 urb_priv->isoc_packet_counter = 0; in etrax_usb_rx_interrupt()
1663 etrax_urb_priv_t *urb_priv; in etrax_remove_from_sb_list() local
1668 urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_remove_from_sb_list()
1669 assert(urb_priv); in etrax_remove_from_sb_list()
1674 assert(!(TxBulkEPList[urb_priv->epid].command & IO_MASK(USB_EP_command, enable))); in etrax_remove_from_sb_list()
1676 assert(!(TxCtrlEPList[urb_priv->epid].command & IO_MASK(USB_EP_command, enable))); in etrax_remove_from_sb_list()
1679 first_sb = urb_priv->first_sb; in etrax_remove_from_sb_list()
1680 last_sb = urb_priv->last_sb; in etrax_remove_from_sb_list()
1747 etrax_urb_priv_t *urb_priv; in etrax_usb_add_to_bulk_sb_list() local
1757 urb_priv = kmalloc(sizeof(etrax_urb_priv_t), KMALLOC_FLAG); in etrax_usb_add_to_bulk_sb_list()
1758 assert(urb_priv != NULL); in etrax_usb_add_to_bulk_sb_list()
1760 memset(urb_priv, 0, sizeof(etrax_urb_priv_t)); in etrax_usb_add_to_bulk_sb_list()
1817 urb_priv->first_sb = sb_desc; in etrax_usb_add_to_bulk_sb_list()
1818 urb_priv->last_sb = sb_desc; in etrax_usb_add_to_bulk_sb_list()
1819 urb_priv->epid = epid; in etrax_usb_add_to_bulk_sb_list()
1821 urb->hcpriv = urb_priv; in etrax_usb_add_to_bulk_sb_list()
1916 etrax_urb_priv_t *urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_complete_bulk_urb() local
1917 int epid = urb_priv->epid; in etrax_usb_complete_bulk_urb()
1933 urb->actual_length = urb_priv->rx_offset; in etrax_usb_complete_bulk_urb()
1969 kfree(urb_priv); in etrax_usb_complete_bulk_urb()
2084 etrax_urb_priv_t *urb_priv; in etrax_usb_add_to_ctrl_sb_list() local
2093 urb_priv = kmalloc(sizeof(etrax_urb_priv_t), KMALLOC_FLAG); in etrax_usb_add_to_ctrl_sb_list()
2094 assert(urb_priv != NULL); in etrax_usb_add_to_ctrl_sb_list()
2096 memset(urb_priv, 0, sizeof(etrax_urb_priv_t)); in etrax_usb_add_to_ctrl_sb_list()
2181 urb_priv->first_sb = sb_desc_setup; in etrax_usb_add_to_ctrl_sb_list()
2182 urb_priv->last_sb = sb_desc_status; in etrax_usb_add_to_ctrl_sb_list()
2183 urb_priv->epid = epid; in etrax_usb_add_to_ctrl_sb_list()
2185 urb->hcpriv = urb_priv; in etrax_usb_add_to_ctrl_sb_list()
2231 etrax_urb_priv_t *urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_complete_ctrl_urb() local
2232 int epid = urb_priv->epid; in etrax_usb_complete_ctrl_urb()
2247 urb->actual_length = urb_priv->rx_offset; in etrax_usb_complete_ctrl_urb()
2255 kfree(urb_priv); in etrax_usb_complete_ctrl_urb()
2350 etrax_urb_priv_t *urb_priv; in etrax_usb_add_to_intr_sb_list() local
2357 urb_priv = kmalloc(sizeof(etrax_urb_priv_t), KMALLOC_FLAG); in etrax_usb_add_to_intr_sb_list()
2358 assert(urb_priv != NULL); in etrax_usb_add_to_intr_sb_list()
2359 memset(urb_priv, 0, sizeof(etrax_urb_priv_t)); in etrax_usb_add_to_intr_sb_list()
2360 urb->hcpriv = urb_priv; in etrax_usb_add_to_intr_sb_list()
2423 urb_priv->epid = epid; in etrax_usb_add_to_intr_sb_list()
2437 etrax_urb_priv_t *urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_complete_intr_urb() local
2438 int epid = urb_priv->epid; in etrax_usb_complete_intr_urb()
2448 urb->actual_length = urb_priv->rx_offset; in etrax_usb_complete_intr_urb()
2469 urb_priv->rx_offset = 0; in etrax_usb_complete_intr_urb()
2512 etrax_urb_priv_t *urb_priv; in etrax_usb_add_to_isoc_sb_list() local
2519 urb_priv = kmalloc(sizeof(etrax_urb_priv_t), KMALLOC_FLAG); in etrax_usb_add_to_isoc_sb_list()
2520 assert(urb_priv != NULL); in etrax_usb_add_to_isoc_sb_list()
2521 memset(urb_priv, 0, sizeof(etrax_urb_priv_t)); in etrax_usb_add_to_isoc_sb_list()
2523 urb->hcpriv = urb_priv; in etrax_usb_add_to_isoc_sb_list()
2524 urb_priv->epid = epid; in etrax_usb_add_to_isoc_sb_list()
2545 urb_priv->first_sb = next_sb_desc; in etrax_usb_add_to_isoc_sb_list()
2559 urb_priv->last_sb = next_sb_desc; in etrax_usb_add_to_isoc_sb_list()
2586 urb_priv->first_sb = next_sb_desc; in etrax_usb_add_to_isoc_sb_list()
2587 urb_priv->last_sb = next_sb_desc; in etrax_usb_add_to_isoc_sb_list()
2597 urb_priv->first_sb = phys_to_virt(TxIsocEPList[epid].sub); in etrax_usb_add_to_isoc_sb_list()
2598 urb_priv->last_sb = phys_to_virt(TxIsocEPList[epid].sub); in etrax_usb_add_to_isoc_sb_list()
2608 TxIsocEPList[epid].sub = virt_to_phys(urb_priv->first_sb); in etrax_usb_add_to_isoc_sb_list()
2617 temp_sb_desc->next = virt_to_phys(urb_priv->first_sb); in etrax_usb_add_to_isoc_sb_list()
2632 urb_priv->urb_state = STARTED; in etrax_usb_add_to_isoc_sb_list()
2636 urb_priv->urb_state = NOT_STARTED; in etrax_usb_add_to_isoc_sb_list()
2649 etrax_urb_priv_t *urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_complete_isoc_urb() local
2650 int epid = urb_priv->epid; in etrax_usb_complete_isoc_urb()
2795 etrax_urb_priv_t *urb_priv; in etrax_usb_hc_isoc_eof_interrupt() local
2818 urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_hc_isoc_eof_interrupt()
2819 assert(urb_priv); in etrax_usb_hc_isoc_eof_interrupt()
2821 if (urb_priv->urb_state == NOT_STARTED) { in etrax_usb_hc_isoc_eof_interrupt()
2832 urb_priv->urb_state = STARTED; in etrax_usb_hc_isoc_eof_interrupt()
2858 etrax_urb_priv_t *urb_priv; in etrax_usb_hc_bulk_eot_interrupt() local
2878 urb_priv = (etrax_urb_priv_t *)urb->hcpriv; in etrax_usb_hc_bulk_eot_interrupt()
2879 assert(urb_priv); in etrax_usb_hc_bulk_eot_interrupt()
2883 if (phys_to_virt(TxBulkEPList[epid].sub) != urb_priv->last_sb) { in etrax_usb_hc_bulk_eot_interrupt()