/foundation/multimodalinput/input/tools/event_inject/test/ |
H A D | device_base_test.cpp | 67 EXPECT_GT(inputEventArray.events.size(), 0); in HWTEST_F() 68 if (inputEventArray.events.size() <= 0) { in HWTEST_F() 71 EXPECT_EQ(inputEventArray.events[0].event.type, EV_SYN); in HWTEST_F() 72 EXPECT_EQ(inputEventArray.events[0].event.code, SYN_REPORT); in HWTEST_F() 73 EXPECT_EQ(inputEventArray.events[0].event.value, SYN_CONFIG); in HWTEST_F() 74 EXPECT_EQ(inputEventArray.events[0].blockTime, blockTime); in HWTEST_F() 90 EXPECT_GT(inputEventArray.events.size(), 0); in HWTEST_F() 91 if (inputEventArray.events.size() <= 0) { in HWTEST_F() 94 EXPECT_EQ(inputEventArray.events[0].event.type, EV_KEY); in HWTEST_F() 95 EXPECT_EQ(inputEventArray.events[ in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ |
H A D | count_stcx_fail.c | 29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument 43 event_read(&events[0]); in do_count_loop() 44 event_read(&events[1]); in do_count_loop() 45 event_read(&events[2]); in do_count_loop() 47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop() 48 difference = events[0].result.value - expected; in do_count_loop() 49 percentage = (double)difference / events[0].result.value * 100; in do_count_loop() 53 event_report(&events[0]); in do_count_loop() 54 event_report(&events[1]); in do_count_loop() 55 event_report(&events[ in do_count_loop() 79 determine_overhead(struct event *events) determine_overhead() argument 104 struct event events[3]; test_body() local [all...] |
H A D | count_instructions.c | 29 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[ in do_count_loop() 74 determine_overhead(struct event *events) determine_overhead() argument 96 struct event events[2]; test_body() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ |
H A D | count_stcx_fail.c | 29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument 43 event_read(&events[0]); in do_count_loop() 44 event_read(&events[1]); in do_count_loop() 45 event_read(&events[2]); in do_count_loop() 47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop() 48 difference = events[0].result.value - expected; in do_count_loop() 49 percentage = (double)difference / events[0].result.value * 100; in do_count_loop() 53 event_report(&events[0]); in do_count_loop() 54 event_report(&events[1]); in do_count_loop() 55 event_report(&events[ in do_count_loop() 79 determine_overhead(struct event *events) determine_overhead() argument 104 struct event events[3]; test_body() local [all...] |
H A D | count_instructions.c | 29 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[ in do_count_loop() 74 determine_overhead(struct event *events) determine_overhead() argument 96 struct event events[2]; test_body() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/security/ |
H A D | spectre_v2.c | 25 static int do_count_loop(struct event *events, bool is_p9, s64 *miss_percent) in do_count_loop() argument 38 event_read(&events[0]); in do_count_loop() 39 event_read(&events[1]); in do_count_loop() 41 // We could scale all the events by running/enabled but we're lazy in do_count_loop() 43 FAIL_IF(events[0].result.running != events[0].result.enabled); in do_count_loop() 44 FAIL_IF(events[1].result.running != events[1].result.enabled); in do_count_loop() 46 pred = events[0].result.value; in do_count_loop() 47 mpred = events[ in do_count_loop() 133 struct event events[4]; spectre_v2_test() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/security/ |
H A D | spectre_v2.c | 25 static int do_count_loop(struct event *events, bool is_p9, s64 *miss_percent) in do_count_loop() argument 38 event_read(&events[0]); in do_count_loop() 39 event_read(&events[1]); in do_count_loop() 41 // We could scale all the events by running/enabled but we're lazy in do_count_loop() 43 FAIL_IF(events[0].result.running != events[0].result.enabled); in do_count_loop() 44 FAIL_IF(events[1].result.running != events[1].result.enabled); in do_count_loop() 46 pred = events[0].result.value; in do_count_loop() 47 mpred = events[ in do_count_loop() 131 struct event events[4]; spectre_v2_test() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | events.c | 15 /* General events handlers for the low level mlx5_core driver 17 * Other Major feature specific events such as 26 /* handler which forwards the event to events->nh, driver notifiers */ 39 /* QP/WQ resource events to forward */ 49 /* SRQ events */ 60 /* port module events stats */ 136 /* handles all FW events, type == eqe->type */ 141 struct mlx5_events *events = event_nb->ctx; in any_notifier() local 144 mlx5_core_dbg(events->dev, "Async eqe type %s, subtype (%d)\n", in any_notifier() 153 struct mlx5_events *events in temp_warn() local 215 struct mlx5_events *events = event_nb->ctx; port_module() local 267 struct mlx5_events *events; mlx5_pcie_event() local 306 struct mlx5_events *events = event_nb->ctx; pcie_core() local 329 struct mlx5_events *events = event_nb->ctx; forward_event() local 340 struct mlx5_events *events = kzalloc(sizeof(*events), GFP_KERNEL); mlx5_events_init() local 366 struct mlx5_events *events = dev->priv.events; mlx5_events_start() local 378 struct mlx5_events *events = dev->priv.events; mlx5_events_stop() local 388 struct mlx5_events *events = dev->priv.events; mlx5_notifier_register() local 396 struct mlx5_events *events = dev->priv.events; mlx5_notifier_unregister() local 402 mlx5_notifier_call_chain(struct mlx5_events *events, unsigned int event, void *data) mlx5_notifier_call_chain() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_event.c | 54 static void evt_str(struct komeda_str *str, u64 events) in evt_str() argument 56 if (events == 0ULL) { in evt_str() 61 evt_sprintf(str, events & KOMEDA_EVENT_VSYNC, "VSYNC|"); in evt_str() 62 evt_sprintf(str, events & KOMEDA_EVENT_FLIP, "FLIP|"); in evt_str() 63 evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|"); in evt_str() 64 evt_sprintf(str, events & KOMEDA_EVENT_MODE, "OP-MODE|"); in evt_str() 66 evt_sprintf(str, events & KOMEDA_EVENT_URUN, "UNDERRUN|"); in evt_str() 67 evt_sprintf(str, events & KOMEDA_EVENT_OVR, "OVERRUN|"); in evt_str() 70 evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|"); in evt_str() 71 evt_sprintf(str, events in evt_str() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_event.c | 54 static void evt_str(struct komeda_str *str, u64 events) in evt_str() argument 56 if (events == 0ULL) { in evt_str() 61 evt_sprintf(str, events & KOMEDA_EVENT_VSYNC, "VSYNC|"); in evt_str() 62 evt_sprintf(str, events & KOMEDA_EVENT_FLIP, "FLIP|"); in evt_str() 63 evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|"); in evt_str() 64 evt_sprintf(str, events & KOMEDA_EVENT_MODE, "OP-MODE|"); in evt_str() 66 evt_sprintf(str, events & KOMEDA_EVENT_URUN, "UNDERRUN|"); in evt_str() 67 evt_sprintf(str, events & KOMEDA_EVENT_OVR, "OVERRUN|"); in evt_str() 70 evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|"); in evt_str() 71 evt_sprintf(str, events in evt_str() [all...] |
/foundation/arkui/ace_engine/frameworks/core/event/ |
H A D | event_convertor.cpp | 21 TouchEvent& point, std::vector<TouchEvent>& events, std::vector<TouchEvent>& allEvents) in SetTouchEventType() 28 events.push_back(point); in SetTouchEventType() 39 events.push_back(point); in SetTouchEventType() 46 events.push_back(point); in SetTouchEventType() 53 events.push_back(point); in SetTouchEventType() 62 void UpdateTouchEvent(std::vector<TouchEvent>& events, std::vector<TouchEvent>& allEvents) in UpdateTouchEvent() argument 64 if (allEvents.empty() || events.empty()) { in UpdateTouchEvent() 81 for (auto& event : events) { in UpdateTouchEvent() 86 void ConvertMouseEvent(const std::vector<uint8_t>& data, MouseEvent& events) in ConvertMouseEvent() argument 94 events in ConvertMouseEvent() 20 SetTouchEventType(AceActionData::ActionType actionType, int8_t actionPoint, TouchEvent& point, std::vector<TouchEvent>& events, std::vector<TouchEvent>& allEvents) SetTouchEventType() argument [all...] |
/test/testfwk/arkxtest/uitest/test/ |
H A D | ui_action_test.cpp | 54 PointerMatrix events; in TEST_F() local 55 action.Decompose(events, customOptions_); in TEST_F() 56 ASSERT_EQ(2, events.GetSize()); // up & down in TEST_F() 57 auto &event1 = events.At(0, 0); in TEST_F() 58 auto &event2 = events.At(0, 1); in TEST_F() 74 PointerMatrix events; in TEST_F() local 75 action.Decompose(events, customOptions_); in TEST_F() 76 ASSERT_EQ(2, events.GetSize()); // up & down in TEST_F() 77 auto &event1 = events.At(0, 0); in TEST_F() 78 auto &event2 = events in TEST_F() 96 PointerMatrix events; TEST_F() local 133 PointerMatrix events; TEST_F() local 184 PointerMatrix events; TEST_F() local 223 PointerMatrix events; TEST_F() local 292 PointerMatrix events; TEST_F() local 338 PointerMatrix events; TEST_F() local 363 PointerMatrix events; TEST_F() local 447 vector<KeyEvent> events; TEST_F() local 462 vector<KeyEvent> events; TEST_F() local 486 vector<KeyEvent> events; TEST_F() local [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | pfm.c | 33 const char *events; in test__pfm_events() member 37 .events = "", in test__pfm_events() 41 .events = "instructions", in test__pfm_events() 45 .events = "instructions,cycles", in test__pfm_events() 49 .events = "stereolab", in test__pfm_events() 53 .events = "instructions,instructions", in test__pfm_events() 57 .events = "stereolab,instructions", in test__pfm_events() 61 .events = "instructions,stereolab", in test__pfm_events() 73 table[i].events, in test__pfm_events() 75 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events() 94 const char *events; test__pfm_group() member [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | events.c | 8 #include "lib/events.h" 15 /* General events handlers for the low level mlx5_core driver 17 * Other Major feature specific events such as 26 /* handler which forwards the event to events->fw_nh, driver notifiers */ 40 /* QP/WQ resource events to forward */ 50 /* SRQ events */ 59 /* driver notifier chain for fw events */ 61 /* port module events stats */ 65 /* driver notifier chain for sw events */ 143 /* handles all FW events, typ 148 struct mlx5_events *events = event_nb->ctx; any_notifier() local 160 struct mlx5_events *events = event_nb->ctx; temp_warn() local 222 struct mlx5_events *events = event_nb->ctx; port_module() local 274 struct mlx5_events *events; mlx5_pcie_event() local 313 struct mlx5_events *events = event_nb->ctx; pcie_core() local 336 struct mlx5_events *events = event_nb->ctx; forward_event() local 347 struct mlx5_events *events = kzalloc(sizeof(*events), GFP_KERNEL); mlx5_events_init() local 374 struct mlx5_events *events = dev->priv.events; mlx5_events_start() local 386 struct mlx5_events *events = dev->priv.events; mlx5_events_stop() local 399 struct mlx5_events *events = dev->priv.events; mlx5_notifier_register() local 407 struct mlx5_events *events = dev->priv.events; mlx5_notifier_unregister() local 413 mlx5_notifier_call_chain(struct mlx5_events *events, unsigned int event, void *data) mlx5_notifier_call_chain() argument 423 struct mlx5_events *events = dev->priv.events; mlx5_blocking_notifier_register() local 431 struct mlx5_events *events = dev->priv.events; mlx5_blocking_notifier_unregister() local 440 struct mlx5_events *events = dev->priv.events; mlx5_blocking_notifier_call_chain() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
H A D | event_alternatives_tests_p10.c | 27 struct event *e, events[5]; in event_alternatives_tests_p10() local 35 * alternative events is handled by respective PMU driver in event_alternatives_tests_p10() 47 e = &events[0]; in event_alternatives_tests_p10() 50 e = &events[1]; in event_alternatives_tests_p10() 53 e = &events[2]; in event_alternatives_tests_p10() 56 e = &events[3]; in event_alternatives_tests_p10() 59 e = &events[4]; in event_alternatives_tests_p10() 62 FAIL_IF(event_open(&events[0])); in event_alternatives_tests_p10() 66 * 0x600f4 in PMC6. So it can go in with other events in event_alternatives_tests_p10() 70 FAIL_IF(event_open_with_group(&events[ in event_alternatives_tests_p10() [all...] |
H A D | group_constraint_unit_test.c | 29 struct event *e, events[3]; in group_constraint_unit() local 40 /* Init the events for the group contraint check for unit bits */ in group_constraint_unit() 41 e = &events[0]; in group_constraint_unit() 45 FAIL_IF(!event_open(&events[0])); in group_constraint_unit() 47 /* Init the events for the group contraint check for unit bits */ in group_constraint_unit() 48 e = &events[1]; in group_constraint_unit() 52 FAIL_IF(event_open(&events[1])); in group_constraint_unit() 55 e = &events[2]; in group_constraint_unit() 59 FAIL_IF(!event_open_with_group(&events[2], events[ in group_constraint_unit() [all...] |
H A D | group_constraint_pmc_count_test.c | 21 struct event *e, events[5]; in group_constraint_pmc_count() local 30 * events. Trying to open fourth event should in group_constraint_pmc_count() 33 e = &events[0]; in group_constraint_pmc_count() 36 e = &events[1]; in group_constraint_pmc_count() 39 e = &events[2]; in group_constraint_pmc_count() 42 e = &events[3]; in group_constraint_pmc_count() 45 e = &events[4]; in group_constraint_pmc_count() 48 FAIL_IF(event_open(&events[0])); in group_constraint_pmc_count() 56 FAIL_IF(!event_open_with_group(&events[i], events[ in group_constraint_pmc_count() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | flex_proportions.c | 14 * Where x_{i,j} is j's number of events in i-th last time period and x_i is 15 * total number of events in i-th last time period. 43 /* Use 1 to avoid dealing with periods with 0 events... */ in fprop_global_init() 44 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init() 53 percpu_counter_destroy(&p->events); in fprop_global_destroy() 61 * if aging zeroed out all events. This can be used to detect whether declaring 66 s64 events; in fprop_new_period() local 70 events = percpu_counter_sum(&p->events); in fprop_new_period() 72 * Don't do anything if there are no events in fprop_new_period() [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | pfm.c | 26 .desc = "test of individual --pfm-events", 30 .desc = "test groups of --pfm-events", 53 const char *events; in test__pfm_events() member 57 .events = "", in test__pfm_events() 61 .events = "instructions", in test__pfm_events() 65 .events = "instructions,cycles", in test__pfm_events() 69 .events = "stereolab", in test__pfm_events() 73 .events = "instructions,instructions", in test__pfm_events() 77 .events = "stereolab,instructions", in test__pfm_events() 81 .events in test__pfm_events() 113 const char *events; test__pfm_group() member [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/ |
H A D | test_apple_keyboard.py | 173 events = uhdev.next_sync_events() 174 self.debug_reports(r, uhdev, events) 175 self.assertInputEventsIn(expected, events) 182 events = uhdev.next_sync_events() 183 self.debug_reports(r, uhdev, events) 184 self.assertInputEventsIn(expected, events) 198 events = uhdev.next_sync_events() 199 self.debug_reports(r, uhdev, events) 200 self.assertInputEventsIn(expected, events) 206 events [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | multi_counter_test.c | 14 * Test counting multiple events using EBBs. 18 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[ in multi_counter() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/ |
H A D | cx23885-ir.c | 28 u32 events = 0; in cx23885_ir_rx_work_handler() local 32 events |= V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler() 34 events |= V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler() 36 events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED; in cx23885_ir_rx_work_handler() 38 events |= V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ; in cx23885_ir_rx_work_handler() 40 if (events == 0) in cx23885_ir_rx_work_handler() 44 cx23885_input_rx_work_handler(dev, events); in cx23885_ir_rx_work_handler() 51 u32 events = 0; in cx23885_ir_tx_work_handler() local 55 events |= V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ; in cx23885_ir_tx_work_handler() 57 if (events in cx23885_ir_tx_work_handler() 63 cx23885_ir_rx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_rx_v4l2_dev_notify() argument 88 cx23885_ir_tx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_tx_v4l2_dev_notify() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/cx23885/ |
H A D | cx23885-ir.c | 28 u32 events = 0; in cx23885_ir_rx_work_handler() local 32 events |= V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler() 34 events |= V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler() 36 events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED; in cx23885_ir_rx_work_handler() 38 events |= V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ; in cx23885_ir_rx_work_handler() 40 if (events == 0) in cx23885_ir_rx_work_handler() 44 cx23885_input_rx_work_handler(dev, events); in cx23885_ir_rx_work_handler() 51 u32 events = 0; in cx23885_ir_tx_work_handler() local 55 events |= V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ; in cx23885_ir_tx_work_handler() 57 if (events in cx23885_ir_tx_work_handler() 63 cx23885_ir_rx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_rx_v4l2_dev_notify() argument 88 cx23885_ir_tx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_tx_v4l2_dev_notify() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | multi_counter_test.c | 14 * Test counting multiple events using EBBs. 18 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[ in multi_counter() [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | ab8500_chargalg.c | 214 * @events: structure for information about events triggered 239 struct ab8500_chargalg_events events; member 268 di->events.safety_timer_expired = true; in ab8500_chargalg_safety_timer_expired() 292 di->events.maintenance_timer_expired = true; in ab8500_chargalg_maintenance_timer_expired() 402 di->events.safety_timer_expired = false; in ab8500_chargalg_start_safety_timer() 418 di->events.safety_timer_expired = false; in ab8500_chargalg_stop_safety_timer() 437 di->events.maintenance_timer_expired = false; in ab8500_chargalg_start_maintenance_timer() 451 di->events.maintenance_timer_expired = false; in ab8500_chargalg_stop_maintenance_timer() 658 di->events in ab8500_chargalg_check_temp() [all...] |