Lines Matching refs:data
65 u8 data[OCC_RESP_DATA_BYTES + 2]; /* two bytes checksum */
127 /* Grab how much data we have to read */
160 * Copy the user command (assume user data follows the occ command
163 * bytes 1-2: data length (msb first)
164 * bytes 3-n: data
171 /* Extract data length */
178 /* Submit command; 4 bytes before the data and 2 bytes after */
185 /* Set read tracking data */
236 /* Fetch the two bytes after the data for the checksum. */
237 u16 checksum_resp = get_unaligned_be16(&resp->data[data_length]);
247 checksum += resp->data[i];
258 static int occ_getsram(struct occ *occ, u32 offset, void *data, ssize_t len)
268 * Magic sequence to do SBE getsram command. SBE will fetch data from
312 memcpy(data, resp, len);
318 static int occ_putsram(struct occ *occ, const void *data, ssize_t len,
333 * data to specified SRAM address.
353 memcpy(&buf[5 + idx], data, len);
553 /* Extract size of response data */
558 * Message size is data length + 5 bytes header + 2
602 static int occ_unregister_platform_child(struct device *dev, void *data)
611 static int occ_unregister_of_child(struct device *dev, void *data)
730 .data = (void *)occ_p9
734 .data = (void *)occ_p10