Home
last modified time | relevance | path

Searched full:domain (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/Zephyr-Core-3.5.0/include/zephyr/app_memory/
Dmem_domain.h22 * @defgroup mem_domain_apis Memory domain APIs
65 * @brief Memory Domain
67 * A memory domain is a collection of memory partitions, used to represent
69 * may be a member of only one memory domain, but any memory domain may
72 * Supervisor threads may also be a member of a memory domain; this has
74 * threads inherit the memory domain membership of the parent.
76 * A user thread belonging to a memory domain with no active partitions
84 /** partitions in the domain */
88 /** number of active partitions in the domain */
93 * Default memory domain
[all …]
/Zephyr-Core-3.5.0/doc/services/pm/
Dpower_domain.rst1 .. _pm-power-domain:
3 Power Domain
9 The Zephyr power domain abstraction is designed to support groupings of devices
12 that device B is on the same power domain and should also be configured into a
18 When a power domain turns itself on or off, it is the responsibility of the
19 power domain to notify all devices using it through their power management
25 .. _pm-domain-work-flow:
28 :caption: Power domain work flow
40 domain [label="gpio_domain"]
43 devA:se -> domain:n [label="pm_device_get()"]
[all …]
/Zephyr-Core-3.5.0/kernel/
Dmem_domain.c24 static bool check_add_partition(struct k_mem_domain *domain, in check_add_partition() argument
64 * in the domain in check_add_partition()
66 for (i = 0; i < domain->num_partitions; i++) { in check_add_partition()
67 struct k_mem_partition *dpart = &domain->partitions[i]; in check_add_partition()
88 int k_mem_domain_init(struct k_mem_domain *domain, uint8_t num_parts, in k_mem_domain_init() argument
94 CHECKIF(domain == NULL) { in k_mem_domain_init()
114 domain->num_partitions = 0U; in k_mem_domain_init()
115 (void)memset(domain->partitions, 0, sizeof(domain->partitions)); in k_mem_domain_init()
116 sys_dlist_init(&domain->mem_domain_q); in k_mem_domain_init()
119 ret = arch_mem_domain_init(domain); in k_mem_domain_init()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/pm/device_driver_init/
Dapp.overlay3 compatible = "power-domain-gpio";
8 compatible = "power-domain-gpio";
10 power-domain = <&test_reg>;
14 compatible = "power-domain-gpio";
16 power-domain = <&test_reg>;
21 compatible = "power-domain-gpio";
27 compatible = "power-domain-gpio";
29 power-domain = <&test_reg_auto>;
33 compatible = "power-domain-gpio";
35 power-domain = <&test_reg_auto>;
[all …]
/Zephyr-Core-3.5.0/tests/subsys/pm/power_domain/src/
Dmain.c17 static const struct device *const domain = DEVICE_DT_GET(TEST_DOMAIN); variable
111 * @brief Test the power domain behavior
115 * - get + put multiple devices under a domain
116 * - notification when domain state changes
125 pm_device_init_suspended(domain); in ZTEST()
130 pm_device_runtime_enable(domain); in ZTEST()
135 ret = pm_device_power_domain_remove(devc, domain); in ZTEST()
138 ret = pm_device_power_domain_add(devc, domain); in ZTEST()
142 pm_device_state_get(domain, &state); in ZTEST()
154 /* Now test if "get" a device will resume the domain */ in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/pm/device_power_domains/
Dapp.overlay3 compatible = "power-domain-gpio";
8 compatible = "power-domain-gpio";
13 compatible = "power-domain-gpio";
15 power-domain = <&test_reg_0>;
21 power-domain = <&test_reg_1>;
22 alternate-domain = <&test_reg_chained>;
/Zephyr-Core-3.5.0/drivers/clock_control/
Dclock_control_renesas_cpg_mssr.c73 rcar_cpg_find_clk_info_by_module_id(const struct device *dev, uint32_t domain, uint32_t id) in rcar_cpg_find_clk_info_by_module_id() argument
77 struct cpg_clk_info_table *table = data->clk_info_table[domain]; in rcar_cpg_find_clk_info_by_module_id()
78 uint32_t table_size = data->clk_info_table_size[domain]; in rcar_cpg_find_clk_info_by_module_id()
84 LOG_ERR("%s: can't find clk info (domain %u module %u)", dev->name, domain, id); in rcar_cpg_find_clk_info_by_module_id()
97 if (clk_info->domain == CPG_MOD) { in rcar_cpg_get_divider()
204 LOG_ERR("%s: error during getting divider from clock register, domain %u " in rcar_cpg_change_children_in_out_freq()
207 dev->name, children_list->domain, children_list->module); in rcar_cpg_change_children_in_out_freq()
233 clk_info = rcar_cpg_find_clk_info_by_module_id(dev, clk->domain, clk->module); in rcar_cpg_get_rate()
245 LOG_ERR("%s: clk (domain %u module %u) error (%lld) during getting out frequency", in rcar_cpg_get_rate()
246 dev->name, clk->domain, clk->module, ret); in rcar_cpg_get_rate()
[all …]
/Zephyr-Core-3.5.0/drivers/xen/dom0/
Ddomctl.c27 .domain = domid, in xen_domctl_scheduler_op()
38 .domain = domid, in xen_domctl_pausedomain()
48 .domain = domid, in xen_domctl_unpausedomain()
58 .domain = domid, in xen_domctl_resumedomain()
68 .domain = domid, in xen_domctl_getvcpucontext()
81 .domain = domid, in xen_domctl_setvcpucontext()
95 .domain = domid, in xen_domctl_getdomaininfo()
113 .domain = domid, in xen_domctl_get_paging_mempool_size()
129 .domain = domid, in xen_domctl_set_paging_mempool_size()
140 .domain = domid, in xen_domctl_max_mem()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/pm/power_domain/
Dapp.overlay9 compatible = "power-domain";
16 power-domain = <&test_domain>;
22 power-domain = <&test_domain>;
26 compatible = "power-domain";
33 power-domain = <&test_domain_balanced>;
/Zephyr-Core-3.5.0/scripts/tests/build_helpers/
Dtest_domains.py79 - name: a domain
86 - a domain
90 [('default_domain', 'dir/2'), ('a domain', 'dir/1')],
92 {'a domain': ('a domain', 'dir/1'),
115 with mock.patch('domains.Domain', side_effect=mock_domain), \
191 ['domain "other" not found, valid domains are: order, some'],
205 ids=['domain not found', 'valid']
244 name = 'Domain Name'
247 domain = domains.Domain(name, build_dir)
249 assert domain.name == name
[all …]
/Zephyr-Core-3.5.0/include/zephyr/xen/public/
Dsched.h77 * Halt execution of this domain (all VCPUs) and notify the system controller.
86 * returns 1 if suspend was cancelled or the domain was merely
87 * checkpointed, and 0 if it is resuming in a new domain.
99 * Declare a shutdown for another domain. The main use of this function is
101 * domains. A para-virtualized domain may use SCHEDOP_shutdown directly.
107 * Latch a shutdown code, so that when the domain later shuts down it
114 * Setup, poke and destroy a domain watchdog timer.
116 * With id == 0, setup a domain watchdog timer to cause domain shutdown
118 * With id != 0 and timeout == 0, destroy domain watchdog timer.
130 * This call is allowed for the hardware domain only and requires the cpu
[all …]
/Zephyr-Core-3.5.0/tests/subsys/logging/log_msg/src/
Dmain.c77 uint8_t domain, uint8_t level, log_timestamp_t t, in basic_validate() argument
87 zassert_equal(log_msg_get_domain(msg), domain); in basic_validate()
151 uint8_t domain, uint8_t level, in validate_base_message_set() argument
194 basic_validate(&msg0->log, source, domain, level, in validate_base_message_set()
196 basic_validate(&msg2->log, source, domain, level, in validate_base_message_set()
204 static const uint8_t domain = 3; in ZTEST() local
212 Z_LOG_MSG_CREATE3(1, mode, 0, domain, source, level, in ZTEST()
216 Z_LOG_MSG_CREATE3(0, mode, 0, domain, source, level, in ZTEST()
220 z_log_msg_runtime_create(domain, source, in ZTEST()
223 validate_base_message_set(source, domain, level, in ZTEST()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/xen/
Dmemory.h11 * Add mapping for specified page frame in Xen domain physmap.
13 * @param domid domain id, where mapping will be added. For unprivileged should
24 * Add mapping for specified set of page frames to Xen domain physmap.
26 * @param domid domain id, where mapping will be added. For unprivileged
28 * @param foreign_domid for gmfn_foreign - domain id, whose pages being mapped,
42 * Removes page frame from Xen domain physmap.
44 * @param domid domain id, whose page is going to be removed. For unprivileged
52 * Populate specified Xen domain page frames with memory.
54 * @param domid domain id, where mapping will be added. For unprivileged
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/mem_protect/src/
Dmem_domain.c14 /* Special memory domain for test case purposes */
68 0, "failed to initialize memory domain"); in test_mem_domain_setup()
90 * If domain is not NULL, add the child thread to that domain, instead of
94 struct k_mem_domain *domain, bool should_fault) in spawn_child_thread() argument
102 if (domain != NULL) { in spawn_child_thread()
103 k_mem_domain_add_thread(domain, &child_thread); in spawn_child_thread()
152 * Join a memory domain with a read-write memory partition and a read-only
165 * @brief Show that a user thread can't touch partitions not in its domain
205 /* This will fault, we removed one of the rw_part from the domain */ in ZTEST()
220 /* Extra partition that a user thread can't add to a domain */
[all …]
/Zephyr-Core-3.5.0/snippets/xen_dom0/
DREADME.rst3 Xen Dom0: universal snippet for XEN control domain
9 This snippet allows user to build Zephyr as a Xen initial domain (Dom0). The feature
16 * add correct memory and hypervisor nodes, based on regions Xen picked for Domain-0 on your setup.
33 Xen control domain example. To run such setup, you need to:
37 * build your Zephyr sample/application with `xen_dom0` snippet and start it as Xen control domain
49 This will start you a Xen hypervisor with your application as Xen control domain. To make it usable,
50 you can add `zephyr-xenlib` by Xen-troops library to your project. It'll provide basic domain
51 management functionalities - domain creation and configuration.
/Zephyr-Core-3.5.0/doc/kernel/usermode/
Dmemory_domain.rst137 buffer, plus program text and read-only data. The memory domain APIs are the
140 Conceptually, a memory domain is a collection of some number of memory
141 partitions. The maximum number of memory partitions in a domain
150 accessing such a region. Any attempt to use memory domain APIs to control
154 Memory domain APIs are only available to supervisor mode. The only control
156 will automatically become members of the parent's domain.
158 All threads are members of a memory domain, including supervisor threads
160 default domain ``k_mem_domain_default`` which will be assigned to threads if
161 they have not been specifically assigned to a domain, or inherited a memory
162 domain membership from their parent thread. The main thread starts as a
[all …]
/Zephyr-Core-3.5.0/subsys/pm/
DKconfig88 bool "Power domain"
92 Enable support for Power Domain. With power domain enabled,
93 devices that depend on a domain will be notified when this
94 domain is suspended or resumed.
100 Enable support for dynamically bind devices to a Power Domain.
103 int "Number of devices that can dynamically be bind to a Power Domain"
107 The number of devices that can dynamically be bind to a Power Domain.
/Zephyr-Core-3.5.0/doc/services/ipc/ipc_service/backends/
Dipc_service_icmsg.rst32 domain (or CPU) that data has been written. Ensure that the other domain
63 communication (domain or CPU) but you must swap the MBOX channels and memory
69 When the endpoint is registered, the following happens on each domain (or CPU)
72 1. The domain (or CPU) writes a magic number to its ``tx-region`` of the shared
74 #. It then sends a signal to the other domain or CPU, informing that the data
75 has been written. Sending the signal to the other domain or CPU is repeated
78 #. When the signal from the other domain or CPU is received, the magic number
/Zephyr-Core-3.5.0/dts/bindings/clock/
Dst,stm32h7-rcc.yaml29 Confere st,stm32-rcc binding for information about domain clocks configuration.
54 D1 Domain, CPU1 clock prescaler. Sets a HCLK frequency (feeding Cortex-M Systick)
64 D2 domain, CPU2 core clock and AHB(1/2/3/4) peripheral prescaler
80 D1 domain, APB3 peripheral prescaler
92 D2 domain, APB1 peripheral prescaler
104 D2 domain, APB2 peripheral prescaler
116 D3 domain, APB4 peripheral prescaler
/Zephyr-Core-3.5.0/soc/arm/nxp_imx/mimx8mm6_m4/
Dsoc.c20 /* Move M4 core to specific RDC domain 1 */ in SOC_RdcInit()
27 * The M4 core is running at domain 1, enable clock gate for in SOC_RdcInit()
28 * Iomux to run at domain 1. in SOC_RdcInit()
39 * The M4 core is running at domain 1, enable the PLL clock sources in SOC_RdcInit()
40 * to domain 1. in SOC_RdcInit()
42 /* Enable SysPLL1 to Domain 1 */ in SOC_RdcInit()
44 /* Enable SysPLL2 to Domain 1 */ in SOC_RdcInit()
46 /* Enable SysPLL3 to Domain 1 */ in SOC_RdcInit()
48 /* Enable AudioPLL1 to Domain 1 */ in SOC_RdcInit()
50 /* Enable AudioPLL2 to Domain 1 */ in SOC_RdcInit()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/net/
Ddns_sd.h58 * <sn>._tcp.<domain>.
61 * "local" domain is supported. Specifically, that excludes the following:
73 * <instance>.<sn>._tcp.<domain>.
77 * "local" domain is supported. Specifically, that excludes the following:
105 * @param _domain the domain of the service, such as "local"
115 .domain = _domain, \
155 * @param domain the domain of the service, such as "local"
161 #define DNS_SD_REGISTER_TCP_SERVICE(id, instance, service, domain, text, \ argument
164 DNS_SD_REGISTER_SERVICE(id, instance, service, "_tcp", domain, \
186 * @param domain the domain of the service, such as "local" or "zephyrproject.org"
[all …]
/Zephyr-Core-3.5.0/drivers/power_domain/
Dpower_domain_gpio.c29 const struct device *domain; member
39 /* Only run action if the device is on the specified domain */ in pd_on_domain_visitor()
40 if (!dev->pm || (dev->pm->domain != visitor_context->domain)) { in pd_on_domain_visitor()
54 struct pd_visitor_context context = {.domain = dev}; in pd_gpio_pm_action()
74 /* Wait for domain to come up */ in pd_gpio_pm_action()
77 /* Notify devices on the domain they are now powered */ in pd_gpio_pm_action()
84 /* Notify devices on the domain that power is going down */ in pd_gpio_pm_action()
121 /* We can't know how long the domain has been off for before boot */ in pd_gpio_init()
/Zephyr-Core-3.5.0/drivers/serial/
DKconfig.xen16 for Zephyr as unprivileged domain.
25 privileged domain (Dom0) or for Zephyr DomU in Dom0less
27 privileged domain. Thus, there is no console daemon and Xen
28 manages all domain outputs through the consoleio interface.
/Zephyr-Core-3.5.0/dts/bindings/power-domain/
Dintel,adsp-power-domain.yaml7 compatible: "intel,adsp-power-domain"
9 include: power-domain.yaml
18 for a desired domain.
/Zephyr-Core-3.5.0/include/zephyr/pm/
Ddevice.h36 /** Indicate if the device has claimed a power domain */
49 /** Indicates if the device is used as a power domain */
88 * Action triggered only by a power domain.
94 * Action triggered only by a power domain.
140 /** Power Domain it belongs */
141 const struct device *domain; member
163 .domain = DEVICE_DT_GET_OR_NULL(DT_PHANDLE(_node_id, \
534 * @brief Check if the device is on a switchable power domain.
538 * @retval true If device is on a switchable power domain.
539 * @retval false If device is not on a switchable power domain.
[all …]

12345678910>>...17