Home
last modified time | relevance | path

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

/openbmc/linux/drivers/w1/slaves/
H A 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()
H A 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()
160 u8 rdbuf[W1_PAGE_SIZE + 3]; in w1_f23_write()
225 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write()
226 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write()
239 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK); in eeprom_write()
H A 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()
164 u8 rdbuf[W1_PAGE_SIZE + 3]; in w1_f1C_write()
246 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { in eeprom_write()
247 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) in eeprom_write()
262 len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK); in eeprom_write()