Lines Matching refs:unlink
45 struct stub_unlink *unlink; in stub_enqueue_ret_unlink() local
47 unlink = kzalloc(sizeof(struct stub_unlink), GFP_ATOMIC); in stub_enqueue_ret_unlink()
48 if (!unlink) { in stub_enqueue_ret_unlink()
53 unlink->seqnum = seqnum; in stub_enqueue_ret_unlink()
54 unlink->status = status; in stub_enqueue_ret_unlink()
56 list_add_tail(&unlink->list, &sdev->unlink_tx); in stub_enqueue_ret_unlink()
135 struct stub_unlink *unlink) in setup_ret_unlink_pdu() argument
137 setup_base_pdu(&rpdu->base, USBIP_RET_UNLINK, unlink->seqnum); in setup_ret_unlink_pdu()
138 rpdu->u.ret_unlink.status = unlink->status; in setup_ret_unlink_pdu()
302 struct stub_unlink *unlink, *tmp; in dequeue_from_unlink_tx() local
306 list_for_each_entry_safe(unlink, tmp, &sdev->unlink_tx, list) { in dequeue_from_unlink_tx()
307 list_move_tail(&unlink->list, &sdev->unlink_free); in dequeue_from_unlink_tx()
309 return unlink; in dequeue_from_unlink_tx()
320 struct stub_unlink *unlink, *tmp; in stub_send_ret_unlink() local
328 while ((unlink = dequeue_from_unlink_tx(sdev)) != NULL) { in stub_send_ret_unlink()
337 usbip_dbg_stub_tx("setup ret unlink %lu\n", unlink->seqnum); in stub_send_ret_unlink()
340 setup_ret_unlink_pdu(&pdu_header, unlink); in stub_send_ret_unlink()
363 list_for_each_entry_safe(unlink, tmp, &sdev->unlink_free, list) { in stub_send_ret_unlink()
364 list_del(&unlink->list); in stub_send_ret_unlink()
365 kfree(unlink); in stub_send_ret_unlink()