Lines Matching refs:in_buf
695 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,
708 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) &&
709 (in_buf->Command != SMB_COM_NEGOTIATE))
716 if (in_buf->Command != SMB_COM_LOGOFF_ANDX)
721 *ppmidQ = AllocMidQEntry(in_buf, ses->server);
862 char *in_buf, int flags)
869 iov[0].iov_base = in_buf;
870 iov[0].iov_len = get_rfc1002_length(in_buf) + 4;
1300 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
1305 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
1306 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
1344 rc = allocate_mid(ses, in_buf, &midQ);
1352 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
1360 rc = smb_send(server, in_buf, len);
1413 struct smb_hdr *in_buf,
1418 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf;
1420 /* We just modify the current in_buf to change
1429 return SendReceive(xid, ses, in_buf, out_buf,
1435 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
1442 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
1443 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
1483 rc = allocate_mid(ses, in_buf, &midQ);
1489 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
1497 rc = smb_send(server, in_buf, len);
1522 if (in_buf->Command == SMB_COM_TRANSACTION2) {
1534 rc = send_lock_cancel(xid, tcon, in_buf, out_buf);