Lines Matching refs:unlink
17 struct stub_unlink *unlink; in stub_enqueue_ret_unlink() local
19 unlink = kzalloc(sizeof(struct stub_unlink), GFP_ATOMIC); in stub_enqueue_ret_unlink()
20 if (!unlink) { in stub_enqueue_ret_unlink()
25 unlink->seqnum = seqnum; in stub_enqueue_ret_unlink()
26 unlink->status = status; in stub_enqueue_ret_unlink()
28 list_add_tail(&unlink->list, &sdev->unlink_tx); in stub_enqueue_ret_unlink()
126 struct stub_unlink *unlink) in setup_ret_unlink_pdu() argument
128 setup_base_pdu(&rpdu->base, USBIP_RET_UNLINK, unlink->seqnum); in setup_ret_unlink_pdu()
129 rpdu->u.ret_unlink.status = unlink->status; in setup_ret_unlink_pdu()
346 struct stub_unlink *unlink, *tmp; in dequeue_from_unlink_tx() local
350 list_for_each_entry_safe(unlink, tmp, &sdev->unlink_tx, list) { in dequeue_from_unlink_tx()
351 list_move_tail(&unlink->list, &sdev->unlink_free); in dequeue_from_unlink_tx()
353 return unlink; in dequeue_from_unlink_tx()
364 struct stub_unlink *unlink, *tmp; in stub_send_ret_unlink() local
372 while ((unlink = dequeue_from_unlink_tx(sdev)) != NULL) { in stub_send_ret_unlink()
381 usbip_dbg_stub_tx("setup ret unlink %lu\n", unlink->seqnum); in stub_send_ret_unlink()
384 setup_ret_unlink_pdu(&pdu_header, unlink); in stub_send_ret_unlink()
407 list_for_each_entry_safe(unlink, tmp, &sdev->unlink_free, list) { in stub_send_ret_unlink()
408 list_del(&unlink->list); in stub_send_ret_unlink()
409 kfree(unlink); in stub_send_ret_unlink()