Lines Matching refs:kernbuf
178 void *kernbuf; in srom_read() local
181 kernbuf = kmalloc(SROM_CHUNK_SIZE, GFP_KERNEL); in srom_read()
182 if (!kernbuf) in srom_read()
187 kfree(kernbuf); in srom_read()
195 hv_retval = _srom_read(srom->hv_devhdl, kernbuf, in srom_read()
203 if (copy_to_user(buf, kernbuf, hv_retval) != 0) { in srom_read()
215 kfree(kernbuf); in srom_read()
233 void *kernbuf; in srom_write() local
236 kernbuf = kmalloc(SROM_CHUNK_SIZE, GFP_KERNEL); in srom_write()
237 if (!kernbuf) in srom_write()
242 kfree(kernbuf); in srom_write()
250 if (copy_from_user(kernbuf, buf, bytes_this_pass) != 0) { in srom_write()
255 hv_retval = _srom_write(srom->hv_devhdl, kernbuf, in srom_write()
270 kfree(kernbuf); in srom_write()