Lines Matching refs:smb_buf
866 struct smb_hdr *smb_buf;
869 (void **)&smb_buf);
874 sess_data->iov[0].iov_base = (char *)smb_buf;
875 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4;
892 cifs_small_buf_release(smb_buf);
944 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base;
949 be32_add_cpu(&smb_buf->smb_buf_length, count);
950 put_bcc(count, smb_buf);
974 struct smb_hdr *smb_buf;
1033 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1036 if (smb_buf->WordCount != 3) {
1038 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1045 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1048 bytes_remaining = get_bcc(smb_buf);
1049 bcc_ptr = pByteArea(smb_buf);
1054 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1056 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1080 struct smb_hdr *smb_buf;
1144 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1146 if (smb_buf->WordCount != 3) {
1148 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1155 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1158 bytes_remaining = get_bcc(smb_buf);
1159 bcc_ptr = pByteArea(smb_buf);
1164 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1166 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1190 struct smb_hdr *smb_buf;
1252 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1254 if (smb_buf->WordCount != 3) {
1256 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1263 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1266 bytes_remaining = get_bcc(smb_buf);
1267 bcc_ptr = pByteArea(smb_buf);
1272 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1274 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1299 struct smb_hdr *smb_buf;
1377 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1379 if (smb_buf->WordCount != 4) {
1381 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1388 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1391 bytes_remaining = get_bcc(smb_buf);
1392 bcc_ptr = pByteArea(smb_buf);
1407 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1409 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1479 struct smb_hdr *smb_buf;
1519 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1523 smb_buf->Status.CifsError ==
1532 if (smb_buf->WordCount != 4) {
1534 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1538 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1541 bytes_remaining = get_bcc(smb_buf);
1542 bcc_ptr = pByteArea(smb_buf);
1575 struct smb_hdr *smb_buf;
1592 smb_buf = (struct smb_hdr *)pSMB;
1605 smb_buf->Uid = ses->Suid;
1616 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1617 if (smb_buf->WordCount != 4) {
1619 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1626 if (ses->Suid != smb_buf->Uid) {
1627 ses->Suid = smb_buf->Uid;
1631 bytes_remaining = get_bcc(smb_buf);
1632 bcc_ptr = pByteArea(smb_buf);
1647 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1649 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {