/linux/drivers/w1/slaves/ |
H A D | w1_ds28e04.c | 74 u8 wrbuf[3]; in w1_f1C_refresh_block() local 85 wrbuf[0] = W1_F1C_READ_EEPROM; in w1_f1C_refresh_block() 86 wrbuf[1] = off & 0xff; in w1_f1C_refresh_block() 87 wrbuf[2] = off >> 8; in w1_f1C_refresh_block() 88 w1_write_block(sl->master, wrbuf, 3); in w1_f1C_refresh_block() 100 u8 wrbuf[3]; in w1_f1C_read() local 106 wrbuf[0] = W1_F1C_READ_EEPROM; in w1_f1C_read() 107 wrbuf[1] = addr & 0xff; in w1_f1C_read() 108 wrbuf[2] = addr >> 8; in w1_f1C_read() 110 w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); in w1_f1C_read() [all …]
|
H A D | w1_ds2431.c | 66 u8 wrbuf[3]; in w1_f2d_readblock() local 71 wrbuf[0] = W1_F2D_READ_EEPROM; in w1_f2d_readblock() 72 wrbuf[1] = off & 0xff; in w1_f2d_readblock() 73 wrbuf[2] = off >> 8; in w1_f2d_readblock() 78 w1_write_block(sl->master, wrbuf, 3); in w1_f2d_readblock() 84 w1_write_block(sl->master, wrbuf, 3); in w1_f2d_readblock() 148 u8 wrbuf[4]; in w1_f2d_write() local 158 wrbuf[0] = W1_F2D_WRITE_SCRATCH; in w1_f2d_write() 159 wrbuf[1] = addr & 0xff; in w1_f2d_write() 160 wrbuf[2] = addr >> 8; in w1_f2d_write() [all …]
|
H A D | w1_ds2433.c | 87 u8 wrbuf[3]; in w1_f23_refresh_block() local 98 wrbuf[0] = W1_F23_READ_EEPROM; in w1_f23_refresh_block() 99 wrbuf[1] = off & 0xff; in w1_f23_refresh_block() 100 wrbuf[2] = off >> 8; in w1_f23_refresh_block() 101 w1_write_block(sl->master, wrbuf, 3); in w1_f23_refresh_block() 121 u8 wrbuf[3]; in eeprom_read() local 150 wrbuf[0] = W1_F23_READ_EEPROM; in eeprom_read() 151 wrbuf[1] = off & 0xff; in eeprom_read() 152 wrbuf[2] = off >> 8; in eeprom_read() 153 w1_write_block(sl->master, wrbuf, 3); in eeprom_read() [all …]
|
H A D | w1_ds2805.c | 63 u8 wrbuf[3]; in w1_f0d_readblock() local 68 wrbuf[0] = W1_F0D_READ_EEPROM; in w1_f0d_readblock() 69 wrbuf[1] = off & 0x7f; in w1_f0d_readblock() 70 wrbuf[2] = 0; in w1_f0d_readblock() 75 w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); in w1_f0d_readblock() 81 w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); in w1_f0d_readblock() 147 u8 wrbuf[3]; in w1_f0d_write() local 163 wrbuf[0] = W1_F0D_WRITE_EEPROM; in w1_f0d_write() 164 wrbuf[1] = addr & 0xff; in w1_f0d_write() 165 wrbuf[2] = 0xff; /* ?? from Example */ in w1_f0d_write() [all …]
|
H A D | w1_ds2430.c | 67 u8 wrbuf[2]; in w1_f14_readblock() local 72 wrbuf[0] = W1_F14_READ_EEPROM; in w1_f14_readblock() 73 wrbuf[1] = off & 0xff; in w1_f14_readblock() 78 w1_write_block(sl->master, wrbuf, 2); in w1_f14_readblock() 84 w1_write_block(sl->master, wrbuf, 2); in w1_f14_readblock() 148 u8 wrbuf[2]; in w1_f14_write() local 157 wrbuf[0] = W1_F14_WRITE_SCRATCH; in w1_f14_write() 158 wrbuf[1] = addr & 0xff; in w1_f14_write() 160 w1_write_block(sl->master, wrbuf, 2); in w1_f14_write() 191 wrbuf[0] = W1_F14_COPY_SCRATCH; in w1_f14_write() [all …]
|
H A D | w1_ds2423.c | 36 u8 wrbuf[3]; in w1_slave_show() local 47 wrbuf[0] = 0xA5; in w1_slave_show() 48 wrbuf[1] = rom_addr & 0xFF; in w1_slave_show() 49 wrbuf[2] = rom_addr >> 8; in w1_slave_show() 52 w1_write_block(dev, wrbuf, 3); in w1_slave_show() 78 crc = crc16(CRC16_INIT, wrbuf, 3); in w1_slave_show()
|
H A D | w1_ds2408.c | 40 u8 wrbuf[3]; in _read_reg() local 56 wrbuf[0] = W1_F29_FUNC_READ_PIO_REGS; in _read_reg() 57 wrbuf[1] = address; in _read_reg() 58 wrbuf[2] = 0; in _read_reg() 59 w1_write_block(sl->master, wrbuf, 3); in _read_reg()
|
/linux/drivers/usb/serial/ |
H A D | cyberjack.c | 94 unsigned char wrbuf[5*64]; /* Buffer for collecting data to write */ member 178 if (count+priv->wrfilled > sizeof(priv->wrbuf)) { in cyberjack_write() 187 memcpy(priv->wrbuf + priv->wrfilled, buf, count); in cyberjack_write() 189 usb_serial_debug_data(dev, __func__, count, priv->wrbuf + priv->wrfilled); in cyberjack_write() 193 wrexpected = ((int)priv->wrbuf[2]<<8)+priv->wrbuf[1]+3; in cyberjack_write() 196 wrexpected = sizeof(priv->wrbuf); in cyberjack_write() 206 memcpy(port->write_urb->transfer_buffer, priv->wrbuf, length); in cyberjack_write() 231 memset(priv->wrbuf, 0, sizeof(priv->wrbuf)); in cyberjack_write() 378 priv->wrbuf + priv->wrsent, length); in cyberjack_write_bulk_callback() 400 blksize = ((int)priv->wrbuf[2]<<8)+priv->wrbuf[1]+3; in cyberjack_write_bulk_callback() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | pixcir_i2c_ts.c | 97 u8 wrbuf[1] = { 0 }; in pixcir_ts_parse() local 111 ret = i2c_master_send(tsdata->client, wrbuf, sizeof(wrbuf)); in pixcir_ts_parse() 112 if (ret != sizeof(wrbuf)) { in pixcir_ts_parse()
|
/linux/drivers/media/i2c/ |
H A D | thp7312.c | 1515 #define thp7312_flash_reg_write(thp7312, wrbuf) \ argument 1516 __thp7312_flash_reg_write(thp7312, wrbuf, sizeof(wrbuf)) 1518 #define thp7312_flash_reg_read(thp7312, wrbuf, rdbuf) \ argument 1519 __thp7312_flash_reg_read(thp7312, wrbuf, sizeof(wrbuf), \
|
/linux/arch/microblaze/boot/dts/ |
H A D | system.dts | 134 xlnx,include-wrbuf = <0x1>;
|