Searched refs:w1_buf (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/drivers/w1/slaves/ |
D | w1_ds2438.c | 64 u8 w1_buf[2]; in w1_ds2438_get_page() local 73 w1_buf[0] = W1_DS2438_RECALL_MEMORY; in w1_ds2438_get_page() 74 w1_buf[1] = (u8)pageno; in w1_ds2438_get_page() 75 w1_write_block(sl->master, w1_buf, 2); in w1_ds2438_get_page() 79 w1_buf[0] = W1_DS2438_READ_SCRATCH; in w1_ds2438_get_page() 80 w1_buf[1] = (u8)pageno; in w1_ds2438_get_page() 81 w1_write_block(sl->master, w1_buf, 2); in w1_ds2438_get_page() 98 u8 w1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/]; in w1_ds2438_get_temperature() local 125 if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) { in w1_ds2438_get_temperature() 126 *temperature = (((int16_t) w1_buf[DS2438_TEMP_MSB]) << 8) | ((uint16_t) w1_buf[DS2438_TEMP_LSB]); in w1_ds2438_get_temperature() [all …]
|
D | w1_ds28e17.c | 122 static size_t w1_f19_error(struct w1_slave *sl, u8 w1_buf[]) in w1_f19_error() argument 125 if (w1_buf[0] & W1_F19_STATUS_CRC) in w1_f19_error() 127 if (w1_buf[0] & W1_F19_STATUS_ADDRESS) in w1_f19_error() 129 if ((w1_buf[0] & (W1_F19_STATUS_CRC | W1_F19_STATUS_ADDRESS)) == 0 in w1_f19_error() 130 && w1_buf[1] != 0) { in w1_f19_error() 132 w1_buf[1]); in w1_f19_error() 136 if (w1_buf[0] & W1_F19_STATUS_ADDRESS) in w1_f19_error() 138 if (w1_buf[0] & W1_F19_STATUS_START) in w1_f19_error() 140 if (w1_buf[0] != 0 || w1_buf[1] != 0) in w1_f19_error() 155 u8 w1_buf[2]; in __w1_f19_i2c_write() local [all …]
|
D | w1_ds2408.c | 142 u8 w1_buf[3]; in optional_read_back_valid() local 147 w1_buf[0] = W1_F29_FUNC_READ_PIO_REGS; in optional_read_back_valid() 148 w1_buf[1] = W1_F29_REG_OUTPUT_LATCH_STATE; in optional_read_back_valid() 149 w1_buf[2] = 0; in optional_read_back_valid() 151 w1_write_block(sl->master, w1_buf, 3); in optional_read_back_valid() 167 u8 w1_buf[3]; in output_write() local 182 w1_buf[0] = W1_F29_FUNC_CHANN_ACCESS_WRITE; in output_write() 183 w1_buf[1] = *buf; in output_write() 184 w1_buf[2] = ~(*buf); in output_write() 186 w1_write_block(sl->master, w1_buf, 3); in output_write() [all …]
|
D | w1_ds2406.c | 30 u8 w1_buf[6]={W1_F12_FUNC_READ_STATUS, 7, 0, 0, 0, 0}; in w1_f12_read_state() local 48 w1_write_block(sl->master, w1_buf, 3); in w1_f12_read_state() 49 w1_read_block(sl->master, w1_buf+3, 3); in w1_f12_read_state() 51 crc=crc16_byte(crc, w1_buf[i]); in w1_f12_read_state() 53 *buf=((w1_buf[3]>>5)&3)|0x30; in w1_f12_read_state() 68 u8 w1_buf[6]={W1_F12_FUNC_WRITE_STATUS, 7, 0, 0, 0, 0}; in w1_f12_write_output() local 83 w1_buf[3] = (((*buf)&3)<<5)|0x1F; in w1_f12_write_output() 84 w1_write_block(sl->master, w1_buf, 4); in w1_f12_write_output() 85 w1_read_block(sl->master, w1_buf+4, 2); in w1_f12_write_output() 87 crc=crc16_byte(crc, w1_buf[i]); in w1_f12_write_output()
|
D | w1_ds2413.c | 88 u8 w1_buf[3]; in output_write() local 107 w1_buf[0] = W1_F3A_FUNC_PIO_ACCESS_WRITE; in output_write() 108 w1_buf[1] = *buf; in output_write() 109 w1_buf[2] = ~(*buf); in output_write() 110 w1_write_block(sl->master, w1_buf, 3); in output_write()
|