Lines Matching refs:data
47 * @data: Read data
55 u8 data[RAVE_SP_EEPROM_PAGE_SIZE];
81 * @page: Data to write or buffer to store result (via page->data)
96 const unsigned int data_size = is_write ? sizeof(page->data) : 0;
99 is_write ? sizeof(*page) - sizeof(page->data) : sizeof(*page);
101 u8 cmd[RAVE_SP_EEPROM_HEADER_MAX + sizeof(page->data)];
120 * Copy our data to write to command buffer first. In case of
124 memcpy(&cmd[offset], page->data, data_size);
145 * @data: Data buffer
146 * @data_len: Size of the data buffer
158 unsigned int offset, u8 *data,
167 * This function will not work if data access we've been asked
172 if (WARN_ON(data_len > sizeof(page.data) - page_offset))
178 * to fill the rest of the page with correct data.
187 memcpy(&page.data[page_offset], data, data_len);
195 * Since we receive the result of the read via 'page.data'
196 * buffer we need to copy that to 'data'
199 memcpy(data, &page.data[page_offset], data_len);
205 * rave_sp_eeprom_access - Access EEPROM data
210 * @data: Data buffer
211 * @data_len: Size of the data buffer
222 unsigned int offset, u8 *data,
238 * not 32-byte aligned, we need to access only data up
260 data, chunk);
266 data += chunk;