/net/sunrpc/xprtrdma/ |
D | svc_rdma_sendto.c | 55 struct svc_rdma_req_map *vec) in map_xdr() argument 70 vec->sge[sge_no].iov_base = xdr->head[0].iov_base; in map_xdr() 71 vec->sge[sge_no].iov_len = xdr->head[0].iov_len; in map_xdr() 79 vec->sge[sge_no].iov_base = in map_xdr() 83 vec->sge[sge_no].iov_len = sge_bytes; in map_xdr() 92 vec->sge[sge_no].iov_base = xdr->tail[0].iov_base; in map_xdr() 93 vec->sge[sge_no].iov_len = xdr->tail[0].iov_len; in map_xdr() 102 vec->count = sge_no; in map_xdr() 142 struct svc_rdma_req_map *vec) in send_write() argument 153 BUG_ON(vec->count > RPCSVC_MAXPAGES); in send_write() [all …]
|
/net/ceph/ |
D | buffer.c | 19 b->vec.iov_base = ceph_kvmalloc(len, gfp); in ceph_buffer_new() 20 if (!b->vec.iov_base) { in ceph_buffer_new() 27 b->vec.iov_len = len; in ceph_buffer_new() 38 ceph_kvfree(b->vec.iov_base); in ceph_buffer_release() 54 ceph_decode_copy(p, (*b)->vec.iov_base, len); in ceph_decode_buffer()
|
D | auth_x.c | 240 (int)th->ticket_blob->vec.iov_len); in process_one_ticket() 291 (th->ticket_blob ? th->ticket_blob->vec.iov_len : 0); in ceph_x_build_authorizer() 311 msg_a = au->buf->vec.iov_base; in ceph_x_build_authorizer() 319 memcpy(msg_a->ticket_blob.blob, th->ticket_blob->vec.iov_base, in ceph_x_build_authorizer() 320 th->ticket_blob->vec.iov_len); in ceph_x_build_authorizer() 327 end = au->buf->vec.iov_base + au->buf->vec.iov_len; in ceph_x_build_authorizer() 337 au->buf->vec.iov_len = p - au->buf->vec.iov_base; in ceph_x_build_authorizer() 339 (int)au->buf->vec.iov_len); in ceph_x_build_authorizer() 340 BUG_ON(au->buf->vec.iov_len > maxlen); in ceph_x_build_authorizer() 356 const char *buf = th->ticket_blob->vec.iov_base; in ceph_x_encode_ticket() [all …]
|
D | messenger.c | 1257 con_out_kvec_add(con, m->middle->vec.iov_len, in prepare_write_message() 1258 m->middle->vec.iov_base); in prepare_write_message() 1268 crc = crc32c(0, m->middle->vec.iov_base, in prepare_write_message() 1269 m->middle->vec.iov_len); in prepare_write_message() 2344 m->middle->vec.iov_len = 0; in read_partial_message() 2360 ret = read_partial_message_section(con, &m->middle->vec, in read_partial_message() 3363 msg->middle->vec.iov_base, in ceph_msg_dump() 3364 msg->middle->vec.iov_len, true); in ceph_msg_dump()
|
/net/rds/ |
D | rdma.c | 56 static unsigned int rds_pages_in_vec(struct rds_iovec *vec) in rds_pages_in_vec() argument 58 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec() 59 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec() 62 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec() 63 (vec->addr >> PAGE_SHIFT); in rds_pages_in_vec() 197 nr_pages = rds_pages_in_vec(&args->vec); in __rds_rdma_map() 204 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map() 241 ret = rds_pin_pages(args->vec.addr, nr_pages, pages, 1); in __rds_rdma_map() 284 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map() 346 new_args.vec = args.vec; in rds_get_mr_for_dest() [all …]
|
D | tcp_send.c | 68 struct kvec vec = { in rds_tcp_sendmsg() local 76 return kernel_sendmsg(sock, &msg, &vec, 1, vec.iov_len); in rds_tcp_sendmsg()
|
/net/dccp/ |
D | feat.c | 261 if (val == NULL || (type == FEAT_SP && val->sp.vec == NULL)) in dccp_feat_printval() 265 dccp_pr_debug_cat("%s%u", i ? " " : "", val->sp.vec[i]); in dccp_feat_printval() 275 dccp_feat_val fval = { .sp.vec = list, .sp.len = len }; in dccp_feat_printvals() 322 if (fval->sp.vec == NULL) { in __dccp_feat_activate() 331 val = fval->sp.vec[0]; in __dccp_feat_activate() 374 fval->sp.vec = kmemdup(val, len, gfp_any()); in dccp_feat_clone_sp_val() 375 if (fval->sp.vec == NULL) { in dccp_feat_clone_sp_val() 388 kfree(val->sp.vec); in dccp_feat_val_destructor() 406 original->val.sp.vec, in dccp_feat_clone_entry() 654 ptr = pos->val.sp.vec; in dccp_feat_insert_opts() [all …]
|
D | ackvec.h | 130 u8 *vec, member 136 int dccp_ackvec_parsed_add(struct list_head *head, u8 *vec, u8 len, u8 nonce);
|
D | ackvec.c | 350 int dccp_ackvec_parsed_add(struct list_head *head, u8 *vec, u8 len, u8 nonce) in dccp_ackvec_parsed_add() argument 356 new->vec = vec; in dccp_ackvec_parsed_add()
|
D | feat.h | 53 u8 *vec; member
|
/net/dccp/ccids/ |
D | ccid2.c | 586 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/ |
D | svcsock.c | 1055 static int copy_pages_to_kvecs(struct kvec *vec, struct page **pages, int len) in copy_pages_to_kvecs() argument 1061 vec[i].iov_base = page_address(pages[i]); in copy_pages_to_kvecs() 1062 vec[i].iov_len = PAGE_SIZE; in copy_pages_to_kvecs() 1088 struct kvec *vec; in svc_tcp_recvfrom() local 1106 vec = rqstp->rq_vec; in svc_tcp_recvfrom() 1108 pnum = copy_pages_to_kvecs(&vec[0], &rqstp->rq_pages[0], in svc_tcp_recvfrom() 1115 len = svc_partial_recvfrom(rqstp, vec, pnum, want, base); in svc_tcp_recvfrom()
|
D | xprtsock.c | 385 static int xs_send_kvec(struct socket *sock, struct sockaddr *addr, int addrlen, struct kvec *vec, … in xs_send_kvec() argument 393 .iov_base = vec->iov_base + base, in xs_send_kvec() 394 .iov_len = vec->iov_len - base, in xs_send_kvec()
|
/net/ |
D | socket.c | 698 struct kvec *vec, size_t num, size_t size) in kernel_sendmsg() argument 708 msg->msg_iov = (struct iovec *)vec; in kernel_sendmsg() 862 struct kvec *vec, size_t num, size_t size, int flags) in kernel_recvmsg() argument 872 msg->msg_iov = (struct iovec *)vec, msg->msg_iovlen = num; in kernel_recvmsg()
|
/net/xfrm/ |
D | xfrm_user.c | 1536 struct xfrm_user_tmpl vec[XFRM_MAX_DEPTH]; in copy_to_user_tmpl() local 1543 struct xfrm_user_tmpl *up = &vec[i]; in copy_to_user_tmpl() 1560 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()
|