Home
last modified time | relevance | path

Searched refs:W1_PAGE_SIZE (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/w1/slaves/
Dw1_ds2433.c36 #define W1_PAGE_SIZE 32 macro
72 int off = block * W1_PAGE_SIZE; in w1_f23_refresh_block()
86 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f23_refresh_block()
89 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
165 u8 rdbuf[W1_PAGE_SIZE + 3]; in w1_f23_write()
229 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write()
230 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write()
243 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK); in eeprom_write()
Dw1_ds28e04.c46 #define W1_PAGE_SIZE 32 macro
82 int off = block * W1_PAGE_SIZE; in w1_f1C_refresh_block()
96 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f1C_refresh_block()
99 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block()
170 u8 rdbuf[W1_PAGE_SIZE + 3]; in w1_f1C_write()
250 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write()
251 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) in eeprom_write()
266 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK); in eeprom_write()