Home
last modified time | relevance | path

Searched refs:zc (Results 1 – 5 of 5) sorted by relevance

/tools/testing/selftests/net/
A Dtcp_mmap.c173 struct tcp_zerocopy_receive zc; in child_thread() local
219 socklen_t zc_len = sizeof(zc); in child_thread()
222 memset(&zc, 0, sizeof(zc)); in child_thread()
227 &zc, &zc_len); in child_thread()
231 if (zc.length) { in child_thread()
232 assert(zc.length <= chunk_size); in child_thread()
234 EVP_DigestUpdate(ctx, addr, zc.length); in child_thread()
235 total_mmap += zc.length; in child_thread()
237 hash_zone(addr, zc.length); in child_thread()
242 total += zc.length; in child_thread()
[all …]
/tools/testing/selftests/ublk/
A Dstripe.c115 const struct ublksrv_io_desc *iod, int zc) in stripe_to_uring_op() argument
120 return zc ? IORING_OP_READV_FIXED : IORING_OP_READV; in stripe_to_uring_op()
131 unsigned zc = (ublk_queue_use_zc(q) != 0); in stripe_queue_tgt_rw_io() local
136 int i, extra = zc ? 2 : 0; in stripe_queue_tgt_rw_io()
144 if (zc) { in stripe_queue_tgt_rw_io()
151 for (i = zc; i < s->nr + extra - zc; i++) { in stripe_queue_tgt_rw_io()
152 struct stripe *t = &s->s[i - zc]; in stripe_queue_tgt_rw_io()
160 if (auto_zc || zc) { in stripe_queue_tgt_rw_io()
162 if (zc) in stripe_queue_tgt_rw_io()
168 if (zc) { in stripe_queue_tgt_rw_io()
[all …]
A Dfile_backed.c5 static enum io_uring_op ublk_to_uring_op(const struct ublksrv_io_desc *iod, int zc) in ublk_to_uring_op() argument
10 return zc ? IORING_OP_READ_FIXED : IORING_OP_READ; in ublk_to_uring_op()
12 return zc ? IORING_OP_WRITE_FIXED : IORING_OP_WRITE; in ublk_to_uring_op()
34 unsigned zc = ublk_queue_use_zc(q); in loop_queue_tgt_rw_io() local
36 enum io_uring_op op = ublk_to_uring_op(iod, zc | auto_zc); in loop_queue_tgt_rw_io()
38 void *addr = (zc | auto_zc) ? NULL : (void *)iod->addr; in loop_queue_tgt_rw_io()
40 if (!zc || auto_zc) { in loop_queue_tgt_rw_io()
A Dnull.c120 unsigned zc = ublk_queue_use_zc(q); in ublk_null_queue_io() local
125 else if (zc) in ublk_null_queue_io()
/tools/testing/selftests/bpf/prog_tests/
A Dsockopt_sk.c22 struct tcp_zerocopy_receive zc; in getsetsockopt() member
168 optlen = sizeof(buf.zc); in getsetsockopt()
177 buf.zc.address = 12345; /* Not page aligned. Rejected by tcp_zerocopy_receive() */ in getsetsockopt()
178 optlen = sizeof(buf.zc); in getsetsockopt()

Completed in 7 milliseconds