Lines Matching defs:buffer
38 * @buffer: userspace buffer for identification
40 * Return an identifying string at @buffer, if @buffer is non-NULL, filling
41 * to the length stored at * (int *) @buffer.
43 static int ioctl_probe(struct Scsi_Host *host, void __user *buffer)
48 if (buffer) {
49 if (get_user(len, (unsigned int __user *) buffer))
60 if (copy_to_user(buffer, string, len))
495 * accommodate the sense buffer when an error occurs.
496 * The sense buffer is truncated to OMAX_SB_LEN (16) bytes so that
511 char *buffer = NULL;
530 buffer = kzalloc(bytes, GFP_NOIO | GFP_USER | __GFP_NOWARN);
531 if (!buffer)
553 if (in_len && copy_from_user(buffer, sic->data + cmdlen, in_len))
588 err = blk_rq_map_kern(q, rq, buffer, bytes, GFP_NOIO);
604 if (copy_to_user(sic->data, buffer, out_len))
612 kfree(buffer);
708 compat_caddr_t buffer;
731 .buffer = compat_ptr(cgc32.buffer),
756 .buffer = (uintptr_t)(cgc->buffer),
812 hdr.dxferp = cgc.buffer;