Lines Matching refs:wrbuf
74 u8 wrbuf[3]; in w1_f1C_refresh_block() local
85 wrbuf[0] = W1_F1C_READ_EEPROM; in w1_f1C_refresh_block()
86 wrbuf[1] = off & 0xff; in w1_f1C_refresh_block()
87 wrbuf[2] = off >> 8; in w1_f1C_refresh_block()
88 w1_write_block(sl->master, wrbuf, 3); in w1_f1C_refresh_block()
100 u8 wrbuf[3]; in w1_f1C_read() local
106 wrbuf[0] = W1_F1C_READ_EEPROM; in w1_f1C_read()
107 wrbuf[1] = addr & 0xff; in w1_f1C_read()
108 wrbuf[2] = addr >> 8; in w1_f1C_read()
110 w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); in w1_f1C_read()
162 u8 wrbuf[4]; in w1_f1C_write() local
173 wrbuf[0] = W1_F1C_WRITE_SCRATCH; in w1_f1C_write()
174 wrbuf[1] = addr & 0xff; in w1_f1C_write()
175 wrbuf[2] = addr >> 8; in w1_f1C_write()
177 w1_write_block(sl->master, wrbuf, 3); in w1_f1C_write()
188 if ((rdbuf[0] != wrbuf[1]) || (rdbuf[1] != wrbuf[2]) || in w1_f1C_write()
196 wrbuf[0] = W1_F1C_COPY_SCRATCH; in w1_f1C_write()
197 wrbuf[3] = es; in w1_f1C_write()
199 for (i = 0; i < sizeof(wrbuf); ++i) { in w1_f1C_write()
202 if (w1_strong_pullup && i == sizeof(wrbuf)-1) in w1_f1C_write()
205 w1_write_8(sl->master, wrbuf[i]); in w1_f1C_write()
303 u8 wrbuf[3]; in pio_write() local
321 wrbuf[0] = W1_F1C_ACCESS_WRITE; in pio_write()
322 wrbuf[1] = *buf; in pio_write()
323 wrbuf[2] = ~(*buf); in pio_write()
324 w1_write_block(sl->master, wrbuf, 3); in pio_write()