w1_buf             30 drivers/w1/slaves/w1_ds2406.c 	u8 w1_buf[6]={W1_F12_FUNC_READ_STATUS, 7, 0, 0, 0, 0};
w1_buf             48 drivers/w1/slaves/w1_ds2406.c 	w1_write_block(sl->master, w1_buf, 3);
w1_buf             49 drivers/w1/slaves/w1_ds2406.c 	w1_read_block(sl->master, w1_buf+3, 3);
w1_buf             51 drivers/w1/slaves/w1_ds2406.c 		crc=crc16_byte(crc, w1_buf[i]);
w1_buf             53 drivers/w1/slaves/w1_ds2406.c 		*buf=((w1_buf[3]>>5)&3)|0x30;
w1_buf             68 drivers/w1/slaves/w1_ds2406.c 	u8 w1_buf[6]={W1_F12_FUNC_WRITE_STATUS, 7, 0, 0, 0, 0};
w1_buf             83 drivers/w1/slaves/w1_ds2406.c 	w1_buf[3] = (((*buf)&3)<<5)|0x1F;
w1_buf             84 drivers/w1/slaves/w1_ds2406.c 	w1_write_block(sl->master, w1_buf, 4);
w1_buf             85 drivers/w1/slaves/w1_ds2406.c 	w1_read_block(sl->master, w1_buf+4, 2);
w1_buf             87 drivers/w1/slaves/w1_ds2406.c 		crc=crc16_byte(crc, w1_buf[i]);
w1_buf            142 drivers/w1/slaves/w1_ds2408.c 	u8 w1_buf[3];
w1_buf            147 drivers/w1/slaves/w1_ds2408.c 	w1_buf[0] = W1_F29_FUNC_READ_PIO_REGS;
w1_buf            148 drivers/w1/slaves/w1_ds2408.c 	w1_buf[1] = W1_F29_REG_OUTPUT_LATCH_STATE;
w1_buf            149 drivers/w1/slaves/w1_ds2408.c 	w1_buf[2] = 0;
w1_buf            151 drivers/w1/slaves/w1_ds2408.c 	w1_write_block(sl->master, w1_buf, 3);
w1_buf            167 drivers/w1/slaves/w1_ds2408.c 	u8 w1_buf[3];
w1_buf            182 drivers/w1/slaves/w1_ds2408.c 		w1_buf[0] = W1_F29_FUNC_CHANN_ACCESS_WRITE;
w1_buf            183 drivers/w1/slaves/w1_ds2408.c 		w1_buf[1] = *buf;
w1_buf            184 drivers/w1/slaves/w1_ds2408.c 		w1_buf[2] = ~(*buf);
w1_buf            186 drivers/w1/slaves/w1_ds2408.c 		w1_write_block(sl->master, w1_buf, 3);
w1_buf            247 drivers/w1/slaves/w1_ds2408.c 	u8 w1_buf[4];
w1_buf            259 drivers/w1/slaves/w1_ds2408.c 		w1_buf[0] = W1_F29_FUNC_WRITE_COND_SEARCH_REG;
w1_buf            260 drivers/w1/slaves/w1_ds2408.c 		w1_buf[1] = W1_F29_REG_CONTROL_AND_STATUS;
w1_buf            261 drivers/w1/slaves/w1_ds2408.c 		w1_buf[2] = 0;
w1_buf            262 drivers/w1/slaves/w1_ds2408.c 		w1_buf[3] = *buf;
w1_buf            264 drivers/w1/slaves/w1_ds2408.c 		w1_write_block(sl->master, w1_buf, 4);
w1_buf            268 drivers/w1/slaves/w1_ds2408.c 		w1_buf[0] = W1_F29_FUNC_READ_PIO_REGS;
w1_buf            269 drivers/w1/slaves/w1_ds2408.c 		w1_buf[1] = W1_F29_REG_CONTROL_AND_STATUS;
w1_buf            270 drivers/w1/slaves/w1_ds2408.c 		w1_buf[2] = 0;
w1_buf            272 drivers/w1/slaves/w1_ds2408.c 		w1_write_block(sl->master, w1_buf, 3);
w1_buf             88 drivers/w1/slaves/w1_ds2413.c 	u8 w1_buf[3];
w1_buf            107 drivers/w1/slaves/w1_ds2413.c 		w1_buf[0] = W1_F3A_FUNC_PIO_ACCESS_WRITE;
w1_buf            108 drivers/w1/slaves/w1_ds2413.c 		w1_buf[1] = *buf;
w1_buf            109 drivers/w1/slaves/w1_ds2413.c 		w1_buf[2] = ~(*buf);
w1_buf            110 drivers/w1/slaves/w1_ds2413.c 		w1_write_block(sl->master, w1_buf, 3);
w1_buf             55 drivers/w1/slaves/w1_ds2438.c 	u8 w1_buf[2];
w1_buf             64 drivers/w1/slaves/w1_ds2438.c 		w1_buf[0] = W1_DS2438_RECALL_MEMORY;
w1_buf             65 drivers/w1/slaves/w1_ds2438.c 		w1_buf[1] = 0x00;
w1_buf             66 drivers/w1/slaves/w1_ds2438.c 		w1_write_block(sl->master, w1_buf, 2);
w1_buf             70 drivers/w1/slaves/w1_ds2438.c 		w1_buf[0] = W1_DS2438_READ_SCRATCH;
w1_buf             71 drivers/w1/slaves/w1_ds2438.c 		w1_buf[1] = 0x00;
w1_buf             72 drivers/w1/slaves/w1_ds2438.c 		w1_write_block(sl->master, w1_buf, 2);
w1_buf             89 drivers/w1/slaves/w1_ds2438.c 	u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/];
w1_buf            116 drivers/w1/slaves/w1_ds2438.c 	if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) {
w1_buf            117 drivers/w1/slaves/w1_ds2438.c 		*temperature = (((int16_t) w1_buf[DS2438_TEMP_MSB]) << 8) | ((uint16_t) w1_buf[DS2438_TEMP_LSB]);
w1_buf            131 drivers/w1/slaves/w1_ds2438.c 	u8 w1_buf[3];
w1_buf            138 drivers/w1/slaves/w1_ds2438.c 		w1_buf[0] = W1_DS2438_RECALL_MEMORY;
w1_buf            139 drivers/w1/slaves/w1_ds2438.c 		w1_buf[1] = 0x00;
w1_buf            140 drivers/w1/slaves/w1_ds2438.c 		w1_write_block(sl->master, w1_buf, 2);
w1_buf            144 drivers/w1/slaves/w1_ds2438.c 		w1_buf[0] = W1_DS2438_READ_SCRATCH;
w1_buf            145 drivers/w1/slaves/w1_ds2438.c 		w1_buf[1] = 0x00;
w1_buf            146 drivers/w1/slaves/w1_ds2438.c 		w1_write_block(sl->master, w1_buf, 2);
w1_buf            170 drivers/w1/slaves/w1_ds2438.c 			w1_buf[0] = W1_DS2438_WRITE_SCRATCH;
w1_buf            171 drivers/w1/slaves/w1_ds2438.c 			w1_buf[1] = 0x00;
w1_buf            172 drivers/w1/slaves/w1_ds2438.c 			w1_buf[2] = status;
w1_buf            173 drivers/w1/slaves/w1_ds2438.c 			w1_write_block(sl->master, w1_buf, 3);
w1_buf            177 drivers/w1/slaves/w1_ds2438.c 			w1_buf[0] = W1_DS2438_COPY_SCRATCH;
w1_buf            178 drivers/w1/slaves/w1_ds2438.c 			w1_buf[1] = 0x00;
w1_buf            179 drivers/w1/slaves/w1_ds2438.c 			w1_write_block(sl->master, w1_buf, 2);
w1_buf            191 drivers/w1/slaves/w1_ds2438.c 	u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/];
w1_buf            223 drivers/w1/slaves/w1_ds2438.c 	if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) {
w1_buf            224 drivers/w1/slaves/w1_ds2438.c 		*voltage = (((uint16_t) w1_buf[DS2438_VOLTAGE_MSB]) << 8) | ((uint16_t) w1_buf[DS2438_VOLTAGE_LSB]);
w1_buf            238 drivers/w1/slaves/w1_ds2438.c 	u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/];
w1_buf            243 drivers/w1/slaves/w1_ds2438.c 	if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) {
w1_buf            245 drivers/w1/slaves/w1_ds2438.c 		*voltage = (((int16_t) w1_buf[DS2438_CURRENT_MSB]) << 8) | ((int16_t) w1_buf[DS2438_CURRENT_LSB]);
w1_buf            304 drivers/w1/slaves/w1_ds2438.c 	u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/];
w1_buf            317 drivers/w1/slaves/w1_ds2438.c 	if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) {
w1_buf            318 drivers/w1/slaves/w1_ds2438.c 		memcpy(buf, &w1_buf, count);
w1_buf            122 drivers/w1/slaves/w1_ds28e17.c static size_t w1_f19_error(struct w1_slave *sl, u8 w1_buf[])
w1_buf            125 drivers/w1/slaves/w1_ds28e17.c 	if (w1_buf[0] & W1_F19_STATUS_CRC)
w1_buf            127 drivers/w1/slaves/w1_ds28e17.c 	if (w1_buf[0] & W1_F19_STATUS_ADDRESS)
w1_buf            129 drivers/w1/slaves/w1_ds28e17.c 	if ((w1_buf[0] & (W1_F19_STATUS_CRC | W1_F19_STATUS_ADDRESS)) == 0
w1_buf            130 drivers/w1/slaves/w1_ds28e17.c 			&& w1_buf[1] != 0) {
w1_buf            132 drivers/w1/slaves/w1_ds28e17.c 			w1_buf[1]);
w1_buf            136 drivers/w1/slaves/w1_ds28e17.c 	if (w1_buf[0] & W1_F19_STATUS_ADDRESS)
w1_buf            138 drivers/w1/slaves/w1_ds28e17.c 	if (w1_buf[0] & W1_F19_STATUS_START)
w1_buf            140 drivers/w1/slaves/w1_ds28e17.c 	if (w1_buf[0] != 0 || w1_buf[1] != 0)
w1_buf            155 drivers/w1/slaves/w1_ds28e17.c 	u8 w1_buf[2];
w1_buf            161 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = count;
w1_buf            162 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(crc, w1_buf, 1);
w1_buf            163 drivers/w1/slaves/w1_ds28e17.c 	w1_write_8(sl->master, w1_buf[0]);
w1_buf            168 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = ~(crc & 0xFF);
w1_buf            169 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = ~((crc >> 8) & 0xFF);
w1_buf            170 drivers/w1/slaves/w1_ds28e17.c 	w1_write_block(sl->master, w1_buf, 2);
w1_buf            177 drivers/w1/slaves/w1_ds28e17.c 	w1_read_block(sl->master, w1_buf, 2);
w1_buf            180 drivers/w1/slaves/w1_ds28e17.c 	error = w1_f19_error(sl, w1_buf);
w1_buf            267 drivers/w1/slaves/w1_ds28e17.c 	u8 w1_buf[5];
w1_buf            274 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = W1_F19_READ_DATA_WITH_STOP;
w1_buf            275 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = i2c_address << 1 | 0x01;
w1_buf            276 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[2] = count;
w1_buf            277 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(CRC16_INIT, w1_buf, 3);
w1_buf            278 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[3] = ~(crc & 0xFF);
w1_buf            279 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[4] = ~((crc >> 8) & 0xFF);
w1_buf            280 drivers/w1/slaves/w1_ds28e17.c 	w1_write_block(sl->master, w1_buf, 5);
w1_buf            287 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = w1_read_8(sl->master);
w1_buf            288 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = 0;
w1_buf            291 drivers/w1/slaves/w1_ds28e17.c 	error = w1_f19_error(sl, w1_buf);
w1_buf            306 drivers/w1/slaves/w1_ds28e17.c 	u8 w1_buf[3];
w1_buf            313 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = W1_F19_WRITE_READ_DATA_WITH_STOP;
w1_buf            314 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = i2c_address << 1;
w1_buf            315 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[2] = wcount;
w1_buf            316 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(CRC16_INIT, w1_buf, 3);
w1_buf            317 drivers/w1/slaves/w1_ds28e17.c 	w1_write_block(sl->master, w1_buf, 3);
w1_buf            322 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = rcount;
w1_buf            323 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(crc, w1_buf, 1);
w1_buf            324 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = ~(crc & 0xFF);
w1_buf            325 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[2] = ~((crc >> 8) & 0xFF);
w1_buf            326 drivers/w1/slaves/w1_ds28e17.c 	w1_write_block(sl->master, w1_buf, 3);
w1_buf            333 drivers/w1/slaves/w1_ds28e17.c 	w1_read_block(sl->master, w1_buf, 2);
w1_buf            336 drivers/w1/slaves/w1_ds28e17.c 	error = w1_f19_error(sl, w1_buf);
w1_buf            536 drivers/w1/slaves/w1_ds28e17.c 	u8 w1_buf[2];
w1_buf            542 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = W1_F19_WRITE_CONFIGURATION;
w1_buf            543 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = speed;
w1_buf            544 drivers/w1/slaves/w1_ds28e17.c 	w1_write_block(sl->master, w1_buf, 2);