Lines Matching defs:len
141 * @param len length must be <= (W1_F14_PAGE_SIZE - (addr & W1_F14_PAGE_MASK))
145 static int w1_f14_write(struct w1_slave *sl, int addr, int len, const u8 *data)
161 w1_write_block(sl->master, data, len);
168 w1_read_block(sl->master, rdbuf, len + 2);
175 if ((memcmp(data, &rdbuf[2], len) != 0)) {
209 int addr, len;
220 len = count;
221 while (len > 0) {
223 /* if len too short or addr not aligned */
224 if (len < W1_F14_SCRATCH_SIZE || addr & W1_F14_SCRATCH_MASK) {
234 /* copy at most to the boundary of the PAGE or len */
238 if (copy > len)
239 copy = len;
257 len -= copy;