Lines Matching refs:BOOTCONFIG_MAGIC_LEN
181 char magic[BOOTCONFIG_MAGIC_LEN]; in load_xbc_from_initrd()
188 if (stat.st_size < 8 + BOOTCONFIG_MAGIC_LEN) in load_xbc_from_initrd()
191 if (lseek(fd, -BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0) in load_xbc_from_initrd()
194 if (read(fd, magic, BOOTCONFIG_MAGIC_LEN) < 0) in load_xbc_from_initrd()
198 if (memcmp(magic, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN) != 0) in load_xbc_from_initrd()
201 if (lseek(fd, -(8 + BOOTCONFIG_MAGIC_LEN), SEEK_END) < 0) in load_xbc_from_initrd()
213 if (stat.st_size < size + 8 + BOOTCONFIG_MAGIC_LEN) { in load_xbc_from_initrd()
218 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd()
349 - size - 8 - BOOTCONFIG_MAGIC_LEN); in delete_xbc()
380 sizeof(uint32_t) + sizeof(uint32_t) + BOOTCONFIG_MAGIC_LEN, 1); in apply_xbc()
428 total_size = stat.st_size + size + sizeof(uint32_t) * 2 + BOOTCONFIG_MAGIC_LEN; in apply_xbc()
440 memcpy(p, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN); in apply_xbc()
441 p += BOOTCONFIG_MAGIC_LEN; in apply_xbc()