Lines Matching refs:DS2438_PAGE_SIZE
29 #define DS2438_PAGE_SIZE 8 macro
81 count = w1_read_block(sl->master, buf, DS2438_PAGE_SIZE + 1); in w1_ds2438_get_page()
82 if (count == DS2438_PAGE_SIZE + 1) { in w1_ds2438_get_page()
83 crc = w1_calc_crc8(buf, DS2438_PAGE_SIZE); in w1_ds2438_get_page()
86 if ((u8)buf[DS2438_PAGE_SIZE] == crc) in w1_ds2438_get_page()
96 u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in w1_ds2438_get_temperature()
198 u8 w1_page1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in w1_ds2438_change_offset_register()
201 memcpy(&w1_buf[2], w1_page1_buf, DS2438_PAGE_SIZE - 1); /* last register reserved */ in w1_ds2438_change_offset_register()
226 u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in w1_ds2438_get_voltage()
273 u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in w1_ds2438_get_current()
339 u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in page0_read()
349 if (count > DS2438_PAGE_SIZE) in page0_read()
350 count = DS2438_PAGE_SIZE; in page0_read()
369 u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in page1_read()
379 if (count > DS2438_PAGE_SIZE) in page1_read()
380 count = DS2438_PAGE_SIZE; in page1_read()
476 static BIN_ATTR_RO(page0, DS2438_PAGE_SIZE);
477 static BIN_ATTR_RO(page1, DS2438_PAGE_SIZE);