Home
last modified time | relevance | path

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

1234

/linux/security/integrity/ima/
H A Dima_template_lib.c344 int ima_eventdigest_init(struct ima_event_data *event_data, in ima_eventdigest_init() argument
357 if (event_data->violation) /* recording a violation. */ in ima_eventdigest_init()
360 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()
361 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
362 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
366 if ((const char *)event_data->filename == boot_aggregate_name) { in ima_eventdigest_init()
384 if (!event_data->file) /* missing info to re-calculate the digest */ in ima_eventdigest_init()
387 inode = file_inode(event_data->file); in ima_eventdigest_init()
390 result = ima_calc_file_hash(event_data->file, hash_hdr); in ima_eventdigest_init()
393 event_data->filename, "collect_data", in ima_eventdigest_init()
[all …]
H A Dima_template_lib.h37 int ima_eventdigest_init(struct ima_event_data *event_data,
39 int ima_eventname_init(struct ima_event_data *event_data,
41 int ima_eventdigest_ng_init(struct ima_event_data *event_data,
43 int ima_eventdigest_ngv2_init(struct ima_event_data *event_data,
45 int ima_eventdigest_modsig_init(struct ima_event_data *event_data,
47 int ima_eventname_ng_init(struct ima_event_data *event_data,
49 int ima_eventsig_init(struct ima_event_data *event_data,
51 int ima_eventbuf_init(struct ima_event_data *event_data,
53 int ima_eventmodsig_init(struct ima_event_data *event_data,
55 int ima_eventevmsig_init(struct ima_event_data *event_data,
[all …]
H A Dima_api.c37 int ima_alloc_init_template(struct ima_event_data *event_data, in ima_alloc_init_template() argument
70 result = field->field_init(event_data, in ima_alloc_init_template()
139 struct ima_event_data event_data = { .iint = iint, in ima_add_violation() local
149 result = ima_alloc_init_template(&event_data, &entry, NULL); in ima_add_violation()
359 struct ima_event_data event_data = { .iint = iint, in ima_store_measurement() local
376 result = ima_alloc_init_template(&event_data, &entry, template_desc); in ima_store_measurement()
H A Dima_init.c48 struct ima_event_data event_data = { .iint = iint, in ima_add_boot_aggregate() local
82 result = ima_alloc_init_template(&event_data, &entry, NULL); in ima_add_boot_aggregate()
/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_trigger_diag.c69 struct SL_WH_TRIGGERS_EVENT_DATA_T *event_data) in _mpt3sas_raise_sigio() argument
85 memcpy(&mpi_reply->EventData, event_data, in _mpt3sas_raise_sigio()
113 struct SL_WH_TRIGGERS_EVENT_DATA_T *event_data) in mpt3sas_process_trigger_data() argument
116 u32 *trig_data = (u32 *)&event_data->u.master; in mpt3sas_process_trigger_data()
129 __func__, event_data->trigger_type, in mpt3sas_process_trigger_data()
136 if (event_data) { in mpt3sas_process_trigger_data()
137 ioc->htb_rel.trigger_type = event_data->trigger_type; in mpt3sas_process_trigger_data()
138 switch (event_data->trigger_type) { in mpt3sas_process_trigger_data()
141 &event_data->u.scsi, in mpt3sas_process_trigger_data()
146 &event_data->u.mpi, in mpt3sas_process_trigger_data()
[all …]
H A Dmpt3sas_scsih.c225 char event_data[] __aligned(4); member
3599 struct SL_WH_TRIGGERS_EVENT_DATA_T *event_data) in mpt3sas_send_trigger_data_event() argument
3606 sz = sizeof(*event_data); in mpt3sas_send_trigger_data_event()
3612 memcpy(fw_event->event_data, event_data, sizeof(*event_data)); in mpt3sas_send_trigger_data_event()
4007 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_block_io_to_children_attached_directly() argument
4013 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_block_io_to_children_attached_directly()
4014 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_block_io_to_children_attached_directly()
4017 reason_code = event_data->PHY[i].PhyStatus & in _scsih_block_io_to_children_attached_directly()
4034 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_block_io_to_pcie_children_attached_directly() argument
4040 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_block_io_to_pcie_children_attached_directly()
[all …]
/linux/drivers/connector/
H A Dcn_proc.c106 ((struct proc_event *)msg->data)->event_data.exit.exit_code; in send_msg()
129 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_fork_connector()
134 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
135 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
137 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
138 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
158 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_exec_connector()
161 ev->event_data.exec.process_pid = task->pid; in proc_exec_connector()
162 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector()
183 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_id_connector()
[all …]
/linux/tools/testing/selftests/connector/
H A Dproc_filter.c150 event->event_data.exit.process_pid, in handle_packet()
151 event->event_data.exit.process_tgid, in handle_packet()
152 event->event_data.exit.exit_code, in handle_packet()
153 event->event_data.exit.exit_signal); in handle_packet()
157 event->event_data.fork.child_pid, in handle_packet()
158 event->event_data.fork.child_tgid, in handle_packet()
159 event->event_data.fork.parent_pid, in handle_packet()
160 event->event_data.fork.parent_tgid); in handle_packet()
164 event->event_data.exec.process_pid, in handle_packet()
165 event->event_data.exec.process_tgid); in handle_packet()
[all …]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm-perf.c47 struct etm_event_data *event_data; member
195 static void free_sink_buffer(struct etm_event_data *event_data) in free_sink_buffer() argument
198 cpumask_t *mask = &event_data->mask; in free_sink_buffer()
201 if (!event_data->snk_config) in free_sink_buffer()
208 sink = coresight_get_sink(etm_event_cpu_path(event_data, cpu)); in free_sink_buffer()
209 sink_ops(sink)->free_buffer(event_data->snk_config); in free_sink_buffer()
216 struct etm_event_data *event_data; in free_event_data() local
218 event_data = container_of(work, struct etm_event_data, work); in free_event_data()
219 mask = &event_data->mask; in free_event_data()
222 free_sink_buffer(event_data); in free_event_data()
[all …]
/linux/tools/counter/
H A Dcounter_example.c47 struct counter_event event_data[2]; in main() local
70 ret = read(fd, event_data, sizeof(event_data)); in main()
76 if (ret != sizeof(event_data)) { in main()
85 event_data[0].timestamp, event_data[0].value, in main()
86 strerror(event_data[0].status), in main()
87 event_data[1].timestamp, event_data[1].value, in main()
88 strerror(event_data[1].status)); in main()
H A Dcounter_watch_events.c197 struct counter_event event_data; in main() local
375 ret = read(fd, &event_data, sizeof(event_data)); in main()
382 if (ret != sizeof(event_data)) { in main()
389 event_data.timestamp, event_data.value, in main()
390 counter_event_type_name[event_data.watch.event], in main()
391 event_data.watch.channel); in main()
393 if (event_data.status) { in main()
394 fprintf(stderr, "Error %d: %s\n", event_data.status, in main()
395 strerror(event_data.status)); in main()
/linux/drivers/misc/ibmasm/
H A Dibmasmfs.c339 struct ibmasmfs_event_data *event_data; in event_file_open() local
347 event_data = kmalloc(sizeof(struct ibmasmfs_event_data), GFP_KERNEL); in event_file_open()
348 if (!event_data) in event_file_open()
351 ibmasm_event_reader_register(sp, &event_data->reader); in event_file_open()
353 event_data->sp = sp; in event_file_open()
354 event_data->active = 0; in event_file_open()
355 file->private_data = event_data; in event_file_open()
361 struct ibmasmfs_event_data *event_data = file->private_data; in event_file_close() local
363 ibmasm_event_reader_unregister(event_data->sp, &event_data->reader); in event_file_close()
364 kfree(event_data); in event_file_close()
[all …]
/linux/drivers/input/keyboard/
H A Dcros_ec_keyb.c260 switch (ckdev->ec->event_data.event_type) { in cros_ec_keyb_work()
271 ckdev->ec->event_data.data.key_matrix, in cros_ec_keyb_work()
278 val = get_unaligned_le32(&ckdev->ec->event_data.data.sysrq); in cros_ec_keyb_work()
287 if (ckdev->ec->event_data.event_type == EC_MKBP_EVENT_BUTTON) { in cros_ec_keyb_work()
289 &ckdev->ec->event_data.data.buttons); in cros_ec_keyb_work()
293 &ckdev->ec->event_data.data.switches); in cros_ec_keyb_work()
407 union ec_response_get_next_data event_data = {}; in cros_ec_keyb_query_switches() local
411 EC_MKBP_EVENT_SWITCH, &event_data, in cros_ec_keyb_query_switches()
412 sizeof(event_data.switches)); in cros_ec_keyb_query_switches()
417 get_unaligned_le32(&event_data.switches)); in cros_ec_keyb_query_switches()
[all …]
H A Diqs62x-keys.c187 struct iqs62x_event_data *event_data = context; in iqs62x_keys_notifier() local
207 event_data->interval == iqs62x_keys->interval) in iqs62x_keys_notifier()
223 if (event_data->interval == iqs62x_keys->interval) in iqs62x_keys_notifier()
242 iqs62x_keys->interval = event_data->interval; in iqs62x_keys_notifier()
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_os.c256 struct trigger_event_data *event_data) in mpi3mr_hdb_trigger_data_event() argument
259 u16 sz = sizeof(*event_data); in mpi3mr_hdb_trigger_data_event()
273 memcpy(fwevt->event_data, event_data, sz); in mpi3mr_hdb_trigger_data_event()
432 *(struct mpi3mr_throttle_group_info **)fwevt->event_data = tg; in mpi3mr_queue_qd_reduction_event()
1344 (struct mpi3_event_data_device_status_change *)fwevt->event_data; in mpi3mr_devstatuschg_evt_bh()
1484 struct trigger_event_data *event_data) in mpi3mr_process_trigger_data_event_bh() argument
1486 struct diag_buffer_desc *trace_hdb = event_data->trace_hdb; in mpi3mr_process_trigger_data_event_bh()
1487 struct diag_buffer_desc *fw_hdb = event_data->fw_hdb; in mpi3mr_process_trigger_data_event_bh()
1490 u8 trigger_type = event_data->trigger_type; in mpi3mr_process_trigger_data_event_bh()
1492 &event_data->trigger_specific_data; in mpi3mr_process_trigger_data_event_bh()
[all …]
H A Dmpi3mr_app.c342 struct trigger_event_data event_data; in mpi3mr_process_trigger() local
368 memset(&event_data, 0, sizeof(event_data)); in mpi3mr_process_trigger()
369 event_data.trigger_type = trigger_type; in mpi3mr_process_trigger()
370 memcpy(&event_data.trigger_specific_data, trigger_data, in mpi3mr_process_trigger()
375 event_data.snapdump = true; in mpi3mr_process_trigger()
376 event_data.trace_hdb = trace_hdb; in mpi3mr_process_trigger()
377 event_data.fw_hdb = fw_hdb; in mpi3mr_process_trigger()
383 event_data.trace_hdb = trace_hdb; in mpi3mr_process_trigger()
389 event_data.fw_hdb = fw_hdb; in mpi3mr_process_trigger()
396 event_data.trace_hdb = trace_hdb; in mpi3mr_process_trigger()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_proto.c701 ec_dev->event_data = *event; in get_next_event_xfer()
743 sizeof(ec_dev->event_data.data)]; in get_keyboard_state_event()
748 msg->insize = sizeof(ec_dev->event_data.data); in get_keyboard_state_event()
752 ec_dev->event_data.event_type = EC_MKBP_EVENT_KEY_MATRIX; in get_keyboard_state_event()
753 memcpy(&ec_dev->event_data.data, msg->data, in get_keyboard_state_event()
754 sizeof(ec_dev->event_data.data)); in get_keyboard_state_event()
843 *has_more_events = ec_dev->event_data.event_type & in cros_ec_get_next_event()
845 ec_dev->event_data.event_type &= EC_MKBP_EVENT_TYPE_MASK; in cros_ec_get_next_event()
848 event_type = ec_dev->event_data.event_type; in cros_ec_get_next_event()
888 if (ec_dev->event_data.event_type != EC_MKBP_EVENT_HOST_EVENT) in cros_ec_get_host_event()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Ddevcom.h19 void *event_data);
34 void *event_data);
/linux/drivers/devfreq/
H A Dexynos-bus.c66 struct devfreq_event_data event_data; in exynos_bus_get_event() local
74 ret = devfreq_event_get_event(bus->edev[i], &event_data); in exynos_bus_get_event()
78 if (i == 0 || event_data.load_count > load_count) { in exynos_bus_get_event()
79 load_count = event_data.load_count; in exynos_bus_get_event()
80 total_count = event_data.total_count; in exynos_bus_get_event()
/linux/scripts/gcc-plugins/
H A Dstructleak_plugin.c67 static void register_attributes(void *event_data, void *data) in register_attributes() argument
99 static void finish_type(void *event_data, void *data) in finish_type() argument
101 tree type = (tree)event_data; in finish_type()
H A Drandomize_layout_plugin.c500 static void randomize_layout_finish_decl(void *event_data, void *data) in randomize_layout_finish_decl() argument
502 tree decl = (tree)event_data; in randomize_layout_finish_decl()
528 static void finish_type(void *event_data, void *data) in finish_type() argument
530 tree type = (tree)event_data; in finish_type()
560 static void register_attributes(void *event_data, void *data) in register_attributes() argument
628 static void check_global_variables(void *event_data, void *data) in check_global_variables() argument
/linux/drivers/misc/
H A Dsmpro-errmon.c216 s32 event_data; in smpro_event_data_read() local
219 ret = regmap_read(errmon->regmap, smpro_event_table[channel], &event_data); in smpro_event_data_read()
223 if (event_data != 0) in smpro_event_data_read()
224 regmap_write(errmon->regmap, smpro_event_table[channel], event_data); in smpro_event_data_read()
226 return sysfs_emit(buf, "%04x\n", event_data); in smpro_event_data_read()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_events.c801 struct kfd_event_data *event_data) in init_event_waiter() argument
803 struct kfd_event *ev = lookup_event_by_id(p, event_data->event_id); in init_event_waiter()
815 event_data->signal_event_data.last_event_age) { in init_event_waiter()
817 if (ev->event_age != event_data->signal_event_data.last_event_age) in init_event_waiter()
964 struct kfd_event_data event_data; in kfd_wait_on_events() local
966 if (copy_from_user(&event_data, &events[i], in kfd_wait_on_events()
972 ret = init_event_waiter(p, &event_waiters[i], &event_data); in kfd_wait_on_events()
1104 int type, void *event_data) in lookup_events_by_type_and_signal() argument
1111 ev_data = (struct kfd_hsa_memory_exception_data *) event_data; in lookup_events_by_type_and_signal()
/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c839 u32 event_id, event_data; in hp_wmi_notify() local
857 event_data = *(location + 1); in hp_wmi_notify()
860 event_data = *(location + 2); in hp_wmi_notify()
890 if (event_data) /* Only should be true for HP Omen */ in hp_wmi_notify()
891 key_code = event_data; in hp_wmi_notify()
947 if (event_data == 0xff) in hp_wmi_notify()
949 else if (event_data == 0xfe) in hp_wmi_notify()
952 pr_warn("Unknown camera shutter state - 0x%x\n", event_data); in hp_wmi_notify()
958 pr_info("Unknown event_id - %d - 0x%x\n", event_id, event_data); in hp_wmi_notify()
/linux/drivers/mfd/
H A Diqs62x.c458 struct iqs62x_event_data event_data; in iqs62x_irq() local
484 event_data.ui_data = get_unaligned_le16(&event_map[i]); in iqs62x_irq()
492 event_data.als_flags = event_map[i]; in iqs62x_irq()
496 event_data.ir_flags = event_map[i]; in iqs62x_irq()
500 event_data.interval = event_map[i]; in iqs62x_irq()
566 &event_data); in iqs62x_irq()

1234