Home
last modified time | relevance | path

Searched refs:domain (Results 1 – 25 of 266) sorted by relevance

1234567891011

/Zephyr-latest/kernel/
Dmem_domain.c24 static bool check_add_partition(struct k_mem_domain *domain, in check_add_partition() argument
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()
123 domain, ret); in k_mem_domain_init()
[all …]
DKconfig.mem_domain9 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/device_driver_init/
Dapp.overlay3 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/soc/nordic/common/
Dsoc_lrcconf.c14 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()
Dsoc_lrcconf.h23 void soc_lrcconf_poweron_request(sys_snode_t *node, nrf_lrcconf_power_domain_mask_t domain);
32 void soc_lrcconf_poweron_release(sys_snode_t *node, nrf_lrcconf_power_domain_mask_t domain);
/Zephyr-latest/tests/subsys/pm/device_power_domains/
Dapp.overlay3 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/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-latest/doc/services/pm/
Dpower_domain.rst1 .. _pm-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()"]
45 domain -> devB [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"]
[all …]
/Zephyr-latest/drivers/power_domain/
DKconfig5 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/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()
130 .domain = domid, in xen_domctl_set_paging_mempool_size()
141 .domain = domid, in xen_domctl_max_mem()
[all …]
/Zephyr-latest/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()
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()
246 dev->name, clk->domain, clk->module, ret); in rcar_cpg_get_rate()
250 dev->name, clk->domain, clk->module); in rcar_cpg_get_rate()
278 clk_info = rcar_cpg_find_clk_info_by_module_id(dev, clk->domain, clk->module); in rcar_cpg_set_rate()
[all …]
/Zephyr-latest/tests/subsys/pm/power_domain/src/
Dmain.c17 static const struct device *const domain = DEVICE_DT_GET(TEST_DOMAIN); variable
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()
161 pm_device_state_get(domain, &state); in ZTEST()
177 pm_device_state_get(domain, &state); in ZTEST()
190 pm_device_state_get(domain, &state); in ZTEST()
210 ret = pm_device_runtime_get(domain); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/net/
Ddns_sd.h118 .domain = _domain, \
161 #define DNS_SD_REGISTER_TCP_SERVICE(id, instance, service, domain, text, \ argument
164 DNS_SD_REGISTER_SERVICE(id, instance, service, "_tcp", domain, \
190 #define DNS_SD_REGISTER_UDP_SERVICE(id, instance, service, domain, text, \ argument
193 DNS_SD_REGISTER_SERVICE(id, instance, service, "_udp", domain, \
223 const char *domain; member
/Zephyr-latest/tests/drivers/build_all/power_domain/
Dapp.overlay20 compatible = "power-domain-gpio";
22 #power-domain-cells = <0>;
27 compatible = "power-domain-gpio-monitor";
30 #power-domain-cells = <0>;
/Zephyr-latest/tests/subsys/pm/power_domain/
Dapp.overlay9 compatible = "power-domain";
11 #power-domain-cells = <0>;
27 compatible = "power-domain";
29 #power-domain-cells = <0>;
/Zephyr-latest/subsys/pm/
Ddevice.c100 const struct device *domain, in power_domain_add_or_remove() argument
104 device_handle_t *rv = domain->deps; in power_domain_add_or_remove()
138 dev->pm_base->domain = NULL; in power_domain_add_or_remove()
144 dev->pm_base->domain = domain; in power_domain_add_or_remove()
155 ARG_UNUSED(domain); in power_domain_add_or_remove()
163 const struct device *domain) in pm_device_power_domain_remove() argument
165 return power_domain_add_or_remove(dev, domain, false); in pm_device_power_domain_remove()
169 const struct device *domain) in pm_device_power_domain_add() argument
171 return power_domain_add_or_remove(dev, domain, true); in pm_device_power_domain_add()
334 return pm->domain != NULL; in pm_device_on_power_domain()
[all …]
/Zephyr-latest/include/zephyr/app_memory/
Dmem_domain.h129 int k_mem_domain_init(struct k_mem_domain *domain, uint8_t num_parts,
159 int k_mem_domain_add_partition(struct k_mem_domain *domain,
174 int k_mem_domain_remove_partition(struct k_mem_domain *domain,
188 int k_mem_domain_add_thread(struct k_mem_domain *domain,
/Zephyr-latest/arch/xtensa/core/
Dptables.c335 struct arch_mem_domain *domain = in xtensa_mmu_reinit() local
340 xtensa_set_paging(domain->asid, domain->ptables); in xtensa_mmu_reinit()
448 struct arch_mem_domain *domain; in __arch_mem_map() local
453 domain = CONTAINER_OF(node, struct arch_mem_domain, node); in __arch_mem_map()
455 ret = l2_page_table_map(domain->ptables, (void *)vaddr, paddr, in __arch_mem_map()
458 vaddr, domain); in __arch_mem_map()
461 ret = l2_page_table_map(domain->ptables, in __arch_mem_map()
465 vaddr_uc, domain); in __arch_mem_map()
603 struct arch_mem_domain *domain; in __arch_mem_unmap() local
608 domain = CONTAINER_OF(node, struct arch_mem_domain, node); in __arch_mem_unmap()
[all …]
/Zephyr-latest/scripts/tests/build_helpers/
Dtest_domains.py247 domain = domains.Domain(name, build_dir)
249 assert domain.name == name
250 assert domain.build_dir == build_dir
252 domain.name = 'New Name'
253 domain.build_dir = 'new/dir'
255 assert domain.name == 'New Name'
256 assert domain.build_dir == 'new/dir'
/Zephyr-latest/subsys/net/lib/shell/
Dgptp.c276 struct gptp_domain *domain; in gptp_print_port_info() local
281 domain = gptp_get_domain(); in gptp_print_port_info()
283 ret = gptp_get_port_data(domain, in gptp_print_port_info()
382 domain->default_ds.priority1); in gptp_print_port_info()
385 domain->default_ds.priority2); in gptp_print_port_info()
585 struct gptp_domain *domain = gptp_get_domain(); in cmd_net_gptp() local
605 site_sync2str(domain->state.site_ss.state)); in cmd_net_gptp()
607 domain->state.site_ss.rcvd_pss ? "yes" : "no"); in cmd_net_gptp()
611 clk_slave2str(domain->state.clk_slave_sync.state)); in cmd_net_gptp()
613 domain->state.clk_slave_sync.rcvd_pss ? "yes" : "no"); in cmd_net_gptp()
[all …]
/Zephyr-latest/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
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/arch/riscv/core/
Dpmp.c603 struct k_mem_domain *domain) in resync_pmp_domain() argument
611 remaining_partitions = domain->num_partitions; in resync_pmp_domain()
613 struct k_mem_partition *part = &domain->partitions[p_idx]; in resync_pmp_domain()
633 remaining_partitions + 1, domain); in resync_pmp_domain()
637 thread->arch.u_mode_pmp_update_nr = domain->arch.pmp_update_nr; in resync_pmp_domain()
649 struct k_mem_domain *domain = thread->mem_domain_info.mem_domain; in z_riscv_pmp_usermode_enable() local
651 LOG_DBG("pmp_usermode_enable for thread %p with domain %p", thread, domain); in z_riscv_pmp_usermode_enable()
658 if (thread->arch.u_mode_pmp_update_nr != domain->arch.pmp_update_nr) { in z_riscv_pmp_usermode_enable()
663 resync_pmp_domain(thread, domain); in z_riscv_pmp_usermode_enable()
711 int arch_mem_domain_init(struct k_mem_domain *domain) in arch_mem_domain_init() argument
[all …]
/Zephyr-latest/modules/hal_nordic/nrfs/dvfs/
DKconfig7 menu "Local domain DVFS library"
10 module-str = Local domain DVFS library
14 bool "Local domain DVFS test"
19 bool "Local domain scale down after init"
/Zephyr-latest/dts/xtensa/nxp/
Dnxp_imx8.dtsi56 #power-domain-cells = <0>;
63 #power-domain-cells = <0>;
70 #power-domain-cells = <0>;
77 #power-domain-cells = <0>;
84 #power-domain-cells = <0>;
91 #power-domain-cells = <0>;
98 #power-domain-cells = <0>;
105 #power-domain-cells = <0>;
112 #power-domain-cells = <0>;
/Zephyr-latest/include/zephyr/dt-bindings/rdc/
Dimx_rdc.h22 #define RDC_DOMAIN_PERM(domain, perm) (perm << (domain * 2)) argument

1234567891011