Lines Matching defs:buf
37 unsigned char buf[CCID_MAX_LEN];
111 dev->buf[i + y] = ioread8(dev->regs + SCR24X_DATA(y));
117 static ssize_t scr24x_read(struct file *filp, char __user *buf, size_t count,
143 len += le32_to_cpu(*(__le32 *)(&dev->buf[CCID_LENGTH_OFFSET]));
144 if (len > sizeof(dev->buf)) {
155 if (copy_to_user(buf, dev->buf, count)) {
166 static ssize_t scr24x_write(struct file *filp, const char __user *buf,
181 if (count > sizeof(dev->buf)) {
186 if (copy_from_user(dev->buf, buf, count)) {
202 iowrite8(dev->buf[i + y], dev->regs + SCR24X_DATA(y));