Lines Matching defs:nd
14 struct io_notif_data *nd = io_notif_to_data(notif);
17 if (nd->zc_report && (nd->zc_copied || !nd->zc_used))
20 if (nd->account_pages && ctx->user) {
21 __io_unaccount_mem(ctx->user, nd->account_pages);
22 nd->account_pages = 0;
30 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg);
31 struct io_kiocb *notif = cmd_to_io_kiocb(nd);
40 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg);
42 if (nd->zc_report) {
43 if (success && !nd->zc_used && skb)
44 WRITE_ONCE(nd->zc_used, true);
45 else if (!success && !nd->zc_copied)
46 WRITE_ONCE(nd->zc_copied, true);
53 struct io_notif_data *nd = io_notif_to_data(notif);
55 if (nd->uarg.callback != io_tx_ubuf_callback_ext) {
56 nd->account_pages = 0;
57 nd->zc_report = false;
58 nd->zc_used = false;
59 nd->zc_copied = false;
60 nd->uarg.callback = io_tx_ubuf_callback_ext;
69 struct io_notif_data *nd;
81 nd = io_notif_to_data(notif);
82 nd->uarg.flags = IO_NOTIF_UBUF_FLAGS;
83 nd->uarg.callback = io_tx_ubuf_callback;
84 refcount_set(&nd->uarg.refcnt, 1);