Lines Matching refs:total_len
335 unsigned int *total_len) in fill_small_buf() argument
350 *total_len = parmsize + sizeof(struct smb2_hdr); in fill_small_buf()
360 void **request_buf, unsigned int *total_len) in __smb2_plain_req_init() argument
374 total_len); in __smb2_plain_req_init()
387 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument
396 total_len); in smb2_plain_req_init()
401 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() argument
406 request_buf, total_len); in smb2_ioctl_req_init()
409 request_buf, total_len); in smb2_ioctl_req_init()
523 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument
528 if (*total_len > 200) { in assemble_neg_contexts()
538 *total_len = roundup(*total_len, 8); in assemble_neg_contexts()
540 pneg_ctxt = (*total_len) + (char *)req; in assemble_neg_contexts()
541 req->NegotiateContextOffset = cpu_to_le32(*total_len); in assemble_neg_contexts()
545 *total_len += ctxt_len; in assemble_neg_contexts()
550 *total_len += ctxt_len; in assemble_neg_contexts()
555 *total_len += ctxt_len; in assemble_neg_contexts()
559 *total_len += sizeof(struct smb2_posix_neg_context); in assemble_neg_contexts()
570 *total_len += ctxt_len; in assemble_neg_contexts()
578 *total_len += ctxt_len; in assemble_neg_contexts()
849 unsigned int total_len; in SMB2_negotiate() local
859 (void **) &req, &total_len); in SMB2_negotiate()
874 total_len += 6; in SMB2_negotiate()
882 total_len += 8; in SMB2_negotiate()
887 total_len += 2; in SMB2_negotiate()
913 assemble_neg_contexts(req, server, &total_len); in SMB2_negotiate()
916 iov[0].iov_len = total_len; in SMB2_negotiate()
1247 unsigned int total_len; in SMB2_sess_alloc_buffer() local
1251 &total_len); in SMB2_sess_alloc_buffer()
1292 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()
1694 unsigned int total_len; in SMB2_logoff() local
1711 (void **) &req, &total_len); in SMB2_logoff()
1726 iov[0].iov_len = total_len; in SMB2_logoff()
1773 unsigned int total_len; in SMB2_tcon() local
1799 (void **) &req, &total_len); in SMB2_tcon()
1810 iov[0].iov_len = total_len - 1; in SMB2_tcon()
1906 unsigned int total_len; in SMB2_tdis() local
1923 &total_len); in SMB2_tdis()
1933 iov[0].iov_len = total_len; in SMB2_tdis()
2557 unsigned int total_len; in smb311_posix_mkdir() local
2575 (void **) &req, &total_len); in smb311_posix_mkdir()
2593 iov[0].iov_len = total_len - 1; in smb311_posix_mkdir()
2713 unsigned int total_len; in SMB2_open_init() local
2719 (void **) &req, &total_len); in SMB2_open_init()
2725 iov[0].iov_len = total_len - 1; in SMB2_open_init()
3001 unsigned int total_len; in SMB2_ioctl_init() local
3006 (void **) &req, &total_len); in SMB2_ioctl_init()
3041 iov[0].iov_len = total_len - 1; in SMB2_ioctl_init()
3046 iov[0].iov_len = total_len; in SMB2_ioctl_init()
3254 unsigned int total_len; in SMB2_close_init() local
3258 (void **) &req, &total_len); in SMB2_close_init()
3269 iov[0].iov_len = total_len; in SMB2_close_init()
3430 unsigned int total_len; in SMB2_query_info_init() local
3434 (void **) &req, &total_len); in SMB2_query_info_init()
3448 req->InputBufferOffset = cpu_to_le16(total_len - 1); in SMB2_query_info_init()
3454 iov[0].iov_len = total_len - 1 + input_len; in SMB2_query_info_init()
3618 unsigned int total_len; in SMB2_notify_init() local
3622 (void **) &req, &total_len); in SMB2_notify_init()
3638 iov[0].iov_len = total_len; in SMB2_notify_init()
3798 unsigned int total_len; in SMB2_echo() local
3809 (void **)&req, &total_len); in SMB2_echo()
3815 iov[0].iov_len = total_len; in SMB2_echo()
3841 unsigned int total_len; in SMB2_flush_init() local
3845 (void **) &req, &total_len); in SMB2_flush_init()
3853 iov[0].iov_len = total_len; in SMB2_flush_init()
3911 smb2_new_read_req(void **buf, unsigned int *total_len, in smb2_new_read_req() argument
3921 (void **) &req, total_len); in smb2_new_read_req()
3974 *total_len += sizeof(*v1) - 1; in smb2_new_read_req()
3980 *total_len = DIV_ROUND_UP(*total_len, 8) * 8; in smb2_new_read_req()
3981 shdr->NextCommand = cpu_to_le32(*total_len); in smb2_new_read_req()
4104 unsigned int total_len; in smb2_async_readv() local
4121 (void **) &buf, &total_len, &io_parms, rdata, 0, 0); in smb2_async_readv()
4129 rdata->iov[0].iov_len = total_len; in smb2_async_readv()
4174 unsigned int total_len; in SMB2_read() local
4182 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0); in SMB2_read()
4190 iov[0].iov_len = total_len; in SMB2_read()
4345 unsigned int total_len; in smb2_async_writev() local
4351 (void **) &req, &total_len); in smb2_async_writev()
4415 iov[0].iov_len = total_len - 1; in smb2_async_writev()
4489 unsigned int total_len; in SMB2_write() local
4504 (void **) &req, &total_len); in SMB2_write()
4530 iov[0].iov_len = total_len - 1; in SMB2_write()
4586 int total_len = 0; in posix_info_parse() local
4606 total_len = sizeof(struct smb2_posix_info); in posix_info_parse()
4609 owner_sid = beg + total_len; in posix_info_parse()
4613 total_len += owner_len; in posix_info_parse()
4616 group_sid = beg + total_len; in posix_info_parse()
4620 total_len += group_len; in posix_info_parse()
4623 if (beg + total_len + 4 > end) in posix_info_parse()
4625 name_len = le32_to_cpu(*(__le32 *)(beg + total_len)); in posix_info_parse()
4628 total_len += 4; in posix_info_parse()
4631 name = beg + total_len; in posix_info_parse()
4634 total_len += name_len; in posix_info_parse()
4638 out->size = total_len; in posix_info_parse()
4644 return total_len; in posix_info_parse()
4723 unsigned int total_len; in SMB2_query_directory_init() local
4728 (void **) &req, &total_len); in SMB2_query_directory_init()
4769 iov[0].iov_len = total_len - 1; in SMB2_query_directory_init()
4938 unsigned int i, total_len; in SMB2_set_info_init() local
4942 (void **) &req, &total_len); in SMB2_set_info_init()
4958 total_len += *size; in SMB2_set_info_init()
4962 iov[0].iov_len = total_len - 1; in SMB2_set_info_init()
5089 unsigned int total_len; in SMB2_oplock_break() local
5096 (void **) &req, &total_len); in SMB2_oplock_break()
5111 iov[0].iov_len = total_len; in SMB2_oplock_break()
5168 unsigned int total_len; in build_qfs_info_req() local
5176 (void **) &req, &total_len); in build_qfs_info_req()
5191 iov->iov_len = total_len; in build_qfs_info_req()
5395 unsigned int total_len; in smb2_lockv() local
5401 (void **) &req, &total_len); in smb2_lockv()
5417 iov[0].iov_len = total_len - sizeof(struct smb2_lock_element); in smb2_lockv()
5467 unsigned int total_len; in SMB2_lease_break() local
5477 (void **) &req, &total_len); in SMB2_lease_break()
5486 total_len += 12; in SMB2_lease_break()
5494 iov[0].iov_len = total_len; in SMB2_lease_break()