Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 20 of 20) sorted by relevance

/net/smc/
Dsmc_clc.c278 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg() local
292 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, in smc_clc_wait_msg()
336 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, datlen); in smc_clc_wait_msg()
366 struct kvec vec; in smc_clc_send_decline() local
380 vec.iov_base = &dclc; in smc_clc_send_decline()
381 vec.iov_len = sizeof(struct smc_clc_msg_decline); in smc_clc_send_decline()
382 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, in smc_clc_send_decline()
400 struct kvec vec[5]; in smc_clc_send_proposal() local
438 vec[i].iov_base = &pclc; in smc_clc_send_proposal()
439 vec[i++].iov_len = sizeof(pclc); in smc_clc_send_proposal()
[all …]
/net/rds/
Drdma.c55 static unsigned int rds_pages_in_vec(struct rds_iovec *vec) in rds_pages_in_vec() argument
57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec()
58 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec()
61 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec()
62 (vec->addr >> PAGE_SHIFT); in rds_pages_in_vec()
198 nr_pages = rds_pages_in_vec(&args->vec); in __rds_rdma_map()
213 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map()
250 ret = rds_pin_pages(args->vec.addr, nr_pages, pages, 1); in __rds_rdma_map()
294 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map()
356 new_args.vec = args.vec; in rds_get_mr_for_dest()
[all …]
Dtcp_send.c63 struct kvec vec = { in rds_tcp_sendmsg() local
71 return kernel_sendmsg(sock, &msg, &vec, 1, vec.iov_len); in rds_tcp_sendmsg()
Dsend.c914 krealloc(vct->vec, in rds_rm_size()
922 vct->vec = tmp_iov; in rds_rm_size()
924 iov = &vct->vec[vct->indx]; in rds_rm_size()
1005 ret = rds_cmsg_rdma_args(rs, rm, cmsg, &vct->vec[ind]); in rds_cmsg_send()
1394 kfree(vct.vec[ind].iov); in rds_sendmsg()
1395 kfree(vct.vec); in rds_sendmsg()
1401 kfree(vct.vec[ind].iov); in rds_sendmsg()
1402 kfree(vct.vec); in rds_sendmsg()
Drds.h403 struct rds_iov_vector *vec; member
936 struct rds_iov_vector *vec);
/net/ceph/
Dbuffer.c20 b->vec.iov_base = ceph_kvmalloc(len, gfp); in ceph_buffer_new()
21 if (!b->vec.iov_base) { in ceph_buffer_new()
28 b->vec.iov_len = len; in ceph_buffer_new()
39 kvfree(b->vec.iov_base); in ceph_buffer_release()
55 ceph_decode_copy(p, (*b)->vec.iov_base, len); in ceph_decode_buffer()
Dauth_x.c255 (int)th->ticket_blob->vec.iov_len); in process_one_ticket()
307 msg_a = au->buf->vec.iov_base; in encrypt_authorizer()
310 end = au->buf->vec.iov_base + au->buf->vec.iov_len; in encrypt_authorizer()
333 au->buf->vec.iov_len = p - au->buf->vec.iov_base; in encrypt_authorizer()
357 (th->ticket_blob ? th->ticket_blob->vec.iov_len : 0); in ceph_x_build_authorizer()
384 msg_a = au->buf->vec.iov_base; in ceph_x_build_authorizer()
392 memcpy(msg_a->ticket_blob.blob, th->ticket_blob->vec.iov_base, in ceph_x_build_authorizer()
393 th->ticket_blob->vec.iov_len); in ceph_x_build_authorizer()
406 (int)au->buf->vec.iov_len); in ceph_x_build_authorizer()
421 const char *buf = th->ticket_blob->vec.iov_base; in ceph_x_encode_ticket()
[all …]
Dmessenger.c1313 con_out_kvec_add(con, m->middle->vec.iov_len, in prepare_write_message()
1314 m->middle->vec.iov_base); in prepare_write_message()
1325 crc = crc32c(0, m->middle->vec.iov_base, in prepare_write_message()
1326 m->middle->vec.iov_len); in prepare_write_message()
2447 m->middle->vec.iov_len = 0; in read_partial_message()
2463 ret = read_partial_message_section(con, &m->middle->vec, in read_partial_message()
3540 msg->middle->vec.iov_base, in ceph_msg_dump()
3541 msg->middle->vec.iov_len, true); in ceph_msg_dump()
/net/dccp/
Dfeat.c256 if (val == NULL || (type == FEAT_SP && val->sp.vec == NULL)) in dccp_feat_printval()
260 dccp_pr_debug_cat("%s%u", i ? " " : "", val->sp.vec[i]); in dccp_feat_printval()
270 dccp_feat_val fval = { .sp.vec = list, .sp.len = len }; in dccp_feat_printvals()
317 if (fval->sp.vec == NULL) { in __dccp_feat_activate()
326 val = fval->sp.vec[0]; in __dccp_feat_activate()
369 fval->sp.vec = kmemdup(val, len, gfp_any()); in dccp_feat_clone_sp_val()
370 if (fval->sp.vec == NULL) { in dccp_feat_clone_sp_val()
383 kfree(val->sp.vec); in dccp_feat_val_destructor()
401 original->val.sp.vec, in dccp_feat_clone_entry()
649 ptr = pos->val.sp.vec; in dccp_feat_insert_opts()
[all …]
Dackvec.h128 u8 *vec, member
134 int dccp_ackvec_parsed_add(struct list_head *head, u8 *vec, u8 len, u8 nonce);
Dackvec.c347 int dccp_ackvec_parsed_add(struct list_head *head, u8 *vec, u8 len, u8 nonce) in dccp_ackvec_parsed_add() argument
353 new->vec = vec; in dccp_ackvec_parsed_add()
Dfeat.h50 u8 *vec; member
/net/dccp/ccids/
Dccid2.c586 for (; avp->len--; avp->vec++) { in ccid2_hc_tx_packet_recv()
588 dccp_ackvec_runlen(avp->vec)); in ccid2_hc_tx_packet_recv()
592 dccp_ackvec_state(avp->vec) >> 6, in ccid2_hc_tx_packet_recv()
593 dccp_ackvec_runlen(avp->vec)); in ccid2_hc_tx_packet_recv()
612 const u8 state = dccp_ackvec_state(avp->vec); in ccid2_hc_tx_packet_recv()
/net/sunrpc/
Dsvcsock.c1003 static int copy_pages_to_kvecs(struct kvec *vec, struct page **pages, int len) in copy_pages_to_kvecs() argument
1009 vec[i].iov_base = page_address(pages[i]); in copy_pages_to_kvecs()
1010 vec[i].iov_len = PAGE_SIZE; in copy_pages_to_kvecs()
1036 struct kvec *vec; in svc_tcp_recvfrom() local
1054 vec = rqstp->rq_vec; in svc_tcp_recvfrom()
1056 pnum = copy_pages_to_kvecs(&vec[0], &rqstp->rq_pages[0], base + want); in svc_tcp_recvfrom()
1062 len = svc_recvfrom(rqstp, vec, pnum, base + want, base); in svc_tcp_recvfrom()
Dsvc.c1649 struct kvec *vec = rqstp->rq_vec; in svc_fill_write_vector() local
1657 vec[i].iov_base = first->iov_base; in svc_fill_write_vector()
1658 vec[i].iov_len = min_t(size_t, total, first->iov_len); in svc_fill_write_vector()
1659 total -= vec[i].iov_len; in svc_fill_write_vector()
1664 vec[i].iov_base = page_address(*pages); in svc_fill_write_vector()
1665 vec[i].iov_len = min_t(size_t, total, PAGE_SIZE); in svc_fill_write_vector()
1666 total -= vec[i].iov_len; in svc_fill_write_vector()
Dxprtsock.c759 static int xs_send_kvec(struct socket *sock, struct msghdr *msg, struct kvec *vec, size_t seek) in xs_send_kvec() argument
761 iov_iter_kvec(&msg->msg_iter, WRITE, vec, 1, vec->iov_len); in xs_send_kvec()
787 rpc_fraghdr marker, struct kvec *vec, size_t base) in xs_send_rm_and_kvec() argument
794 [1] = *vec, in xs_send_rm_and_kvec()
/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c478 struct kvec *vec) in svc_rdma_send_xdr_kvec() argument
480 info->wi_base = vec->iov_base; in svc_rdma_send_xdr_kvec()
482 vec->iov_len); in svc_rdma_send_xdr_kvec()
Drpc_rdma.c194 rpcrdma_convert_kvec(struct kvec *vec, struct rpcrdma_mr_seg *seg, in rpcrdma_convert_kvec() argument
200 base = vec->iov_base; in rpcrdma_convert_kvec()
202 remaining = vec->iov_len; in rpcrdma_convert_kvec()
/net/
Dsocket.c675 struct kvec *vec, size_t num, size_t size) in kernel_sendmsg() argument
677 iov_iter_kvec(&msg->msg_iter, WRITE, vec, num, size); in kernel_sendmsg()
696 struct kvec *vec, size_t num, size_t size) in kernel_sendmsg_locked() argument
703 iov_iter_kvec(&msg->msg_iter, WRITE, vec, num, size); in kernel_sendmsg_locked()
911 struct kvec *vec, size_t num, size_t size, int flags) in kernel_recvmsg() argument
916 iov_iter_kvec(&msg->msg_iter, READ, vec, num, size); in kernel_recvmsg()
/net/xfrm/
Dxfrm_user.c1691 struct xfrm_user_tmpl vec[XFRM_MAX_DEPTH]; in copy_to_user_tmpl() local
1698 struct xfrm_user_tmpl *up = &vec[i]; in copy_to_user_tmpl()
1715 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()