Lines Matching refs:kbuffer
120 char *kbuffer; in pp_read() local
135 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); in pp_read()
136 if (!kbuffer) in pp_read()
162 bytes_read = (*fn)(pport, kbuffer, need, flags); in pp_read()
164 bytes_read = parport_read(pport, kbuffer, need); in pp_read()
185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read()
188 kfree(kbuffer); in pp_read()
198 char *kbuffer; in pp_write() local
210 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); in pp_write()
211 if (!kbuffer) in pp_write()
225 if (copy_from_user(kbuffer, buf + bytes_written, n)) { in pp_write()
234 kbuffer, n, PARPORT_EPP_FAST); in pp_write()
237 kbuffer, n, PARPORT_EPP_FAST); in pp_write()
240 wrote = parport_write(pp->pdev->port, kbuffer, n); in pp_write()
265 kfree(kbuffer); in pp_write()