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;
1350 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
1355 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
1356 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
1398 rc = allocate_mid(ses, in_buf, &midQ);
1406 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
1414 rc = smb_send(server, in_buf, len);
1468 struct smb_hdr *in_buf,
1473 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf;
1475 /* We just modify the current in_buf to change
1484 return SendReceive(xid, ses, in_buf, out_buf,
1490 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
1497 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
1498 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
1542 rc = allocate_mid(ses, in_buf, &midQ);
1548 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
1556 rc = smb_send(server, in_buf, len);
1585 if (in_buf->Command == SMB_COM_TRANSACTION2) {
1597 rc = send_lock_cancel(xid, tcon, in_buf, out_buf);