/drivers/md/bcache/ |
H A D | debug.c | 166 char kbuf[80]; local 189 bch_extent_to_text(kbuf, sizeof(kbuf), &w->key); 190 i->bytes = snprintf(i->buf, PAGE_SIZE, "%s\n", kbuf);
|
/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.c | 356 u32 *kbuf; local 384 kbuf = (u32 *) get_zeroed_page(GFP_KERNEL); 385 if (!kbuf) { 410 kbuf, words); 414 free_page((unsigned long)kbuf); 419 if (copy_to_user(buf, kbuf, bytes_to_read)) { 420 free_page((unsigned long)kbuf); 425 kbuf, 428 free_page((unsigned long)kbuf); 443 u32 *kbuf; local [all...] |
/drivers/staging/goldfish/ |
H A D | goldfish_audio.c | 150 char __iomem *kbuf; local 162 kbuf = data->write_buffer1; 164 kbuf = data->write_buffer2; 167 if (copy_from_user(kbuf, buf, copy)) { 177 if (kbuf == data->write_buffer1) {
|
/drivers/xen/ |
H A D | evtchn.c | 239 evtchn_port_t *kbuf = (evtchn_port_t *)__get_free_page(GFP_KERNEL); local 242 if (kbuf == NULL) 256 if (copy_from_user(kbuf, buf, count) != 0) 262 unsigned port = kbuf[i]; 277 free_page((unsigned long)kbuf);
|
/drivers/char/ |
H A D | lp.c | 299 char *kbuf = lp_table[minor].lp_buffer; local 320 if (copy_from_user (kbuf, buf, copy_size)) { 339 written = parport_write (port, kbuf, copy_size); 387 if (copy_from_user(kbuf, buf, copy_size)) { 419 char *kbuf = lp_table[minor].lp_buffer; local 443 retval = parport_read (port, kbuf, count); 481 if (retval > 0 && copy_to_user (buf, kbuf, retval))
|
H A D | mem.c | 380 char *kbuf; /* k-addr because vread() takes vmlist_lock rwlock */ local 410 kbuf = xlate_dev_kmem_ptr((char *)p); 412 if (copy_to_user(buf, kbuf, sz)) 423 kbuf = (char *)__get_free_page(GFP_KERNEL); 424 if (!kbuf) 432 sz = vread(kbuf, (char *)p, sz); 435 if (copy_to_user(buf, kbuf, sz)) { 444 free_page((unsigned long)kbuf); 508 char *kbuf; /* k-addr because vwrite() takes vmlist_lock rwlock */ local 523 kbuf [all...] |
/drivers/misc/ |
H A D | pti.c | 613 void *kbuf; local 621 kbuf = kmalloc(size, GFP_KERNEL); 622 if (kbuf == NULL) { 634 if (copy_from_user(kbuf, tmp, size)) { 635 kfree(kbuf); 639 pti_write_to_aperture(mc, kbuf, size); 645 kfree(kbuf);
|
/drivers/mtd/ |
H A D | mtdchar.c | 189 char *kbuf; local 199 kbuf = mtd_kmalloc_up_to(mtd, &size); 200 if (!kbuf) 209 &retlen, kbuf); 213 &retlen, kbuf); 220 ops.datbuf = kbuf; 229 ret = mtd_read(mtd, *ppos, len, &retlen, kbuf); 242 if (copy_to_user(buf, kbuf, retlen)) { 243 kfree(kbuf); 255 kfree(kbuf); 271 char *kbuf; local [all...] |
H A D | mtdcore.c | 1159 void *kbuf; local 1164 kbuf = kmalloc(*size, flags); 1165 if (kbuf) 1166 return kbuf;
|
/drivers/s390/char/ |
H A D | vmur.c | 234 void *kbuf; local 253 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); 254 if (!kbuf) { 258 cpa[i].cda = (u32)(addr_t) kbuf; 259 if (copy_from_user(kbuf, ubuf, reclen)) {
|
/drivers/gpu/vga/ |
H A D | vgaarb.c | 911 char *kbuf, *curr_pos; local 918 kbuf = kmalloc(count + 1, GFP_KERNEL); 919 if (!kbuf) 922 if (copy_from_user(kbuf, buf, count)) { 923 kfree(kbuf); 926 curr_pos = kbuf; 927 kbuf[count] = '\0'; /* Just to make sure... */ 1145 kfree(kbuf); 1149 kfree(kbuf);
|
/drivers/media/usb/stkwebcam/ |
H A D | stk-webcam.c | 424 void *kbuf; local 444 kbuf = kzalloc(ISO_BUFFER_SIZE, GFP_KERNEL); 445 if (kbuf == NULL) { 450 dev->isobufs[i].data = kbuf;
|
/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | lproc_ptlrpc.c | 1184 char *kbuf; local 1187 OBD_ALLOC(kbuf, BUFLEN); 1188 if (kbuf == NULL) 1192 * OBD_ALLOC() will zero kbuf, but we only copy BUFLEN - 1 1193 * bytes into kbuf, to ensure that the string is NUL-terminated. 1196 if (copy_from_user(kbuf, buffer, 1201 tmpbuf = cfs_firststr(kbuf, min_t(unsigned long, BUFLEN - 1, count)); 1221 OBD_FREE(kbuf, BUFLEN); 1261 char *kbuf = NULL; local 1271 OBD_ALLOC(kbuf, coun [all...] |
/drivers/media/pci/ttpci/ |
H A D | av7110.h | 216 u8 *kbuf[2]; member in struct:av7110
|
/drivers/net/wan/ |
H A D | cosa.c | 789 char *kbuf; 825 kbuf = chan->rxdata; 830 if (copy_to_user(buf, kbuf, count)) { 831 kfree(kbuf); 834 kfree(kbuf); 864 char *kbuf; 878 kbuf = kmalloc(count, GFP_KERNEL|GFP_DMA); 879 if (kbuf == NULL) { 883 if (copy_from_user(kbuf, buf, count)) { 885 kfree(kbuf); 788 char *kbuf; local 863 char *kbuf; local [all...] |
/drivers/net/wireless/ath/wil6210/ |
H A D | debugfs.c | 522 char *kbuf = kmalloc(len + 1, GFP_KERNEL); local 524 if (!kbuf) 526 if (copy_from_user(kbuf, buf, len)) { 527 kfree(kbuf); 531 kbuf[len] = '\0'; 532 rc = kstrtol(kbuf, 0, &channel); 533 kfree(kbuf);
|
/drivers/usb/gadget/legacy/ |
H A D | inode.c | 372 void *kbuf; local 396 kbuf = kmalloc (len, GFP_KERNEL); 397 if (unlikely (!kbuf)) 400 value = ep_io (data, kbuf, len); 403 if (value >= 0 && copy_to_user (buf, kbuf, value)) 408 kfree (kbuf); 417 void *kbuf; local 441 kbuf = memdup_user(buf, len); 442 if (IS_ERR(kbuf)) { 443 value = PTR_ERR(kbuf); 1851 char *kbuf; local [all...] |