/openbmc/linux/drivers/char/tpm/eventlog/ |
H A D | tpm2.c | 54 size = struct_size(event_header, event, event_header->event_size); in tpm2_bios_measurements_start() 59 (event_header->event_size == 0)) in tpm2_bios_measurements_start() 93 size_t event_size; in tpm2_bios_measurements_next() local 100 event_size = struct_size(event_header, event, in tpm2_bios_measurements_next() 101 event_header->event_size); in tpm2_bios_measurements_next() 105 event_size = calc_tpm2_event_size(event, event_header); in tpm2_bios_measurements_next() 106 if (event_size == 0) in tpm2_bios_measurements_next() 111 marker = marker + event_size; in tpm2_bios_measurements_next() 117 event_size = calc_tpm2_event_size(event, event_header); in tpm2_bios_measurements_next() 118 if (((v + event_size) >= limit) || (event_size == 0)) in tpm2_bios_measurements_next() [all …]
|
H A D | tpm1.c | 90 do_endian_conversion(event->event_size); in tpm1_bios_measurements_start() 119 converted_event_size = do_endian_conversion(event->event_size); in tpm1_bios_measurements_next() 129 converted_event_size = do_endian_conversion(event->event_size); in tpm1_bios_measurements_next() 175 do_endian_conversion(event->event_size)) { in get_event_name() 177 n_len = do_endian_conversion(event->event_size); in get_event_name() 235 temp_event.event_size = do_endian_conversion(event->event_size); in tpm1_binary_bios_measurements_show() 245 i < (sizeof(struct tcpa_event) + temp_event.event_size); i++) in tpm1_binary_bios_measurements_show()
|
/openbmc/linux/include/linux/ |
H A D | tpm_eventlog.h | 30 u32 event_size; member 57 u32 event_size; member 101 u32 event_size; member 106 u32 event_size; member 268 mapping_size += sizeof(event_field->event_size); in __calc_tpm2_event_size() 281 marker = marker + sizeof(event_field->event_size) in __calc_tpm2_event_size() 282 + event_field->event_size; in __calc_tpm2_event_size() 285 if (event_type == 0 && event_field->event_size == 0) in __calc_tpm2_event_size()
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | tpm.c | 22 int event_size, size = 0; in tpm2_calc_event_log_size() local 26 event_size = __calc_tpm2_event_size(header, size_info, true); in tpm2_calc_event_log_size() 27 if (event_size == 0) in tpm2_calc_event_log_size() 29 size += event_size; in tpm2_calc_event_log_size()
|
/openbmc/phosphor-event/ |
H A D | message.cpp | 239 size_t event_size=0; in create_log_event() local 254 event_size = sizeof(logheader_t) + \ in create_log_event() 261 if((event_size + currentsize) >= maxsize) { in create_log_event() 270 currentsize += event_size; in create_log_event() 350 size_t event_size; in remove() local 356 event_size = get_file_size(s); in remove() 362 if (currentsize < event_size) in remove() 365 currentsize -= event_size; in remove()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | tpm.c | 112 ((struct tcpa_event *) last_entry_addr)->event_size; in efi_retrieve_tpm2_eventlog() 136 int event_size; in efi_retrieve_tpm2_eventlog() local 145 event_size = __calc_tpm2_event_size(header, in efi_retrieve_tpm2_eventlog() 148 final_events_size += event_size; in efi_retrieve_tpm2_eventlog()
|
H A D | efi-stub-helper.c | 253 .event_size = size, in efi_measure_tagged_event()
|
/openbmc/u-boot/lib/ |
H A D | tpm-v2.c | 176 u32 event_size; in tcg2_log_append_check() local 187 elog->log_position += event_size; in tcg2_log_append_check() 198 u32 event_size; in tcg2_log_init() local 230 event_size += 1 + in tcg2_log_init() 244 put_unaligned_le32(event_size, &log->event_size); in tcg2_log_init() 273 *((u8 *)ev + (event_size - 1)) = 0; in tcg2_log_init() 286 u32 event_size; in tcg2_replay_eventlog() local 347 event_size = get_unaligned_le32(log + pos); in tcg2_replay_eventlog() 348 pos += event_size + sizeof(u32); in tcg2_replay_eventlog() 530 u32 event_size, const u8 *event) in tcg2_measure_data() argument [all …]
|
/openbmc/linux/drivers/platform/chrome/wilco_ec/ |
H A D | event.c | 216 size_t num_words, event_size; in enqueue_events() local 223 event_size = ec_event_size(event); in enqueue_events() 231 if ((offset + event_size) > length) { in enqueue_events() 233 offset + event_size, length); in enqueue_events() 238 offset += event_size; in enqueue_events() 241 queue_event = kmemdup(event, event_size, GFP_KERNEL); in enqueue_events()
|
/openbmc/linux/fs/notify/inotify/ |
H A D | inotify_user.c | 174 size_t event_size = sizeof(struct inotify_event); in get_one_event() local 183 event_size += round_event_name_len(event); in get_one_event() 184 if (event_size > count) in get_one_event() 206 size_t event_size = sizeof(struct inotify_event); in copy_event_to_user() local 225 if (copy_to_user(buf, &inotify_event, event_size)) in copy_event_to_user() 228 buf += event_size; in copy_event_to_user() 244 event_size += pad_name_len; in copy_event_to_user() 247 return event_size; in copy_event_to_user()
|
/openbmc/u-boot/include/ |
H A D | tpm-v2.h | 165 u32 event_size; member 215 u32 event_size; member 589 u32 event_size, const u8 *event);
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_chardev.c | 101 int total_size = sizeof(*event) + ec_dev->event_size; in cros_ec_chardev_mkbp_event() 111 event->size = ec_dev->event_size; in cros_ec_chardev_mkbp_event() 113 memcpy(event->data, &ec_dev->event_data.data, ec_dev->event_size); in cros_ec_chardev_mkbp_event()
|
H A D | cros_ec_proto.c | 701 ec_dev->event_size = ret - 1; in get_next_event_xfer() 743 ec_dev->event_size = cros_ec_cmd_xfer_status(ec_dev, msg); in get_keyboard_state_event() 748 return ec_dev->event_size; in get_keyboard_state_event() 883 if (ec_dev->event_size != sizeof(host_event)) { in cros_ec_get_host_event()
|
/openbmc/linux/include/linux/platform_data/ |
H A D | cros_ec_proto.h | 189 int event_size; member
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-cdev.c | 2794 size_t event_size; in lineinfo_watch_read_unlocked() local 2800 event_size = sizeof(struct gpio_v2_line_info_changed); in lineinfo_watch_read_unlocked() 2801 if (count < event_size) in lineinfo_watch_read_unlocked() 2828 event_size = sizeof(struct gpio_v2_line_info_changed); in lineinfo_watch_read_unlocked() 2830 event_size = sizeof(struct gpioline_info_changed); in lineinfo_watch_read_unlocked() 2831 if (count < event_size) { in lineinfo_watch_read_unlocked() 2845 if (event_size == sizeof(struct gpio_v2_line_info_changed)) { in lineinfo_watch_read_unlocked() 2846 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read_unlocked() 2853 event_size)) in lineinfo_watch_read_unlocked() 2857 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read_unlocked() [all …]
|
/openbmc/linux/drivers/hid/usbhid/ |
H A D | hiddev.c | 323 int event_size; in hiddev_read() local 326 event_size = ((list->flags & HIDDEV_FLAG_UREF) != 0) ? in hiddev_read() 329 if (count < event_size) in hiddev_read() 375 retval + event_size <= count) { in hiddev_read()
|
/openbmc/linux/tools/perf/pmu-events/ |
H A D | jevents.py | 694 event_size = f'ARRAY_SIZE({event_tblname})' 697 event_size = '0' 704 if event_size == '0' and metric_size == '0':
|
/openbmc/linux/include/linux/dma/ |
H A D | ti-cppi5.h | 1000 bool wait, enum cppi5_tr_event_size event_size, in cppi5_tr_init() argument 1004 *flags |= (event_size << CPPI5_TR_EVENT_SIZE_SHIFT) & in cppi5_tr_init()
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | cros_ec_keyb.c | 266 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work() 274 ckdev->ec->event_size); in cros_ec_keyb_work()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | melfas_mip4.c | 168 unsigned int event_size; member 354 ts->event_size = buf[6]; in mip4_query_device() 356 ts->event_format, ts->event_size); in mip4_query_device() 625 for (i = 0; i < size; i += ts->event_size) { in mip4_interrupt()
|
/openbmc/linux/drivers/media/cec/platform/cros-ec/ |
H A D | cros-ec-cec.c | 45 unsigned int len = cros_ec->event_size; in handle_cec_message()
|
/openbmc/linux/drivers/power/supply/ |
H A D | cros_peripheral_charger.c | 250 ec_dev->event_size != sizeof(host_event)) in cros_ec_notify()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | main.c | 1687 u32 event_size; /* 2 u32s, or 3 u32s if timestamp recorded */ in iwl_print_event_log() local 1706 event_size = 2 * sizeof(u32); in iwl_print_event_log() 1708 event_size = 3 * sizeof(u32); in iwl_print_event_log() 1710 ptr = base + EVENT_START_OFFSET + (start_idx * event_size); in iwl_print_event_log()
|
/openbmc/linux/fs/notify/fanotify/ |
H A D | fanotify_user.c | 218 size_t event_size; in get_one_event() local 231 event_size = fanotify_event_len(info_mode, event); in get_one_event() 233 if (event_size > count) { in get_one_event()
|
/openbmc/linux/tools/perf/util/ |
H A D | session.c | 2151 u16 event_size; in prefetch_event() local 2164 event_size = event->header.size; in prefetch_event() 2165 if (head + event_size <= mmap_size) in prefetch_event() 2173 if (event_size <= mmap_size - head % page_size) { in prefetch_event() 2180 " fuzzed or compressed perf.data?\n", __func__, head, event_size, mmap_size); in prefetch_event()
|