Home
last modified time | relevance | path

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

12345678910>>...46

/Linux-v5.4/kernel/irq/
Dirqdomain.c28 static void irq_domain_check_hierarchy(struct irq_domain *domain);
137 struct irq_domain *domain; in __irq_domain_add() local
141 domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), in __irq_domain_add()
143 if (!domain) in __irq_domain_add()
152 domain->fwnode = fwnode; in __irq_domain_add()
153 domain->name = kstrdup(fwid->name, GFP_KERNEL); in __irq_domain_add()
154 if (!domain->name) { in __irq_domain_add()
155 kfree(domain); in __irq_domain_add()
158 domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; in __irq_domain_add()
161 domain->fwnode = fwnode; in __irq_domain_add()
[all …]
Dmsi.c79 static void msi_check_level(struct irq_domain *domain, struct msi_msg *msg) in msi_check_level() argument
81 struct msi_domain_info *info = domain->host_data; in msi_check_level()
111 msi_check_level(irq_data->domain, msg); in msi_domain_set_affinity()
118 static int msi_domain_activate(struct irq_domain *domain, in msi_domain_activate() argument
124 msi_check_level(irq_data->domain, msg); in msi_domain_activate()
129 static void msi_domain_deactivate(struct irq_domain *domain, in msi_domain_deactivate() argument
138 static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq, in msi_domain_alloc() argument
141 struct msi_domain_info *info = domain->host_data; in msi_domain_alloc()
146 if (irq_find_mapping(domain, hwirq) > 0) in msi_domain_alloc()
149 if (domain->parent) { in msi_domain_alloc()
[all …]
/Linux-v5.4/drivers/soc/imx/
Dgpcv2.c132 struct imx_pgc_domain *domain = container_of(genpd, in imx_gpc_pu_pgc_sw_pxx_req() local
138 const bool has_regulator = !IS_ERR(domain->regulator); in imx_gpc_pu_pgc_sw_pxx_req()
142 regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, in imx_gpc_pu_pgc_sw_pxx_req()
143 domain->bits.map, domain->bits.map); in imx_gpc_pu_pgc_sw_pxx_req()
146 ret = regulator_enable(domain->regulator); in imx_gpc_pu_pgc_sw_pxx_req()
148 dev_err(domain->dev, "failed to enable regulator\n"); in imx_gpc_pu_pgc_sw_pxx_req()
154 for (i = 0; i < domain->num_clks; i++) in imx_gpc_pu_pgc_sw_pxx_req()
155 clk_prepare_enable(domain->clk[i]); in imx_gpc_pu_pgc_sw_pxx_req()
158 regmap_update_bits(domain->regmap, GPC_PGC_CTRL(domain->pgc), in imx_gpc_pu_pgc_sw_pxx_req()
161 if (domain->bits.hsk) in imx_gpc_pu_pgc_sw_pxx_req()
[all …]
Dgpc.c129 static int imx_pgc_get_clocks(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_get_clocks() argument
142 domain->clk[i] = clk; in imx_pgc_get_clocks()
144 domain->num_clks = i; in imx_pgc_get_clocks()
150 clk_put(domain->clk[i]); in imx_pgc_get_clocks()
155 static void imx_pgc_put_clocks(struct imx_pm_domain *domain) in imx_pgc_put_clocks() argument
159 for (i = domain->num_clks - 1; i >= 0; i--) in imx_pgc_put_clocks()
160 clk_put(domain->clk[i]); in imx_pgc_put_clocks()
163 static int imx_pgc_parse_dt(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_parse_dt() argument
166 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt()
167 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt()
[all …]
/Linux-v5.4/drivers/iommu/
Dipmmu-vmsa.c267 static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_read_root() argument
270 return ipmmu_read(domain->mmu->root, in ipmmu_ctx_read_root()
271 domain->context_id * IM_CTX_SIZE + reg); in ipmmu_ctx_read_root()
274 static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_root() argument
277 ipmmu_write(domain->mmu->root, in ipmmu_ctx_write_root()
278 domain->context_id * IM_CTX_SIZE + reg, data); in ipmmu_ctx_write_root()
281 static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_all() argument
284 if (domain->mmu != domain->mmu->root) in ipmmu_ctx_write_all()
285 ipmmu_write(domain->mmu, in ipmmu_ctx_write_all()
286 domain->context_id * IM_CTX_SIZE + reg, data); in ipmmu_ctx_write_all()
[all …]
Dexynos-iommu.c236 struct iommu_domain *domain; /* domain this device is attached */ member
252 struct iommu_domain domain; /* generic domain data structure */ member
272 struct exynos_iommu_domain *domain; /* domain we belong to */ member
283 return container_of(dom, struct exynos_iommu_domain, domain); in to_exynos_domain()
443 if (data->domain) in exynos_sysmmu_irq()
444 ret = report_iommu_fault(&data->domain->domain, in exynos_sysmmu_irq()
676 if (data->domain) { in exynos_sysmmu_suspend()
694 if (data->domain) { in exynos_sysmmu_resume()
735 struct exynos_iommu_domain *domain; in exynos_iommu_domain_alloc() local
742 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in exynos_iommu_domain_alloc()
[all …]
Dintel-iommu.c310 #define for_each_domain_iommu(idx, domain) \ argument
312 if (domain->iommu_refcnt[idx])
340 static void domain_exit(struct dmar_domain *domain);
341 static void domain_remove_dev_info(struct dmar_domain *domain);
346 static int domain_detach_iommu(struct dmar_domain *domain,
349 static int intel_iommu_attach_device(struct iommu_domain *domain,
351 static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain,
434 return container_of(dom, struct dmar_domain, domain); in to_dmar_domain()
497 struct dmar_domain *domain) in set_iommu_domain() argument
511 domains[did & 0xff] = domain; in set_iommu_domain()
[all …]
Diommu.c45 struct iommu_domain *domain; member
205 static int __iommu_attach_device(struct iommu_domain *domain,
207 static int __iommu_attach_group(struct iommu_domain *domain,
209 static void __iommu_detach_group(struct iommu_domain *domain,
626 struct iommu_domain *domain = group->default_domain; in iommu_group_create_direct_mappings() local
632 if (!domain || domain->type != IOMMU_DOMAIN_DMA) in iommu_group_create_direct_mappings()
635 BUG_ON(!domain->pgsize_bitmap); in iommu_group_create_direct_mappings()
637 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_group_create_direct_mappings()
646 if (domain->ops->apply_resv_region) in iommu_group_create_direct_mappings()
647 domain->ops->apply_resv_region(dev, domain, entry); in iommu_group_create_direct_mappings()
[all …]
Damd_iommu.c102 static void update_domain(struct protection_domain *domain);
103 static int protection_domain_init(struct protection_domain *domain);
112 struct protection_domain domain; member
187 return container_of(dom, struct protection_domain, domain); in to_pdomain()
190 static struct dma_ops_domain* to_dma_ops_domain(struct protection_domain *domain) in to_dma_ops_domain() argument
192 BUG_ON(domain->flags != PD_DMA_OPS_MASK); in to_dma_ops_domain()
193 return container_of(domain, struct dma_ops_domain, domain); in to_dma_ops_domain()
488 if (dev_data->domain) in iommu_uninit_device()
1268 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages() argument
1275 build_inv_iommu_pages(&cmd, address, size, domain->id, pde); in __domain_flush_pages()
[all …]
Ds390-iommu.c25 struct iommu_domain domain; member
39 return container_of(dom, struct s390_domain, domain); in to_s390_domain()
75 return &s390_domain->domain; in s390_domain_alloc()
78 static void s390_domain_free(struct iommu_domain *domain) in s390_domain_free() argument
80 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_domain_free()
86 static int s390_iommu_attach_device(struct iommu_domain *domain, in s390_iommu_attach_device() argument
89 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_iommu_attach_device()
114 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device()
115 domain->geometry.aperture_end = zdev->end_dma; in s390_iommu_attach_device()
116 domain->geometry.force_aperture = true; in s390_iommu_attach_device()
[all …]
/Linux-v5.4/arch/arm/boot/dts/
Dkeystone-k2hk-clocks.dtsi59 reg-names = "control", "domain";
60 domain-id = <0>;
69 reg-names = "control", "domain";
70 domain-id = <4>;
79 reg-names = "control", "domain";
80 domain-id = <5>;
89 reg-names = "control", "domain";
90 domain-id = <9>;
99 reg-names = "control", "domain";
100 domain-id = <10>;
[all …]
Dkeystone-k2l-clocks.dtsi49 reg-names = "control", "domain";
51 domain-id = <0>;
60 reg-names = "control", "domain";
61 domain-id = <4>;
70 reg-names = "control", "domain";
71 domain-id = <9>;
80 reg-names = "control", "domain";
81 domain-id = <10>;
90 reg-names = "control", "domain";
91 domain-id = <11>;
[all …]
Dkeystone-clocks.dtsi166 reg-names = "control", "domain";
167 domain-id = <0>;
177 reg-names = "control", "domain";
178 domain-id = <0>;
187 reg-names = "control", "domain";
188 domain-id = <0>;
198 reg-names = "control", "domain";
199 domain-id = <1>;
208 reg-names = "control", "domain";
209 domain-id = <1>;
[all …]
/Linux-v5.4/drivers/dca/
Ddca-core.c44 struct dca_domain *domain; in dca_allocate_domain() local
46 domain = kzalloc(sizeof(*domain), GFP_NOWAIT); in dca_allocate_domain()
47 if (!domain) in dca_allocate_domain()
50 INIT_LIST_HEAD(&domain->dca_providers); in dca_allocate_domain()
51 domain->pci_rc = rc; in dca_allocate_domain()
53 return domain; in dca_allocate_domain()
56 static void dca_free_domain(struct dca_domain *domain) in dca_free_domain() argument
58 list_del(&domain->node); in dca_free_domain()
59 kfree(domain); in dca_free_domain()
81 struct dca_domain *domain; in unregister_dca_providers() local
[all …]
/Linux-v5.4/include/trace/events/
Dkyber.h16 TP_PROTO(struct request_queue *q, const char *domain, const char *type,
20 TP_ARGS(q, domain, type, percentile, numerator, denominator, samples),
24 __array( char, domain, DOMAIN_LEN )
34 strlcpy(__entry->domain, domain, sizeof(__entry->domain));
43 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain,
50 TP_PROTO(struct request_queue *q, const char *domain,
53 TP_ARGS(q, domain, depth),
57 __array( char, domain, DOMAIN_LEN )
63 strlcpy(__entry->domain, domain, sizeof(__entry->domain));
68 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain,
[all …]
/Linux-v5.4/include/linux/
Dirqdomain.h286 extern void irq_domain_update_bus_token(struct irq_domain *domain,
370 extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq,
372 extern void irq_domain_associate_many(struct irq_domain *domain,
375 extern void irq_domain_disassociate(struct irq_domain *domain,
393 static inline unsigned int irq_linear_revmap(struct irq_domain *domain, in irq_linear_revmap() argument
396 return hwirq < domain->revmap_size ? domain->linear_revmap[hwirq] : 0; in irq_linear_revmap()
401 extern int irq_create_strict_mappings(struct irq_domain *domain,
430 int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest);
434 extern struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain,
436 extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
[all …]
Diommu.h256 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
257 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
258 int (*map)(struct iommu_domain *domain, unsigned long iova,
260 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
262 void (*flush_iotlb_all)(struct iommu_domain *domain);
263 void (*iotlb_sync_map)(struct iommu_domain *domain);
264 void (*iotlb_sync)(struct iommu_domain *domain,
266 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
270 int (*domain_get_attr)(struct iommu_domain *domain,
272 int (*domain_set_attr)(struct iommu_domain *domain,
[all …]
/Linux-v5.4/drivers/soc/dove/
Dpmu.c143 static int pmu_domain_power_off(struct generic_pm_domain *domain) in pmu_domain_power_off() argument
145 struct pmu_domain *pmu_dom = to_pmu_domain(domain); in pmu_domain_power_off()
177 static int pmu_domain_power_on(struct generic_pm_domain *domain) in pmu_domain_power_on() argument
179 struct pmu_domain *pmu_dom = to_pmu_domain(domain); in pmu_domain_power_on()
211 static void __pmu_domain_register(struct pmu_domain *domain, in __pmu_domain_register() argument
214 unsigned int val = readl_relaxed(domain->pmu->pmu_base + PMU_PWR); in __pmu_domain_register()
216 domain->base.power_off = pmu_domain_power_off; in __pmu_domain_register()
217 domain->base.power_on = pmu_domain_power_on; in __pmu_domain_register()
219 pm_genpd_init(&domain->base, NULL, !(val & domain->pwr_mask)); in __pmu_domain_register()
222 of_genpd_add_provider_simple(np, &domain->base); in __pmu_domain_register()
[all …]
/Linux-v5.4/drivers/irqchip/
Dirq-atmel-aic5.c88 struct irq_domain *domain = d->domain; in aic5_mask() local
89 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_mask()
105 struct irq_domain *domain = d->domain; in aic5_unmask() local
106 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_unmask()
122 struct irq_domain *domain = d->domain; in aic5_retrigger() local
123 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_retrigger()
136 struct irq_domain *domain = d->domain; in aic5_set_type() local
137 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_set_type()
157 struct irq_domain *domain = d->domain; in aic5_suspend() local
158 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/power/
Dpower_domain.txt7 This device tree binding can be used to bind PM domain consumer devices with
8 their PM domains provided by PM domain providers. A PM domain provider can be
11 phandle arguments (so called PM domain specifiers) of length specified by the
12 #power-domain-cells property in the PM domain provider node.
14 ==PM domain providers==
17 - #power-domain-cells : Number of cells in a PM domain specifier;
18 Typically 0 for nodes representing a single PM domain and 1 for nodes
23 - power-domains : A phandle and PM domain specifier as defined by bindings of
25 Some power domains might be powered from another power domain (or have
27 a standard PM domain consumer binding is used. When provided, all domains
[all …]
/Linux-v5.4/drivers/firmware/arm_scmi/
Dperf.c59 __le32 domain; member
64 __le32 domain; member
75 __le32 domain; member
80 __le32 domain; member
96 __le32 domain; member
185 scmi_perf_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_domain_attributes_get() argument
193 SCMI_PROTOCOL_PERF, sizeof(domain), in scmi_perf_domain_attributes_get()
198 put_unaligned_le32(domain, t->tx.buf); in scmi_perf_domain_attributes_get()
237 scmi_perf_describe_levels_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_describe_levels_get() argument
257 dom_info->domain = cpu_to_le32(domain); in scmi_perf_describe_levels_get()
[all …]
Dreset.c78 scmi_reset_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_reset_domain_attributes_get() argument
86 SCMI_PROTOCOL_RESET, sizeof(domain), in scmi_reset_domain_attributes_get()
91 put_unaligned_le32(domain, t->tx.buf); in scmi_reset_domain_attributes_get()
117 static char *scmi_reset_name_get(const struct scmi_handle *handle, u32 domain) in scmi_reset_name_get() argument
120 struct reset_dom_info *dom = pi->dom_info + domain; in scmi_reset_name_get()
125 static int scmi_reset_latency_get(const struct scmi_handle *handle, u32 domain) in scmi_reset_latency_get() argument
128 struct reset_dom_info *dom = pi->dom_info + domain; in scmi_reset_latency_get()
133 static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain, in scmi_domain_reset() argument
140 struct reset_dom_info *rdom = pi->dom_info + domain; in scmi_domain_reset()
151 dom->domain_id = cpu_to_le32(domain); in scmi_domain_reset()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/soc/rockchip/
Dpower_domain.txt6 Required properties for power domain controller:
19 - #power-domain-cells: Number of cells in a power-domain specifier.
24 Required properties for power domain sub nodes:
25 - reg: index of the power domain, should use macros in:
26 "include/dt-bindings/power/px30-power.h" - for PX30 type power domain.
27 "include/dt-bindings/power/rk3036-power.h" - for RK3036 type power domain.
28 "include/dt-bindings/power/rk3066-power.h" - for RK3066 type power domain.
29 "include/dt-bindings/power/rk3128-power.h" - for RK3128 type power domain.
30 "include/dt-bindings/power/rk3188-power.h" - for RK3188 type power domain.
31 "include/dt-bindings/power/rk3228-power.h" - for RK3228 type power domain.
[all …]
/Linux-v5.4/drivers/media/platform/qcom/venus/
Dhfi_parser.c25 cap->domain = VIDC_SESSION_TYPE_DEC; in init_codecs()
32 cap->domain = VIDC_SESSION_TYPE_ENC; in init_codecs()
38 u32 codecs, u32 domain, func cb, void *data, in for_each_codec() argument
46 if (cap->valid && cap->domain == domain) in for_each_codec()
48 if (cap->codec & codecs && cap->domain == domain) in for_each_codec()
63 parse_alloc_mode(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_alloc_mode() argument
78 codecs, domain, fill_buf_mode, type, 1); in parse_alloc_mode()
94 parse_profile_level(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_profile_level() argument
105 for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, in parse_profile_level()
119 parse_caps(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_caps() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/etnaviv/
Detnaviv_perfmon.c19 const struct etnaviv_pm_domain *domain,
40 const struct etnaviv_pm_domain *domain, in perf_reg_read() argument
43 gpu_write(gpu, domain->profile_config, signal->data); in perf_reg_read()
45 return gpu_read(gpu, domain->profile_read); in perf_reg_read()
49 const struct etnaviv_pm_domain *domain, in pipe_reg_read() argument
60 gpu_write(gpu, domain->profile_config, signal->data); in pipe_reg_read()
61 value += gpu_read(gpu, domain->profile_read); in pipe_reg_read()
73 const struct etnaviv_pm_domain *domain, in hi_total_cycle_read() argument
87 const struct etnaviv_pm_domain *domain, in hi_total_idle_cycle_read() argument
427 struct drm_etnaviv_pm_domain *domain) in etnaviv_pm_query_dom() argument
[all …]

12345678910>>...46