| /kernel/linux/linux-5.10/tools/lib/traceevent/ |
| D | event-parse.c | 1 // SPDX-License-Identifier: LGPL-2.1 8 * - Copyright (C) 2009 Frederic Weisbecker, 24 #include "event-parse.h" 26 #include "event-parse-local.h" 27 #include "event-utils.h" 28 #include "trace-seq.h" 45 #define do_warning_event(event, fmt, ...) \ argument 50 if (event) \ 51 warning("[%s:%s] " fmt, event->system, \ 52 event->name, ##__VA_ARGS__); \ [all …]
|
| /kernel/linux/linux-6.6/sound/core/seq/ |
| D | seq_ump_convert.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ALSA sequencer event conversion between UMP and legacy clients 68 return port->ump_group ? (port->ump_group - 1) : 0; in get_ump_group() 72 #define make_raw_ump(port, type) \ argument 73 ump_compose(type, get_ump_group(port), 0, 0) 76 * UMP -> MIDI1 sequencer event 81 /* encode note event */ 85 ev->data.note.channel = val->note.channel; in ump_midi1_to_note_ev() 86 ev->data.note.note = val->note.note; in ump_midi1_to_note_ev() 87 ev->data.note.velocity = val->note.velocity; in ump_midi1_to_note_ev() [all …]
|
| D | seq_midi_event.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MIDI byte <-> sequencer event coder 19 MODULE_DESCRIPTION("MIDI byte <-> sequencer event coder"); 22 /* event type, index into status_event[] */ 23 /* from 0 to 6 are normal commands (note off, on, etc.) for 0x9?-0xe? */ 27 /* from 8 to 15 are events for 0xf0-0xf7 */ 46 * event list 49 int event; member 54 /* 0x80 - 0xef */ 63 {SNDRV_SEQ_EVENT_NONE, -1, NULL, NULL}, [all …]
|
| /kernel/linux/linux-6.6/tools/perf/util/ |
| D | synthetic-events.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 #include "util/data.h" 7 #include "util/event.h" 18 #include "util/synthetic-events.h" 20 #include "util/time-utils.h" 51 union perf_event *event, in perf_tool__process_synth_event() argument 56 .pid = -1, in perf_tool__process_synth_event() 57 .tid = -1, in perf_tool__process_synth_event() 58 .time = -1, in perf_tool__process_synth_event() 59 .stream_id = -1, in perf_tool__process_synth_event() [all …]
|
| D | data-convert-bt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <babeltrace/ctf-writer/writer.h> 15 #include <babeltrace/ctf-writer/clock.h> 16 #include <babeltrace/ctf-writer/stream.h> 17 #include <babeltrace/ctf-writer/event.h> 18 #include <babeltrace/ctf-writer/event-types.h> 19 #include <babeltrace/ctf-writer/event-fields.h> 20 #include <babeltrace/ctf-ir/utils.h> 23 #include "data-convert.h" 39 #include <traceevent/event-parse.h> [all …]
|
| D | session.c | 1 // SPDX-License-Identifier: GPL-2.0 31 #include "thread-stack.h" 32 #include "sample-raw.h" 43 union perf_event *event, u64 file_offset, in perf_session__process_compressed_event() argument 49 size_t mmap_len, decomp_len = session->header.env.comp_mmap_len; in perf_session__process_compressed_event() 50 struct decomp *decomp, *decomp_last = session->active_decomp->decomp_last; in perf_session__process_compressed_event() 53 decomp_last_rem = decomp_last->size - decomp_last->head; in perf_session__process_compressed_event() 59 MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in perf_session__process_compressed_event() 62 return -1; in perf_session__process_compressed_event() 65 decomp->file_pos = file_offset; in perf_session__process_compressed_event() [all …]
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | data-convert-bt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <babeltrace/ctf-writer/writer.h> 15 #include <babeltrace/ctf-writer/clock.h> 16 #include <babeltrace/ctf-writer/stream.h> 17 #include <babeltrace/ctf-writer/event.h> 18 #include <babeltrace/ctf-writer/event-types.h> 19 #include <babeltrace/ctf-writer/event-fields.h> 20 #include <babeltrace/ctf-ir/utils.h> 22 #include <traceevent/event-parse.h> 24 #include "data-convert-bt.h" [all …]
|
| D | synthetic-events.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include "util/event.h" 16 #include "util/synthetic-events.h" 18 #include "util/time-utils.h" 51 union perf_event *event, in perf_tool__process_synth_event() argument 56 .pid = -1, in perf_tool__process_synth_event() 57 .tid = -1, in perf_tool__process_synth_event() 58 .time = -1, in perf_tool__process_synth_event() 59 .stream_id = -1, in perf_tool__process_synth_event() 60 .cpu = -1, in perf_tool__process_synth_event() [all …]
|
| D | session.c | 1 // SPDX-License-Identifier: GPL-2.0 29 #include "thread-stack.h" 30 #include "sample-raw.h" 39 union perf_event *event, u64 file_offset) in perf_session__process_compressed_event() argument 44 size_t mmap_len, decomp_len = session->header.env.comp_mmap_len; in perf_session__process_compressed_event() 45 struct decomp *decomp, *decomp_last = session->decomp_last; in perf_session__process_compressed_event() 48 decomp_last_rem = decomp_last->size - decomp_last->head; in perf_session__process_compressed_event() 54 MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in perf_session__process_compressed_event() 57 return -1; in perf_session__process_compressed_event() 60 decomp->file_pos = file_offset; in perf_session__process_compressed_event() [all …]
|
| /kernel/linux/linux-5.10/drivers/acpi/ |
| D | event.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * event.c - exporting ACPI events via procfs 25 int acpi_notifier_call_chain(struct acpi_device *dev, u32 type, u32 data) in acpi_notifier_call_chain() argument 27 struct acpi_bus_event event; in acpi_notifier_call_chain() local 29 strcpy(event.device_class, dev->pnp.device_class); in acpi_notifier_call_chain() 30 strcpy(event.bus_id, dev->pnp.bus_id); in acpi_notifier_call_chain() 31 event.type = type; in acpi_notifier_call_chain() 32 event.data = data; in acpi_notifier_call_chain() 33 return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event) in acpi_notifier_call_chain() 34 == NOTIFY_BAD) ? -EINVAL : 0; in acpi_notifier_call_chain() [all …]
|
| /kernel/linux/linux-6.6/drivers/acpi/ |
| D | event.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * event.c - exporting ACPI events via procfs 27 int acpi_notifier_call_chain(struct acpi_device *dev, u32 type, u32 data) in acpi_notifier_call_chain() argument 29 struct acpi_bus_event event; in acpi_notifier_call_chain() local 31 strcpy(event.device_class, dev->pnp.device_class); in acpi_notifier_call_chain() 32 strcpy(event.bus_id, dev->pnp.bus_id); in acpi_notifier_call_chain() 33 event.type = type; in acpi_notifier_call_chain() 34 event.data = data; in acpi_notifier_call_chain() 35 return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event) in acpi_notifier_call_chain() 36 == NOTIFY_BAD) ? -EINVAL : 0; in acpi_notifier_call_chain() [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | vidioc-dqevent.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_DQEVENT - Dequeue event 29 Pointer to struct :c:type:`v4l2_event`. 34 Dequeue an event from a video device. No input is required for this 35 ioctl. All the fields of the struct :c:type:`v4l2_event` 40 .. c:type:: v4l2_event 45 .. flat-table:: struct v4l2_event 46 :header-rows: 0 47 :stub-columns: 0 50 * - __u32 [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | vidioc-dqevent.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_DQEVENT - Dequeue event 29 Pointer to struct :c:type:`v4l2_event`. 34 Dequeue an event from a video device. No input is required for this 35 ioctl. All the fields of the struct :c:type:`v4l2_event` 42 .. c:type:: v4l2_event 46 .. flat-table:: struct v4l2_event 47 :header-rows: 0 48 :stub-columns: 0 51 * - __u32 [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/devfreq/event/ |
| D | samsung,exynos-ppmu.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/devfreq/event/samsung,exynos-ppmu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chanwoo Choi <cw00.choi@samsung.com> 11 - Krzysztof Kozlowski <krzk@kernel.org> 15 each IP. PPMU provides the primitive values to get performance data. These 19 Exynos PPMU driver uses the devfreq-event class to provide event data to 20 various devfreq devices. The devfreq devices would use the event data when 26 - samsung,exynos-ppmu [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/dummy/ |
| D | iio_simple_dummy_events.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Event handling elements of industrial I/O reference driver. 21 * iio_simple_dummy_read_event_config() - is event enabled? 22 * @indio_dev: the device instance data 23 * @chan: channel for the event whose state is being queried 24 * @type: type of the event whose state is being queried 28 * discover if the event generation is enabled on the device. 32 enum iio_event_type type, in iio_simple_dummy_read_event_config() argument 37 return st->event_en; in iio_simple_dummy_read_event_config() 41 * iio_simple_dummy_write_event_config() - set whether event is enabled [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/dummy/ |
| D | iio_simple_dummy_events.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Event handling elements of industrial I/O reference driver. 21 * iio_simple_dummy_read_event_config() - is event enabled? 22 * @indio_dev: the device instance data 23 * @chan: channel for the event whose state is being queried 24 * @type: type of the event whose state is being queried 28 * discover if the event generation is enabled on the device. 32 enum iio_event_type type, in iio_simple_dummy_read_event_config() argument 37 return st->event_en; in iio_simple_dummy_read_event_config() 41 * iio_simple_dummy_write_event_config() - set whether event is enabled [all …]
|
| /kernel/linux/linux-6.6/include/uapi/sound/ |
| D | asequencer.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 4 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> 5 * (c) 1998-1999 by Jaroslav Kysela <perex@perex.cz> 16 * definition of sequencer event types 20 * event data type = #snd_seq_result 26 * event data type = #snd_seq_ev_note 34 * event data type = #snd_seq_ev_ctrl 39 #define SNDRV_SEQ_EVENT_PITCHBEND 13 /**< from -8192 to 8191 */ 45 * event data type = #snd_seq_ev_ctrl 50 #define SNDRV_SEQ_EVENT_TIMESIGN 23 /* SMF Time Signature event */ [all …]
|
| /kernel/linux/linux-5.10/include/uapi/sound/ |
| D | asequencer.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 4 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> 5 * (c) 1998-1999 by Jaroslav Kysela <perex@perex.cz> 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 32 * definition of sequencer event types 36 * event data type = #snd_seq_result 42 * event data type = #snd_seq_ev_note 50 * event data type = #snd_seq_ev_ctrl 55 #define SNDRV_SEQ_EVENT_PITCHBEND 13 /**< from -8192 to 8191 */ 61 * event data type = #snd_seq_ev_ctrl [all …]
|
| /kernel/linux/linux-5.10/fs/notify/fanotify/ |
| D | fanotify.c | 1 // SPDX-License-Identifier: GPL-2.0 22 return p1->mnt == p2->mnt && p1->dentry == p2->dentry; in fanotify_path_equal() 28 return fsid1->val[0] == fsid2->val[0] && fsid1->val[1] == fsid2->val[1]; in fanotify_fsid_equal() 34 if (fh1->type != fh2->type || fh1->len != fh2->len) in fanotify_fh_equal() 37 return !fh1->len || in fanotify_fh_equal() 38 !memcmp(fanotify_fh_buf(fh1), fanotify_fh_buf(fh2), fh1->len); in fanotify_fh_equal() 45 if (!ffe1->object_fh.len) in fanotify_fid_event_equal() 48 return fanotify_fsid_equal(&ffe1->fsid, &ffe2->fsid) && in fanotify_fid_event_equal() 49 fanotify_fh_equal(&ffe1->object_fh, &ffe2->object_fh); in fanotify_fid_event_equal() 55 if (info1->dir_fh_totlen != info2->dir_fh_totlen || in fanotify_info_equal() [all …]
|
| /kernel/linux/linux-5.10/Documentation/hid/ |
| D | uhid.rst | 2 UHID - User-space I/O driver support for HID subsystem 5 UHID allows user-space to implement HID transport drivers. Please see 6 hid-transport.txt for an introduction into HID transport drivers. This document 9 With UHID, a user-space transport driver can create kernel hid-devices for each 10 device connected to the user-space controlled bus. The UHID API defines the I/O 11 events provided from the kernel to user-space and vice versa. 13 There is an example user-space application in ./samples/uhid/uhid-example.c 16 ------------ 18 UHID is accessed through a character misc-device. The minor-number is allocated 25 write()'ing "struct uhid_event" objects. Non-blocking operations are supported [all …]
|
| /kernel/linux/linux-6.6/Documentation/hid/ |
| D | uhid.rst | 2 UHID - User-space I/O driver support for HID subsystem 5 UHID allows user-space to implement HID transport drivers. Please see 6 hid-transport.rst for an introduction into HID transport drivers. This document 9 With UHID, a user-space transport driver can create kernel hid-devices for each 10 device connected to the user-space controlled bus. The UHID API defines the I/O 11 events provided from the kernel to user-space and vice versa. 13 There is an example user-space application in ./samples/uhid/uhid-example.c 16 ------------ 18 UHID is accessed through a character misc-device. The minor number is allocated 25 write()'ing "struct uhid_event" objects. Non-blocking operations are supported [all …]
|
| /kernel/linux/linux-5.10/sound/core/seq/ |
| D | seq_midi_event.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MIDI byte <-> sequencer event coder 19 MODULE_DESCRIPTION("MIDI byte <-> sequencer event coder"); 22 /* event type, index into status_event[] */ 23 /* from 0 to 6 are normal commands (note off, on, etc.) for 0x9?-0xe? */ 27 /* from 8 to 15 are events for 0xf0-0xf7 */ 46 * event list 49 int event; member 54 /* 0x80 - 0xef */ 63 {SNDRV_SEQ_EVENT_NONE, -1, NULL, NULL}, [all …]
|
| /kernel/linux/linux-5.10/tools/perf/tests/ |
| D | sample-parsing.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "event.h" 15 #include "util/synthetic-events.h" 20 if (s1->m != s2->m) { \ 27 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \ 35 u64 type, u64 read_format) in samples_same() argument 39 if (type & PERF_SAMPLE_IDENTIFIER) in samples_same() 42 if (type & PERF_SAMPLE_IP) in samples_same() 45 if (type & PERF_SAMPLE_TID) { in samples_same() 50 if (type & PERF_SAMPLE_TIME) in samples_same() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/arch/x86/util/ |
| D | event.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "../../../util/event.h" 8 #include "../../../util/synthetic-events.h" 24 union perf_event *event = zalloc(sizeof(event->mmap) + in perf_event__synthesize_extra_kmaps() local 25 machine->id_hdr_size); in perf_event__synthesize_extra_kmaps() 27 if (!event) { in perf_event__synthesize_extra_kmaps() 28 pr_debug("Not enough memory synthesizing mmap event " in perf_event__synthesize_extra_kmaps() 30 return -1; in perf_event__synthesize_extra_kmaps() 36 struct map *map = pos->map; in perf_event__synthesize_extra_kmaps() 43 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/events/intel/ |
| D | uncore.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/io-64-nonatomic-lo-hi.h> 24 #define UNCORE_PCI_DEV_FULL_DATA(dev, func, type, idx) \ argument 25 ((dev << 24) | (func << 16) | (type << 8) | idx) 26 #define UNCORE_PCI_DEV_DATA(type, idx) ((type << 8) | idx) argument 27 #define UNCORE_PCI_DEV_DEV(data) ((data >> 24) & 0xff) argument 28 #define UNCORE_PCI_DEV_FUNC(data) ((data >> 16) & 0xff) argument 29 #define UNCORE_PCI_DEV_TYPE(data) ((data >> 8) & 0xff) argument 30 #define UNCORE_PCI_DEV_IDX(data) (data & 0xff) argument 80 * to identify which platform component each PMON block of that type is [all …]
|