Lines Matching refs:kbuf
441 char *kbuf; /* k-addr because vread() takes vmlist_lock rwlock */ in read_kmem() local
471 kbuf = xlate_dev_kmem_ptr((void *)p); in read_kmem()
472 if (!virt_addr_valid(kbuf)) in read_kmem()
475 if (copy_to_user(buf, kbuf, sz)) in read_kmem()
490 kbuf = (char *)__get_free_page(GFP_KERNEL); in read_kmem()
491 if (!kbuf) in read_kmem()
499 sz = vread(kbuf, (char *)p, sz); in read_kmem()
502 if (copy_to_user(buf, kbuf, sz)) { in read_kmem()
513 free_page((unsigned long)kbuf); in read_kmem()
581 char *kbuf; /* k-addr because vwrite() takes vmlist_lock rwlock */ in write_kmem() local
596 kbuf = (char *)__get_free_page(GFP_KERNEL); in write_kmem()
597 if (!kbuf) in write_kmem()
607 n = copy_from_user(kbuf, buf, sz); in write_kmem()
612 vwrite(kbuf, (char *)p, sz); in write_kmem()
620 free_page((unsigned long)kbuf); in write_kmem()