Home
last modified time | relevance | path

Searched refs:inoutbuf (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/dac/
H A Dmcp4725.c91 u8 inoutbuf[3]; in mcp4725_store_eeprom() local
102 inoutbuf[0] = 0x60; /* write EEPROM */ in mcp4725_store_eeprom()
103 inoutbuf[0] |= data->ref_mode << 3; in mcp4725_store_eeprom()
104 inoutbuf[0] |= data->powerdown ? ((data->powerdown_mode + 1) << 1) : 0; in mcp4725_store_eeprom()
105 inoutbuf[1] = data->dac_value >> 4; in mcp4725_store_eeprom()
106 inoutbuf[2] = (data->dac_value & 0xf) << 4; in mcp4725_store_eeprom()
108 ret = i2c_master_send(data->client, inoutbuf, 3); in mcp4725_store_eeprom()
117 ret = i2c_master_recv(data->client, inoutbuf, 3); in mcp4725_store_eeprom()
123 if (inoutbuf[0] & 0x80) in mcp4725_store_eeprom()
/kernel/linux/linux-6.6/drivers/iio/dac/
H A Dmcp4725.c92 u8 inoutbuf[3]; in mcp4725_store_eeprom() local
103 inoutbuf[0] = 0x60; /* write EEPROM */ in mcp4725_store_eeprom()
104 inoutbuf[0] |= data->ref_mode << 3; in mcp4725_store_eeprom()
105 inoutbuf[0] |= data->powerdown ? ((data->powerdown_mode + 1) << 1) : 0; in mcp4725_store_eeprom()
106 inoutbuf[1] = data->dac_value >> 4; in mcp4725_store_eeprom()
107 inoutbuf[2] = (data->dac_value & 0xf) << 4; in mcp4725_store_eeprom()
109 ret = i2c_master_send(data->client, inoutbuf, 3); in mcp4725_store_eeprom()
118 ret = i2c_master_recv(data->client, inoutbuf, 3); in mcp4725_store_eeprom()
124 if (inoutbuf[0] & 0x80) in mcp4725_store_eeprom()

Completed in 2 milliseconds