Home
last modified time | relevance | path

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

/Linux-v5.10/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()
234 temp_event.event_size = do_endian_conversion(event->event_size); in tpm1_binary_bios_measurements_show()
244 i < (sizeof(struct tcpa_event) + temp_event.event_size); i++) in tpm1_binary_bios_measurements_show()
/Linux-v5.10/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-v5.10/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-v5.10/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()
/Linux-v5.10/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-v5.10/fs/notify/inotify/
Dinotify_user.c137 size_t event_size = sizeof(struct inotify_event); in get_one_event() local
147 event_size += round_event_name_len(event); in get_one_event()
148 if (event_size > count) in get_one_event()
170 size_t event_size = sizeof(struct inotify_event); in copy_event_to_user() local
189 if (copy_to_user(buf, &inotify_event, event_size)) in copy_event_to_user()
192 buf += event_size; in copy_event_to_user()
208 event_size += pad_name_len; in copy_event_to_user()
211 return event_size; in copy_event_to_user()
/Linux-v5.10/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.c633 ec_dev->event_size = ret - 1; in get_next_event_xfer()
675 ec_dev->event_size = cros_ec_cmd_xfer_status(ec_dev, msg); in get_keyboard_state_event()
680 return ec_dev->event_size; in get_keyboard_state_event()
776 if (ec_dev->event_size != sizeof(host_event)) { in cros_ec_get_host_event()
Dcros_ec_sensorhub_ring.c912 if (ec_dev->event_size != sizeof(ec_dev->event_data.data.sensor_fifo)) { in cros_ec_sensorhub_event()
/Linux-v5.10/drivers/gpio/
Dgpiolib-cdev.c2178 size_t event_size; in lineinfo_watch_read() local
2181 event_size = sizeof(struct gpio_v2_line_info_changed); in lineinfo_watch_read()
2182 if (count < event_size) in lineinfo_watch_read()
2209 event_size = sizeof(struct gpio_v2_line_info_changed); in lineinfo_watch_read()
2211 event_size = sizeof(struct gpioline_info_changed); in lineinfo_watch_read()
2212 if (count < event_size) { in lineinfo_watch_read()
2226 if (event_size == sizeof(struct gpio_v2_line_info_changed)) { in lineinfo_watch_read()
2227 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2234 event_size)) in lineinfo_watch_read()
2238 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
[all …]
/Linux-v5.10/include/linux/platform_data/
Dcros_ec_proto.h168 int event_size; member
/Linux-v5.10/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-v5.10/drivers/input/keyboard/
Dcros_ec_keyb.c245 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
253 ckdev->ec->event_size); in cros_ec_keyb_work()
/Linux-v5.10/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-v5.10/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-v5.10/fs/notify/fanotify/
Dfanotify_user.c101 size_t event_size = FAN_EVENT_METADATA_LEN; in get_one_event() local
112 event_size += fanotify_event_info_len(fid_mode, in get_one_event()
116 if (event_size > count) { in get_one_event()
/Linux-v5.10/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c45 unsigned int len = cros_ec->event_size; in handle_cec_message()
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c1694 u32 event_size; /* 2 u32s, or 3 u32s if timestamp recorded */ in iwl_print_event_log() local
1714 event_size = 2 * sizeof(u32); in iwl_print_event_log()
1716 event_size = 3 * sizeof(u32); in iwl_print_event_log()
1718 ptr = base + EVENT_START_OFFSET + (start_idx * event_size); in iwl_print_event_log()
/Linux-v5.10/tools/perf/util/
Dsynthetic-events.c476 size_t event_size = sizeof(event->cgroup) - sizeof(event->cgroup.path); in perf_event__synthesize_cgroup() local
487 memset(&event->cgroup, 0, event_size); in perf_event__synthesize_cgroup()
490 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size; in perf_event__synthesize_cgroup()