/fs/cifs/ |
D | smb2transport.c | 214 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb2_calc_signature() 216 iov[0].iov_len); in smb2_calc_signature() 274 label.iov_base, label.iov_len); in generate_key() 288 context.iov_base, context.iov_len); in generate_key() 379 d->label.iov_len = 12; in generate_smb30signingkey() 381 d->context.iov_len = 8; in generate_smb30signingkey() 385 d->label.iov_len = 11; in generate_smb30signingkey() 387 d->context.iov_len = 10; in generate_smb30signingkey() 391 d->label.iov_len = 11; in generate_smb30signingkey() 393 d->context.iov_len = 10; in generate_smb30signingkey() [all …]
|
D | transport.c | 280 rqst->rq_nvec >= 2 && rqst->rq_iov[0].iov_len == 4) { in smb_rqst_len() 290 buflen += iov[i].iov_len; in smb_rqst_len() 369 .iov_len = 4 in __smb_send_rqst() 388 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst() 389 size += iov[i].iov_len; in __smb_send_rqst() 484 iov.iov_len = sizeof(tr_hdr); in smb_send_rqst() 513 iov[0].iov_len = 4; in smb_send() 515 iov[1].iov_len = smb_buf_length; in smb_send() 735 if (rqst->rq_iov[0].iov_len != 4 || in cifs_setup_async_request() 857 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp() [all …]
|
D | sess.c | 596 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer() 615 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer() 669 count = sess_data->iov[1].iov_len + sess_data->iov[2].iov_len; in sess_sendreceive() 747 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_lanman() 848 if (sess_data->iov[0].iov_len % 2) { in sess_auth_ntlm() 858 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_ntlm() 956 if (sess_data->iov[0].iov_len % 2) { in sess_auth_ntlmv2() 966 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_ntlmv2() 1075 sess_data->iov[1].iov_len = msg->secblob_len; in sess_auth_kerberos() 1076 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); in sess_auth_kerberos() [all …]
|
D | smb2pdu.c | 775 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context() 779 iov[num - 1].iov_len); in add_posix_context() 876 iov[0].iov_len = total_len; in SMB2_negotiate() 1001 rsp_iov.iov_len); in SMB2_negotiate() 1228 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer() 1256 req->SecurityBufferLength = cpu_to_le16(sess_data->iov[1].iov_len); in SMB2_sess_sendreceive() 1349 sess_data->iov[1].iov_len = msg->secblob_len; in SMB2_auth_kerberos() 1425 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_negotiate() 1503 sess_data->iov[1].iov_len = blob_length; in SMB2_sess_auth_rawntlmssp_authenticate() 1636 iov[0].iov_len = total_len; in SMB2_logoff() [all …]
|
D | cifsencrypt.c | 52 if (iov[0].iov_len <= 4) in __cifs_calc_signature() 56 if (n_vec < 2 || iov[0].iov_len != 4) in __cifs_calc_signature() 62 if (iov[i].iov_len == 0) in __cifs_calc_signature() 70 iov[i].iov_base, iov[i].iov_len); in __cifs_calc_signature() 150 if (rqst->rq_iov[0].iov_len != 4 || in cifs_sign_rqst() 198 iov[0].iov_len = 4; in cifs_sign_smb() 200 iov[1].iov_len = be32_to_cpu(cifs_pdu->smb_buf_length); in cifs_sign_smb() 215 if (rqst->rq_iov[0].iov_len != 4 || in cifs_verify_signature()
|
D | smb2ops.c | 1528 le32_to_cpu(io_rsp->OutputOffset) + qi.input_buffer_length > rsp_iov[1].iov_len) { in smb2_ioctl_query_info() 2143 rqst->rq_iov[rqst->rq_nvec].iov_len = num_padding; in smb2_set_next_command() 2156 rqst->rq_iov[0].iov_len, in smb2_set_next_command() 2158 rqst->rq_iov[i].iov_len); in smb2_set_next_command() 2159 rqst->rq_iov[0].iov_len += rqst->rq_iov[i].iov_len; in smb2_set_next_command() 2161 memset(rqst->rq_iov[0].iov_base + rqst->rq_iov[0].iov_len, in smb2_set_next_command() 2163 rqst->rq_iov[0].iov_len += num_padding; in smb2_set_next_command() 2681 rsp_iov[1].iov_len) { in smb2_query_symlink() 2700 err_iov.iov_len < SMB2_SYMLINK_STRUCT_SIZE) { in smb2_query_symlink() 2719 if (err_iov.iov_len < SMB2_SYMLINK_STRUCT_SIZE + sub_offset + sub_len) { in smb2_query_symlink() [all …]
|
D | smbdirect.c | 1077 data_length += iov[i].iov_len; in smbd_post_send_data() 1078 sg_set_buf(&sgl[i], iov[i].iov_base, iov[i].iov_len); in smbd_post_send_data() 2039 to_read = msg->msg_iter.kvec->iov_len; in smbd_recv() 2119 dump_smb(iov[i].iov_base, iov[i].iov_len); in smbd_send() 2130 buflen += iov[i].iov_len; in smbd_send() 2134 (buflen-iov[i].iov_len); in smbd_send() 2156 vec.iov_len = max_iov_size; in smbd_send() 2158 vec.iov_len = in smbd_send() 2161 remaining_data_length -= vec.iov_len; in smbd_send() 2166 j, vec.iov_base, vec.iov_len, in smbd_send()
|
D | cifssmb.c | 857 iov[0].iov_len = 4; in CIFSSMBEcho() 859 iov[1].iov_len = get_rfc1002_length(smb); in CIFSSMBEcho() 1602 rdata->iov[0].iov_len = server->vals->header_preamble_size; in cifs_readv_receive() 1604 rdata->iov[1].iov_len = in cifs_readv_receive() 1607 rdata->iov[0].iov_base, rdata->iov[0].iov_len); in cifs_readv_receive() 1609 rdata->iov[1].iov_base, rdata->iov[1].iov_len); in cifs_readv_receive() 1795 rdata->iov[0].iov_len = 4; in cifs_async_readv() 1797 rdata->iov[1].iov_len = get_rfc1002_length(smb); in cifs_async_readv() 1872 iov[0].iov_len = be32_to_cpu(pSMB->hdr.smb_buf_length) + 4; in CIFSSMBRead() 2311 iov[0].iov_len = 4; in cifs_async_writev() [all …]
|
/fs/nfsd/ |
D | nfscache.c | 123 nn->drc_mem_usage -= rp->c_replvec.iov_len; in nfsd_reply_cache_free_locked() 299 size_t csum_len = min_t(size_t, buf->head[0].iov_len + buf->page_len, in nfsd_cache_csum() 301 size_t len = min(buf->head[0].iov_len, csum_len); in nfsd_cache_csum() 507 len = resv->iov_len - ((char*)statp - (char*)resv->iov_base); in nfsd_cache_update() 530 cachv->iov_len = bufsize; in nfsd_cache_update() 557 if (vec->iov_len + data->iov_len > PAGE_SIZE) { in nfsd_cache_append() 559 data->iov_len); in nfsd_cache_append() 562 memcpy((char*)vec->iov_base + vec->iov_len, data->iov_base, data->iov_len); in nfsd_cache_append() 563 vec->iov_len += data->iov_len; in nfsd_cache_append()
|
D | nfsxdr.c | 261 rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); in nfssvc_decode_readargs() 262 len -= rqstp->rq_vec[v].iov_len; in nfssvc_decode_readargs() 295 if (hdr > head->iov_len) in nfssvc_decode_writeargs() 297 dlen = head->iov_len + rqstp->rq_arg.page_len - hdr; in nfssvc_decode_writeargs() 311 args->first.iov_len = head->iov_len - hdr; in nfssvc_decode_writeargs() 384 args->first.iov_len = rqstp->rq_arg.head[0].iov_len; in nfssvc_decode_symlinkargs() 385 args->first.iov_len -= (char *)p - base; in nfssvc_decode_symlinkargs() 398 if (xdrlen > args->first.iov_len - (8 * sizeof(__be32))) in nfssvc_decode_symlinkargs() 463 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfssvc_encode_readlinkres() 483 rqstp->rq_res.tail[0].iov_len = 4 - (resp->count&3); in nfssvc_encode_readres()
|
D | nfs3xdr.c | 388 rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); in nfs3svc_decode_readargs() 389 len -= rqstp->rq_vec[v].iov_len; in nfs3svc_decode_readargs() 413 if ((void *)p > head->iov_base + head->iov_len) in nfs3svc_decode_writeargs() 426 dlen = head->iov_len + rqstp->rq_arg.page_len + tail->iov_len - hdr; in nfs3svc_decode_writeargs() 444 args->first.iov_len = head->iov_len - hdr; in nfs3svc_decode_writeargs() 501 args->first.iov_len = rqstp->rq_arg.head[0].iov_len; in nfs3svc_decode_symlinkargs() 502 args->first.iov_len -= (char *)p - base; in nfs3svc_decode_symlinkargs() 504 dlen = args->first.iov_len + rqstp->rq_arg.page_len + in nfs3svc_decode_symlinkargs() 505 rqstp->rq_arg.tail[0].iov_len; in nfs3svc_decode_symlinkargs() 717 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfs3svc_encode_readlinkres() [all …]
|
D | nfs4xdr.c | 168 avail = vec->iov_len; in read_buf() 1292 write->wr_head.iov_len = avail; in nfsd4_decode_write() 2948 xdr->scratch.iov_len = 0; in svcxdr_init_encode_from_buffer() 2951 buf->head[0].iov_len = 0; in svcxdr_init_encode_from_buffer() 3497 buf->tail[0].iov_len = 0; in nfsd4_encode_splice_read() 3505 buf->tail[0].iov_len = pad; in nfsd4_encode_splice_read() 3540 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv() 3549 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv() 3679 resp->xdr.buf->head[0].iov_len = ((char *)resp->xdr.p) in nfsd4_encode_readdir() 4555 if (rqstp->rq_arg.head[0].iov_len % 4) { in nfs4svc_decode_compoundargs() [all …]
|
/fs/jffs2/ |
D | write.c | 78 vecs[0].iov_len = sizeof(*ri); in jffs2_write_dnode() 80 vecs[1].iov_len = datalen; in jffs2_write_dnode() 98 jffs2_dbg_prewrite_paranoia_check(c, flash_ofs, vecs[0].iov_len + vecs[1].iov_len); in jffs2_write_dnode() 238 vecs[0].iov_len = sizeof(*rd); in jffs2_write_dirent() 240 vecs[1].iov_len = namelen; in jffs2_write_dirent() 256 jffs2_dbg_prewrite_paranoia_check(c, flash_ofs, vecs[0].iov_len + vecs[1].iov_len); in jffs2_write_dirent()
|
D | writev.c | 43 vecs[0].iov_len = len; in jffs2_flash_direct_write()
|
D | xattr.c | 297 vecs[0].iov_len = sizeof(rx); in save_xattr_datum() 299 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; in save_xattr_datum() 300 totlen = vecs[0].iov_len + vecs[1].iov_len; in save_xattr_datum() 314 rx.data_crc = cpu_to_je32(crc32(0, vecs[1].iov_base, vecs[1].iov_len)); in save_xattr_datum()
|
/fs/9p/ |
D | xattr.c | 31 struct kvec kvec = {.iov_base = buffer, .iov_len = buffer_size}; in v9fs_fid_xattr_get() 106 struct kvec kvec = {.iov_base = (void *)value, .iov_len = value_len}; in v9fs_fid_xattr_set()
|
D | vfs_dir.c | 105 kvec.iov_len = buflen; in v9fs_dir_readdir()
|
/fs/ceph/ |
D | mds_client.c | 477 end = p + msg->front.iov_len - sizeof(struct ceph_mds_reply_head); in parse_reply_info() 1110 end = p + msg->front.iov_len; in create_session_open_msg() 1145 msg->front.iov_len = p - msg->front.iov_base; in create_session_open_msg() 1146 msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); in create_session_open_msg() 1888 msg->front.iov_len = sizeof(*head); in ceph_send_cap_releases() 1902 item = msg->front.iov_base + msg->front.iov_len; in ceph_send_cap_releases() 1907 msg->front.iov_len += sizeof(*item); in ceph_send_cap_releases() 1913 cap_barrier = msg->front.iov_base + msg->front.iov_len; in ceph_send_cap_releases() 1915 msg->front.iov_len += sizeof(*cap_barrier); in ceph_send_cap_releases() 1917 msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); in ceph_send_cap_releases() [all …]
|
D | quota.c | 47 if (msg->front.iov_len < sizeof(*h)) { in ceph_handle_quota() 49 session->s_mds, (int)msg->front.iov_len); in ceph_handle_quota()
|
/fs/ |
D | read_write.c | 405 struct iovec iov = { .iov_base = buf, .iov_len = len }; in new_sync_read() 476 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write() 718 iovec.iov_len, ppos); in do_loop_readv_writev() 721 iovec.iov_len, ppos); in do_loop_readv_writev() 730 if (nr != iovec.iov_len) in do_loop_readv_writev() 818 ssize_t len = (ssize_t)iov[seg].iov_len; in rw_copy_check_uvector() 833 iov[seg].iov_len = len; in rw_copy_check_uvector() 890 if (__get_user(len, &uvector->iov_len) || in compat_rw_copy_check_uvector() 906 iov->iov_len = (compat_size_t) len; in compat_rw_copy_check_uvector()
|
D | io_uring.c | 1364 iovec.iov_len = min(iter->count, in loop_rw_iter() 1370 iovec.iov_len, &kiocb->ki_pos); in loop_rw_iter() 1373 iovec.iov_len, &kiocb->ki_pos); in loop_rw_iter() 1385 if (nr != iovec.iov_len) in loop_rw_iter() 3390 dst->iov_len = ciov.iov_len; in io_copy_iov() 3435 if (!iov.iov_base || !iov.iov_len) in io_sqe_buffer_register() 3439 if (iov.iov_len > SZ_1G) in io_sqe_buffer_register() 3443 end = (ubuf + iov.iov_len + PAGE_SIZE - 1) >> PAGE_SHIFT; in io_sqe_buffer_register() 3514 size = iov.iov_len; in io_sqe_buffer_register() 3527 imu->len = iov.iov_len; in io_sqe_buffer_register()
|
/fs/dlm/ |
D | lowcomms.c | 659 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); in receive_from_sock() 661 iov[1].iov_len = 0; in receive_from_sock() 669 iov[0].iov_len = PAGE_SIZE - cbuf_data(&con->cb); in receive_from_sock() 670 iov[1].iov_len = con->cb.base; in receive_from_sock() 674 len = iov[0].iov_len + iov[1].iov_len; in receive_from_sock()
|
/fs/ocfs2/dlm/ |
D | dlmconvert.c | 376 vec[0].iov_len = sizeof(struct dlm_convert_lock); in dlm_send_remote_convert_request() 381 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_convert_request()
|
D | dlmast.c | 455 vec[0].iov_len = sizeof(struct dlm_proxy_ast); in dlm_send_proxy_ast_msg() 459 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_proxy_ast_msg()
|
D | dlmunlock.c | 342 vec[0].iov_len = sizeof(struct dlm_unlock_lock); in dlm_send_remote_unlock_request() 347 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_unlock_request()
|