Searched refs:kern_buf (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bnad_debugfs.c | 322 void *kern_buf; bnad_debugfs_write_regrd() local 325 kern_buf = kzalloc(nbytes, GFP_KERNEL); bnad_debugfs_write_regrd() 326 if (!kern_buf) bnad_debugfs_write_regrd() 329 if (copy_from_user(kern_buf, (void __user *)buf, nbytes)) { bnad_debugfs_write_regrd() 330 kfree(kern_buf); bnad_debugfs_write_regrd() 334 rc = sscanf(kern_buf, "%x:%x", &addr, &len); bnad_debugfs_write_regrd() 338 kfree(kern_buf); bnad_debugfs_write_regrd() 342 kfree(kern_buf); bnad_debugfs_write_regrd() 389 void *kern_buf; bnad_debugfs_write_regwr() local 392 kern_buf = kzalloc(nbytes, GFP_KERNEL); bnad_debugfs_write_regwr() 393 if (!kern_buf) bnad_debugfs_write_regwr() 396 if (copy_from_user(kern_buf, (void __user *)buf, nbytes)) { bnad_debugfs_write_regwr() 397 kfree(kern_buf); bnad_debugfs_write_regwr() 401 rc = sscanf(kern_buf, "%x:%x", &addr, &val); bnad_debugfs_write_regwr() 405 kfree(kern_buf); bnad_debugfs_write_regwr() 408 kfree(kern_buf); bnad_debugfs_write_regwr()
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfad_debugfs.c | 261 void *kern_buf; bfad_debugfs_write_regrd() local 263 kern_buf = memdup_user(buf, nbytes); bfad_debugfs_write_regrd() 264 if (IS_ERR(kern_buf)) bfad_debugfs_write_regrd() 265 return PTR_ERR(kern_buf); bfad_debugfs_write_regrd() 267 rc = sscanf(kern_buf, "%x:%x", &addr, &len); bfad_debugfs_write_regrd() 272 kfree(kern_buf); bfad_debugfs_write_regrd() 276 kfree(kern_buf); bfad_debugfs_write_regrd() 328 void *kern_buf; bfad_debugfs_write_regwr() local 330 kern_buf = memdup_user(buf, nbytes); bfad_debugfs_write_regwr() 331 if (IS_ERR(kern_buf)) bfad_debugfs_write_regwr() 332 return PTR_ERR(kern_buf); bfad_debugfs_write_regwr() 334 rc = sscanf(kern_buf, "%x:%x", &addr, &val); bfad_debugfs_write_regwr() 339 kfree(kern_buf); bfad_debugfs_write_regwr() 342 kfree(kern_buf); bfad_debugfs_write_regwr()
|
/linux-4.1.27/drivers/staging/vme/devices/ |
H A D | vme_user.c | 96 void *kern_buf; /* Buffer address in kernel space */ member in struct:image_desc 239 image[minor].kern_buf, count, *ppos); resource_to_user() 243 retval = __copy_to_user(buf, image[minor].kern_buf, resource_to_user() 276 retval = __copy_from_user(image[minor].kern_buf, buf, resource_from_user() 284 image[minor].kern_buf, copied, *ppos); resource_from_user() 303 image_ptr = image[minor].kern_buf + *ppos; buffer_to_user() 322 image_ptr = image[minor].kern_buf + *ppos; buffer_from_user() 658 if (image[num].kern_buf) { buf_unalloc() 665 image[num].kern_buf, image[num].pci_buf); buf_unalloc() 667 image[num].kern_buf = NULL; buf_unalloc() 758 image[i].kern_buf = NULL; vme_user_probe() 808 image[i].kern_buf = vme_alloc_consistent(image[i].resource, vme_user_probe() 810 if (image[i].kern_buf == NULL) { vme_user_probe() 835 image[i].kern_buf = kmalloc(image[i].size_buf, GFP_KERNEL); vme_user_probe() 836 if (image[i].kern_buf == NULL) { vme_user_probe() 894 kfree(image[i].kern_buf); vme_user_probe() 929 kfree(image[i].kern_buf); vme_user_remove()
|
Completed in 199 milliseconds