Lines Matching refs:buffer
192 * @buffer: data buffer
193 * @bufflen: len of buffer
202 blk_opf_t opf, void *buffer, unsigned int bufflen,
223 buffer, bufflen, GFP_NOIO);
247 memset(buffer + bufflen - scmd->resid_len, 0, scmd->resid_len);
2075 * @buffer: request buffer (may not be smaller than eight bytes)
2076 * @len: length of request buffer.
2088 unsigned char *buffer, int len, int timeout, int retries,
2114 memcpy(real_buffer + 8, buffer, len);
2134 memcpy(real_buffer + 4, buffer, len);
2158 * @buffer: request buffer (may not be smaller than eight bytes)
2159 * @len: length of request buffer.
2170 unsigned char *buffer, int len, int timeout, int retries,
2212 memset(buffer, 0, len);
2214 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_IN, buffer, len,
2251 if (unlikely(buffer[0] == 0x86 && buffer[1] == 0x0b &&
2261 data->length = get_unaligned_be16(&buffer[0]) + 2;
2262 data->medium_type = buffer[2];
2263 data->device_specific = buffer[3];
2264 data->longlba = buffer[4] & 0x01;
2265 data->block_descriptor_length = get_unaligned_be16(&buffer[6]);
2267 data->length = buffer[0] + 1;
2268 data->medium_type = buffer[1];
2269 data->device_specific = buffer[2];
2270 data->block_descriptor_length = buffer[3];
3151 * @id: buffer for the identification
3152 * @id_len: length of the buffer
3159 * If the identifier is longer than the supplied buffer the actual
3160 * identifier length is returned and the buffer is not zero-padded.