W1_PAGE_SIZE
w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE);
if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID)
u8 rdbuf[W1_PAGE_SIZE + 3];
for (idx = 0; idx < count; idx += W1_PAGE_SIZE) {
if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) {
len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK);
int off = block * W1_PAGE_SIZE;
pgoff = (redir ^ 0xff) * W1_PAGE_SIZE;
w1_read_block(sl->master, &data->eprom[epoff], W1_PAGE_SIZE);
crc = crc16(CRC16_INIT, &data->eprom[epoff], W1_PAGE_SIZE);
#define OFF2PG(off) ((off) / W1_PAGE_SIZE)
DECLARE_BITMAP(page_present, W1_DS2505_SIZE / W1_PAGE_SIZE);
int pgoff = pageno * W1_PAGE_SIZE;
w1_read_block(sl->master, &data->eprom[pgoff], W1_PAGE_SIZE);
if (w1_calc_crc8(&data->eprom[pgoff], W1_PAGE_SIZE) != crc8)
epoff = pgoff = pageno * W1_PAGE_SIZE;
u8 rdbuf[W1_PAGE_SIZE + 3];
for (idx = 0; idx < count; idx += W1_PAGE_SIZE) {
if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE)
len = W1_PAGE_SIZE - (addr & W1_PAGE_MASK);
int off = block * W1_PAGE_SIZE;
w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE);
if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID)