Home
last modified time | relevance | path

Searched full:action (Results 1 – 25 of 562) sorted by relevance

12345678910>>...23

/Zephyr-latest/scripts/west_commands/tests/
Dtest_stm32flash.py29 # Expected subprocesses to be run for each action. Using the
75 @pytest.mark.parametrize('action', EXPECTED_COMMANDS)
78 def test_stm32flash_init(cc, req, action, runner_config): argument
81 if action == 'write':
85 action=action, baud=TEST_BAUD, force_binary=TEST_FORCE_BINARY,
92 assert cc.call_args_list == [call(x) for x in EXPECTED_COMMANDS[action]]
94 @pytest.mark.parametrize('action', EXPECTED_COMMANDS)
97 def test_stm32flash_create(cc, req, action, runner_config): argument
98 '''Test actions using a runner created from action line parameters.'''
99 if action == 'start':
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dstm32flash.py19 def __init__(self, cfg, device, action='write', baud=57600, argument
25 self.action = action
52 parser.add_argument('--action', default='write', required=False,
62 parser.add_argument('--force-binary', required=False, action='store_true',
75 parser.add_argument('--verify', default=False, required=False, action='store_true',
82 return Stm32flashBinaryRunner(cfg, device=args.device, action=args.action,
97 action = self.action.lower()
99 if action == 'info':
103 elif action == 'erase':
111 elif action == 'start':
[all …]
Dintel_cyclonev.py105 parser.add_argument('--config', action='append',
111 parser.add_argument('--use-elf', default=False, action='store_true',
114 parser.add_argument('--cmd-pre-init', action='append',
120 parser.add_argument('--cmd-pre-load', action='append',
128 parser.add_argument('--cmd-post-verify', action='append',
131 parser.add_argument('--verify', action='store_true',
133 parser.add_argument('--verify-only', action='store_true',
137 parser.add_argument('--tui', default=False, action='store_true',
146 parser.add_argument('--gdb-init', action='append',
148 parser.add_argument('--no-halt', action='store_true',
[all …]
Drenode-robot.py33 action='append',
37 action='append',
41 action='store_true',
Drenode.py33 action='append',
38 action='append',
42 action='store_true',
/Zephyr-latest/tests/subsys/emul/src/
Demul_tester.h13 int (*set_action)(const struct emul *target, int action);
14 int (*get_action)(const struct emul *target, int *action);
17 static inline int emul_tester_backend_set_action(const struct emul *target, int action) in emul_tester_backend_set_action() argument
22 return api->set_action(target, action); in emul_tester_backend_set_action()
25 static inline int emul_tester_backend_get_action(const struct emul *target, int *action) in emul_tester_backend_get_action() argument
30 return api->get_action(target, action); in emul_tester_backend_get_action()
Demul_tester.c22 int action; member
25 static int emul_tester_set_action(const struct emul *target, int action) in emul_tester_set_action() argument
30 data->action = action * cfg->scale; in emul_tester_set_action()
35 static int emul_tester_get_action(const struct emul *target, int *action) in emul_tester_get_action() argument
39 *action = data->action; in emul_tester_get_action()
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py127 action="store",
136 action="store",
142 "-T", "--testsuite-root", action="append", default=[], type = norm_path,
151 action="store_true",
155 test_plan_report_xor.add_argument("--list-tests", action="store_true",
163 test_plan_report_xor.add_argument("--test-tree", action="store_true",
169 action="store_true",
173 "--emulation-only", action="store_true",
177 "--device-testing", action="store_true",
217 parser.add_argument("--device-flash-with-test", action="store_true",
[all …]
/Zephyr-latest/drivers/power_domain/
Dpower_domain_soc_state_change.c24 enum pm_device_action action; member
31 /* Only run action if the device is on the specified domain */ in pd_domain_visitor()
37 if ((visitor_context->action == PM_DEVICE_ACTION_TURN_OFF) && in pd_domain_visitor()
41 (void)pm_device_action_run(dev, visitor_context->action); in pd_domain_visitor()
45 static int pd_pm_action(const struct device *dev, enum pm_device_action action) in pd_pm_action() argument
53 switch (action) { in pd_pm_action()
57 /* Check if we need do the turn on action for this state */ in pd_pm_action()
60 context.action = PM_DEVICE_ACTION_TURN_ON; in pd_pm_action()
71 /* Check if need to do the turn off action for this state */ in pd_pm_action()
74 context.action = PM_DEVICE_ACTION_TURN_OFF; in pd_pm_action()
Dpower_domain_gpio_monitor.c30 enum pm_device_action action; member
37 /* Only run action if the device is on the specified domain */ in pd_on_domain_visitor()
43 (void)pm_device_action_run(dev, visitor_context->action); in pd_on_domain_visitor()
64 context.action = PM_DEVICE_ACTION_SUSPEND; in pd_gpio_monitor_callback()
66 context.action = PM_DEVICE_ACTION_TURN_OFF; in pd_gpio_monitor_callback()
74 static int pd_gpio_monitor_pm_action(const struct device *dev, enum pm_device_action action) in pd_gpio_monitor_pm_action() argument
78 switch (action) { in pd_gpio_monitor_pm_action()
Dpower_domain_gpio.c30 enum pm_device_action action; member
39 /* Only run action if the device is on the specified domain */ in pd_on_domain_visitor()
44 (void)pm_device_action_run(dev, visitor_context->action); in pd_on_domain_visitor()
51 enum pm_device_action action) in pd_gpio_pm_action() argument
67 switch (action) { in pd_gpio_pm_action()
78 context.action = PM_DEVICE_ACTION_TURN_ON; in pd_gpio_pm_action()
85 context.action = PM_DEVICE_ACTION_TURN_OFF; in pd_gpio_pm_action()
Dpower_domain_nxp_scu.c24 enum pm_device_action action) in scu_pd_pm_action() argument
30 LOG_DBG("attempting PM action %d on rsrc %d", action, scu_data->rsrc); in scu_pd_pm_action()
32 switch (action) { in scu_pd_pm_action()
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_oacp_internal.h19 /* Types of Object Action Control Point Procedures. */
39 /* Object Action Control Point return codes. */
71 /* Object Action Control Point procedure definition. */
95 /* Size of the generic part of the Object Action Control Point create procedure */
98 /* Size of Object Action Control Point checksum calculation procedure */
101 /* Size of Object Action Control Point read procedure */
104 /* Size of Object Action Control Point write procedure */
/Zephyr-latest/tests/subsys/pm/device_runtime_api/src/
Dtest_driver.h15 * In this mode the driver will not end PM action until signaled, thus
23 * @brief Unblock test driver PM action.
34 * @return true If PM action is ongoing.
35 * @return false If PM action is not ongoing.
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dmock_script.py19 parser.add_argument('--sleep', action='store', default=0, type=float)
20 parser.add_argument('--long-sleep', action='store_true')
21 parser.add_argument('--return-code', action='store', default=0, type=int)
22 parser.add_argument('--exception', action='store_true')
/Zephyr-latest/subsys/pm/
Ddevice.c43 enum pm_device_action action) in pm_device_action_run() argument
52 /* Validate action against current state */ in pm_device_action_run()
53 if (pm->state == action_target_state[action]) { in pm_device_action_run()
56 if (pm->state != action_expected_state[action]) { in pm_device_action_run()
60 ret = pm->action_cb(dev, action); in pm_device_action_run()
71 * can take whatever action is more appropriated. in pm_device_action_run()
73 switch (action) { in pm_device_action_run()
81 pm->state = action_target_state[action]; in pm_device_action_run()
89 pm->state = action_target_state[action]; in pm_device_action_run()
91 if (action == PM_DEVICE_ACTION_TURN_OFF) { in pm_device_action_run()
[all …]
/Zephyr-latest/.github/workflows/
Dbackport.yml19 github.event.action == 'closed' ||
21 github.event.action == 'labeled' &&
27 uses: zephyrproject-rtos/action-backport@7e74f601d11eaca577742445e87775b5651a965f # v2.0.3-3
Dbsim-tests-publish.yaml16 uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
21 … uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
Dscorecards.yml37 uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
43 # - See https://github.com/ossf/scorecard-action#publishing-results.
59 uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
/Zephyr-latest/lib/smf/
Dsmf.c86 * @param topmost State we are entering from. Its entry action is not executed
103 /* Keep track of the executing entry action in case it calls in smf_execute_all_entry_actions()
107 /* Execute every entry action EXCEPT that of the topmost state */ in smf_execute_all_entry_actions()
118 /* and execute the new state entry action */ in smf_execute_all_entry_actions()
159 /* Execute parent run action */ in smf_execute_ancestor_run_actions()
183 * @param topmost State we are exiting to. Its exit action is not executed
196 /* No need to continue if terminate was set in the exit action */ in smf_execute_all_exit_actions()
246 /* Execute topmost state entry action, since smf_execute_all_entry_actions() in smf_set_initial()
262 /* execute entry action if it exists */ in smf_set_initial()
284 LOG_ERR("Calling %s from exit action", __func__); in smf_set_state()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dzephyr_img_mgmt.c548 * @param action On success, gets populated with information about how to process
555 struct img_mgmt_upload_action *action) in img_mgmt_upload_inspect() argument
561 memset(action, 0, sizeof(*action)); in img_mgmt_upload_inspect()
565 IMG_MGMT_UPLOAD_ACTION_SET_RC_RSN(action, img_mgmt_err_str_hdr_malformed); in img_mgmt_upload_inspect()
591 IMG_MGMT_UPLOAD_ACTION_SET_RC_RSN(action, img_mgmt_err_str_hdr_malformed); in img_mgmt_upload_inspect()
599 IMG_MGMT_UPLOAD_ACTION_SET_RC_RSN(action, img_mgmt_err_str_hdr_malformed); in img_mgmt_upload_inspect()
604 action->size = req->size; in img_mgmt_upload_inspect()
608 IMG_MGMT_UPLOAD_ACTION_SET_RC_RSN(action, img_mgmt_err_str_magic_mismatch); in img_mgmt_upload_inspect()
632 action->area_id = img_mgmt_get_unused_slot_area_id(req->image); in img_mgmt_upload_inspect()
633 if (action->area_id < 0) { in img_mgmt_upload_inspect()
[all …]
/Zephyr-latest/doc/services/pm/
Dpower_domain.rst33 action [style=invis]
42 action -> devA [label="pm_device_get()"]
89 A power domain needs to implement the PM action callback used by the
95 enum pm_device_action *action)
97 switch (action) {
144 state. These notifications are sent as actions in the device PM action
151 enum pm_device_action *action)
153 switch (action) {
/Zephyr-latest/include/zephyr/pm/
Ddevice.h98 * Action triggered only by a power domain.
104 * Action triggered only by a power domain.
110 * @brief Device PM action callback.
113 * @param action Requested action.
116 * @retval -ENOTSUP If the requested action is not supported.
120 enum pm_device_action action);
123 * @brief Device PM action failed callback
125 * @param dev Device that failed the action.
126 * @param err Return code of action failure.
144 /** Device PM action callback */
[all …]
/Zephyr-latest/scripts/ci/
Dversion_mgr.py30 parser.add_argument('-l', '--list', action="store_true",
34 parser.add_argument('-L', '--latest', action="store_true",
36 parser.add_argument('-w', '--weekly', action="store_true",
38 parser.add_argument('-W', '--list-weekly', action="store_true",
40 parser.add_argument('-v', '--verbose', action="store_true",
/Zephyr-latest/subsys/bluetooth/host/classic/shell/
Dbredr.c175 const char *action; in cmd_discovery() local
177 action = argv[1]; in cmd_discovery()
178 if (!strcmp(action, "on")) { in cmd_discovery()
205 } else if (!strcmp(action, "off")) { in cmd_discovery()
330 const char *action; in cmd_connectable() local
332 action = argv[1]; in cmd_connectable()
334 if (!strcmp(action, "on")) { in cmd_connectable()
336 } else if (!strcmp(action, "off")) { in cmd_connectable()
508 const char *action; in cmd_sdp_find_record() local
515 action = argv[1]; in cmd_sdp_find_record()
[all …]

12345678910>>...23