Lines Matching refs:total_len

356 	       unsigned int *total_len)  in fill_small_buf()  argument
371 *total_len = parmsize + sizeof(struct smb2_hdr); in fill_small_buf()
381 void **request_buf, unsigned int *total_len) in __smb2_plain_req_init() argument
395 total_len); in __smb2_plain_req_init()
408 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument
417 total_len); in smb2_plain_req_init()
422 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() argument
427 request_buf, total_len); in smb2_ioctl_req_init()
430 request_buf, total_len); in smb2_ioctl_req_init()
542 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument
549 if (*total_len > 200) { in assemble_neg_contexts()
559 *total_len = ALIGN(*total_len, 8); in assemble_neg_contexts()
561 pneg_ctxt = (*total_len) + (char *)req; in assemble_neg_contexts()
562 req->NegotiateContextOffset = cpu_to_le32(*total_len); in assemble_neg_contexts()
566 *total_len += ctxt_len; in assemble_neg_contexts()
571 *total_len += ctxt_len; in assemble_neg_contexts()
584 *total_len += ctxt_len; in assemble_neg_contexts()
592 *total_len += sizeof(struct smb2_posix_neg_context); in assemble_neg_contexts()
600 *total_len += ctxt_len; in assemble_neg_contexts()
608 *total_len += ctxt_len; in assemble_neg_contexts()
880 unsigned int total_len; in SMB2_negotiate() local
890 (void **) &req, &total_len); in SMB2_negotiate()
905 total_len += 6; in SMB2_negotiate()
913 total_len += 8; in SMB2_negotiate()
918 total_len += 2; in SMB2_negotiate()
944 assemble_neg_contexts(req, server, &total_len); in SMB2_negotiate()
947 iov[0].iov_len = total_len; in SMB2_negotiate()
1281 unsigned int total_len; in SMB2_sess_alloc_buffer() local
1286 &total_len); in SMB2_sess_alloc_buffer()
1334 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()
1763 unsigned int total_len; in SMB2_logoff() local
1784 (void **) &req, &total_len); in SMB2_logoff()
1799 iov[0].iov_len = total_len; in SMB2_logoff()
1846 unsigned int total_len; in SMB2_tcon() local
1872 (void **) &req, &total_len); in SMB2_tcon()
1883 iov[0].iov_len = total_len - 1; in SMB2_tcon()
1977 unsigned int total_len; in SMB2_tdis() local
2000 &total_len); in SMB2_tdis()
2010 iov[0].iov_len = total_len; in SMB2_tdis()
2639 unsigned int total_len; in smb311_posix_mkdir() local
2657 (void **) &req, &total_len); in smb311_posix_mkdir()
2675 iov[0].iov_len = total_len - 1; in smb311_posix_mkdir()
2792 unsigned int total_len; in SMB2_open_init() local
2798 (void **) &req, &total_len); in SMB2_open_init()
2804 iov[0].iov_len = total_len - 1; in SMB2_open_init()
3076 unsigned int total_len; in SMB2_ioctl_init() local
3081 (void **) &req, &total_len); in SMB2_ioctl_init()
3116 iov[0].iov_len = total_len - 1; in SMB2_ioctl_init()
3121 iov[0].iov_len = total_len; in SMB2_ioctl_init()
3327 unsigned int total_len; in SMB2_close_init() local
3331 (void **) &req, &total_len); in SMB2_close_init()
3342 iov[0].iov_len = total_len; in SMB2_close_init()
3503 unsigned int total_len; in SMB2_query_info_init() local
3507 (void **) &req, &total_len); in SMB2_query_info_init()
3521 req->InputBufferOffset = cpu_to_le16(total_len - 1); in SMB2_query_info_init()
3527 iov[0].iov_len = total_len - 1 + input_len; in SMB2_query_info_init()
3691 unsigned int total_len; in SMB2_notify_init() local
3695 (void **) &req, &total_len); in SMB2_notify_init()
3711 iov[0].iov_len = total_len; in SMB2_notify_init()
3945 unsigned int total_len; in SMB2_echo() local
3960 (void **)&req, &total_len); in SMB2_echo()
3966 iov[0].iov_len = total_len; in SMB2_echo()
3992 unsigned int total_len; in SMB2_flush_init() local
3996 (void **) &req, &total_len); in SMB2_flush_init()
4004 iov[0].iov_len = total_len; in SMB2_flush_init()
4062 smb2_new_read_req(void **buf, unsigned int *total_len, in smb2_new_read_req() argument
4072 (void **) &req, total_len); in smb2_new_read_req()
4125 *total_len += sizeof(*v1) - 1; in smb2_new_read_req()
4131 *total_len = ALIGN(*total_len, 8); in smb2_new_read_req()
4132 shdr->NextCommand = cpu_to_le32(*total_len); in smb2_new_read_req()
4258 unsigned int total_len; in smb2_async_readv() local
4275 (void **) &buf, &total_len, &io_parms, rdata, 0, 0); in smb2_async_readv()
4283 rdata->iov[0].iov_len = total_len; in smb2_async_readv()
4328 unsigned int total_len; in SMB2_read() local
4336 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0); in SMB2_read()
4344 iov[0].iov_len = total_len; in SMB2_read()
4497 unsigned int total_len; in smb2_async_writev() local
4503 (void **) &req, &total_len); in smb2_async_writev()
4567 iov[0].iov_len = total_len - 1; in smb2_async_writev()
4641 unsigned int total_len; in SMB2_write() local
4656 (void **) &req, &total_len); in SMB2_write()
4682 iov[0].iov_len = total_len - 1; in SMB2_write()
4738 int total_len = 0; in posix_info_parse() local
4758 total_len = sizeof(struct smb2_posix_info); in posix_info_parse()
4761 owner_sid = beg + total_len; in posix_info_parse()
4765 total_len += owner_len; in posix_info_parse()
4768 group_sid = beg + total_len; in posix_info_parse()
4772 total_len += group_len; in posix_info_parse()
4775 if (beg + total_len + 4 > end) in posix_info_parse()
4777 name_len = le32_to_cpu(*(__le32 *)(beg + total_len)); in posix_info_parse()
4780 total_len += 4; in posix_info_parse()
4783 name = beg + total_len; in posix_info_parse()
4786 total_len += name_len; in posix_info_parse()
4790 out->size = total_len; in posix_info_parse()
4796 return total_len; in posix_info_parse()
4875 unsigned int total_len; in SMB2_query_directory_init() local
4880 (void **) &req, &total_len); in SMB2_query_directory_init()
4921 iov[0].iov_len = total_len - 1; in SMB2_query_directory_init()
5090 unsigned int i, total_len; in SMB2_set_info_init() local
5094 (void **) &req, &total_len); in SMB2_set_info_init()
5110 total_len += *size; in SMB2_set_info_init()
5114 iov[0].iov_len = total_len - 1; in SMB2_set_info_init()
5243 unsigned int total_len; in SMB2_oplock_break() local
5250 (void **) &req, &total_len); in SMB2_oplock_break()
5265 iov[0].iov_len = total_len; in SMB2_oplock_break()
5322 unsigned int total_len; in build_qfs_info_req() local
5330 (void **) &req, &total_len); in build_qfs_info_req()
5345 iov->iov_len = total_len; in build_qfs_info_req()
5549 unsigned int total_len; in smb2_lockv() local
5555 (void **) &req, &total_len); in smb2_lockv()
5571 iov[0].iov_len = total_len - sizeof(struct smb2_lock_element); in smb2_lockv()
5621 unsigned int total_len; in SMB2_lease_break() local
5631 (void **) &req, &total_len); in SMB2_lease_break()
5640 total_len += 12; in SMB2_lease_break()
5648 iov[0].iov_len = total_len; in SMB2_lease_break()