H A D | ppdev.c | 112 char * kbuffer; pp_read() local 127 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); pp_read() 128 if (!kbuffer) { pp_read() 158 bytes_read = (*fn)(pport, kbuffer, need, flags); pp_read() 160 bytes_read = parport_read (pport, kbuffer, need); pp_read() 181 if (bytes_read > 0 && copy_to_user (buf, kbuffer, bytes_read)) pp_read() 184 kfree (kbuffer); pp_read() 194 char * kbuffer; pp_write() local 206 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); pp_write() 207 if (!kbuffer) { pp_write() 221 if (copy_from_user (kbuffer, buf + bytes_written, n)) { pp_write() 230 kbuffer, n, PARPORT_EPP_FAST); pp_write() 233 kbuffer, n, PARPORT_EPP_FAST); pp_write() 236 wrote = parport_write (pp->pdev->port, kbuffer, n); pp_write() 262 kfree (kbuffer); pp_write()
|