Lines Matching refs:smb_buf
1334 struct smb_hdr *smb_buf;
1337 (void **)&smb_buf);
1342 sess_data->iov[0].iov_base = (char *)smb_buf;
1343 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4;
1360 cifs_small_buf_release(smb_buf);
1416 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base;
1421 be32_add_cpu(&smb_buf->smb_buf_length, count);
1422 put_bcc(count, smb_buf);
1438 struct smb_hdr *smb_buf;
1501 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1503 if (smb_buf->WordCount != 3) {
1505 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1512 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1515 bytes_remaining = get_bcc(smb_buf);
1516 bcc_ptr = pByteArea(smb_buf);
1521 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1523 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) {
1548 struct smb_hdr *smb_buf;
1627 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1629 if (smb_buf->WordCount != 4) {
1631 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1638 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1641 bytes_remaining = get_bcc(smb_buf);
1642 bcc_ptr = pByteArea(smb_buf);
1657 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1659 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) {
1730 struct smb_hdr *smb_buf;
1777 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1781 smb_buf->Status.CifsError ==
1790 if (smb_buf->WordCount != 4) {
1792 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1796 ses->Suid = smb_buf->Uid; /* UID left in wire format (le) */
1799 bytes_remaining = get_bcc(smb_buf);
1800 bcc_ptr = pByteArea(smb_buf);
1836 struct smb_hdr *smb_buf;
1854 smb_buf = (struct smb_hdr *)pSMB;
1868 smb_buf->Uid = ses->Suid;
1879 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base;
1880 if (smb_buf->WordCount != 4) {
1882 cifs_dbg(VFS, "bad word count %d\n", smb_buf->WordCount);
1889 if (ses->Suid != smb_buf->Uid) {
1890 ses->Suid = smb_buf->Uid;
1894 bytes_remaining = get_bcc(smb_buf);
1895 bcc_ptr = pByteArea(smb_buf);
1910 } else if (smb_buf->Flags2 & SMBFLG2_UNICODE) {
1912 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) {