Lines Matching refs:in_buf
707 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
712 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
713 (in_buf->Command != SMB_COM_NEGOTIATE)) { in allocate_mid()
722 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) { in allocate_mid()
730 *ppmidQ = alloc_mid(in_buf, ses->server); in allocate_mid()
873 char *in_buf, int flags) in SendReceiveNoRsp() argument
880 iov[0].iov_base = in_buf; in SendReceiveNoRsp()
881 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp()
1359 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive() argument
1364 unsigned int len = be32_to_cpu(in_buf->smb_buf_length); in SendReceive()
1365 struct kvec iov = { .iov_base = in_buf, .iov_len = len }; in SendReceive()
1407 rc = allocate_mid(ses, in_buf, &midQ); in SendReceive()
1415 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); in SendReceive()
1423 rc = smb_send(server, in_buf, len); in SendReceive()
1477 struct smb_hdr *in_buf, in send_lock_cancel() argument
1482 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel()
1493 return SendReceive(xid, ses, in_buf, out_buf, in send_lock_cancel()
1499 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock() argument
1506 unsigned int len = be32_to_cpu(in_buf->smb_buf_length); in SendReceiveBlockingLock()
1507 struct kvec iov = { .iov_base = in_buf, .iov_len = len }; in SendReceiveBlockingLock()
1551 rc = allocate_mid(ses, in_buf, &midQ); in SendReceiveBlockingLock()
1557 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); in SendReceiveBlockingLock()
1565 rc = smb_send(server, in_buf, len); in SendReceiveBlockingLock()
1594 if (in_buf->Command == SMB_COM_TRANSACTION2) { in SendReceiveBlockingLock()
1606 rc = send_lock_cancel(xid, tcon, in_buf, out_buf); in SendReceiveBlockingLock()