Lines Matching refs:read
84 * P.S. If you need to write, lock and read the Identification Page,
93 u8 *eeprom_buf, u16 buf_size, bool read)
103 .flags = read ? I2C_M_RD : 0,
112 /* Set the EEPROM address we want to write to/read from.
119 if (!read) {
141 * on the number of bytes read from the EEPROM
155 if (!read) {
174 * @eeprom_addr: EEPROM address from which to read/write
175 * @eeprom_buf: pointer to data buffer to read into/write from
177 * @read: True if reading from the EEPROM, false if writing
179 * Returns the number of bytes read/written; -errno on error.
182 u8 *eeprom_buf, u16 buf_size, bool read)
191 else if (read)
198 eeprom_buf, buf_size, read);
203 read ? "read" : "write", EEPROM_OFFSET_SIZE);
217 eeprom_buf, ps, read);