Lines Matching refs:ptr
22 const uint8_t *ptr; member
36 bootentry *be = (bootentry *)bi->ptr; in validate_bootimage()
115 … SHA256_update(&ctx, (const uint8_t *)bi->ptr + be[i].file.offset, be[i].file.length); in validate_bootimage()
136 status_t bootimage_open(const void *ptr, size_t len, bootimage_t **bi) { in bootimage_open() argument
137 LTRACEF("ptr %p, len %zu\n", ptr, len); in bootimage_open()
146 (*bi)->ptr = ptr; in bootimage_open()
166 status_t bootimage_get_range(bootimage_t *bi, const void **ptr, size_t *len) { in bootimage_get_range() argument
170 if (ptr) in bootimage_get_range()
171 *ptr = bi->ptr; in bootimage_get_range()
178 status_t bootimage_get_file_section(bootimage_t *bi, uint32_t type, const void **ptr, size_t *len) { in bootimage_get_file_section() argument
182 bootentry *be = (bootentry *)bi->ptr; in bootimage_get_file_section()
193 if (ptr) in bootimage_get_file_section()
194 *ptr = bi->ptr + be[i].file.offset; in bootimage_get_file_section()