Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 273) sorted by relevance

1234567891011

/Zephyr-latest/include/zephyr/drivers/
Dclock_control.h79 clock_control_subsys_t sys);
82 clock_control_subsys_t sys,
86 clock_control_subsys_t sys,
92 clock_control_subsys_t sys);
95 clock_control_subsys_t sys,
99 clock_control_subsys_t sys,
126 clock_control_subsys_t sys) in clock_control_on() argument
131 return api->on(dev, sys); in clock_control_on()
145 clock_control_subsys_t sys) in clock_control_off() argument
150 return api->off(dev, sys); in clock_control_off()
[all …]
/Zephyr-latest/scripts/ruff/
Dgen_format_exclude.py6 import sys
13 sys.stdout.write("[format]\n")
14 sys.stdout.write("exclude = [\n")
15 for line in sys.stdin:
17 sys.stdout.write(f' "./{line[16:-1]}",\n')
18 sys.stdout.write("]\n")
Dgen_lint_exclude.py7 import sys
30 violations = json.load(sys.stdin)
31 sys.stdout.write("[lint.per-file-ignores]\n")
39 sys.stdout.write(f'"./{path.relative_to(Path.cwd())}" = [\n')
41 sys.stdout.write(f' "{r.code}",\t# {r.url}\n'.expandtabs())
42 sys.stdout.write("]\n")
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_printouts.py13 import sys
287 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
292 sys.stdout.write(out)
293 sys.stderr.write(err)
323 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
328 sys.stdout.write(out)
329 sys.stderr.write(err)
359 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
364 sys.stdout.write(out)
365 sys.stderr.write(err)
[all …]
Dtest_runner.py15 import sys
208 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
217 sys.stdout.write(out)
218 sys.stderr.write(err)
244 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
257 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
295 sys.stdout.write(out)
296 sys.stderr.write(err)
367 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
372 sys.stdout.write(out)
[all …]
Dtest_coverage.py13 import sys
171 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
176 sys.stdout.write(out)
177 sys.stderr.write(err)
199 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
204 sys.stdout.write(out)
205 sys.stderr.write(err)
231 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
236 sys.stdout.write(out)
237 sys.stderr.write(err)
[all …]
Dtest_report.py15 import sys
146 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
151 sys.stdout.write(out)
152 sys.stderr.write(err)
195 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
200 sys.stdout.write(out)
201 sys.stderr.write(err)
227 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
232 sys.stdout.write(out)
233 sys.stderr.write(err)
[all …]
Dtest_addon.py17 import sys
56 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
83 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
116 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
123 sys.stdout.write(out)
124 sys.stderr.write(err)
141 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
150 sys.stdout.write(out)
151 sys.stderr.write(err)
171 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
[all …]
Dtest_disable.py13 import sys
84 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
89 sys.stdout.write(out)
90 sys.stderr.write(err)
119 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
124 sys.stdout.write(out)
125 sys.stderr.write(err)
Dtest_hardwaremap.py12 import sys
17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/twisterlib"))
131 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
138 sys.stdout.write(out)
139 sys.stderr.write(err)
195 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
202 sys.stdout.write(out)
203 sys.stderr.write(err)
262 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
269 sys.stdout.write(out)
[all …]
Dtest_filter.py13 import sys
110 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
138 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
166 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
202 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
207 sys.stdout.write(out)
208 sys.stderr.write(err)
236 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
241 sys.stdout.write(out)
242 sys.stderr.write(err)
[all …]
Dtest_tooling.py14 import sys
49 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
71 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
112 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
117 sys.stdout.write(out)
118 sys.stderr.write(err)
Dtest_platform.py14 import sys
116 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
139 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
160 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
199 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
204 sys.stdout.write(out)
205 sys.stderr.write(err)
235 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
240 sys.stdout.write(out)
241 sys.stderr.write(err)
[all …]
/Zephyr-latest/tests/misc/check_init_priorities/
Dvalidate_check_init_priorities_output.py8 import sys
18 if len(sys.argv) != 2:
20 sys.exit(1)
23 with open(sys.argv[1], "r") as file:
38 sys.exit(1)
41 sys.exit(0)
/Zephyr-latest/drivers/clock_control/
Dclock_control_silabs_series.c22 clock_control_subsys_t sys);
24 static int silabs_clock_control_on(const struct device *dev, clock_control_subsys_t sys) in silabs_clock_control_on() argument
26 const struct silabs_clock_control_cmu_config *cfg = sys; in silabs_clock_control_on()
29 if (silabs_clock_control_get_status(dev, sys) == CLOCK_CONTROL_STATUS_ON) { in silabs_clock_control_on()
41 static int silabs_clock_control_off(const struct device *dev, clock_control_subsys_t sys) in silabs_clock_control_off() argument
43 const struct silabs_clock_control_cmu_config *cfg = sys; in silabs_clock_control_off()
54 static int silabs_clock_control_get_rate(const struct device *dev, clock_control_subsys_t sys, in silabs_clock_control_get_rate() argument
57 const struct silabs_clock_control_cmu_config *cfg = sys; in silabs_clock_control_get_rate()
69 clock_control_subsys_t sys) in silabs_clock_control_get_status() argument
71 const struct silabs_clock_control_cmu_config *cfg = sys; in silabs_clock_control_get_status()
Dclock_control_fixed_rate.c17 clock_control_subsys_t sys) in fixed_rate_clk_on() argument
20 ARG_UNUSED(sys); in fixed_rate_clk_on()
26 clock_control_subsys_t sys) in fixed_rate_clk_off() argument
29 ARG_UNUSED(sys); in fixed_rate_clk_off()
35 clock_control_subsys_t sys) in fixed_rate_clk_get_status() argument
41 clock_control_subsys_t sys, in fixed_rate_clk_get_rate() argument
46 ARG_UNUSED(sys); in fixed_rate_clk_get_rate()
Dclock_control_sam_pmc.c22 clock_control_subsys_t sys) in atmel_sam_clock_control_on() argument
26 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_on()
48 clock_control_subsys_t sys) in atmel_sam_clock_control_off() argument
52 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_off()
74 clock_control_subsys_t sys, in atmel_sam_clock_control_get_rate() argument
79 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_get_rate()
104 clock_control_subsys_t sys) in atmel_sam_clock_control_get_status() argument
108 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_get_status()
Dclock_control_renesas_ra_cgc.c26 static int clock_control_renesas_ra_on(const struct device *dev, clock_control_subsys_t sys) in clock_control_renesas_ra_on() argument
28 struct clock_control_ra_subsys_cfg *subsys_clk = (struct clock_control_ra_subsys_cfg *)sys; in clock_control_renesas_ra_on()
30 if (!dev || !sys) { in clock_control_renesas_ra_on()
37 static int clock_control_renesas_ra_off(const struct device *dev, clock_control_subsys_t sys) in clock_control_renesas_ra_off() argument
39 struct clock_control_ra_subsys_cfg *subsys_clk = (struct clock_control_ra_subsys_cfg *)sys; in clock_control_renesas_ra_off()
41 if (!dev || !sys) { in clock_control_renesas_ra_off()
49 static int clock_control_renesas_ra_get_rate(const struct device *dev, clock_control_subsys_t sys, in clock_control_renesas_ra_get_rate() argument
56 if (!dev || !sys || !rate) { in clock_control_renesas_ra_get_rate()
Dclock_control_nrf_auxpll.c35 static int clock_control_nrf_auxpll_on(const struct device *dev, clock_control_subsys_t sys) in clock_control_nrf_auxpll_on() argument
41 ARG_UNUSED(sys); in clock_control_nrf_auxpll_on()
56 static int clock_control_nrf_auxpll_off(const struct device *dev, clock_control_subsys_t sys) in clock_control_nrf_auxpll_off() argument
60 ARG_UNUSED(sys); in clock_control_nrf_auxpll_off()
70 static int clock_control_nrf_auxpll_get_rate(const struct device *dev, clock_control_subsys_t sys, in clock_control_nrf_auxpll_get_rate() argument
76 ARG_UNUSED(sys); in clock_control_nrf_auxpll_get_rate()
89 clock_control_subsys_t sys) in clock_control_nrf_auxpll_get_status() argument
93 ARG_UNUSED(sys); in clock_control_nrf_auxpll_get_status()
/Zephyr-latest/scripts/kconfig/
Ddiffconfig12 import sys, os
39 sys.exit(0)
74 if ("-h" in sys.argv or "--help" in sys.argv):
78 if "-m" in sys.argv:
80 sys.argv.remove("-m")
82 argc = len(sys.argv)
95 configa_filename = sys.argv[1]
96 configb_filename = sys.argv[2]
102 e = sys.exc_info()[1]
/Zephyr-latest/scripts/ci/
Derrno.py18 import sys
40 print(f'Environment variable missing: {e}', file=sys.stderr)
41 sys.exit(1)
49 print('Invalid entry in errno.h:', file=sys.stderr)
50 print(f'{e[0]} (with value {e[1]})', file=sys.stderr)
51 sys.exit(1)
/Zephyr-latest/scripts/
Dtwister186 import sys
203 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/"))
204 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
216 options = parse_arguments(parser, sys.argv[1:])
224 sys.exit(ret)
/Zephyr-latest/scripts/west_commands/
Drun_tests.py25 import sys
29 mypy = [sys.executable, '-m', 'mypy', f'--config-file={here}/mypy.ini',
31 pytest = [sys.executable, '-m', 'pytest'] + sys.argv[1:]
/Zephyr-latest/scripts/build/
Ddir_is_writeable.py3 import sys
7 is_writeable = os.access(sys.argv[1], os.W_OK)
9 sys.exit(return_code)
/Zephyr-latest/scripts/logging/dictionary/
Dparserlib.py16 import sys
32 sys.exit(1)
36 sys.exit(1)
50 sys.exit(1)

1234567891011