Lines Matching refs:smb
834 ECHO_REQ *smb; in CIFSSMBEcho() local
842 rc = small_smb_init(SMB_COM_ECHO, 0, NULL, (void **)&smb); in CIFSSMBEcho()
847 smb->hdr.Flags2 |= SMBFLG2_UNICODE; in CIFSSMBEcho()
850 smb->hdr.Tid = 0xffff; in CIFSSMBEcho()
851 smb->hdr.WordCount = 1; in CIFSSMBEcho()
852 put_unaligned_le16(1, &smb->EchoCount); in CIFSSMBEcho()
853 put_bcc(1, &smb->hdr); in CIFSSMBEcho()
854 smb->Data[0] = 'a'; in CIFSSMBEcho()
855 inc_rfc1001_len(smb, 3); in CIFSSMBEcho()
858 iov[0].iov_base = smb; in CIFSSMBEcho()
859 iov[1].iov_len = get_rfc1002_length(smb); in CIFSSMBEcho()
860 iov[1].iov_base = (char *)smb + 4; in CIFSSMBEcho()
867 cifs_small_buf_release(smb); in CIFSSMBEcho()
1750 READ_REQ *smb = NULL; in cifs_async_readv() local
1769 rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **)&smb); in cifs_async_readv()
1773 smb->hdr.Pid = cpu_to_le16((__u16)rdata->pid); in cifs_async_readv()
1774 smb->hdr.PidHigh = cpu_to_le16((__u16)(rdata->pid >> 16)); in cifs_async_readv()
1776 smb->AndXCommand = 0xFF; /* none */ in cifs_async_readv()
1777 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv()
1778 smb->OffsetLow = cpu_to_le32(rdata->offset & 0xFFFFFFFF); in cifs_async_readv()
1780 smb->OffsetHigh = cpu_to_le32(rdata->offset >> 32); in cifs_async_readv()
1781 smb->Remaining = 0; in cifs_async_readv()
1782 smb->MaxCount = cpu_to_le16(rdata->bytes & 0xFFFF); in cifs_async_readv()
1783 smb->MaxCountHigh = cpu_to_le32(rdata->bytes >> 16); in cifs_async_readv()
1785 smb->ByteCount = 0; in cifs_async_readv()
1789 (struct smb_com_readx_req *)smb; in cifs_async_readv()
1794 rdata->iov[0].iov_base = smb; in cifs_async_readv()
1796 rdata->iov[1].iov_base = (char *)smb + 4; in cifs_async_readv()
1797 rdata->iov[1].iov_len = get_rfc1002_length(smb); in cifs_async_readv()
1808 cifs_small_buf_release(smb); in cifs_async_readv()
2229 WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf; in cifs_writev_callback() local
2238 written = le16_to_cpu(smb->CountHigh); in cifs_writev_callback()
2240 written += le16_to_cpu(smb->Count); in cifs_writev_callback()
2275 WRITE_REQ *smb = NULL; in cifs_async_writev() local
2291 rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **)&smb); in cifs_async_writev()
2295 smb->hdr.Pid = cpu_to_le16((__u16)wdata->pid); in cifs_async_writev()
2296 smb->hdr.PidHigh = cpu_to_le16((__u16)(wdata->pid >> 16)); in cifs_async_writev()
2298 smb->AndXCommand = 0xFF; /* none */ in cifs_async_writev()
2299 smb->Fid = wdata->cfile->fid.netfid; in cifs_async_writev()
2300 smb->OffsetLow = cpu_to_le32(wdata->offset & 0xFFFFFFFF); in cifs_async_writev()
2302 smb->OffsetHigh = cpu_to_le32(wdata->offset >> 32); in cifs_async_writev()
2303 smb->Reserved = 0xFFFFFFFF; in cifs_async_writev()
2304 smb->WriteMode = 0; in cifs_async_writev()
2305 smb->Remaining = 0; in cifs_async_writev()
2307 smb->DataOffset = in cifs_async_writev()
2312 iov[0].iov_base = smb; in cifs_async_writev()
2313 iov[1].iov_len = get_rfc1002_length(smb) + 1; in cifs_async_writev()
2314 iov[1].iov_base = (char *)smb + 4; in cifs_async_writev()
2327 smb->DataLengthLow = cpu_to_le16(wdata->bytes & 0xFFFF); in cifs_async_writev()
2328 smb->DataLengthHigh = cpu_to_le16(wdata->bytes >> 16); in cifs_async_writev()
2331 inc_rfc1001_len(&smb->hdr, wdata->bytes + 1); in cifs_async_writev()
2332 put_bcc(wdata->bytes + 1, &smb->hdr); in cifs_async_writev()
2336 (struct smb_com_writex_req *)smb; in cifs_async_writev()
2352 cifs_small_buf_release(smb); in cifs_async_writev()