Lines Matching full:zc

1217 	struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg);  in io_send_zc_cleanup()  local
1222 if (zc->notif) { in io_send_zc_cleanup()
1223 io_notif_flush(zc->notif); in io_send_zc_cleanup()
1224 zc->notif = NULL; in io_send_zc_cleanup()
1233 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); in io_send_zc_prep() local
1237 zc->done_io = 0; in io_send_zc_prep()
1246 notif = zc->notif = io_alloc_notif(ctx); in io_send_zc_prep()
1254 zc->flags = READ_ONCE(sqe->ioprio); in io_send_zc_prep()
1255 if (unlikely(zc->flags & ~IO_ZC_FLAGS_COMMON)) { in io_send_zc_prep()
1256 if (zc->flags & ~IO_ZC_FLAGS_VALID) in io_send_zc_prep()
1258 if (zc->flags & IORING_SEND_ZC_REPORT_USAGE) { in io_send_zc_prep()
1270 if (unlikely(zc->flags & IORING_RECVSEND_FIXED_BUF)) in io_send_zc_prep()
1274 zc->len = READ_ONCE(sqe->len); in io_send_zc_prep()
1275 zc->msg_flags = READ_ONCE(sqe->msg_flags) | MSG_NOSIGNAL | MSG_ZEROCOPY; in io_send_zc_prep()
1276 zc->buf_index = READ_ONCE(sqe->buf_index); in io_send_zc_prep()
1277 if (zc->msg_flags & MSG_DONTWAIT) in io_send_zc_prep()
1282 zc->msg_flags |= MSG_CMSG_COMPAT; in io_send_zc_prep()
1384 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); in io_send_zc() local
1397 (zc->flags & IORING_RECVSEND_POLL_FIRST)) in io_send_zc()
1400 if (!zc->done_io) { in io_send_zc()
1406 msg_flags = zc->msg_flags; in io_send_zc()
1414 kmsg->msg.msg_ubuf = &io_notif_to_data(zc->notif)->uarg; in io_send_zc()
1422 zc->len -= ret; in io_send_zc()
1423 zc->buf += ret; in io_send_zc()
1424 zc->done_io += ret; in io_send_zc()
1434 ret += zc->done_io; in io_send_zc()
1435 else if (zc->done_io) in io_send_zc()
1436 ret = zc->done_io; in io_send_zc()
1443 io_notif_flush(zc->notif); in io_send_zc()