Home
last modified time | relevance | path

Searched refs:events (Results 1 – 200 of 801) sorted by relevance

12345

/linux-4.4.14/tools/testing/selftests/powerpc/pmu/
Dcount_instructions.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
42 event_read(&events[0]); in do_count_loop()
43 event_read(&events[1]); in do_count_loop()
46 difference = events[0].result.value - expected; in do_count_loop()
47 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
50 event_report(&events[0]); in do_count_loop()
51 event_report(&events[1]); in do_count_loop()
55 printf("Actual %llu\n", events[0].result.value); in do_count_loop()
59 event_reset(&events[0]); in do_count_loop()
60 event_reset(&events[1]); in do_count_loop()
[all …]
Dper_event_excludes.c25 struct event *e, events[4]; in per_event_excludes() local
37 e = &events[0]; in per_event_excludes()
42 e = &events[1]; in per_event_excludes()
49 e = &events[2]; in per_event_excludes()
56 e = &events[3]; in per_event_excludes()
63 FAIL_IF(event_open(&events[0])); in per_event_excludes()
71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes()
86 FAIL_IF(event_read(&events[i])); in per_event_excludes()
87 event_report(&events[i]); in per_event_excludes()
95 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes()
[all …]
/linux-4.4.14/lib/
Dflex_proportions.c43 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init()
52 percpu_counter_destroy(&p->events); in fprop_global_destroy()
65 s64 events; in fprop_new_period() local
69 events = percpu_counter_sum(&p->events); in fprop_new_period()
73 if (events <= 1) { in fprop_new_period()
79 events -= events >> periods; in fprop_new_period()
81 percpu_counter_add(&p->events, -events); in fprop_new_period()
95 pl->events = 0; in fprop_local_init_single()
122 pl->events >>= period - pl->period; in fprop_reflect_period_single()
124 pl->events = 0; in fprop_reflect_period_single()
[all …]
Dproportions.c86 err = percpu_counter_init(&pd->pg[0].events, 0, gfp); in prop_descriptor_init()
90 err = percpu_counter_init(&pd->pg[1].events, 0, gfp); in prop_descriptor_init()
92 percpu_counter_destroy(&pd->pg[0].events); in prop_descriptor_init()
109 u64 events; in prop_change_shift() local
125 events = percpu_counter_sum(&pd->pg[pd->index].events); in prop_change_shift()
127 events <<= -offset; in prop_change_shift()
129 events >>= offset; in prop_change_shift()
130 percpu_counter_set(&pd->pg[index].events, events); in prop_change_shift()
196 return percpu_counter_init(&pl->events, 0, gfp); in prop_local_init_percpu()
201 percpu_counter_destroy(&pl->events); in prop_local_destroy_percpu()
[all …]
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c18 struct event events[6]; in multi_counter() local
23 event_init_named(&events[0], 0x1001C, "PM_CMPLU_STALL_THRD"); in multi_counter()
24 event_init_named(&events[1], 0x2D016, "PM_CMPLU_STALL_FXU"); in multi_counter()
25 event_init_named(&events[2], 0x30006, "PM_CMPLU_STALL_OTHER_CMPL"); in multi_counter()
26 event_init_named(&events[3], 0x4000A, "PM_CMPLU_STALL"); in multi_counter()
27 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter()
28 event_init_named(&events[5], 0x500fa, "PM_RUN_INST_CMPL"); in multi_counter()
30 event_leader_ebb_init(&events[0]); in multi_counter()
32 event_ebb_init(&events[i]); in multi_counter()
36 events[i].attr.exclude_kernel = 1; in multi_counter()
[all …]
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-ir.c37 u32 events = 0; in cx23885_ir_rx_work_handler() local
41 events |= V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler()
43 events |= V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler()
45 events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED; in cx23885_ir_rx_work_handler()
47 events |= V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ; in cx23885_ir_rx_work_handler()
49 if (events == 0) in cx23885_ir_rx_work_handler()
53 cx23885_input_rx_work_handler(dev, events); in cx23885_ir_rx_work_handler()
60 u32 events = 0; in cx23885_ir_tx_work_handler() local
64 events |= V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ; in cx23885_ir_tx_work_handler()
66 if (events == 0) in cx23885_ir_tx_work_handler()
[all …]
Dcx23885-ir.h21 void cx23885_ir_rx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events);
22 void cx23885_ir_tx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events);
Dcx23885-input.c72 void cx23885_input_rx_work_handler(struct cx23885_dev *dev, u32 events) in cx23885_input_rx_work_handler() argument
77 if (dev->sd_ir == NULL || events == 0) in cx23885_input_rx_work_handler()
106 overrun = events & (V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN | in cx23885_input_rx_work_handler()
109 data_available = events & (V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED | in cx23885_input_rx_work_handler()
Dcx23888-ir.c542 u32 events, v; in cx23888_ir_irq_handler() local
582 events = V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ; in cx23888_ir_irq_handler()
583 v4l2_subdev_notify(sd, V4L2_SUBDEV_IR_TX_NOTIFY, &events); in cx23888_ir_irq_handler()
617 events = 0; in cx23888_ir_irq_handler()
620 events |= V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN; in cx23888_ir_irq_handler()
629 events |= V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN; in cx23888_ir_irq_handler()
638 events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED; in cx23888_ir_irq_handler()
649 events |= V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ; in cx23888_ir_irq_handler()
652 if (events) in cx23888_ir_irq_handler()
653 v4l2_subdev_notify(sd, V4L2_SUBDEV_IR_RX_NOTIFY, &events); in cx23888_ir_irq_handler()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-iio15 based on hardware generated events (e.g. data ready) or
547 What: /sys/bus/iio/devices/iio:deviceX/events
551 Configuration of which hardware generated events are passed up
554 What: /sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
555 What: /sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
556 What: /sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
557 What: /sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
558 What: /sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
559 What: /sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
560 What: /sys/.../iio:deviceX/events/in_anglvel_x_thresh_rising_en
[all …]
Dsysfs-bus-event_source-devices-events1 What: /sys/devices/cpu/events/
2 /sys/devices/cpu/events/branch-misses
3 /sys/devices/cpu/events/cache-references
4 /sys/devices/cpu/events/cache-misses
5 /sys/devices/cpu/events/stalled-cycles-frontend
6 /sys/devices/cpu/events/branch-instructions
7 /sys/devices/cpu/events/stalled-cycles-backend
8 /sys/devices/cpu/events/instructions
9 /sys/devices/cpu/events/cpu-cycles
15 Description: Generic performance monitoring events
[all …]
Dsysfs-bus-iio-light-lm3533-als1 What: /sys/.../events/in_illuminance0_thresh_either_en
11 What: /sys/.../events/in_illuminance0_threshY_hysteresis
19 What: /sys/.../events/illuminance_threshY_falling_value
20 What: /sys/.../events/illuminance_threshY_raising_value
26 against for the events enabled by
Dsysfs-bus-event_source-devices-hv_24x76 hypervisor on POWER7 and 8 systems. This catalog lists events
34 events in the events/ dir.
45 events in the events/ dir.
Dsysfs-pps21 The /sys/class/pps/ppsX/assert file reports the assert events
26 If the source has no assert events the content of this file
33 The /sys/class/pps/ppsX/clear file reports the clear events
38 If the source has no clear events the content of this file
Dsysfs-bus-event_source-devices-hv_gpci14 0 or 1. Indicates whether we have access to "GA" events (listed
21 0 or 1. Indicates whether we have access to "EXPANDED" events (listed
28 0 or 1. Indicates whether we have access to "LAB" events (listed
Dsysfs-ptp100 This file provides timestamps on external events, in
120 PPS events to the Linux PPS subsystem. To enable PPS
121 events, write a "1" into the file. To disable events,
/linux-4.4.14/drivers/power/
Dabx500_chargalg.c259 struct abx500_chargalg_events events; member
297 di->events.safety_timer_expired = true; in abx500_chargalg_safety_timer_expired()
321 di->events.maintenance_timer_expired = true; in abx500_chargalg_maintenance_timer_expired()
459 di->events.safety_timer_expired = false; in abx500_chargalg_start_safety_timer()
475 di->events.safety_timer_expired = false; in abx500_chargalg_stop_safety_timer()
493 di->events.maintenance_timer_expired = false; in abx500_chargalg_start_maintenance_timer()
507 di->events.maintenance_timer_expired = false; in abx500_chargalg_stop_maintenance_timer()
763 di->events.btemp_underover = false; in abx500_chargalg_check_temp()
764 di->events.btemp_lowhigh = false; in abx500_chargalg_check_temp()
775 di->events.btemp_underover = false; in abx500_chargalg_check_temp()
[all …]
Dab8500_btemp.c103 struct ab8500_btemp_events events; member
665 if (di->events.ac_conn || di->events.usb_conn) in ab8500_btemp_periodic_work()
688 di->events.batt_rem = true; in ab8500_btemp_batctrlindb_handler()
711 di->events.btemp_low = true; in ab8500_btemp_templow_handler()
712 di->events.btemp_high = false; in ab8500_btemp_templow_handler()
713 di->events.btemp_medhigh = false; in ab8500_btemp_templow_handler()
714 di->events.btemp_lowmed = false; in ab8500_btemp_templow_handler()
734 di->events.btemp_high = true; in ab8500_btemp_temphigh_handler()
735 di->events.btemp_medhigh = false; in ab8500_btemp_temphigh_handler()
736 di->events.btemp_lowmed = false; in ab8500_btemp_temphigh_handler()
[all …]
/linux-4.4.14/tools/perf/Documentation/
Ditrace.txt1 i synthesize instructions events
2 b synthesize branches events
3 c synthesize branches events (calls only)
4 r synthesize branches events (returns only)
5 x synthesize transactions events
6 e synthesize error events
11 The default is all events i.e. the same as --itrace=ibxe
13 In addition, the period (default 100000) for instructions events
23 transactions events can be specified.
26 instructions or transactions events can be specified.
Dperf-timechart.txt17 'perf timechart record <command>' to record the system level events
19 and CPU events (task switches, running times, CPU power states, etc),
24 on the events in the perf.data file, timechart will contain scheduler/cpu
25 events or IO events.
28 Upper bar shows incoming events (disk reads, ingress network packets).
29 Lower bar shows outgoing events (disk writes, egress network packets).
68 Don't draw EAGAIN IO events.
70 Draw small events as if they lasted min-time. Useful when you need
75 Merge events that are merge-dist nanoseconds apart.
85 Record only power-related events
[all …]
Dperf-script.txt31 'perf script record <script> <command>' to record the events required
34 language extension. If <command> is not specified, the events are
46 record the events required for <script> and to run the <script>
50 not specified, the events are recorded using the -a (system-wide)
59 'perf script <top-script>' to both record the events required for
113 Do various checks like samples ordering and lost events.
138 The first -f suppresses trace events (field list is ""), but then the
142 "Overriding previous field request for all events."
148 The first -f sets the fields for all events and the second -f
149 suppresses trace events. The user is given a warning message about
[all …]
Dperf-inject.txt6 perf-inject - Filter to augment the events stream with additional information
16 point the processing code can inject other events into the event stream - in
21 needs userspace processing to augment the events stream with additional
40 Merge sched_stat and sched_switch for getting events where and how long
48 Decode Instruction Tracing data, replacing it with synthesized events.
54 Use with --itrace to strip out non-synthesized events.
Dperf-trace.txt16 This command will show the events associated with the target, initially
17 syscalls, but other system events like pagefaults, task lifetime events,
18 scheduling events, etc.
22 but the session needs to include the raw_syscalls events (-e 'raw_syscalls:*').
24 automatically include the raw_syscalls events when writing events to a file.
48 Record events on existing process ID (comma separated list).
52 Record events on existing thread ID (comma separated list).
56 Record events in threads owned by uid. Name or number.
59 Filter out events for these pids and for 'trace' itself (comma separated list).
82 Show only events that had a duration greater than N.M ms.
[all …]
Dperf-list.txt23 more modifiers. Modifiers allow the user to restrict the events to be
50 clocks not halted) and 0xC1 (micro-ops retired). Both events map to
97 Some pmu events listed by 'perf-list' will be displayed with '?' in them. For
110 Without options all known events will be listed.
114 . 'hw' or 'hardware' to list hardware events such as cache-misses, etc.
116 . 'sw' or 'software' to list software events such as context switches, etc.
118 . 'cache' or 'hwcache' to list hardware cache events such as L1-dcache-loads, etc.
120 . 'tracepoint' to list all tracepoint events, alternatively use
124 . 'pmu' to print the kernel supplied PMU events.
127 events, printing the ones that match.
[all …]
Dperf-lock.txt6 perf-lock - Analyze lock events
18 'perf lock record <command>' records lock events
21 results of lock events.
25 'perf lock script' shows raw lock events.
Dperf-kvm.txt54 of KVM events. Currently, vmexit, mmio (x86 only) and ioport (x86 only)
55 events are supported. 'perf kvm stat record <command>' records kvm events
56 and the events between start and end <command>.
58 events.
60 'perf kvm stat report' reports statistical data which includes events
103 analyze events which occur on this vcpu. (default: all vcpus)
114 Analyze events only for given process ID(s) (comma separated list).
134 Analyze events only for given process ID(s) (comma separated list).
137 analyze events which occur on this vcpu. (default: all vcpus)
151 Show events other than HLT (x86 only) or Wait state (s390 only)
Dperf-record.txt31 - a symbolic event name (use 'perf list' to list all events)
73 - a group of events surrounded by a pair of brace ("{event1,event2,...}").
76 "perf report" to view group events together.
84 Don't record events issued by perf itself. This option should follow
96 Record events on existing process ID (comma separated list).
100 Record events on existing thread ID (comma separated list).
106 Record events in threads owned by uid. Name or number.
139 Put all events in a single event group. This precedes the --event
224 corresponding events, i.e., they always refer to events defined earlier on the command
257 levels are subject to permissions. When sampling on multiple events, branch stack sampling
[all …]
Dperf-stat.txt30 - a symbolic event name (use 'perf list' to list all events)
50 stat events on existing process id (comma separated list)
54 stat events on existing thread id (comma separated list)
69 -d: detailed events, L1 and LLC data cache
70 -d -d: more detailed events, dTLB and iTLB events
71 -d -d -d: very detailed events, adding prefetch events
114 corresponding events, i.e., they always refer to events defined earlier on the command
Dperf-kmem.txt17 'perf kmem record <command>' to record the kmem events
54 Analyze SLAB allocator events.
57 Analyze page allocator events
Dintel-bts.txt54 "instructions" events nor "transactions" events (and consequently call
63 perf script has an option (-D) to "dump" the events i.e. display the binary
84 removed and replaced with the synthesized events. e.g.
Dperf-top.txt41 (use 'perf list' to list all events) or a raw PMU
51 Only display functions with more events than this.
76 Profile events on existing Process ID (comma separated list).
80 Profile events on existing thread ID (comma separated list).
84 Record events in threads owned by uid. Name or number.
228 levels are subject to permissions. When sampling on multiple events, branch stack sampling
229 is enabled for all the sampling events. The sampled branch type is the same for all events.
Dperf.txt23 ordered-events - ordered events object debug messages
Dintel-pt.txt25 samples output by perf hardware events, for example as though the "instructions"
26 or "branches" events had been recorded. Presently 3 tools support this:
131 The Intel PT kernel driver creates a new PMU for Intel PT. PMU events are
177 Note that, as with all events, the event is suffixed with event modifiers:
485 all executables encountered (due to mmap, comm or task events) are included
503 software event has been introduced that permits tracking events (like mmaps) to
567 decoding. sched_switch events are automatically added. e.g. the second event
642 That is because, in the absence of timing information, the sched_switch events
666 i synthesize "instructions" events
667 b synthesize "branches" events
[all …]
Dperf-script-python.txt43 syscall events:
79 - we could enable every event under the tracing/events/syscalls
81 allowable by perf. These individual syscall events will however be
87 tracing/events/raw_syscalls. These are called for all syscalls; the
93 the sys_enter events:
123 # all events. They don't necessarily correspond to the 'common_*' fields
234 sys_enter() handler do the necessary tallying until all events have
269 displayed after all the events in the trace have been processed, by
303 print "\nsyscall events for %s:\n\n" % (for_comm),
305 print "\nsyscall events:\n\n",
[all …]
/linux-4.4.14/arch/m68k/mac/
Dvia.c452 unsigned char irq_bit, events; in via1_irq() local
454 events = via1[vIFR] & via1[vIER] & 0x7F; in via1_irq()
455 if (!events) in via1_irq()
461 if (events & irq_bit) { in via1_irq()
467 } while (events >= irq_bit); in via1_irq()
473 unsigned char irq_bit, events; in via2_irq() local
475 events = via2[gIFR] & via2[gIER] & 0x7F; in via2_irq()
476 if (!events) in via2_irq()
482 if (events & irq_bit) { in via2_irq()
488 } while (events >= irq_bit); in via2_irq()
[all …]
Doss.c68 int events = oss->irq_pending & in oss_irq() local
72 if ((console_loglevel == 10) && !(events & OSS_IP_SCSI)) { in oss_irq()
80 if (events & OSS_IP_IOPSCC) { in oss_irq()
85 if (events & OSS_IP_SCSI) { in oss_irq()
90 if (events & OSS_IP_IOPISM) { in oss_irq()
104 int events, irq_bit, i; in oss_nubus_irq() local
106 events = oss->irq_pending & OSS_IP_NUBUS; in oss_nubus_irq()
107 if (!events) in oss_nubus_irq()
112 printk("oss_nubus_irq: events = 0x%04X\n", events); in oss_nubus_irq()
122 if (events & irq_bit) { in oss_nubus_irq()
[all …]
Dbaboon.c51 unsigned char events; in baboon_irq() local
59 events = baboon->mb_ifr & 0x07; in baboon_irq()
60 if (!events) in baboon_irq()
66 if (events & irq_bit) { in baboon_irq()
72 } while(events >= irq_bit); in baboon_irq()
76 baboon->mb_ifr &= ~events; in baboon_irq()
Dpsc.c124 unsigned char irq_bit, events; in psc_irq() local
131 events = psc_read_byte(pIFR) & psc_read_byte(pIER) & 0xF; in psc_irq()
132 if (!events) in psc_irq()
138 if (events & irq_bit) { in psc_irq()
144 } while (events >= irq_bit); in psc_irq()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dopal-irqchip.c51 void opal_handle_events(uint64_t events) in opal_handle_events() argument
56 if (!in_irq() && (events & mask)) { in opal_handle_events()
57 last_outstanding_events = events; in opal_handle_events()
62 while (events & mask) { in opal_handle_events()
63 hwirq = fls64(events) - 1; in opal_handle_events()
70 events &= ~BIT_ULL(hwirq); in opal_handle_events()
81 __be64 events; in opal_event_unmask() local
85 opal_poll_events(&events); in opal_event_unmask()
86 last_outstanding_events = be64_to_cpu(events); in opal_event_unmask()
136 __be64 events; in opal_interrupt() local
[all …]
/linux-4.4.14/Documentation/trace/
Devents.txt24 The events which are available for tracing can be found in the file
33 all the events. ]
40 To disable all events, echo an empty line to the set_event file:
44 To enable all events, echo '*:*' or '*:' to the set_event file:
48 The events are organized into subsystems, such as ext4, irq, sched,
51 file. All of the events in a subsystem can be specified via the syntax
52 "<subsystem>:*"; for example, to enable all irq events, you can use the
60 The events available are also listed in /sys/kernel/debug/tracing/events/ hierarchy
65 # echo 1 > /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
69 # echo 0 > /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
[all …]
Devents-power.txt4 The power tracing system captures events related to power transitions
7 o Power state switch which reports events related to suspend (S-states),
15 Cf. include/trace/events/power.h for the events definitions.
17 1. Power state switch events
23 A 'cpu' event class gathers the CPU-related events: cpuidle and
44 2. Clocks events
46 The clock events are used for clock enable/disable and for
57 3. Power domains events
59 The power domain events are used for power domains transitions
66 4. PM QoS events
[all …]
Dtracepoint-analysis.txt13 Simplistically, tracepoints represent important events that can be
16 gathering and interpreting these events. Lacking any current Best Practises,
29 All possible events are visible from /sys/kernel/debug/tracing/events. Simply
32 $ find /sys/kernel/debug/tracing/events -type d
34 will give a fair indication of the number of events available.
39 Discovery and enumeration of all counters and events, including tracepoints,
40 are available with the perf tool. Getting a list of available events is a
58 See Documentation/trace/events.txt for a proper description on how events
59 can be enabled system-wide. A short example of enabling all events related
62 $ for i in `find /sys/kernel/debug/tracing/events -name "enable" | grep mm_`; do echo 1 > $i; done
[all …]
Duprobetracer.txt9 Uprobe based trace events are similar to kprobe based trace events.
15 /sys/kernel/debug/tracing/events/uprobes/<EVENT>/enabled.
83 * Print out the events that are registered:
87 * Clear all events:
110 in the object. We can see the events that are registered by looking at the
117 Format of events can be seen by viewing the file events/uprobes/zfree_entry/format
119 # cat events/uprobes/zfree_entry/format
136 events, you need to enable it by:
138 # echo 1 > events/uprobes/enable
143 # echo 0 > events/uprobes/enable
Dkprobetrace.txt9 These events are similar to tracepoint based events. Instead of Tracepoint,
17 Similar to the events tracer, this doesn't need to be activated via
20 /sys/kernel/debug/tracing/events/kprobes/<EVENT>/enabled.
71 under tracing/events/kprobes/<EVENT>, at the directory you can see 'id',
113 You can see the format of these events via
114 /sys/kernel/debug/tracing/events/kprobes/<EVENT>/format.
116 cat /sys/kernel/debug/tracing/events/kprobes/myprobe/format
149 events, you need to enable it.
151 echo 1 > /sys/kernel/debug/tracing/events/kprobes/myprobe/enable
152 echo 1 > /sys/kernel/debug/tracing/events/kprobes/myretprobe/enable
Devents-nmi.txt3 These events normally show up here:
5 /sys/kernel/debug/tracing/events/nmi
32 cd /sys/kernel/debug/tracing/events/nmi/nmi_handler
Dmmiotrace.txt26 supported, but tracing is unreliable and may miss events if more than one CPU
29 is no way to automatically detect if you are losing events due to CPUs racing.
41 Check for lost events.
74 Check that mmiotrace did not lose events due to a buffer filling up. Either
76 which tells you exactly how many events were lost, or use
78 to view your kernel log and look for "mmiotrace has lost events" warning. If
79 events were lost, the trace is incomplete. You should enlarge the buffers and
118 and events can be missed without a notice. Re-enabling other CPUs during
Devents-kmem.txt3 The kmem tracing system captures events related to object and page allocation
21 Heavy activity for these events may indicate that a specific cache is
34 These events are similar in usage to the kmalloc-related events except that
46 These four events deal with page allocation and freeing. mm_page_alloc is
83 The individual nature of the events is so that pages can be tracked
/linux-4.4.14/drivers/mfd/
Dda903x.c54 int (*unmask_events)(struct da903x_chip *, unsigned int events);
55 int (*mask_events)(struct da903x_chip *, unsigned int events);
56 int (*read_events)(struct da903x_chip *, unsigned int *events);
130 unsigned int events) in da903x_register_notifier() argument
134 chip->ops->unmask_events(chip, events); in da903x_register_notifier()
140 unsigned int events) in da903x_unregister_notifier() argument
144 chip->ops->mask_events(chip, events); in da903x_unregister_notifier()
266 static int da9030_unmask_events(struct da903x_chip *chip, unsigned int events) in da9030_unmask_events() argument
270 chip->events_mask &= ~events; in da9030_unmask_events()
279 static int da9030_mask_events(struct da903x_chip *chip, unsigned int events) in da9030_mask_events() argument
[all …]
Dadp5520.c143 unsigned int events) in adp5520_register_notifier() argument
149 events & (ADP5520_KP_IEN | ADP5520_KR_IEN | in adp5520_register_notifier()
161 unsigned int events) in adp5520_unregister_notifier() argument
166 events & (ADP5520_KP_IEN | ADP5520_KR_IEN | in adp5520_unregister_notifier()
176 unsigned int events; in adp5520_irq_thread() local
184 events = reg_val & (ADP5520_OVP_INT | ADP5520_CMPR_INT | in adp5520_irq_thread()
187 blocking_notifier_call_chain(&chip->notifier_list, events, NULL); in adp5520_irq_thread()
189 __adp5520_ack_bits(chip->client, ADP5520_MODE_STATUS, events); in adp5520_irq_thread()
/linux-4.4.14/tools/testing/selftests/ftrace/test.d/kprobe/
Dkretprobe_args.tc6 echo 0 > events/enable
10 test -d events/kprobes/testprobe2
11 echo 1 > events/kprobes/testprobe2/enable
13 echo 0 > events/kprobes/testprobe2/enable
16 test -d events/kprobes/testprobe2 && exit 1 || exit 0
Dkprobe_args.tc6 echo 0 > events/enable
10 test -d events/kprobes/testprobe
11 echo 1 > events/kprobes/testprobe/enable
13 echo 0 > events/kprobes/testprobe/enable
16 test -d events/kprobes/testprobe && exit 1 || exit 0
Dkprobe_ftrace.tc10 echo 0 > events/enable
15 echo 1 > events/kprobes/testprobe/enable
29 echo 0 > events/kprobes/testprobe/enable
36 echo 1 > events/kprobes/testprobe/enable
53 echo 0 > events/kprobes/testprobe/enable
Dbusy_check.tc6 echo 0 > events/enable
9 test -d events/kprobes/myevent
10 echo 1 > events/kprobes/myevent/enable
12 echo 0 > events/kprobes/myevent/enable
Dadd_and_remove.tc6 echo 0 > events/enable
10 test -d events/kprobes/myevent
/linux-4.4.14/net/rxrpc/
Dar-ack.c164 !test_and_set_bit(RXRPC_CALL_ACK, &call->events)) in __rxrpc_propose_ACK()
196 set_bit(RXRPC_CALL_RESEND, &call->events); in rxrpc_set_resend()
206 clear_bit(RXRPC_CALL_RESEND_TIMER, &call->events); in rxrpc_set_resend()
558 set_bit(RXRPC_CALL_DRAIN_RX_OOS, &call->events); in rxrpc_insert_oos_packet()
796 clear_bit(RXRPC_CALL_RESEND_TIMER, &call->events); in rxrpc_process_rx_queue()
898 call->debug_id, rxrpc_call_states[call->state], call->events, in rxrpc_process_call()
930 if (test_bit(RXRPC_CALL_RELEASE, &call->events)) { in rxrpc_process_call()
932 clear_bit(RXRPC_CALL_RELEASE, &call->events); in rxrpc_process_call()
935 if (test_bit(RXRPC_CALL_RCVD_ERROR, &call->events)) { in rxrpc_process_call()
938 clear_bit(RXRPC_CALL_CONN_ABORT, &call->events); in rxrpc_process_call()
[all …]
Dar-input.c234 !test_and_set_bit(RXRPC_CALL_DRAIN_RX_OOS, &call->events)) in rxrpc_fast_process_data()
290 set_bit(RXRPC_CALL_RCVD_ACKALL, &call->events); in rxrpc_assume_implicit_ackall()
294 clear_bit(RXRPC_CALL_RESEND_TIMER, &call->events); in rxrpc_assume_implicit_ackall()
295 clear_bit(RXRPC_CALL_RESEND, &call->events); in rxrpc_assume_implicit_ackall()
361 set_bit(RXRPC_CALL_RCVD_ABORT, &call->events); in rxrpc_fast_process_packet()
376 set_bit(RXRPC_CALL_RCVD_BUSY, &call->events); in rxrpc_fast_process_packet()
436 set_bit(RXRPC_CALL_ABORT, &call->events); in rxrpc_fast_process_packet()
508 set_bit(RXRPC_CALL_ABORT, &call->events); in rxrpc_process_jumbo_packet()
533 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) { in rxrpc_post_packet_to_call()
549 set_bit(RXRPC_CALL_ACK_FINAL, &call->events); in rxrpc_post_packet_to_call()
Dar-accept.c147 set_bit(RXRPC_CONN_CHALLENGE, &call->conn->events); in rxrpc_accept_incoming_call()
189 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) { in rxrpc_accept_incoming_call()
382 if (test_and_set_bit(RXRPC_CALL_ACCEPTED, &call->events)) in rxrpc_accept_call()
398 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) in rxrpc_accept_call()
437 if (test_and_set_bit(RXRPC_CALL_REJECT_BUSY, &call->events)) in rxrpc_reject_call()
461 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) in rxrpc_reject_call()
Dar-call.c455 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) in rxrpc_incoming_call()
636 call, call->events, call->flags); in rxrpc_release_call()
689 set_bit(RXRPC_CALL_ABORT, &call->events); in rxrpc_release_call()
766 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) in rxrpc_mark_call_released()
769 if (!test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) in rxrpc_mark_call_released()
844 ASSERTCMP(call->events, ==, 0); in rxrpc_cleanup_call()
948 call->flags, call->events); in rxrpc_destroy_all_calls()
978 set_bit(RXRPC_CALL_LIFE_TIMER, &call->events); in rxrpc_call_life_expired()
998 if (!test_and_set_bit(RXRPC_CALL_RESEND_TIMER, &call->events)) in rxrpc_resend_time_expired()
1016 !test_and_set_bit(RXRPC_CALL_ACK, &call->events)) in rxrpc_ack_time_expired()
Dar-connevent.c45 set_bit(RXRPC_CALL_CONN_ABORT, &call->events); in rxrpc_abort_calls()
47 set_bit(RXRPC_CALL_RCVD_ABORT, &call->events); in rxrpc_abort_calls()
135 !test_and_set_bit(RXRPC_CALL_SECURED, &call->events)) in rxrpc_call_is_secure()
270 if (test_and_clear_bit(RXRPC_CONN_CHALLENGE, &conn->events)) { in rxrpc_process_connection()
/linux-4.4.14/arch/arm/kernel/
Dperf_event_xscale.c174 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
209 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event() local
232 raw_spin_lock_irqsave(&events->pmu_lock, flags); in xscale1pmu_enable_event()
237 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in xscale1pmu_enable_event()
245 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event() local
266 raw_spin_lock_irqsave(&events->pmu_lock, flags); in xscale1pmu_disable_event()
271 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in xscale1pmu_disable_event()
298 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start() local
300 raw_spin_lock_irqsave(&events->pmu_lock, flags); in xscale1pmu_start()
304 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in xscale1pmu_start()
[all …]
Dperf_event_v6.c273 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event() local
296 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv6pmu_enable_event()
301 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv6pmu_enable_event()
328 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq()
367 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start() local
369 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv6pmu_start()
373 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv6pmu_start()
379 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop() local
381 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv6pmu_stop()
385 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv6pmu_stop()
[all …]
Dsys_oabi-compat.c249 __u32 events; member
265 kernel.events = user.events; in sys_oabi_epoll_ctl()
275 struct oabi_epoll_event __user *events, in sys_oabi_epoll_wait() argument
293 __put_user_error(kbuf[i].events, &events->events, err); in sys_oabi_epoll_wait()
294 __put_user_error(kbuf[i].data, &events->data, err); in sys_oabi_epoll_wait()
295 events++; in sys_oabi_epoll_wait()
Dperf_event_v7.c770 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_enable_event() local
783 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv7pmu_enable_event()
808 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv7pmu_enable_event()
816 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_disable_event() local
828 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv7pmu_disable_event()
840 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv7pmu_disable_event()
869 struct perf_event *event = cpuc->events[idx]; in armv7pmu_handle_irq()
908 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_start() local
910 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv7pmu_start()
913 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv7pmu_start()
[all …]
/linux-4.4.14/tools/perf/util/
DBuild20 libperf-y += parse-events.o
48 libperf-y += ordered-events.o
53 libperf-y += parse-events-flex.o
54 libperf-y += parse-events-bison.o
115 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
117 …x)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-ev…
119 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
121 …$(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_…
131 CFLAGS_parse-events-flex.o += -w
133 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
[all …]
Dtrace-event-parse.c39 if (!pevent->events) in get_common_field()
42 event = pevent->events[0]; in get_common_field()
179 if (!pevent || !pevent->events) in trace_find_next_event()
184 return pevent->events[0]; in trace_find_next_event()
187 if (idx < pevent->nr_events && event == pevent->events[idx]) { in trace_find_next_event()
191 return pevent->events[idx]; in trace_find_next_event()
195 if (event == pevent->events[idx - 1]) in trace_find_next_event()
196 return pevent->events[idx]; in trace_find_next_event()
Dordered-events.c26 list_add(&new->list, &oe->events); in queue_event()
39 if (p == &oe->events) { in queue_event()
40 list_add_tail(&new->list, &oe->events); in queue_event()
50 if (p == &oe->events) { in queue_event()
51 list_add(&new->list, &oe->events); in queue_event()
187 struct list_head *head = &oe->events; in __ordered_events__flush()
250 struct list_head *head = &oe->events; in ordered_events__flush()
292 INIT_LIST_HEAD(&oe->events); in ordered_events__init()
Dparse-events.y81 %type <head> events
146 PE_NAME '{' events '}'
155 '{' events '}'
164 events:
165 events ',' event
/linux-4.4.14/Documentation/powerpc/
Dpmu-ebb.txt5 branch directly to a specified user space address when certain events occur.
19 Throughout this document we will refer to an "EBB event" or "EBB events". This
21 attr.config. All events which can be configured on the hardware PMU are
22 possible "EBB events".
31 It is a feature of the perf_events API that events can be created on other
33 events, however unless the target process enables EBBs (via mtspr(BESCR)) no
37 actually configure any events. At a later time another process can come along
44 events can be configured. This means that EBB events can not be run
45 concurrently with regular 'perf' commands, or any other perf events.
49 its events could not run.
[all …]
/linux-4.4.14/drivers/xen/events/
DMakefile1 obj-y += events.o
3 events-y += events_base.o
4 events-y += events_2l.o
5 events-y += events_fifo.o
/linux-4.4.14/fs/fscache/
Dobject.c74 { .events = (emask), .transit_to = STATE(state) }
171 unsigned long events, event_mask; in fscache_object_sm_dispatcher() local
177 object->debug_id, object->state->name, object->events); in fscache_object_sm_dispatcher()
184 events = object->events; in fscache_object_sm_dispatcher()
187 if (events & object->oob_event_mask) { in fscache_object_sm_dispatcher()
189 object->debug_id, events & object->oob_event_mask); in fscache_object_sm_dispatcher()
190 for (t = object->oob_table; t->events; t++) { in fscache_object_sm_dispatcher()
191 if (events & t->events) { in fscache_object_sm_dispatcher()
194 event = fls(events & t->events) - 1; in fscache_object_sm_dispatcher()
196 clear_bit(event, &object->events); in fscache_object_sm_dispatcher()
[all …]
/linux-4.4.14/tools/perf/tests/
Dparse-no-sample-id-all.c38 static int process_events(union perf_event **events, size_t count) in process_events() argument
45 err = process_event(&evlist, events[i]); in process_events()
98 union perf_event *events[] = { in test__parse_no_sample_id_all() local
104 err = process_events(events, ARRAY_SIZE(events)); in test__parse_no_sample_id_all()
Dswitch-tracking.c203 static int add_event(struct perf_evlist *evlist, struct list_head *events, in add_event() argument
215 list_add(&node->list, events); in add_event()
232 static void free_event_nodes(struct list_head *events) in free_event_nodes() argument
236 while (!list_empty(events)) { in free_event_nodes()
237 node = list_entry(events->next, struct event_node, list); in free_event_nodes()
257 LIST_HEAD(events); in process_events()
264 ret = add_event(evlist, &events, event); in process_events()
279 list_for_each_entry(node, &events, list) in process_events()
296 free_event_nodes(&events); in process_events()
Dattr.py148 def load_events(self, path, events): argument
168 events[section] = e
225 def resolve_groups(self, events): argument
226 for name, event in events.items():
231 for iname, ievent in events.items():
/linux-4.4.14/include/uapi/linux/
Deventpoll.h60 __u32 events; member
67 if ((epev->events & EPOLLWAKEUP) && !capable(CAP_BLOCK_SUSPEND)) in ep_take_care_of_epollwakeup()
68 epev->events &= ~EPOLLWAKEUP; in ep_take_care_of_epollwakeup()
73 epev->events &= ~EPOLLWAKEUP; in ep_take_care_of_epollwakeup()
/linux-4.4.14/Documentation/DocBook/
D.tracepoint.xml.cmd2 …tracepoint.tmpl include/trace/events/irq.h include/trace/events/signal.h include/trace/events/bloc…
/linux-4.4.14/Documentation/input/
Dnotifier.txt4 events (see kbd_keycode() function for details). The passed structure is
12 - KBD_KEYCODE events are always sent before other events, value is the keycode.
13 - KBD_UNBOUND_KEYCODE events are sent if the keycode is not bound to a keysym.
15 - KBD_UNICODE events are sent if the keycode -> keysym translation produced a
17 - KBD_KEYSYM events are sent if the keycode -> keysym translation produced a
19 - KBD_POST_KEYSYM events are sent after the treatment of non-unicode keysyms.
Devent-codes.txt5 A single hardware event generates multiple input events. Each input event
7 used to separate input events into packets of input data changes occurring at
23 type has a set of applicable codes to be used in generating events. See the
27 - Used as markers to separate events. Events may be separated in time or in
76 - Used to synchronize and separate events into packets of input data changes
85 - Used to synchronize and separate touch events. See the
90 Client should ignore all events up to and including next SYN_REPORT
96 EV_KEY events take the form KEY_<name> or BTN_<name>. For example, KEY_A is used
99 emitted with value 0. Some hardware send events when a key is repeated. These
100 events have a value of 2. In general, KEY_<name> is used for keyboard keys, and
[all …]
Djoystick-api.txt12 Since the driver now reports events instead of polling for changes,
13 immediately after the open it will issue a series of synthetic events
51 events on open. That is, if it's issuing a INIT BUTTON event, the
56 If you choose not to differentiate between synthetic or real events
98 may work well if you handle JS_EVENT_INIT events separately,
108 have to write a separate handler for JS_EVENT_INIT events in the first
141 are no events pending to be read on the driver queue. You should read
142 all events on the queue (that is, until you get a -1).
154 /* do something interesting with processed events */
158 missing events since the queue is finite, and older events will get
[all …]
Dntrig.txt7 and multi-touch events are translated to the appropriate protocols for
8 the hid and input systems. Pen events are sufficiently hid compliant and
25 activate_slack number of fingers to ignore before processing events
34 propagating the end of activity events
50 sensor_physical_height internal ranges not used for normal events but
53 All N-Trig devices with product id of 1 report events in the ranges of
66 obvious that these sensors were prone to erroneous events. Users reported
78 of events the more likely those events are from a real contact, and that the
80 goals of preventing ghosts and accepting real events quickly (to minimize
82 events until it hits thresholds and begins propagating. In the interest in
Dinput.txt44 events (keystrokes, mouse movements) to the input module.
48 These modules get events from input and pass them where needed via
96 Device drivers are the modules that generate events. The events are
156 Event handlers distribute the events from the devices to userland and
162 events into architecture-specific keyboard raw mode (Xlated AT Set2 on
168 The right way would be to pass the events to keyboard.c directly,
175 work. It takes events from either mice or digitizers/tablets and makes
227 evdev is the generic input event interface. It passes the events
233 events. It allows for multihead in X without any specific multihead
271 events on a read. Their layout is:
Dinput-programming.txt85 parts of the input systems what it is - what events can be generated or
87 type events, and from those only BTN_0 event code. Thus we only set these
115 routine isn't reporting two same value events (press, press for example) to
123 call to tell those who receive the events that we've sent a complete report.
179 pressed, zero value means key released. The input code generates events only
187 events are namely for joysticks and digitizers - devices that do work in an
277 1.9 Other event types, handling output events
285 They are very similar to for example key events, but they go in the other
287 driver can handle these events, it has to set the respective bits in evbit,
/linux-4.4.14/scripts/gdb/linux/
Dcpus.py59 gdb.events.stop.disconnect(cpu_mask_invalidate)
60 if hasattr(gdb.events, 'new_objfile'):
61 gdb.events.new_objfile.disconnect(cpu_mask_invalidate)
73 gdb.events.stop.connect(cpu_mask_invalidate)
74 if hasattr(gdb.events, 'new_objfile'):
75 gdb.events.new_objfile.connect(cpu_mask_invalidate)
Dutils.py24 gdb.events.new_objfile.disconnect(self._new_objfile_handler)
32 if hasattr(gdb, 'events') and hasattr(gdb.events, 'new_objfile'):
33 gdb.events.new_objfile.connect(self._new_objfile_handler)
133 gdb.events.exited.disconnect(exit_handler)
155 gdb.events.exited.connect(exit_handler)
/linux-4.4.14/Documentation/arm/
DCCN.txt13 description of available events and configuration options
17 and config2 fields of the perf_event_attr structure. The "events"
19 events, that can be used with perf tool. For example "xp_valid_flit"
21 explicitly specified. For events originating from device, "node"
22 defines its index. All crosspoint events require "xp" (index),
38 the CCN PMU events. It is recommended that the user space tools
39 request the events on this processor (if not, the perf_event->cpu value
41 the events are migrated to another one and the attribute is updated.
Dcluster-pm-race-avoidance.txt142 Trigger events:
159 Trigger events: Transition of the parent cluster to CLUSTER_UP.
183 Trigger events: explicit policy decision
194 Trigger events: (spontaneous)
290 Trigger events:
311 Trigger events: (spontaneous)
326 Trigger events: (spontaneous)
340 Trigger events: policy decision to power down the cluster
363 Trigger events: (spontaneous)
367 Trigger events:
[all …]
/linux-4.4.14/fs/
Deventpoll.c251 struct epoll_event __user *events; member
473 unsigned long events, int subclass) in ep_wake_up_nested() argument
478 wake_up_locked_poll(wqueue, events); in ep_wake_up_nested()
483 unsigned long events, int subclass) in ep_wake_up_nested() argument
485 wake_up_poll(wqueue, events); in ep_wake_up_nested()
798 pt->_key = epi->event.events; in ep_item_poll()
800 return epi->ffd.file->f_op->poll(epi->ffd.file, pt) & epi->event.events; in ep_item_poll()
883 epi->ffd.fd, epi->event.events, in ep_show_fdinfo()
1025 if (!(epi->event.events & ~EP_PRIVATE_BITS)) in ep_poll_callback()
1034 if (key && !((unsigned long) key & epi->event.events)) in ep_poll_callback()
[all …]
Deventfd.c120 unsigned int events = 0; in eventfd_poll() local
128 events |= POLLIN; in eventfd_poll()
130 events |= POLLERR; in eventfd_poll()
132 events |= POLLOUT; in eventfd_poll()
134 return events; in eventfd_poll()
/linux-4.4.14/drivers/pcmcia/
Dvrc4173_cardu.c135 socket->events = 0; in cardu_init()
403 uint16_t events; in cardu_bh() local
406 events = socket->events; in cardu_bh()
407 socket->events = 0; in cardu_bh()
411 socket->handler(socket->info, events); in cardu_bh()
416 uint16_t events = 0; in get_events() local
423 events |= SS_DETECT; in get_events()
426 events |= SS_READY; in get_events()
430 events |= SS_STSCHG; in get_events()
434 if (status == BV_DETECT_WARN) events |= SS_BATWARN; in get_events()
[all …]
Dvrc4171_card.c493 unsigned int events = 0; in get_events() local
501 events |= SS_STSCHG; in get_events()
505 events |= SS_BATDEAD; in get_events()
507 events |= SS_BATWARN; in get_events()
511 events |= SS_READY; in get_events()
513 events |= SS_DETECT; in get_events()
515 return events; in get_events()
521 unsigned int events; in pccard_interrupt() local
530 events = get_events(CARD_SLOTA); in pccard_interrupt()
531 if (events != 0) { in pccard_interrupt()
[all …]
Di82092.c301 unsigned int events, active=0; in i82092aa_interrupt() local
324 events = 0; in i82092aa_interrupt()
327 events |= SS_DETECT; in i82092aa_interrupt()
333 events |= (csc & I365_CSC_STSCHG) ? SS_STSCHG : 0; in i82092aa_interrupt()
336 events |= (csc & I365_CSC_BVD1) ? SS_BATDEAD : 0; in i82092aa_interrupt()
337 events |= (csc & I365_CSC_BVD2) ? SS_BATWARN : 0; in i82092aa_interrupt()
338 events |= (csc & I365_CSC_READY) ? SS_READY : 0; in i82092aa_interrupt()
341 if (events) { in i82092aa_interrupt()
342 pcmcia_parse_events(&sockets[i].socket, events); in i82092aa_interrupt()
344 active |= events; in i82092aa_interrupt()
Dpd6729.c179 unsigned int events, active = 0; in pd6729_interrupt() local
200 events = 0; in pd6729_interrupt()
203 events |= SS_DETECT; in pd6729_interrupt()
211 events |= (csc & I365_CSC_STSCHG) in pd6729_interrupt()
215 events |= (csc & I365_CSC_BVD1) in pd6729_interrupt()
217 events |= (csc & I365_CSC_BVD2) in pd6729_interrupt()
219 events |= (csc & I365_CSC_READY) in pd6729_interrupt()
223 if (events) in pd6729_interrupt()
224 pcmcia_parse_events(&socket[i].socket, events); in pd6729_interrupt()
226 active |= events; in pd6729_interrupt()
Dsoc_common.c331 unsigned int events; in soc_common_check_status() local
342 events = (status ^ skt->status) & skt->cs_state.csc_mask; in soc_common_check_status()
347 events == 0 ? "<NONE>" : "", in soc_common_check_status()
348 events & SS_DETECT ? "DETECT " : "", in soc_common_check_status()
349 events & SS_READY ? "READY " : "", in soc_common_check_status()
350 events & SS_BATDEAD ? "BATDEAD " : "", in soc_common_check_status()
351 events & SS_BATWARN ? "BATWARN " : "", in soc_common_check_status()
352 events & SS_STSCHG ? "STSCHG " : ""); in soc_common_check_status()
354 if (events) in soc_common_check_status()
355 pcmcia_parse_events(&skt->socket, events); in soc_common_check_status()
[all …]
Dcs.c621 unsigned int events; in pccardd() local
625 events = skt->thread_events; in pccardd()
632 if (events & SS_DETECT) in pccardd()
665 if (events || sysfs_events) in pccardd()
699 void pcmcia_parse_events(struct pcmcia_socket *s, u_int events) in pcmcia_parse_events() argument
702 dev_dbg(&s->dev, "parse_events: events %08x\n", events); in pcmcia_parse_events()
705 s->thread_events |= events; in pcmcia_parse_events()
724 void pcmcia_parse_uevents(struct pcmcia_socket *s, u_int events) in pcmcia_parse_uevents() argument
727 dev_dbg(&s->dev, "parse_uevents: events %08x\n", events); in pcmcia_parse_uevents()
730 s->sysfs_events |= events; in pcmcia_parse_uevents()
Dm32r_pcc.c344 u_int events, active; in pcc_interrupt() local
363 events = (irc) ? SS_DETECT : 0; in pcc_interrupt()
364 events |= (pcc_get(i,PCCR) & PCCR_PCEN) ? SS_READY : 0; in pcc_interrupt()
365 pr_debug("m32r_pcc: event 0x%02x\n", events); in pcc_interrupt()
367 if (events) in pcc_interrupt()
368 pcmcia_parse_events(&socket[i].socket, events); in pcc_interrupt()
370 active |= events; in pcc_interrupt()
Dtcic.c536 u_int events; in tcic_interrupt() local
560 events = (latch & TCIC_SSTAT_CD) ? SS_DETECT : 0; in tcic_interrupt()
561 events |= (latch & TCIC_SSTAT_WP) ? SS_WRPROT : 0; in tcic_interrupt()
563 events |= (latch & TCIC_SSTAT_LBAT1) ? SS_STSCHG : 0; in tcic_interrupt()
565 events |= (latch & TCIC_SSTAT_RDY) ? SS_READY : 0; in tcic_interrupt()
566 events |= (latch & TCIC_SSTAT_LBAT1) ? SS_BATDEAD : 0; in tcic_interrupt()
567 events |= (latch & TCIC_SSTAT_LBAT2) ? SS_BATWARN : 0; in tcic_interrupt()
569 if (events) { in tcic_interrupt()
570 pcmcia_parse_events(&socket_table[i].socket, events); in tcic_interrupt()
/linux-4.4.14/Documentation/laptops/
Dsonypi.txt15 It will give access (through a user space utility) to some events those laptops
17 - jogdial events (the small wheel on the side of Vaios)
18 - capture button events (only on Vaio Picturebook series)
24 Those events (see linux/sonypi.h) can be polled using the character device node
26 A simple daemon which translates the jogdial movements into mouse wheel events
29 Another option to intercept the events is to get them directly through the
60 fnkeyinit: on some Vaios (C1VE, C1VR etc), the Fn key events don't
69 verbose: set to 1 to print unknown events received from the
71 set to 2 to print all events received from the
75 events. If the driver worked for you in the past
[all …]
/linux-4.4.14/tools/testing/selftests/ftrace/test.d/event/
Dtoplevel-enable.tc19 if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
38 echo 1 > events/enable
49 echo 0 > events/enable
Dsubsystem-enable.tc19 if [ ! -f set_event -o ! -d events/sched ]; then
38 echo 1 > events/sched/enable
49 echo 0 > events/sched/enable
Devent-enable.tc19 if [ ! -f set_event -o ! -d events/sched ]; then
38 echo 1 > events/sched/sched_switch/enable
49 echo 0 > events/sched/sched_switch/enable
/linux-4.4.14/drivers/net/wireless/libertas/
Ddebugfs.c236 int events = 0; in lbs_threshold_read() local
259 events = le16_to_cpu(subscribed->events); in lbs_threshold_read()
262 !!(events & event_mask)); in lbs_threshold_read()
281 struct cmd_ds_802_11_subscribe_event *events; in lbs_threshold_write() local
304 events = kzalloc(sizeof(*events), GFP_KERNEL); in lbs_threshold_write()
305 if (!events) { in lbs_threshold_write()
310 events->hdr.size = cpu_to_le16(sizeof(*events)); in lbs_threshold_write()
311 events->action = cpu_to_le16(CMD_ACT_GET); in lbs_threshold_write()
313 ret = lbs_cmd_with_response(priv, CMD_802_11_SUBSCRIBE_EVENT, events); in lbs_threshold_write()
317 curr_mask = le16_to_cpu(events->events); in lbs_threshold_write()
[all …]
/linux-4.4.14/arch/arm64/kernel/
Dperf_event.c367 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_event() local
374 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv8pmu_enable_event()
396 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv8pmu_enable_event()
404 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_disable_event() local
410 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv8pmu_disable_event()
422 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv8pmu_disable_event()
451 struct perf_event *event = cpuc->events[idx]; in armv8pmu_handle_irq()
490 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_start() local
492 raw_spin_lock_irqsave(&events->pmu_lock, flags); in armv8pmu_start()
495 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in armv8pmu_start()
[all …]
/linux-4.4.14/kernel/time/
Dtimer_stats.c285 long events = 0; in tstats_show() local
322 events += entry->count; in tstats_show()
329 if (events && period.tv_sec) in tstats_show()
331 events, events * 1000 / ms, in tstats_show()
332 (events * 1000000 / ms) % 1000); in tstats_show()
334 seq_printf(m, "%ld total events\n", events); in tstats_show()
/linux-4.4.14/tools/perf/
Ddesign.txt6 CPUs. These registers count the number of certain types of hw events: such
9 trigger interrupts when a threshold number of events have passed - and can
65 __u32 wakeup_events; /* wakeup every n events */
100 * Common hardware events, generalized by the kernel:
111 These are standardized types of events that work relatively uniformly
119 and accessed as raw events. For example, to count "External bus
120 cycles while bus lock signal asserted" events on Intel Core CPUs, pass
124 software events, selected by 'event_id':
129 * physical and sw events of the kernel (and allow the profiling of them as
146 /debug/tracing/events/*/*/id
[all …]
Dbuiltin-probe.c57 struct perf_probe_event events[MAX_PROBES]; member
66 struct perf_probe_event *pev = &params.events[params.nevents]; in parse_probe_event()
237 struct perf_probe_event *pev = &params.events[params.nevents]; in opt_show_vars()
295 clear_perf_probe_event(params.events + i); in cleanup_params()
592 ret = show_available_vars(params.events, params.nevents, in __cmd_probe()
614 ret = perf_add_probe_events(params.events, params.nevents); in __cmd_probe()
/linux-4.4.14/drivers/dma-buf/
Ddma-buf.c141 unsigned long events; in dma_buf_poll() local
152 events = poll_requested_events(poll) & (POLLIN | POLLOUT); in dma_buf_poll()
153 if (!events) in dma_buf_poll()
171 if (fence_excl && (!(events & POLLOUT) || shared_count == 0)) { in dma_buf_poll()
181 events &= ~pevents; in dma_buf_poll()
186 if (events & pevents) { in dma_buf_poll()
189 events &= ~pevents; in dma_buf_poll()
193 events &= ~pevents; in dma_buf_poll()
206 if ((events & POLLOUT) && shared_count > 0) { in dma_buf_poll()
213 events &= ~POLLOUT; in dma_buf_poll()
[all …]
/linux-4.4.14/Documentation/timers/
Dtimer_stats.txt17 timer_stats collects information about the timer events which are fired in a
24 - the number of events (callbacks)
60 1, 23 events/1 do_cache_clean (delayed_work_timer_fn)
61 90 total events, 30.0 events/sec
63 The first column is the number of events, the second column the pid, the third
Dtimekeeping.txt1 Clock sources, Clock events, sched_clock() and delay timers
15 the basic timeline, whereas clock events shoot interrupts on certain points
84 Clock events
87 Clock events are the conceptual reverse of clock sources: they take a
91 Clock events are orthogonal to clock sources. The same hardware
93 a different thing. The hardware driving clock events has to be able to
94 fire interrupts, so as to trigger events on the system timeline. On an SMP
96 CPU core, so that each core can trigger events independently of any other
103 attribute however: the system will not try to plan events beyond the time
110 In addition to the clock sources and clock events there is a special weak
[all …]
/linux-4.4.14/drivers/atm/
DuPD98402.c171 unsigned char events; in stat_event() local
173 events = GET(PCR); in stat_event()
174 if (events & uPD98402_PFM_PFEB) ADD_LIMITED(path_febe,PFECB); in stat_event()
175 if (events & uPD98402_PFM_LFEB) ADD_LIMITED(line_febe,LECCT); in stat_event()
176 if (events & uPD98402_PFM_B3E) ADD_LIMITED(path_bip,B3ECT); in stat_event()
177 if (events & uPD98402_PFM_B2E) ADD_LIMITED(line_bip,B2ECT); in stat_event()
178 if (events & uPD98402_PFM_B1E) ADD_LIMITED(section_bip,B1ECT); in stat_event()
/linux-4.4.14/Documentation/devicetree/bindings/arc/
Dpct.txt4 CPU and cache events like cache misses and hits. Like conventional PCT there
8 * The ARC 700 PCT does not support interrupts; although HW events may be
9 counted, the HW events themselves cannot serve as a trigger for a sample.
/linux-4.4.14/drivers/connector/
DKconfig15 bool "Report process events to userspace"
19 Provide a connector that reports process events to userspace. Send
20 events such as fork, exec, id change (uid, gid, suid, etc), and exit.
/linux-4.4.14/drivers/media/pci/ttpci/
Dav7110_av.c884 struct dvb_video_events *events = &av7110->video_events; in dvb_video_add_event() local
887 spin_lock_bh(&events->lock); in dvb_video_add_event()
889 wp = (events->eventw + 1) % MAX_VIDEO_EVENT; in dvb_video_add_event()
890 if (wp == events->eventr) { in dvb_video_add_event()
891 events->overflow = 1; in dvb_video_add_event()
892 events->eventr = (events->eventr + 1) % MAX_VIDEO_EVENT; in dvb_video_add_event()
896 memcpy(&events->events[events->eventw], event, sizeof(struct video_event)); in dvb_video_add_event()
897 events->eventw = wp; in dvb_video_add_event()
899 spin_unlock_bh(&events->lock); in dvb_video_add_event()
901 wake_up_interruptible(&events->wait_queue); in dvb_video_add_event()
[all …]
/linux-4.4.14/include/linux/
Dflex_proportions.h29 struct percpu_counter events; member
45 unsigned long events; member
77 struct percpu_counter events; member
Dproportions.h30 struct percpu_counter events; member
55 struct percpu_counter events; member
106 unsigned long events; member
Dmei_cl_bus.h12 u32 events, void *context);
51 unsigned long events; member
/linux-4.4.14/net/netfilter/
Dnf_conntrack_ecache.c121 unsigned long events, missed; in nf_ct_deliver_cached_events() local
136 events = xchg(&e->cache, 0); in nf_ct_deliver_cached_events()
138 if (!nf_ct_is_confirmed(ct) || nf_ct_is_dying(ct) || !events) in nf_ct_deliver_cached_events()
146 if (!((events | missed) & e->ctmask)) in nf_ct_deliver_cached_events()
153 ret = notify->fcn(events | missed, &item); in nf_ct_deliver_cached_events()
160 e->missed |= events; in nf_ct_deliver_cached_events()
/linux-4.4.14/sound/soc/codecs/
Dda7219-aad.c276 u8 events[DA7219_AAD_IRQ_REG_MAX]; in da7219_aad_irq_thread() local
282 events, DA7219_AAD_IRQ_REG_MAX); in da7219_aad_irq_thread()
284 if (!events[DA7219_AAD_IRQ_REG_A] && !events[DA7219_AAD_IRQ_REG_B]) in da7219_aad_irq_thread()
292 events, DA7219_AAD_IRQ_REG_MAX); in da7219_aad_irq_thread()
295 events[DA7219_AAD_IRQ_REG_A], events[DA7219_AAD_IRQ_REG_B], in da7219_aad_irq_thread()
300 if (events[DA7219_AAD_IRQ_REG_A] & in da7219_aad_irq_thread()
308 if (events[DA7219_AAD_IRQ_REG_A] & in da7219_aad_irq_thread()
335 if (events[DA7219_AAD_IRQ_REG_B] & in da7219_aad_irq_thread()
345 if (events[DA7219_AAD_IRQ_REG_B] & in da7219_aad_irq_thread()
354 if (events[DA7219_AAD_IRQ_REG_A] & DA7219_E_JACK_REMOVED_MASK) { in da7219_aad_irq_thread()
/linux-4.4.14/arch/metag/kernel/perf/
Dperf_event.c288 cpuc->events[idx] = event; in metag_pmu_start()
357 cpuc->events[idx] = NULL; in metag_pmu_del()
600 struct cpu_hw_events *events = this_cpu_ptr(&cpu_hw_events); in metag_pmu_enable_counter() local
605 raw_spin_lock_irqsave(&events->pmu_lock, flags); in metag_pmu_enable_counter()
668 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in metag_pmu_enable_counter()
673 struct cpu_hw_events *events = this_cpu_ptr(&cpu_hw_events); in metag_pmu_disable_counter() local
696 raw_spin_lock_irqsave(&events->pmu_lock, flags); in metag_pmu_disable_counter()
702 raw_spin_unlock_irqrestore(&events->pmu_lock, flags); in metag_pmu_disable_counter()
721 struct cpu_hw_events *events = this_cpu_ptr(&cpu_hw_events); in metag_pmu_write_counter() local
736 raw_spin_lock_irqsave(&events->pmu_lock, flags); in metag_pmu_write_counter()
[all …]
/linux-4.4.14/samples/trace_events/
DMakefile12 CFLAGS_trace-events-sample.o := -I$(src)
14 obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
Dkfd_events.c224 hash_for_each_possible(p->events, ev, events, id) in lookup_event_by_id()
340 hash_init(p->events); in kfd_event_init_process()
360 hash_del(&ev->events); in destroy_event()
370 hash_for_each_safe(p->events, hash_bkt, tmp, ev, events) in destroy_events()
445 hash_add(p->events, &ev->events, ev->event_id); in kfd_event_create()
723 struct kfd_event_data __user *events = in kfd_wait_on_events() local
741 if (copy_from_user(&event_data, &events[i], in kfd_wait_on_events()
774 event_waiters, events)) in kfd_wait_on_events()
866 hash_for_each(p->events, bkt, ev, events) in lookup_events_by_type_and_signal()
/linux-4.4.14/drivers/rtc/
Drtc-bfin.c184 unsigned long events = 0; in bfin_rtc_interrupt() local
205 events |= RTC_AF | RTC_IRQF; in bfin_rtc_interrupt()
213 events |= RTC_UF | RTC_IRQF; in bfin_rtc_interrupt()
217 if (events) in bfin_rtc_interrupt()
218 rtc_update_irq(rtc->rtc_dev, 1, events); in bfin_rtc_interrupt()
220 if (write_complete || events) { in bfin_rtc_interrupt()
Drtc-at91sam9.c82 unsigned long events; member
292 rtc->events |= (RTC_AF | RTC_IRQF); in at91_rtc_cache_events()
296 rtc->events |= (RTC_UF | RTC_IRQF); in at91_rtc_cache_events()
303 if (!rtc->events) in at91_rtc_flush_events()
306 rtc_update_irq(rtc->rtcdev, 1, rtc->events); in at91_rtc_flush_events()
307 rtc->events = 0; in at91_rtc_flush_events()
310 rtc->events >> 8, rtc->events & 0x000000FF); in at91_rtc_flush_events()
Drtc-ds1553.c199 unsigned long events = 0; in ds1553_rtc_interrupt() local
204 events = RTC_IRQF; in ds1553_rtc_interrupt()
206 events |= RTC_UF; in ds1553_rtc_interrupt()
208 events |= RTC_AF; in ds1553_rtc_interrupt()
209 rtc_update_irq(pdata->rtc, 1, events); in ds1553_rtc_interrupt()
212 return events ? IRQ_HANDLED : IRQ_NONE; in ds1553_rtc_interrupt()
Drtc-stk17ta8.c207 unsigned long events = 0; in stk17ta8_rtc_interrupt() local
212 events = RTC_IRQF; in stk17ta8_rtc_interrupt()
214 events |= RTC_UF; in stk17ta8_rtc_interrupt()
216 events |= RTC_AF; in stk17ta8_rtc_interrupt()
217 rtc_update_irq(pdata->rtc, 1, events); in stk17ta8_rtc_interrupt()
220 return events ? IRQ_HANDLED : IRQ_NONE; in stk17ta8_rtc_interrupt()
Drtc-at91rm9200.c299 unsigned long events = 0; in at91_rtc_interrupt() local
306 events |= (RTC_AF | RTC_IRQF); in at91_rtc_interrupt()
317 rtc_update_irq(rtc, 1, events); in at91_rtc_interrupt()
320 __func__, events >> 8, events & 0x000000FF); in at91_rtc_interrupt()
322 cached_events |= events; in at91_rtc_interrupt()
Drtc-jz4740.c189 unsigned long events = 0; in jz4740_rtc_irq() local
194 events |= (RTC_UF | RTC_IRQF); in jz4740_rtc_irq()
197 events |= (RTC_AF | RTC_IRQF); in jz4740_rtc_irq()
199 rtc_update_irq(rtc->rtc, 1, events); in jz4740_rtc_irq()
Drtc-nuc900.c65 unsigned long events = 0, rtc_irq; in nuc900_rtc_interrupt() local
72 events |= RTC_AF | RTC_IRQF; in nuc900_rtc_interrupt()
78 events |= RTC_UF | RTC_IRQF; in nuc900_rtc_interrupt()
81 rtc_update_irq(rtc->rtcdev, 1, events); in nuc900_rtc_interrupt()
Drtc-ds1511.c362 unsigned long events = 0; in ds1511_interrupt() local
369 events = RTC_IRQF; in ds1511_interrupt()
371 events |= RTC_UF; in ds1511_interrupt()
373 events |= RTC_AF; in ds1511_interrupt()
374 rtc_update_irq(pdata->rtc, 1, events); in ds1511_interrupt()
377 return events ? IRQ_HANDLED : IRQ_NONE; in ds1511_interrupt()
Drtc-pxa.c151 unsigned long events = 0; in pxa_rtc_irq() local
168 events |= RTC_AF | RTC_IRQF; in pxa_rtc_irq()
170 events |= RTC_UF | RTC_IRQF; in pxa_rtc_irq()
172 events |= RTC_PF | RTC_IRQF; in pxa_rtc_irq()
174 rtc_update_irq(pxa_rtc->rtc, 1, events); in pxa_rtc_irq()
Drtc-rv8803.c63 unsigned long events = 0; in rv8803_handle_irq() local
83 events |= RTC_PF; in rv8803_handle_irq()
89 events |= RTC_AF; in rv8803_handle_irq()
95 events |= RTC_UF; in rv8803_handle_irq()
98 if (events) { in rv8803_handle_irq()
99 rtc_update_irq(rv8803->rtc, 1, events); in rv8803_handle_irq()
Drtc-snvs.c208 u32 events = 0; in snvs_rtc_irq_handler() local
213 events |= (RTC_AF | RTC_IRQF); in snvs_rtc_irq_handler()
218 rtc_update_irq(data->rtc, 1, events); in snvs_rtc_irq_handler()
224 return events ? IRQ_HANDLED : IRQ_NONE; in snvs_rtc_irq_handler()
Drtc-sa1100.c55 unsigned long events = 0; in sa1100_rtc_interrupt() local
87 events |= RTC_AF | RTC_IRQF; in sa1100_rtc_interrupt()
89 events |= RTC_UF | RTC_IRQF; in sa1100_rtc_interrupt()
91 rtc_update_irq(rtc, 1, events); in sa1100_rtc_interrupt()
Drtc-tegra.c273 unsigned long events = 0; in tegra_rtc_irq_handler() local
289 events |= RTC_IRQF | RTC_AF; in tegra_rtc_irq_handler()
293 events |= RTC_IRQF | RTC_PF; in tegra_rtc_irq_handler()
295 rtc_update_irq(info->rtc_dev, 1, events); in tegra_rtc_irq_handler()
Drtc-mxc.c229 u32 events = 0; in mxc_rtc_interrupt() local
238 events |= (RTC_AF | RTC_IRQF); in mxc_rtc_interrupt()
244 events |= (RTC_UF | RTC_IRQF); in mxc_rtc_interrupt()
247 events |= (RTC_PF | RTC_IRQF); in mxc_rtc_interrupt()
249 rtc_update_irq(pdata->rtc, 1, events); in mxc_rtc_interrupt()
/linux-4.4.14/drivers/misc/ibmasm/
Devent.c67 event = &buffer->events[buffer->next_index]; in ibmasm_receive_event()
110 event = &buffer->events[index]; in ibmasm_get_next_event()
113 event = &buffer->events[index]; in ibmasm_get_next_event()
163 event = buffer->events; in ibmasm_event_buffer_init()
/linux-4.4.14/Documentation/usb/
Dusbmon.txt104 Any text format data consists of a stream of events, such as URB submission,
137 events.
195 only the events are delivered in binary format. Each event is sent in
225 These events can be received from a character device by reading with read(2),
242 events contain no data, so if this call returns zero, it does not mean that
243 no events are available.
254 The member "queued" refers to the number of events currently queued in the
255 buffer (and not to the number of events processed since the last reset).
257 The member "dropped" is the number of events lost since the last call
274 These calls wait for events to arrive if none were in the kernel buffer,
[all …]
/linux-4.4.14/drivers/devfreq/event/
DKconfig4 The devfreq-event device provide the raw data and events which
10 The devfreq-event device can support the various type of events
11 (e.g., raw data, utilization, latency, bandwidth). The events
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_frontend.c106 struct dvb_fe_events events; member
205 struct dvb_fe_events *events = &fepriv->events; in dvb_frontend_add_event() local
214 mutex_lock(&events->mtx); in dvb_frontend_add_event()
216 wp = (events->eventw + 1) % MAX_EVENT; in dvb_frontend_add_event()
217 if (wp == events->eventr) { in dvb_frontend_add_event()
218 events->overflow = 1; in dvb_frontend_add_event()
219 events->eventr = (events->eventr + 1) % MAX_EVENT; in dvb_frontend_add_event()
222 e = &events->events[events->eventw]; in dvb_frontend_add_event()
226 events->eventw = wp; in dvb_frontend_add_event()
228 mutex_unlock(&events->mtx); in dvb_frontend_add_event()
[all …]
/linux-4.4.14/Documentation/ABI/stable/
Dthermal-notification1 What: A notification mechanism for thermal related events
3 This interface enables notification for thermal related events.
Dfirewire-cdev67 Watch for events to become available to be read.
70 Receive various events. There are solicited events like
72 buffer completion, and unsolicited events such as bus resets,
77 events.
/linux-4.4.14/drivers/md/
Ddm-uevent.h33 extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);
47 static inline void dm_send_uevents(struct list_head *events, in dm_send_uevents() argument
/linux-4.4.14/net/bluetooth/
Dhci_core.c524 u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 }; in hci_setup_event_mask() local
533 events[4] |= 0x01; /* Flow Specification Complete */ in hci_setup_event_mask()
534 events[4] |= 0x02; /* Inquiry Result with RSSI */ in hci_setup_event_mask()
535 events[4] |= 0x04; /* Read Remote Extended Features Complete */ in hci_setup_event_mask()
536 events[5] |= 0x08; /* Synchronous Connection Complete */ in hci_setup_event_mask()
537 events[5] |= 0x10; /* Synchronous Connection Changed */ in hci_setup_event_mask()
540 memset(events, 0, sizeof(events)); in hci_setup_event_mask()
541 events[0] |= 0x10; /* Disconnection Complete */ in hci_setup_event_mask()
542 events[1] |= 0x08; /* Read Remote Version Information Complete */ in hci_setup_event_mask()
543 events[1] |= 0x20; /* Command Complete */ in hci_setup_event_mask()
[all …]
/linux-4.4.14/arch/um/os-Linux/
Dirq.c52 int os_create_pollfd(int fd, int events, void *tmp_pfd, int size_tmpfds) in os_create_pollfd() argument
72 .events = events, in os_create_pollfd()
/linux-4.4.14/arch/um/kernel/
Dirq.c65 int events, err, n; in activate_fd() local
77 events = UM_POLLIN | UM_POLLPRI; in activate_fd()
78 else events = UM_POLLOUT; in activate_fd()
84 .events = events, in activate_fd()
106 n = os_create_pollfd(fd, events, tmp_pfd, n); in activate_fd()
/linux-4.4.14/mm/
Dvmpressure.c150 list_for_each_entry(ev, &vmpr->events, node) { in vmpressure_event()
319 list_add(&ev->node, &vmpr->events); in vmpressure_register_event()
343 list_for_each_entry(ev, &vmpr->events, node) { in vmpressure_unregister_event()
364 INIT_LIST_HEAD(&vmpr->events); in vmpressure_init()
/linux-4.4.14/sound/firewire/oxfw/
Doxfw-hwdep.c59 unsigned int events; in hwdep_poll() local
65 events = POLLIN | POLLRDNORM; in hwdep_poll()
67 events = 0; in hwdep_poll()
70 return events; in hwdep_poll()
/linux-4.4.14/sound/firewire/digi00x/
Ddigi00x-hwdep.c67 unsigned int events; in hwdep_poll() local
73 events = POLLIN | POLLRDNORM; in hwdep_poll()
75 events = 0; in hwdep_poll()
78 return events; in hwdep_poll()
/linux-4.4.14/sound/firewire/dice/
Ddice-hwdep.c59 unsigned int events; in hwdep_poll() local
65 events = POLLIN | POLLRDNORM; in hwdep_poll()
67 events = 0; in hwdep_poll()
70 return events; in hwdep_poll()
/linux-4.4.14/sound/firewire/bebob/
Dbebob_hwdep.c60 unsigned int events; in hwdep_poll() local
66 events = POLLIN | POLLRDNORM; in hwdep_poll()
68 events = 0; in hwdep_poll()
71 return events; in hwdep_poll()
/linux-4.4.14/sound/firewire/tascam/
Dtascam-hwdep.c68 unsigned int events; in hwdep_poll() local
74 events = POLLIN | POLLRDNORM; in hwdep_poll()
76 events = 0; in hwdep_poll()
79 return events; in hwdep_poll()
/linux-4.4.14/Documentation/devicetree/bindings/devfreq/event/
Dexynos-ppmu.txt6 PPMU events provide information of the SoC's behaviors so that you may
62 events {
84 events {
94 events {
104 events {
/linux-4.4.14/Documentation/fault-injection/
Dnotifier-error-inject.txt19 If the notifier call chain should be failed with some events notified, write
23 Possible CPU notifier events to be failed are:
48 Possible PM notifier events to be failed are:
66 Possible memory notifier events to be failed are:
83 Possible pSeries reconfig notifier events to be failed are:
/linux-4.4.14/arch/powerpc/platforms/pseries/
DKconfig40 SPLPAR machines can log hypervisor preempt & dispatch events to a
41 kernel buffer. Saying Y here will enable logging these events,
67 to return information about hardware error and non-error events
68 which may need OS attention. RTAS returns events for multiple
70 to receive events.
120 bool "Hypervisor supplied PMU events (24x7 & GPCI)"
/linux-4.4.14/drivers/spi/
Dspi-fsl-cpm.h29 extern void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events);
38 static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { } in fsl_spi_cpm_irq() argument
Dspi-fsl-espi.c534 void fsl_espi_cpu_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_espi_cpu_irq() argument
539 if (events & SPIE_NE) { in fsl_espi_cpu_irq()
544 while (SPIE_RXCNT(events) < min(4, mspi->len)) { in fsl_espi_cpu_irq()
546 events = mpc8xxx_spi_read_reg(&reg_base->event); in fsl_espi_cpu_irq()
568 if (!(events & SPIE_NF)) { in fsl_espi_cpu_irq()
572 ret = spin_event_timeout(((events = mpc8xxx_spi_read_reg( in fsl_espi_cpu_irq()
578 mpc8xxx_spi_write_reg(&reg_base->event, events); in fsl_espi_cpu_irq()
585 mpc8xxx_spi_write_reg(&reg_base->event, events); in fsl_espi_cpu_irq()
602 u32 events; in fsl_espi_irq() local
605 events = mpc8xxx_spi_read_reg(&reg_base->event); in fsl_espi_irq()
[all …]
Dspi-fsl-spi.c508 static void fsl_spi_cpu_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_spi_cpu_irq() argument
513 if (events & SPIE_NE) { in fsl_spi_cpu_irq()
520 if ((events & SPIE_NF) == 0) in fsl_spi_cpu_irq()
522 while (((events = in fsl_spi_cpu_irq()
528 mpc8xxx_spi_write_reg(&reg_base->event, events); in fsl_spi_cpu_irq()
544 u32 events; in fsl_spi_irq() local
548 events = mpc8xxx_spi_read_reg(&reg_base->event); in fsl_spi_irq()
549 if (events) in fsl_spi_irq()
552 dev_dbg(mspi->dev, "%s: events %x\n", __func__, events); in fsl_spi_irq()
555 fsl_spi_cpm_irq(mspi, events); in fsl_spi_irq()
[all …]
/linux-4.4.14/Documentation/block/
Dcapability.txt13 of media change events. These events will be broadcast to user
/linux-4.4.14/Documentation/networking/
Dxfrm_sync.txt7 events so that the an SA can be safely moved from one machine to another
12 We already have the ability to generate SA add/del/upd events.
19 it is possible for a lot of the events to be generated.
21 the events. i.e we are going to set thresholds to say "let me
77 to get notified of these events.
91 This TLV carries the threshold being used by the kernel to trigger events
96 value to rate limit the events.
101 By default these events should be turned off unless there is
131 or kernel to announce events or respond to a XFRM_MSG_GETAE.
/linux-4.4.14/drivers/mmc/host/
Dmtk-sd.c687 static int msdc_auto_cmd_done(struct msdc_host *host, int events, in msdc_auto_cmd_done() argument
694 if (events & MSDC_INT_ACMDRDY) { in msdc_auto_cmd_done()
698 if (events & MSDC_INT_ACMDCRCERR) { in msdc_auto_cmd_done()
701 } else if (events & MSDC_INT_ACMDTMO) { in msdc_auto_cmd_done()
744 static bool msdc_cmd_done(struct msdc_host *host, int events, in msdc_cmd_done() argument
753 (events & (MSDC_INT_ACMDRDY | MSDC_INT_ACMDCRCERR in msdc_cmd_done()
755 msdc_auto_cmd_done(host, events, mrq->sbc); in msdc_cmd_done()
759 if (!sbc_error && !(events & (MSDC_INT_CMDRDY in msdc_cmd_done()
785 if (!sbc_error && !(events & MSDC_INT_CMDRDY)) { in msdc_cmd_done()
787 if (events & MSDC_INT_RSPCRCERR) { in msdc_cmd_done()
[all …]
/linux-4.4.14/drivers/iio/dac/
Dad5421.c207 unsigned int events; in ad5421_fault_handler() local
236 events = (old_fault ^ fault) & fault; in ad5421_fault_handler()
237 events &= st->fault_mask; in ad5421_fault_handler()
239 if (events & AD5421_FAULT_OVER_CURRENT) { in ad5421_fault_handler()
248 if (events & AD5421_FAULT_UNDER_CURRENT) { in ad5421_fault_handler()
257 if (events & AD5421_FAULT_TEMP_OVER_140) { in ad5421_fault_handler()
/linux-4.4.14/drivers/isdn/sc/
Devent.c24 static char *events[] = { "ISDN_STAT_STAVAIL", variable
47 sc_adapter[card]->devicename, events[event - 256], Channel); in indicate_status()
/linux-4.4.14/Documentation/leds/
Dledtrig-oneshot.txt10 This trigger is meant to be usable both for sporadic and dense events. In the
13 that the events are arriving continuously.
15 A one-shot LED only stays in a constant state when there are no events. An
40 shot - write any non-empty string to signal an events, this starts a blink
/linux-4.4.14/kernel/trace/
DKconfig225 bool "Trace process context switches and events"
239 Basic tracer to catch the syscall entry and exit events.
342 This traces the events of likely and unlikely condition
346 events into a running trace buffer to see when and where the
347 events happened, as well as their results.
403 bool "Enable kprobes-based dynamic events"
408 This allows the user to add tracing events (similar to tracepoints)
412 Those events can be inserted wherever kprobes can probe, and record
419 bool "Enable uprobes-based dynamic events"
428 This allows the user to add tracing events on top of userspace
[all …]
/linux-4.4.14/drivers/media/usb/uvc/
DKconfig12 bool "UVC input events device support"
18 to report button events.
/linux-4.4.14/fs/nfs/
Diostat.h22 unsigned long events[__NFSIOS_COUNTSMAX]; member
28 this_cpu_inc(server->io_stats->events[stat]); in nfs_inc_server_stats()
/linux-4.4.14/drivers/staging/iio/Documentation/
Doverview.txt24 route to user space for hardware triggered events. Such events include
26 detection. The events themselves are currently very simple with
30 Note: A given device may have one or more event channel. These events are
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-eq.c155 lnet_event_t *events = NULL; in LNetEQFree() local
188 events = eq->eq_events; in LNetEQFree()
199 if (events != NULL) in LNetEQFree()
200 LIBCFS_FREE(events, size * sizeof(lnet_event_t)); in LNetEQFree()
/linux-4.4.14/drivers/bus/
DKconfig25 Support for PMU events monitoring on the ARM CCI-400 (cache coherent
26 interconnect). CCI-400 supports counting events related to the
43 Support for PMU events monitoring on the ARM CCI-500 cache coherent
45 can count events pertaining to the slave/master interfaces as well
46 as the internal events to the CCI.
/linux-4.4.14/drivers/scsi/
Dsr.c235 unsigned int events; in sr_check_events() local
242 events = sr_get_events(cd->device); in sr_check_events()
243 cd->get_event_changed |= events & DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
252 events &= ~DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
262 events |= DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
268 return events; in sr_check_events()
286 events |= DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
292 return events; in sr_check_events()
309 return events; in sr_check_events()
689 disk->events = DISK_EVENT_MEDIA_CHANGE | DISK_EVENT_EJECT_REQUEST; in sr_probe()
/linux-4.4.14/drivers/vfio/
Dvirqfd.c116 unsigned int events; in vfio_virqfd_enable() local
169 events = irqfd.file->f_op->poll(irqfd.file, &virqfd->pt); in vfio_virqfd_enable()
175 if (events & POLLIN) { in vfio_virqfd_enable()
/linux-4.4.14/drivers/parisc/
Dled.c407 unsigned long events[NR_VM_EVENT_ITEMS]; in led_get_diskio_activity() local
410 all_vm_events(events); in led_get_diskio_activity()
414 changed = (events[PGPGIN] != last_pgpgin) || in led_get_diskio_activity()
415 (events[PGPGOUT] != last_pgpgout); in led_get_diskio_activity()
416 last_pgpgin = events[PGPGIN]; in led_get_diskio_activity()
417 last_pgpgout = events[PGPGOUT]; in led_get_diskio_activity()
/linux-4.4.14/arch/sparc/kernel/
Dperf_event.c96 unsigned long events[MAX_HWEVENTS]; member
833 enc = perf_event_get_enc(cpuc->events[idx]); in sparc_pmu_enable_event()
959 enc = perf_event_get_enc(cpuc->events[i]); in calculate_single_pcr()
1119 cpuc->events[i - 1] = cpuc->events[i]; in sparc_pmu_del()
1228 unsigned long *events, int n_ev) in sparc_check_constraints() argument
1250 msk0 = perf_event_get_msk(events[0]); in sparc_check_constraints()
1257 msk1 = perf_event_get_msk(events[1]); in sparc_check_constraints()
1331 struct perf_event *evts[], unsigned long *events, in collect_events() argument
1341 events[n] = group->hw.event_base; in collect_events()
1350 events[n] = event->hw.event_base; in collect_events()
[all …]
/linux-4.4.14/sound/drivers/vx/
Dvx_core.c501 unsigned int events; in snd_vx_threaded_irq_handler() local
506 if (vx_test_irq_src(chip, &events) < 0) in snd_vx_threaded_irq_handler()
510 if (events & 0x000800) in snd_vx_threaded_irq_handler()
511 printk(KERN_ERR "DSP Stream underrun ! IRQ events = 0x%x\n", events); in snd_vx_threaded_irq_handler()
519 if (events & FATAL_DSP_ERROR) { in snd_vx_threaded_irq_handler()
527 if (events & TIME_CODE_EVENT_PENDING) in snd_vx_threaded_irq_handler()
531 if (events & FREQUENCY_CHANGE_EVENT_PENDING) in snd_vx_threaded_irq_handler()
535 vx_pcm_update_intr(chip, events); in snd_vx_threaded_irq_handler()
/linux-4.4.14/drivers/firewire/
Dinit_ohci1394_dma.c192 int i, events; in init_ohci1394_wait_for_busresets() local
196 events = reg_read(ohci, OHCI1394_IntEventSet); in init_ohci1394_wait_for_busresets()
197 if (events & OHCI1394_busReset) in init_ohci1394_wait_for_busresets()
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_hwdep.c158 unsigned int events; in hwdep_poll() local
164 events = POLLIN | POLLRDNORM; in hwdep_poll()
166 events = 0; in hwdep_poll()
169 return events | POLLOUT; in hwdep_poll()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-event.c136 kev = sev->events + sev_pos(sev, 0); in __v4l2_event_queue_fh()
148 sev->events + sev_pos(sev, 0); in __v4l2_event_queue_fh()
154 kev = sev->events + sev_pos(sev, sev->in_use); in __v4l2_event_queue_fh()
226 sev->events[i].sev = sev; in v4l2_event_subscribe()
301 list_del(&sev->events[sev_pos(sev, i)].list); in v4l2_event_unsubscribe()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dmipi-csis.c228 struct s5pcsis_event events[S5PCSIS_NUM_EVENTS]; member
471 state->events[i].counter = 0; in s5pcsis_clear_counters()
483 if (state->events[i].counter > 0 || debug) in s5pcsis_log_counters()
485 state->events[i].name, in s5pcsis_log_counters()
486 state->events[i].counter); in s5pcsis_log_counters()
719 if (!(status & state->events[i].mask)) in s5pcsis_irq_handler()
721 state->events[i].counter++; in s5pcsis_irq_handler()
723 state->events[i].name, in s5pcsis_irq_handler()
724 state->events[i].counter); in s5pcsis_irq_handler()
879 memcpy(state->events, s5pcsis_events, sizeof(state->events)); in s5pcsis_probe()
/linux-4.4.14/arch/powerpc/perf/
Dcore-book3s.c37 u64 events[MAX_HWEVENTS]; member
1263 if (ppmu->compute_mmcr(cpuhw->events, cpuhw->n_events, hwc_index, in power_pmu_enable()
1374 struct perf_event *ctrs[], u64 *events, in collect_events() argument
1385 events[n++] = group->hw.config; in collect_events()
1394 events[n++] = event->hw.config; in collect_events()
1425 cpuhw->events[n0] = event->hw.config; in power_pmu_add()
1449 if (power_check_constraints(cpuhw, cpuhw->events, cpuhw->flags, n0 + 1)) in power_pmu_add()
1451 event->hw.config = cpuhw->events[n0]; in power_pmu_add()
1491 cpuhw->events[i-1] = cpuhw->events[i]; in power_pmu_del()
1652 i = power_check_constraints(cpuhw, cpuhw->events, cpuhw->flags, n); in power_pmu_commit_txn()
[all …]
Dhv-24x7.c149 struct perf_event *events[255]; member
672 struct attribute **events, **event_descs, **event_long_descs; in create_events_from_catalog() local
812 events = kmalloc_array(attr_max + 1, sizeof(*events), GFP_KERNEL); in create_events_from_catalog()
813 if (!events) { in create_events_from_catalog()
852 ct = event_data_to_attrs(event_idx, events + event_attr_ct, in create_events_from_catalog()
873 events[event_attr_ct] = NULL; in create_events_from_catalog()
881 *events_ = events; in create_events_from_catalog()
889 kfree(events); in create_events_from_catalog()
1276 h24x7hw->events[i] = event; in h_24x7_event_read()
1390 event = h24x7hw->events[i]; in h_24x7_event_commit_txn()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/interrupt-controller/
Dbrcm,bcm2836-l1-intc.txt4 events, and SMP IPIs. One of the CPUs may receive interrupts for the
5 peripheral (GPU) events, which chain to the BCM2835-style interrupt
/linux-4.4.14/drivers/leds/trigger/
DKconfig6 These triggers allow kernel events to drive the LEDs and can
28 sporadic events, when there are no clear begin and end trap points,
29 or on dense events, where this blinks the LED at constant rate if
77 This allows LEDs to be controlled by gpio events. It's good
/linux-4.4.14/drivers/staging/comedi/drivers/
Dusbduxsigma.c240 async->events |= COMEDI_CB_EOA; in usbduxsigma_ai_handle_urb()
245 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsigma_ai_handle_urb()
254 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_handle_urb()
292 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete()
299 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete()
307 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsigma_ai_urb_complete()
353 async->events |= COMEDI_CB_EOA; in usbduxsigma_ao_handle_urb()
366 async->events |= COMEDI_CB_OVERFLOW; in usbduxsigma_ao_handle_urb()
377 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsigma_ao_handle_urb()
393 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ao_handle_urb()
[all …]
Dusbdux.c278 async->events |= COMEDI_CB_EOA; in usbduxsub_ai_handle_urb()
282 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsub_ai_handle_urb()
292 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_handle_urb()
330 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq()
338 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq()
346 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsub_ai_isoc_irq()
393 async->events |= COMEDI_CB_EOA; in usbduxsub_ao_handle_urb()
406 async->events |= COMEDI_CB_OVERFLOW; in usbduxsub_ao_handle_urb()
419 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsub_ao_handle_urb()
439 async->events |= COMEDI_CB_ERROR; in usbduxsub_ao_handle_urb()
[all …]
Damplc_pci230.c1073 async->events |= COMEDI_CB_OVERFLOW; in pci230_handle_ao_nofifo()
1081 async->events |= COMEDI_CB_EOA; in pci230_handle_ao_nofifo()
1098 unsigned int events = 0; in pci230_handle_ao_fifo() local
1104 events |= COMEDI_CB_EOA; in pci230_handle_ao_fifo()
1106 if (events == 0) { in pci230_handle_ao_fifo()
1110 events |= COMEDI_CB_OVERFLOW | COMEDI_CB_ERROR; in pci230_handle_ao_fifo()
1120 events |= COMEDI_CB_OVERFLOW | COMEDI_CB_ERROR; in pci230_handle_ao_fifo()
1123 if (events == 0) { in pci230_handle_ao_fifo()
1165 events |= COMEDI_CB_OVERFLOW | COMEDI_CB_ERROR; in pci230_handle_ao_fifo()
1168 async->events |= events; in pci230_handle_ao_fifo()
[all …]
/linux-4.4.14/Documentation/misc-devices/mei/
Dmei-client-bus.txt50 In order for drivers to be notified of pending events waiting for them (e.g.
121 the pending events:
125 static void contact_event_cb(struct mei_cl_device *dev, u32 events,
130 if (events & BIT(MEI_EVENT_RX)) {
/linux-4.4.14/drivers/virtio/
Dvirtio_balloon.c229 unsigned long events[NR_VM_EVENT_ITEMS]; in update_balloon_stats() local
233 all_vm_events(events); in update_balloon_stats()
237 pages_to_bytes(events[PSWPIN])); in update_balloon_stats()
239 pages_to_bytes(events[PSWPOUT])); in update_balloon_stats()
240 update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); in update_balloon_stats()
241 update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); in update_balloon_stats()
/linux-4.4.14/Documentation/video4linux/
DREADME.ir41 events and the like. You can also use the kbd utility to change the
48 The cvs version of the lircd daemon supports reading events from the
60 XF86AudioRaiseVolume and XF86AudioLowerVolume key events to the X11
/linux-4.4.14/Documentation/device-mapper/
Ddm-uevent.txt2 and send kobject uevents (uevents). Previously device-mapper events were only
8 There are two functions currently for device-mapper events. The first function
14 void dm_send_uevents(struct list_head *events, struct kobject *kobj)
/linux-4.4.14/tools/lib/traceevent/
Dparse-filter.c239 static int add_event(struct event_list **events, in add_event() argument
248 list->next = *events; in add_event()
249 *events = list; in add_event()
267 find_event(struct pevent *pevent, struct event_list **events, in find_event() argument
314 event = pevent->events[i]; in find_event()
317 if (add_event(events, event) < 0) { in find_event()
336 static void free_events(struct event_list *events) in free_events() argument
340 while (events) { in free_events()
341 event = events; in free_events()
342 events = events->next; in free_events()
[all …]
/linux-4.4.14/net/rfkill/
Dcore.c86 struct list_head events; member
219 list_add_tail(&ev->list, &data->events); in rfkill_send_events()
1047 INIT_LIST_HEAD(&data->events); in rfkill_fop_open()
1063 list_add_tail(&ev->list, &data->events); in rfkill_fop_open()
1077 list_for_each_entry_safe(ev, tmp, &data->events, list) in rfkill_fop_open()
1091 if (!list_empty(&data->events)) in rfkill_fop_poll()
1108 while (list_empty(&data->events)) { in rfkill_fop_read()
1118 !list_empty(&data->events)); in rfkill_fop_read()
1125 ev = list_first_entry(&data->events, struct rfkill_int_event, in rfkill_fop_read()
1201 list_for_each_entry_safe(ev, tmp, &data->events, list) in rfkill_fop_release()
/linux-4.4.14/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c375 u8 events; in cpm_uart_int() local
384 events = in_8(&smcp->smc_smce); in cpm_uart_int()
385 out_8(&smcp->smc_smce, events); in cpm_uart_int()
386 if (events & SMCM_BRKE) in cpm_uart_int()
388 if (events & SMCM_RX) in cpm_uart_int()
390 if (events & SMCM_TX) in cpm_uart_int()
393 events = in_be16(&sccp->scc_scce); in cpm_uart_int()
394 out_be16(&sccp->scc_scce, events); in cpm_uart_int()
395 if (events & UART_SCCM_BRKE) in cpm_uart_int()
397 if (events & UART_SCCM_RX) in cpm_uart_int()
[all …]
/linux-4.4.14/drivers/staging/comedi/
Ddrivers.c538 async->events |= COMEDI_CB_EOS; in comedi_inc_scan_progress()
562 unsigned int events = s->async->events; in comedi_handle_events() local
564 if (events == 0) in comedi_handle_events()
565 return events; in comedi_handle_events()
567 if (events & COMEDI_CB_CANCEL_MASK) in comedi_handle_events()
572 return events; in comedi_handle_events()
/linux-4.4.14/Documentation/x86/
Dkernel-stacks35 to automatically switch to a new stack for designated events such as
37 events on x86_64. This feature is called the Interrupt Stack Table
55 pointers on entry to and exit from all IST events, in theory allowing
56 IST events with the same code to be nested. However in most cases, the
76 middle of switching stacks. Using IST for NMI events avoids making
94 middle of switching stacks. Using IST for MCE events avoids making
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_amd_uncore.c41 struct perf_event *events[MAX_COUNTERS]; member
125 if (hwc->idx != -1 && uncore->events[hwc->idx] == event) in amd_uncore_add()
129 if (uncore->events[i] == event) { in amd_uncore_add()
138 if (cmpxchg(&uncore->events[i], NULL, event) == NULL) { in amd_uncore_add()
168 if (cmpxchg(&uncore->events[i], event, NULL) == event) in amd_uncore_del()
/linux-4.4.14/arch/blackfin/kernel/
Dperf_event.c231 struct perf_event *events[MAX_HWEVENTS]; member
309 cpuc->events[idx] = NULL; in bfin_pmu_stop()
331 cpuc->events[idx] = event; in bfin_pmu_start()
430 event = cpuc->events[i]; in bfin_pmu_enable()
/linux-4.4.14/drivers/media/i2c/cx25840/
Dcx25840-ir.c531 u32 events, v; in cx25840_ir_irq_handler() local
587 events = V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ; in cx25840_ir_irq_handler()
588 v4l2_subdev_notify(sd, V4L2_SUBDEV_IR_TX_NOTIFY, &events); in cx25840_ir_irq_handler()
622 events = 0; in cx25840_ir_irq_handler()
625 events |= V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN; in cx25840_ir_irq_handler()
634 events |= V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN; in cx25840_ir_irq_handler()
643 events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED; in cx25840_ir_irq_handler()
653 events |= V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ; in cx25840_ir_irq_handler()
656 if (events) in cx25840_ir_irq_handler()
657 v4l2_subdev_notify(sd, V4L2_SUBDEV_IR_RX_NOTIFY, &events); in cx25840_ir_irq_handler()
/linux-4.4.14/drivers/iio/accel/
Dmma9553.c190 struct mma9553_event events[MMA9553_EVENTS_INFO_SIZE]; member
236 data->events[i].info = &mma9553_events_info[i]; in mma9553_init_events()
237 data->events[i].enabled = false; in mma9553_init_events()
249 if (data->events[i].info->type == type && in mma9553_get_event()
250 data->events[i].info->mod == mod && in mma9553_get_event()
251 data->events[i].info->dir == dir) in mma9553_get_event()
252 return &data->events[i]; in mma9553_get_event()
264 if ((check_type && data->events[i].info->type == type && in mma9553_is_any_event_enabled()
265 data->events[i].enabled) || in mma9553_is_any_event_enabled()
266 (!check_type && data->events[i].enabled)) in mma9553_is_any_event_enabled()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_fc.c101 struct zfcp_fc_events *events = container_of(work, in zfcp_fc_post_event() local
103 struct zfcp_adapter *adapter = container_of(events, struct zfcp_adapter, in zfcp_fc_post_event()
104 events); in zfcp_fc_post_event()
106 spin_lock_bh(&events->list_lock); in zfcp_fc_post_event()
107 list_splice_init(&events->list, &tmp_lh); in zfcp_fc_post_event()
108 spin_unlock_bh(&events->list_lock); in zfcp_fc_post_event()
138 spin_lock(&adapter->events.list_lock); in zfcp_fc_enqueue_event()
139 list_add_tail(&event->list, &adapter->events.list); in zfcp_fc_enqueue_event()
140 spin_unlock(&adapter->events.list_lock); in zfcp_fc_enqueue_event()
142 queue_work(adapter->work_queue, &adapter->events.work); in zfcp_fc_enqueue_event()
/linux-4.4.14/drivers/char/ipmi/
DKconfig29 bool 'Generate OEM events containing the panic string'
33 generate IPMI OEM type f0 events holding the IPMB address of the
37 You can fetch these events and use the sequence numbers to piece the
/linux-4.4.14/tools/testing/selftests/ftrace/test.d/00basic/
Dbasic4.tc3 test -f available_events -a -f set_event -a -d events
/linux-4.4.14/drivers/net/ethernet/pasemi/
Dpasemi_mac.c345 ring->events[0] = pasemi_dma_alloc_flag(); in pasemi_mac_setup_csring()
346 ring->events[1] = pasemi_dma_alloc_flag(); in pasemi_mac_setup_csring()
347 if (ring->events[0] < 0 || ring->events[1] < 0) in pasemi_mac_setup_csring()
350 pasemi_dma_clear_flag(ring->events[0]); in pasemi_mac_setup_csring()
351 pasemi_dma_clear_flag(ring->events[1]); in pasemi_mac_setup_csring()
376 if (ring->events[0] >= 0) in pasemi_mac_setup_csring()
377 pasemi_dma_free_flag(ring->events[0]); in pasemi_mac_setup_csring()
378 if (ring->events[1] >= 0) in pasemi_mac_setup_csring()
379 pasemi_dma_free_flag(ring->events[1]); in pasemi_mac_setup_csring()
405 pasemi_dma_free_flag(csring->events[0]); in pasemi_mac_free_csring()
[all …]

12345