Searched refs:khdr (Results 1 – 6 of 6) sorted by relevance
23 struct ima_kexec_hdr khdr; in ima_dump_measurement_list() local35 file.count = sizeof(khdr); /* reserved space */ in ima_dump_measurement_list()37 memset(&khdr, 0, sizeof(khdr)); in ima_dump_measurement_list()38 khdr.version = 1; in ima_dump_measurement_list()41 khdr.count++; in ima_dump_measurement_list()56 khdr.buffer_size = file.count; in ima_dump_measurement_list()58 khdr.version = cpu_to_le16(khdr.version); in ima_dump_measurement_list()59 khdr.count = cpu_to_le64(khdr.count); in ima_dump_measurement_list()60 khdr.buffer_size = cpu_to_le64(khdr.buffer_size); in ima_dump_measurement_list()62 memcpy(file.buf, &khdr, sizeof(khdr)); in ima_dump_measurement_list()
408 struct ima_kexec_hdr *khdr = buf; in ima_restore_measurement_list() local414 void *bufp = buf + sizeof(*khdr); in ima_restore_measurement_list()422 if (!buf || size < sizeof(*khdr)) in ima_restore_measurement_list()426 khdr->version = le16_to_cpu((__force __le16)khdr->version); in ima_restore_measurement_list()427 khdr->count = le64_to_cpu((__force __le64)khdr->count); in ima_restore_measurement_list()428 khdr->buffer_size = le64_to_cpu((__force __le64)khdr->buffer_size); in ima_restore_measurement_list()431 if (khdr->version != 1) { in ima_restore_measurement_list()436 if (khdr->count > ULONG_MAX - 1) { in ima_restore_measurement_list()450 bufendp = buf + khdr->buffer_size; in ima_restore_measurement_list()451 while ((bufp < bufendp) && (count++ < khdr->count)) { in ima_restore_measurement_list()[all …]
50 .PHONY: khdr52 khdr:62 all: khdr $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES)
153 khdr: target161 all: khdr258 .PHONY: khdr all run_tests hotplug run_hotplug clean_hotplug run_pstore_crash install clean gen_tar
17 $(khdr_dir)/linux/landlock.h: khdr
622 mpt_ioctl_header khdr; in __mptctl_ioctl() local629 if (copy_from_user(&khdr, uhdr, sizeof(khdr))) { in __mptctl_ioctl()640 iocnumX = khdr.iocnum & 0xFF; in __mptctl_ioctl()
Completed in 12 milliseconds