Lines Matching defs:buffer
227 * @buffer: data buffer
228 * @bufflen: len of buffer
229 * @sense: optional sense buffer
241 int data_direction, void *buffer, unsigned bufflen,
259 buffer, bufflen, GFP_NOIO))
281 memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
1994 * @buffer: request buffer (may not be smaller than eight bytes)
1995 * @len: length of request buffer.
2008 unsigned char *buffer, int len, int timeout, int retries,
2024 memcpy(real_buffer + 8, buffer, len);
2046 memcpy(real_buffer + 4, buffer, len);
2069 * @buffer: request buffer (may not be smaller than eight bytes)
2070 * @len: length of request buffer.
2081 unsigned char *buffer, int len, int timeout, int retries,
2120 memset(buffer, 0, len);
2122 result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buffer, len,
2151 if (unlikely(buffer[0] == 0x86 && buffer[1] == 0x0b &&
2161 data->length = get_unaligned_be16(&buffer[0]) + 2;
2162 data->medium_type = buffer[2];
2163 data->device_specific = buffer[3];
2164 data->longlba = buffer[4] & 0x01;
2165 data->block_descriptor_length = get_unaligned_be16(&buffer[6]);
2167 data->length = buffer[0] + 1;
2168 data->medium_type = buffer[1];
2169 data->device_specific = buffer[2];
2170 data->block_descriptor_length = buffer[3];
3061 * @id: buffer for the identification
3062 * @id_len: length of the buffer
3069 * If the identifier is longer than the supplied buffer the actual
3070 * identifier length is returned and the buffer is not zero-padded.