Lines Matching refs:nd
14 struct io_notif_data *nd = io_notif_to_data(notif); in __io_notif_complete_tw() local
17 if (nd->account_pages && ctx->user) { in __io_notif_complete_tw()
18 __io_unaccount_mem(ctx->user, nd->account_pages); in __io_notif_complete_tw()
19 nd->account_pages = 0; in __io_notif_complete_tw()
28 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg); in io_uring_tx_zerocopy_callback() local
29 struct io_kiocb *notif = cmd_to_io_kiocb(nd); in io_uring_tx_zerocopy_callback()
41 struct io_notif_data *nd; in io_alloc_notif() local
54 nd = io_notif_to_data(notif); in io_alloc_notif()
55 nd->account_pages = 0; in io_alloc_notif()
56 nd->uarg.flags = SKBFL_ZEROCOPY_FRAG | SKBFL_DONT_ORPHAN; in io_alloc_notif()
57 nd->uarg.callback = io_uring_tx_zerocopy_callback; in io_alloc_notif()
58 refcount_set(&nd->uarg.refcnt, 1); in io_alloc_notif()
65 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_flush() local
68 if (refcount_dec_and_test(&nd->uarg.refcnt)) { in io_notif_flush()