Lines Matching defs:buf
46 static int write_block(unsigned long p, const char __user *buf, int count);
123 static ssize_t flash_read(struct file *file, char __user *buf, size_t size,
130 "buffer=%p, count=0x%zx.\n", *ppos, buf, size);
137 ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize);
143 static ssize_t flash_write(struct file *file, const char __user *buf,
154 p, buf, count);
171 if (!access_ok(buf, count))
220 "from buf %p, bytes left %X.\n", p, buf,
226 rc = write_block(p, buf, count - written);
250 buf += rc;
397 static int write_block(unsigned long p, const char __user *buf, int count)
425 if (__get_user(c2, buf + offset))
536 if (__get_user(c, buf))
538 buf++;