Lines Matching defs:buf
64 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf)
79 w1_read_block(sl->master, buf, count);
87 if (!memcmp(cmp, buf, count))
98 struct bin_attribute *bin_attr, char *buf,
119 if (w1_f2d_readblock(sl, off, block_read, buf) < 0)
123 buf += W1_F2D_READ_MAXLEN;
204 struct bin_attribute *bin_attr, char *buf,
240 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy);
249 if (w1_f2d_write(sl, addr, copy, buf) < 0) {
254 buf += copy;