Lines Matching refs:in_buf
460 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
473 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
474 (in_buf->Command != SMB_COM_NEGOTIATE)) in allocate_mid()
481 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) in allocate_mid()
486 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid()
604 char *in_buf, int flags) in SendReceiveNoRsp() argument
610 iov[0].iov_base = in_buf; in SendReceiveNoRsp()
611 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp()
838 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive() argument
860 if (be32_to_cpu(in_buf->smb_buf_length) > CIFSMaxBufSize + in SendReceive()
863 be32_to_cpu(in_buf->smb_buf_length)); in SendReceive()
877 rc = allocate_mid(ses, in_buf, &midQ); in SendReceive()
885 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number); in SendReceive()
894 rc = smb_send(ses->server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in SendReceive()
911 send_cancel(ses->server, in_buf, midQ); in SendReceive()
951 struct smb_hdr *in_buf, in send_lock_cancel() argument
956 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel()
967 return SendReceive(xid, ses, in_buf, out_buf, in send_lock_cancel()
973 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock() argument
999 if (be32_to_cpu(in_buf->smb_buf_length) > CIFSMaxBufSize + in SendReceiveBlockingLock()
1002 be32_to_cpu(in_buf->smb_buf_length)); in SendReceiveBlockingLock()
1016 rc = allocate_mid(ses, in_buf, &midQ); in SendReceiveBlockingLock()
1022 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number); in SendReceiveBlockingLock()
1031 rc = smb_send(ses->server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in SendReceiveBlockingLock()
1057 if (in_buf->Command == SMB_COM_TRANSACTION2) { in SendReceiveBlockingLock()
1060 rc = send_cancel(ses->server, in_buf, midQ); in SendReceiveBlockingLock()
1069 rc = send_lock_cancel(xid, tcon, in_buf, out_buf); in SendReceiveBlockingLock()
1081 send_cancel(ses->server, in_buf, midQ); in SendReceiveBlockingLock()