Lines Matching refs:kbuffer
111 char * kbuffer;
126 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL);
127 if (!kbuffer) {
157 bytes_read = (*fn)(pport, kbuffer, need, flags);
159 bytes_read = parport_read (pport, kbuffer, need);
180 if (bytes_read > 0 && copy_to_user (buf, kbuffer, bytes_read))
183 kfree (kbuffer);
193 char * kbuffer;
205 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL);
206 if (!kbuffer) {
220 if (copy_from_user (kbuffer, buf + bytes_written, n)) {
229 kbuffer, n, PARPORT_EPP_FAST);
232 kbuffer, n, PARPORT_EPP_FAST);
235 wrote = parport_write (pp->pdev->port, kbuffer, n);
265 kfree (kbuffer);