Lines Matching refs:in_buf
703 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)) {
718 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) {
726 *ppmidQ = alloc_mid(in_buf, ses->server);
869 char *in_buf, int flags)
876 iov[0].iov_base = in_buf;
877 iov[0].iov_len = get_rfc1002_length(in_buf) + 4;
1355 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
1360 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
1361 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
1403 rc = allocate_mid(ses, in_buf, &midQ);
1411 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
1419 rc = smb_send(server, in_buf, len);
1473 struct smb_hdr *in_buf,
1478 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf;
1480 /* We just modify the current in_buf to change
1489 return SendReceive(xid, ses, in_buf, out_buf,
1495 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
1502 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
1503 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
1547 rc = allocate_mid(ses, in_buf, &midQ);
1553 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
1561 rc = smb_send(server, in_buf, len);
1590 if (in_buf->Command == SMB_COM_TRANSACTION2) {
1602 rc = send_lock_cancel(xid, tcon, in_buf, out_buf);