Lines Matching refs:addr
98 static int w1_f1C_read(struct w1_slave *sl, int addr, int len, char *data)
107 wrbuf[1] = addr & 0xff;
108 wrbuf[2] = addr >> 8;
155 * @param addr Address for the write
156 * @param len length must be <= (W1_PAGE_SIZE - (addr & W1_PAGE_MASK))
160 static int w1_f1C_write(struct w1_slave *sl, int addr, int len, const u8 *data)
164 u8 es = (addr + len - 1) & 0x1f;
174 wrbuf[1] = addr & 0xff;
175 wrbuf[2] = addr >> 8;
213 f1C->validcrc &= ~(1 << (addr >> W1_PAGE_BITS));
228 int addr, len, idx;
258 addr = off + idx;
259 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK);
263 if (w1_f1C_write(sl, addr, len, &buf[idx]) < 0) {