Lines Matching defs:in_buf
89 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,
94 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) &&
95 (in_buf->Command != SMB_COM_NEGOTIATE)) {
104 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) {
112 *ppmidQ = alloc_mid(in_buf, ses->server);
160 char *in_buf, int flags)
167 iov[0].iov_base = in_buf;
168 iov[0].iov_len = get_rfc1002_len(in_buf) + 4;
271 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
276 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
277 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
319 rc = allocate_mid(ses, in_buf, &midQ);
327 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
335 rc = smb_send(server, in_buf, len);
388 struct smb_hdr *in_buf,
393 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf;
395 /* We just modify the current in_buf to change
404 return SendReceive(xid, ses, in_buf, out_buf,
410 struct smb_hdr *in_buf, struct smb_hdr *out_buf,
417 unsigned int len = be32_to_cpu(in_buf->smb_buf_length);
418 struct kvec iov = { .iov_base = in_buf, .iov_len = len };
462 rc = allocate_mid(ses, in_buf, &midQ);
468 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number);
476 rc = smb_send(server, in_buf, len);
505 if (in_buf->Command == SMB_COM_TRANSACTION2) {
517 rc = send_lock_cancel(xid, tcon, in_buf, out_buf);