Lines Matching defs:buf
123 void *buf;
151 buf = kmalloc(length, GFP_KERNEL);
152 if (!buf)
155 buf = local_buf;
158 if (copy_from_user(buf, user_buffer, length))
182 ret = zpci_memcpy_toio(io_addr, buf, length);
188 if (buf != local_buf)
189 kfree(buf);
265 void *buf;
293 buf = kmalloc(length, GFP_KERNEL);
294 if (!buf)
297 buf = local_buf;
322 ret = zpci_memcpy_fromio(buf, io_addr, length);
329 if (!ret && copy_to_user(user_buffer, buf, length))
332 if (buf != local_buf)
333 kfree(buf);