Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/w1/slaves/
Dw1_ds250x.c28 #define W1_PAGE_SIZE 32 macro
33 #define OFF2PG(off) ((off) / W1_PAGE_SIZE)
42 DECLARE_BITMAP(page_present, W1_DS2505_SIZE / W1_PAGE_SIZE);
49 int pgoff = pageno * W1_PAGE_SIZE; in w1_ds2502_read_page()
71 w1_read_block(sl->master, &data->eprom[pgoff], W1_PAGE_SIZE); in w1_ds2502_read_page()
74 if (w1_calc_crc8(&data->eprom[pgoff], W1_PAGE_SIZE) != crc8) in w1_ds2502_read_page()
97 epoff = pgoff = pageno * W1_PAGE_SIZE; in w1_ds2505_read_page()
121 pgoff = (redir ^ 0xff) * W1_PAGE_SIZE; in w1_ds2505_read_page()
125 w1_read_block(sl->master, &data->eprom[epoff], W1_PAGE_SIZE); in w1_ds2505_read_page()
127 crc = crc16(CRC16_INIT, &data->eprom[epoff], W1_PAGE_SIZE); in w1_ds2505_read_page()
Dw1_ds2433.c29 #define W1_PAGE_SIZE 32 macro
65 int off = block * W1_PAGE_SIZE; in w1_f23_refresh_block()
79 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f23_refresh_block()
82 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
158 u8 rdbuf[W1_PAGE_SIZE + 3]; in w1_f23_write()
222 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write()
223 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write()
236 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK); in eeprom_write()
Dw1_ds28e04.c39 #define W1_PAGE_SIZE 32 macro
75 int off = block * W1_PAGE_SIZE; in w1_f1C_refresh_block()
89 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f1C_refresh_block()
92 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block()
163 u8 rdbuf[W1_PAGE_SIZE + 3]; in w1_f1C_write()
243 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write()
244 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) in eeprom_write()
259 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK); in eeprom_write()