Lines Matching defs:data
56 u8 data[OCC_RESP_DATA_BYTES + 2]; /* two bytes checksum */
117 /* Grab how much data we have to read */
154 * Copy the user command (assume user data follows the occ command
157 * bytes 1-2: data length (msb first)
158 * bytes 3-n: data
165 /* Extract data length */
186 /* Set read tracking data */
219 /* Fetch the two bytes after the data for the checksum. */
220 u16 checksum_resp = get_unaligned_be16(&resp->data[data_length]);
230 checksum += resp->data[i];
238 static int occ_getsram(struct occ *occ, u32 address, void *data, ssize_t len)
246 * Magic sequence to do SBE getsram command. SBE will fetch data from
275 memcpy(data, resp, len);
290 static int occ_putsram(struct occ *occ, u32 address, const void *data,
311 * data to specified SRAM address.
319 memcpy(&buf[5], data, len);
465 /* Extract size of response data */
468 /* Message size is data length + 5 bytes header + 2 bytes checksum */
481 &resp->data[3], resp_data_length - 1);
496 static int occ_unregister_child(struct device *dev, void *data)