Lines Matching refs:image

111 find_active_var_in_image(const struct v3_var_header *var, const uint8_t *image, uint32_t offset, ui…  in find_active_var_in_image()  argument
117 store_var = (const struct v3_var_header *)(image + offset); in find_active_var_in_image()
138 find_current_offset_in_image(const uint8_t *image, uint32_t len, uint32_t *newOffset) in find_current_offset_in_image() argument
143 if (valid_store_header((const struct v3_store_header *)(image + offset))) { in find_current_offset_in_image()
149 const struct v3_var_header *store_var = (const struct v3_var_header *)(image + offset); in find_current_offset_in_image()
163 if (image[offset] == 0xFF) { in find_current_offset_in_image()
168 while ((inner_offset < len) && (image[inner_offset] == 0xFF)) { in find_current_offset_in_image()
216 IOReturn unserializeImage(const uint8_t *image, IOByteCount length);
239 static bool isValidImage(const uint8_t *image, IOByteCount length);
241 static IONVRAMV3Handler *init(IODTNVRAM *provider, const uint8_t *image, IOByteCount length,
268 IONVRAMV3Handler::isValidImage(const uint8_t *image, IOByteCount length) in isValidImage() argument
270 const struct v3_store_header *header = (const struct v3_store_header *)image; in isValidImage()
280 IONVRAMV3Handler::init(IODTNVRAM *provider, const uint8_t *image, IOByteCount length, in init() argument
296 if ((image != nullptr) && (length != 0)) { in init()
297 if (handler->unserializeImage(image, length) != kIOReturnSuccess) { in init()
596 IONVRAMV3Handler::unserializeImage(const uint8_t *image, IOByteCount length) in unserializeImage() argument
601 require(isValidImage(image, length), exit); in unserializeImage()
603 storeHeader = (const struct v3_store_header *)image; in unserializeImage()
623 bcopy(image, _nvramImage, _bankSize); in unserializeImage()