Lines Matching defs:buffer
271 /* Allocate and return pointer to an SMB request buffer, and set basic
304 struct smb_hdr *buffer;
310 buffer = (struct smb_hdr *)*request_buf;
311 buffer->Mid = get_next_mid(ses->server);
313 buffer->Flags2 |= SMBFLG2_UNICODE;
315 buffer->Flags2 |= SMBFLG2_ERR_STATUS;
337 /* from the mid flags when the request buffer can be resent without */
338 /* having to use a second distinct buffer for the response */
393 * less than negotiated smb buffer
1358 /* BB improve check for buffer overruns BB */
1835 /* return buffer to caller to free */
1841 } /* else no valid buffer on return - leave as null */
1903 /* Can increase buffer size if buffer is big enough in some cases ie we
1905 our buffer is big enough or if we convert to iovecs on socket writes
1906 and eliminate the copy to the CIFS buffer */
1921 /* No buffer */
2147 * Check the mid_state and signature on received buffer (if any), and queue the
2731 pSMB->OldFileName[name_len] = 0x04; /* 2nd buffer format */
2875 pSMB->OldFileName[name_len] = 0x04; /* 2nd buffer format */
3102 /* protocol specifies ASCII buffer format (0x04) for unicode */
3113 pSMB->OldFileName[name_len] = 0x04; /* 2nd buffer format */
3479 } else /* buffer big enough */ {
3800 * Initialize NT TRANSACT SMB into small smb request buffer. This assumes that
3802 * bytes (to fit in small cifs buffer size), which is the case so far, it
3960 /* check if buffer is big enough for the acl
4074 name_len++; /* account for buffer type byte */
4101 rc = -EIO; /* bad buffer passed in */
4535 /* BB remember to free buffer if error BB */
4890 } else { /* BB improve the check for buffer overruns BB */
6169 * buffer. When ea_name is NULL, it stuffs a list of attribute names into the
6170 * buffer. In both cases, the return value is either the length of the
6339 /* stop before overrun buffer */
6438 negotiated SMB buffer size BB */