Lines Matching refs:unlink
684 struct vhci_unlink *unlink; in vhci_urb_dequeue() local
689 unlink = kzalloc(sizeof(struct vhci_unlink), GFP_ATOMIC); in vhci_urb_dequeue()
690 if (!unlink) { in vhci_urb_dequeue()
697 unlink->seqnum = atomic_inc_return(&the_controller->seqnum); in vhci_urb_dequeue()
698 if (unlink->seqnum == 0xffff) in vhci_urb_dequeue()
701 unlink->unlink_seqnum = priv->seqnum; in vhci_urb_dequeue()
705 list_add_tail(&unlink->list, &vdev->unlink_tx); in vhci_urb_dequeue()
719 struct vhci_unlink *unlink, *tmp; in vhci_device_unlink_cleanup() local
725 list_for_each_entry_safe(unlink, tmp, &vdev->unlink_tx, list) { in vhci_device_unlink_cleanup()
726 pr_info("unlink cleanup tx %lu\n", unlink->unlink_seqnum); in vhci_device_unlink_cleanup()
727 list_del(&unlink->list); in vhci_device_unlink_cleanup()
728 kfree(unlink); in vhci_device_unlink_cleanup()
734 unlink = list_first_entry(&vdev->unlink_rx, struct vhci_unlink, in vhci_device_unlink_cleanup()
738 pr_info("unlink cleanup rx %lu\n", unlink->unlink_seqnum); in vhci_device_unlink_cleanup()
740 urb = pickup_urb_and_free_priv(vdev, unlink->unlink_seqnum); in vhci_device_unlink_cleanup()
743 unlink->unlink_seqnum); in vhci_device_unlink_cleanup()
744 list_del(&unlink->list); in vhci_device_unlink_cleanup()
745 kfree(unlink); in vhci_device_unlink_cleanup()
753 list_del(&unlink->list); in vhci_device_unlink_cleanup()
764 kfree(unlink); in vhci_device_unlink_cleanup()