Home
last modified time | relevance | path

Searched refs:event_size (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/drivers/char/tpm/eventlog/
Dtpm2.c54 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 …]
Dtpm1.c90 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()
/linux-6.1.9/include/linux/
Dtpm_eventlog.h30 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()
/linux-6.1.9/drivers/firmware/efi/
Dtpm.c22 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()
/linux-6.1.9/drivers/firmware/efi/libstub/
Dtpm.c112 ((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()
Defi-stub-helper.c386 .event_size = size, in efi_measure_tagged_event()
Defistub.h761 u32 event_size; member
/linux-6.1.9/drivers/platform/chrome/wilco_ec/
Devent.c217 size_t num_words, event_size; in enqueue_events() local
224 event_size = ec_event_size(event); in enqueue_events()
232 if ((offset + event_size) > length) { in enqueue_events()
234 offset + event_size, length); in enqueue_events()
239 offset += event_size; in enqueue_events()
242 queue_event = kmemdup(event, event_size, GFP_KERNEL); in enqueue_events()
/linux-6.1.9/fs/notify/inotify/
Dinotify_user.c174 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()
/linux-6.1.9/drivers/platform/chrome/
Dcros_ec_chardev.c101 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()
Dcros_ec_proto.c701 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()
881 if (ec_dev->event_size != sizeof(host_event)) { in cros_ec_get_host_event()
Dcros_ec_sensorhub_ring.c927 if (ec_dev->event_size != sizeof(ec_dev->event_data.data.sensor_fifo)) { in cros_ec_sensorhub_event()
Dcros_ec_proto_test.c2348 ec_dev->event_size = 0xff; in cros_ec_proto_test_get_host_event_wrong_event_size()
2362 ec_dev->event_size = sizeof(ec_dev->event_data.data.host_event); in cros_ec_proto_test_get_host_event_normal()
/linux-6.1.9/include/linux/platform_data/
Dcros_ec_proto.h169 int event_size; member
/linux-6.1.9/drivers/gpio/
Dgpiolib-cdev.c2560 size_t event_size; in lineinfo_watch_read_unlocked() local
2566 event_size = sizeof(struct gpio_v2_line_info_changed); in lineinfo_watch_read_unlocked()
2567 if (count < event_size) in lineinfo_watch_read_unlocked()
2594 event_size = sizeof(struct gpio_v2_line_info_changed); in lineinfo_watch_read_unlocked()
2596 event_size = sizeof(struct gpioline_info_changed); in lineinfo_watch_read_unlocked()
2597 if (count < event_size) { in lineinfo_watch_read_unlocked()
2611 if (event_size == sizeof(struct gpio_v2_line_info_changed)) { in lineinfo_watch_read_unlocked()
2612 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read_unlocked()
2619 event_size)) in lineinfo_watch_read_unlocked()
2623 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read_unlocked()
[all …]
/linux-6.1.9/drivers/hid/usbhid/
Dhiddev.c323 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()
/linux-6.1.9/include/linux/dma/
Dti-cppi5.h999 bool wait, enum cppi5_tr_event_size event_size, in cppi5_tr_init() argument
1003 *flags |= (event_size << CPPI5_TR_EVENT_SIZE_SHIFT) & in cppi5_tr_init()
/linux-6.1.9/drivers/input/keyboard/
Dcros_ec_keyb.c251 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
259 ckdev->ec->event_size); in cros_ec_keyb_work()
/linux-6.1.9/drivers/input/touchscreen/
Dmelfas_mip4.c168 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()
/linux-6.1.9/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c45 unsigned int len = cros_ec->event_size; in handle_cec_message()
/linux-6.1.9/drivers/power/supply/
Dcros_peripheral_charger.c251 ec_dev->event_size != sizeof(host_event)) in cros_ec_notify()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c1687 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()
/linux-6.1.9/fs/notify/fanotify/
Dfanotify_user.c218 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()
/linux-6.1.9/tools/perf/util/
Dsession.c2139 u16 event_size; in prefetch_event() local
2152 event_size = event->header.size; in prefetch_event()
2153 if (head + event_size <= mmap_size) in prefetch_event()
2161 if (event_size <= mmap_size - head % page_size) { in prefetch_event()
2168 " fuzzed or compressed perf.data?\n", __func__, head, event_size, mmap_size); in prefetch_event()
Dsynthetic-events.c551 size_t event_size = sizeof(event->cgroup) - sizeof(event->cgroup.path); in perf_event__synthesize_cgroup() local
562 memset(&event->cgroup, 0, event_size); in perf_event__synthesize_cgroup()
565 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size; in perf_event__synthesize_cgroup()