/Zephyr-latest/include/zephyr/app_memory/ |
D | mem_domain.h | 22 * @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-latest/tests/subsys/pm/device_driver_init/ |
D | app.overlay | 3 compatible = "power-domain-gpio"; 5 #power-domain-cells = <0>; 9 compatible = "power-domain-gpio"; 12 #power-domain-cells = <0>; 16 compatible = "power-domain-gpio"; 19 #power-domain-cells = <0>; 24 compatible = "power-domain-gpio"; 26 #power-domain-cells = <0>; 31 compatible = "power-domain-gpio"; 33 #power-domain-cells = <0>; [all …]
|
/Zephyr-latest/doc/services/pm/ |
D | power_domain.rst | 1 .. _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-latest/soc/nordic/common/ |
D | soc_lrcconf.c | 14 void soc_lrcconf_poweron_request(sys_snode_t *node, nrf_lrcconf_power_domain_mask_t domain) in soc_lrcconf_poweron_request() argument 16 __ASSERT(is_power_of_two(domain), "Only one bit can be set for the domain parameter"); in soc_lrcconf_poweron_request() 20 if (domain == NRF_LRCCONF_POWER_MAIN) { in soc_lrcconf_poweron_request() 22 } else if (domain == NRF_LRCCONF_POWER_DOMAIN_0) { in soc_lrcconf_poweron_request() 30 nrf_lrcconf_poweron_force_set(NRF_LRCCONF010, domain, true); in soc_lrcconf_poweron_request() 38 void soc_lrcconf_poweron_release(sys_snode_t *node, nrf_lrcconf_power_domain_mask_t domain) in soc_lrcconf_poweron_release() argument 40 __ASSERT(is_power_of_two(domain), "Only one bit can be set for the domain parameter"); in soc_lrcconf_poweron_release() 44 if (domain == NRF_LRCCONF_POWER_MAIN) { in soc_lrcconf_poweron_release() 46 } else if (domain == NRF_LRCCONF_POWER_DOMAIN_0) { in soc_lrcconf_poweron_release() 60 nrf_lrcconf_poweron_force_set(NRF_LRCCONF010, domain, false); in soc_lrcconf_poweron_release()
|
D | soc_lrcconf.h | 17 * @brief Request lrcconf power domain 21 * @param domain The mask that represents the power domain ID. 23 void soc_lrcconf_poweron_request(sys_snode_t *node, nrf_lrcconf_power_domain_mask_t domain); 26 * @brief Release lrcconf power domain 30 * @param domain The mask that represents the power domain ID. 32 void soc_lrcconf_poweron_release(sys_snode_t *node, nrf_lrcconf_power_domain_mask_t domain);
|
/Zephyr-latest/drivers/power_domain/ |
D | Kconfig | 5 bool "Power domain drivers" 16 int "Power domain init priority" 19 Power domain initialization priority. 22 bool "GPIO controlled power domain" 33 int "GPIO power domain init priority" 36 GPIO power domain initialization priority. 46 Include Intel ADSP power domain control mechanisms 51 int "Intel ADSP power domain init priority" 54 Intel ADSP power domain initialization priority. 69 int "GPIO monitor power domain init priority" [all …]
|
/Zephyr-latest/kernel/ |
D | mem_domain.c | 24 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 …]
|
D | Kconfig.mem_domain | 9 int "Maximum number of partitions per memory domain" 14 Configure the maximum number of partitions per memory domain. 21 architecture-specific data is needed on a per memory domain basis. 25 when a memory domain is created. 27 Typical uses might be a set of page tables for that memory domain. 34 modifying a memory domain's partitions at runtime, or changing 35 a memory domain's thread membership requires synchronous calls 48 thread access to memory. Memory domain APIs may only be invoked from 62 within the same memory domain.
|
/Zephyr-latest/tests/subsys/pm/power_domain/src/ |
D | main.c | 17 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-latest/tests/subsys/pm/device_power_domains/ |
D | app.overlay | 3 compatible = "power-domain-gpio"; 5 #power-domain-cells = <0>; 9 compatible = "power-domain-gpio"; 11 #power-domain-cells = <0>; 15 compatible = "power-domain-gpio"; 18 #power-domain-cells = <0>; 25 alternate-domain = <&test_reg_chained>;
|
/Zephyr-latest/dts/bindings/power-domain/ |
D | power-domain-gpio-monitor.yaml | 5 Simple monitorig power domain 7 This power domain monitors the state of a GPIO pin to detect whether a power 8 rail is on/off. Therefore, performing resume/suspend on power domain won't 13 compatible: "power-domain-gpio-monitor" 15 include: power-domain.yaml 24 "#power-domain-cells":
|
D | intel,adsp-power-domain.yaml | 7 compatible: "intel,adsp-power-domain" 9 include: power-domain.yaml 18 for a desired domain. 21 "#power-domain-cells":
|
D | power-domain-gpio.yaml | 4 description: Simple GPIO controlled power domain 6 compatible: "power-domain-gpio" 8 include: power-domain.yaml 32 "#power-domain-cells":
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_renesas_cpg_mssr.c | 73 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-latest/dts/bindings/reserved-memory/ |
D | nordic,owned-memory.yaml | 8 will be recorded in the UICR of the compiled domain. Memory ownership and 9 access is then configured for the domain at boot time, based on the UICR. 23 A single local domain can request a memory region to be reserved on behalf of 25 one domain, by setting status "okay" on the associated node. For example, if 32 Note: one domain can also reserve memory for another domain and not itself. 33 Whichever domain has status "okay" set on the node does not need to be listed 49 - Owner ID represents the domain that will have access to this memory. 69 Owner ID of the domain that will own this memory region. If not defined, 70 the ownership will default to the domain being compiled. 72 Note: owner ID is not the same as domain ID; see the product specification
|
/Zephyr-latest/drivers/xen/dom0/ |
D | domctl.c | 27 .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() 130 .domain = domid, in xen_domctl_set_paging_mempool_size() 141 .domain = domid, in xen_domctl_max_mem() [all …]
|
/Zephyr-latest/scripts/tests/build_helpers/ |
D | test_domains.py | 79 - 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-latest/include/zephyr/xen/public/ |
D | sched.h | 77 * 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-latest/tests/subsys/logging/log_msg/src/ |
D | main.c | 77 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-latest/include/zephyr/xen/ |
D | memory.h | 11 * 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-latest/tests/kernel/mem_protect/mem_protect/src/ |
D | mem_domain.c | 14 /* 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-latest/subsys/pm/ |
D | Kconfig | 75 bool "Power domain" 79 Enable support for Power Domain. With power domain enabled, 80 devices that depend on a domain will be notified when this 81 domain is suspended or resumed. 84 bool "Dynamically bind devices to a Power Domain" 87 Enable support for dynamically bind devices to a Power Domain. 90 int "Number of devices that can dynamically be bind to a Power Domain" 94 The number of devices that can dynamically be bind to a Power Domain.
|
/Zephyr-latest/snippets/xen_dom0/ |
D | README.rst | 3 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 directory of this snippet is QEMU Xen control domain example. 39 * build your Zephyr sample/application with ``xen_dom0`` snippet and start it as Xen control domain 51 This will start you a Xen hypervisor with your application as Xen control domain. To make it usable, 52 you can add `zephyr-xenlib`_ by Xen-troops library to your project. It'll provide basic domain 53 management functionalities - domain creation and configuration.
|
/Zephyr-latest/doc/kernel/usermode/ |
D | memory_domain.rst | 85 the same memory domain. This is the minimum required for architectures to 152 buffer, plus program text and read-only data. The memory domain APIs are the 155 Conceptually, a memory domain is a collection of some number of memory 156 partitions. The maximum number of memory partitions in a domain 165 accessing such a region. Any attempt to use memory domain APIs to control 169 Memory domain APIs are only available to supervisor mode. The only control 171 will automatically become members of the parent's domain. 173 All threads are members of a memory domain, including supervisor threads 175 default domain ``k_mem_domain_default`` which will be assigned to threads if 176 they have not been specifically assigned to a domain, or inherited a memory [all …]
|
/Zephyr-latest/tests/subsys/pm/power_domain/ |
D | app.overlay | 9 compatible = "power-domain"; 11 #power-domain-cells = <0>; 27 compatible = "power-domain"; 29 #power-domain-cells = <0>;
|