Lines Matching refs:smb_buf

1354 	struct smb_hdr *smb_buf;
1357 (void **)&smb_buf);
1362 sess_data->iov[0].iov_base = (char *)smb_buf;
1363 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4;
1380 cifs_small_buf_release(smb_buf);
1436 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base;
1441 be32_add_cpu(&smb_buf->smb_buf_length, count);
1442 put_bcc(count, smb_buf);
1458 struct smb_hdr *smb_buf;
1521 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1523 if (smb_buf->WordCount != 3) {
1525 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1532 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1535 bytes_remaining = get_bcc(smb_buf);
1536 bcc_ptr = pByteArea(smb_buf);
1541 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1543 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) {
1568 struct smb_hdr *smb_buf;
1647 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1649 if (smb_buf->WordCount != 4) {
1651 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1658 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1661 bytes_remaining = get_bcc(smb_buf);
1662 bcc_ptr = pByteArea(smb_buf);
1677 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1679 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) {
1750 struct smb_hdr *smb_buf;
1797 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1801 smb_buf->Status.CifsError ==
1810 if (smb_buf->WordCount != 4) {
1812 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1816 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1819 bytes_remaining = get_bcc(smb_buf);
1820 bcc_ptr = pByteArea(smb_buf);
1856 struct smb_hdr *smb_buf;
1874 smb_buf = (struct smb_hdr *)pSMB;
1888 smb_buf->Uid = ses->Suid;
1899 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1900 if (smb_buf->WordCount != 4) {
1902 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1909 if (ses->Suid != smb_buf->Uid) {
1910 ses->Suid = smb_buf->Uid;
1914 bytes_remaining = get_bcc(smb_buf);
1915 bcc_ptr = pByteArea(smb_buf);
1930 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1932 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) {