Home
last modified time | relevance | path

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

12345678910>>...59

/linux-6.12.1/kernel/irq/
Dirqdomain.c28 static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base,
31 static void irq_domain_check_hierarchy(struct irq_domain *domain);
32 static void irq_domain_free_one_irq(struct irq_domain *domain, unsigned int virq);
131 static int alloc_name(struct irq_domain *domain, char *base, enum irq_domain_bus_token bus_token) in alloc_name() argument
134 domain->name = kasprintf(GFP_KERNEL, "%s", base); in alloc_name()
136 domain->name = kasprintf(GFP_KERNEL, "%s-%d", base, bus_token); in alloc_name()
137 if (!domain->name) in alloc_name()
140 domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; in alloc_name()
144 static int alloc_fwnode_name(struct irq_domain *domain, const struct fwnode_handle *fwnode, in alloc_fwnode_name() argument
163 domain->name = strreplace(name, '/', ':'); in alloc_fwnode_name()
[all …]
Dmsi.c184 (dev->msi.domain && in msi_ctrl_valid()
185 !dev->msi.data->__domains[ctrl->domid].domain))) in msi_ctrl_valid()
335 if (dev->msi.domain && !irq_domain_is_msi_parent(dev->msi.domain)) in msi_setup_device_data()
336 md->__domains[MSI_DEFAULT_DOMAIN].domain = dev->msi.domain; in msi_setup_device_data()
602 struct irq_domain *domain; in msi_get_device_domain() local
609 domain = dev->msi.data->__domains[domid].domain; in msi_get_device_domain()
610 if (!domain) in msi_get_device_domain()
613 if (WARN_ON_ONCE(irq_domain_is_msi_parent(domain))) in msi_get_device_domain()
616 return domain; in msi_get_device_domain()
622 struct irq_domain *domain; in msi_domain_get_hwsize() local
[all …]
/linux-6.12.1/drivers/vdpa/vdpa_user/
Diova_domain.c20 static int vduse_iotlb_add_range(struct vduse_iova_domain *domain, in vduse_iotlb_add_range() argument
35 ret = vhost_iotlb_add_range_ctx(domain->iotlb, start, last, in vduse_iotlb_add_range()
45 static void vduse_iotlb_del_range(struct vduse_iova_domain *domain, in vduse_iotlb_del_range() argument
51 while ((map = vhost_iotlb_itree_first(domain->iotlb, start, last))) { in vduse_iotlb_del_range()
55 vhost_iotlb_map_free(domain->iotlb, map); in vduse_iotlb_del_range()
59 int vduse_domain_set_map(struct vduse_iova_domain *domain, in vduse_domain_set_map() argument
67 spin_lock(&domain->iotlb_lock); in vduse_domain_set_map()
68 vduse_iotlb_del_range(domain, start, last); in vduse_domain_set_map()
73 ret = vduse_iotlb_add_range(domain, map->start, map->last, in vduse_domain_set_map()
80 spin_unlock(&domain->iotlb_lock); in vduse_domain_set_map()
[all …]
/linux-6.12.1/drivers/scsi/elx/libefc/
Defc_domain.c17 struct efc_domain *domain = NULL; in efc_domain_cb() local
22 domain = data; in efc_domain_cb()
37 domain = efc->domain; in efc_domain_cb()
38 if (!domain) { in efc_domain_cb()
39 domain = efc_domain_alloc(efc, fcf_wwn); in efc_domain_cb()
40 if (!domain) { in efc_domain_cb()
45 efc_sm_transition(&domain->drvsm, __efc_domain_init, in efc_domain_cb()
48 efc_domain_post_event(domain, EFC_EVT_DOMAIN_FOUND, drec); in efc_domain_cb()
53 domain_trace(domain, "EFC_HW_DOMAIN_LOST:\n"); in efc_domain_cb()
55 efc_domain_post_event(domain, EFC_EVT_DOMAIN_LOST, NULL); in efc_domain_cb()
[all …]
Defc_cmds.c132 nport->indicator, nport->domain->indicator); in efc_nport_alloc_init_vpi()
207 struct efc_domain *domain, u8 *wwpn) in efc_cmd_nport_alloc() argument
227 if (domain) { in efc_cmd_nport_alloc()
278 nport->domain->indicator, false); in efc_cmd_nport_attach()
317 efc_domain_get_mbox_status(struct efc_domain *domain, u8 *mqe, int status) in efc_domain_get_mbox_status() argument
319 struct efc *efc = domain->efc; in efc_domain_get_mbox_status()
325 domain->indicator, status, in efc_domain_get_mbox_status()
334 efc_domain_free_resources(struct efc_domain *domain, int evt, void *data) in efc_domain_free_resources() argument
336 struct efc *efc = domain->efc; in efc_domain_free_resources()
339 if (domain->dma.virt) { in efc_domain_free_resources()
[all …]
/linux-6.12.1/drivers/pmdomain/imx/
Dimx93-pd.c37 struct imx93_power_domain *domain = to_imx93_pd(genpd); in imx93_pd_on() local
38 void __iomem *addr = domain->addr; in imx93_pd_on()
42 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx93_pd_on()
44 dev_err(domain->dev, "failed to enable clocks for domain: %s\n", genpd->name); in imx93_pd_on()
55 dev_err(domain->dev, "pd_on timeout: name: %s, stat: %x\n", genpd->name, val); in imx93_pd_on()
64 struct imx93_power_domain *domain = to_imx93_pd(genpd); in imx93_pd_off() local
65 void __iomem *addr = domain->addr; in imx93_pd_off()
77 dev_err(domain->dev, "pd_off timeout: name: %s, stat: %x\n", genpd->name, val); in imx93_pd_off()
81 clk_bulk_disable_unprepare(domain->num_clks, domain->clks); in imx93_pd_off()
88 struct imx93_power_domain *domain = platform_get_drvdata(pdev); in imx93_pd_remove() local
[all …]
Dgpcv2.c318 struct imx_pgc_domain *domain = to_imx_pgc_domain(genpd); in imx_pgc_power_up() local
322 ret = pm_runtime_get_sync(domain->dev); in imx_pgc_power_up()
324 pm_runtime_put_noidle(domain->dev); in imx_pgc_power_up()
328 if (!IS_ERR(domain->regulator)) { in imx_pgc_power_up()
329 ret = regulator_enable(domain->regulator); in imx_pgc_power_up()
331 dev_err(domain->dev, in imx_pgc_power_up()
338 reset_control_assert(domain->reset); in imx_pgc_power_up()
341 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx_pgc_power_up()
343 dev_err(domain->dev, "failed to enable reset clocks\n"); in imx_pgc_power_up()
350 if (domain->bits.pxx) { in imx_pgc_power_up()
[all …]
Dgpc.c131 static int imx_pgc_get_clocks(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_get_clocks() argument
144 domain->clk[i] = clk; in imx_pgc_get_clocks()
146 domain->num_clks = i; in imx_pgc_get_clocks()
152 clk_put(domain->clk[i]); in imx_pgc_get_clocks()
157 static void imx_pgc_put_clocks(struct imx_pm_domain *domain) in imx_pgc_put_clocks() argument
161 for (i = domain->num_clks - 1; i >= 0; i--) in imx_pgc_put_clocks()
162 clk_put(domain->clk[i]); in imx_pgc_put_clocks()
165 static int imx_pgc_parse_dt(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_parse_dt() argument
168 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt()
169 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt()
[all …]
/linux-6.12.1/drivers/iommu/
Dipmmu-vmsa.c211 static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_read_root() argument
214 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root()
217 static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_root() argument
220 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root()
223 static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_all() argument
226 if (domain->mmu != domain->mmu->root) in ipmmu_ctx_write_all()
227 ipmmu_ctx_write(domain->mmu, domain->context_id, reg, data); in ipmmu_ctx_write_all()
229 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_all()
254 static void ipmmu_tlb_sync(struct ipmmu_vmsa_domain *domain) in ipmmu_tlb_sync() argument
260 false, domain, IMCTR)) in ipmmu_tlb_sync()
[all …]
Diommu-sva.c76 struct iommu_domain *domain; in iommu_sva_bind_device() local
96 if (attach_handle->domain->mm != mm) { in iommu_sva_bind_device()
117 list_for_each_entry(domain, &mm->iommu_mm->sva_domains, next) { in iommu_sva_bind_device()
118 ret = iommu_attach_device_pasid(domain, dev, iommu_mm->pasid, in iommu_sva_bind_device()
121 domain->users++; in iommu_sva_bind_device()
127 domain = iommu_sva_domain_alloc(dev, mm); in iommu_sva_bind_device()
128 if (IS_ERR(domain)) { in iommu_sva_bind_device()
129 ret = PTR_ERR(domain); in iommu_sva_bind_device()
133 ret = iommu_attach_device_pasid(domain, dev, iommu_mm->pasid, in iommu_sva_bind_device()
137 domain->users = 1; in iommu_sva_bind_device()
[all …]
Dexynos-iommu.c238 struct iommu_domain *domain; /* domain this device is attached */ member
254 struct iommu_domain domain; /* generic domain data structure */ member
297 struct exynos_iommu_domain *domain; /* domain we belong to */ member
424 return container_of(dom, struct exynos_iommu_domain, domain); in to_exynos_domain()
586 if (data->domain) { in exynos_sysmmu_irq()
587 ret = report_iommu_fault(&data->domain->domain, data->master, in exynos_sysmmu_irq()
835 if (&data->domain->domain != &exynos_identity_domain) { in exynos_sysmmu_suspend()
853 if (&data->domain->domain != &exynos_identity_domain) { in exynos_sysmmu_resume()
894 struct exynos_iommu_domain *domain; in exynos_iommu_domain_alloc_paging() local
901 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in exynos_iommu_domain_alloc_paging()
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_force_wake.c24 static void domain_init(struct xe_force_wake_domain *domain, in domain_init() argument
28 domain->id = id; in domain_init()
29 domain->reg_ctl = reg; in domain_init()
30 domain->reg_ack = ack; in domain_init()
31 domain->val = FORCEWAKE_MT(FORCEWAKE_KERNEL); in domain_init()
32 domain->mask = FORCEWAKE_MT_MASK(FORCEWAKE_KERNEL); in domain_init()
98 static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_ctl() argument
103 xe_mmio_write32(gt, domain->reg_ctl, domain->mask | (wake ? domain->val : 0)); in __domain_ctl()
106 static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_wait() argument
114 ret = xe_mmio_wait32(gt, domain->reg_ack, domain->val, wake ? domain->val : 0, in __domain_wait()
[all …]
/linux-6.12.1/drivers/iommu/intel/
Dcache.c43 static int cache_tag_assign(struct dmar_domain *domain, u16 did, in cache_tag_assign() argument
67 spin_lock_irqsave(&domain->cache_lock, flags); in cache_tag_assign()
68 list_for_each_entry(temp, &domain->cache_tags, node) { in cache_tag_assign()
71 spin_unlock_irqrestore(&domain->cache_lock, flags); in cache_tag_assign()
77 list_add_tail(&tag->node, &domain->cache_tags); in cache_tag_assign()
78 spin_unlock_irqrestore(&domain->cache_lock, flags); in cache_tag_assign()
85 static void cache_tag_unassign(struct dmar_domain *domain, u16 did, in cache_tag_unassign() argument
94 spin_lock_irqsave(&domain->cache_lock, flags); in cache_tag_unassign()
95 list_for_each_entry(tag, &domain->cache_tags, node) { in cache_tag_unassign()
105 spin_unlock_irqrestore(&domain->cache_lock, flags); in cache_tag_unassign()
[all …]
Dnested.c21 static int intel_nested_attach_dev(struct iommu_domain *domain, in intel_nested_attach_dev() argument
25 struct dmar_domain *dmar_domain = to_dmar_domain(domain); in intel_nested_attach_dev()
30 if (info->domain) in intel_nested_attach_dev()
43 ret = prepare_domain_attach_device(&dmar_domain->s2_domain->domain, dev); in intel_nested_attach_dev()
64 info->domain = dmar_domain; in intel_nested_attach_dev()
78 static void intel_nested_domain_free(struct iommu_domain *domain) in intel_nested_domain_free() argument
80 struct dmar_domain *dmar_domain = to_dmar_domain(domain); in intel_nested_domain_free()
90 static int intel_nested_cache_invalidate_user(struct iommu_domain *domain, in intel_nested_cache_invalidate_user() argument
93 struct dmar_domain *dmar_domain = to_dmar_domain(domain); in intel_nested_cache_invalidate_user()
144 struct dmar_domain *domain; in intel_nested_domain_alloc() local
[all …]
Diommu.c203 static void intel_iommu_domain_free(struct iommu_domain *domain);
287 static int domain_pfn_supported(struct dmar_domain *domain, unsigned long pfn) in domain_pfn_supported() argument
289 int addr_width = agaw_to_width(domain->agaw) - VTD_PAGE_SHIFT; in domain_pfn_supported()
355 static void domain_update_iommu_coherency(struct dmar_domain *domain) in domain_update_iommu_coherency() argument
363 domain->iommu_coherency = true; in domain_update_iommu_coherency()
364 xa_for_each(&domain->iommu_array, i, info) { in domain_update_iommu_coherency()
367 domain->iommu_coherency = false; in domain_update_iommu_coherency()
378 domain->iommu_coherency = false; in domain_update_iommu_coherency()
385 static int domain_update_iommu_superpage(struct dmar_domain *domain, in domain_update_iommu_superpage() argument
399 if (domain && domain->use_first_level) { in domain_update_iommu_superpage()
[all …]
/linux-6.12.1/arch/arm/boot/dts/ti/keystone/
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 …]
/linux-6.12.1/drivers/dca/
Ddca-core.c45 struct dca_domain *domain; in dca_allocate_domain() local
47 domain = kzalloc(sizeof(*domain), GFP_NOWAIT); in dca_allocate_domain()
48 if (!domain) in dca_allocate_domain()
51 INIT_LIST_HEAD(&domain->dca_providers); in dca_allocate_domain()
52 domain->pci_rc = rc; in dca_allocate_domain()
54 return domain; in dca_allocate_domain()
57 static void dca_free_domain(struct dca_domain *domain) in dca_free_domain() argument
59 list_del(&domain->node); in dca_free_domain()
60 kfree(domain); in dca_free_domain()
82 struct dca_domain *domain; in unregister_dca_providers() local
[all …]
/linux-6.12.1/include/trace/events/
Dkyber.h16 TP_PROTO(dev_t dev, const char *domain, const char *type,
20 TP_ARGS(dev, domain, type, percentile, numerator, denominator, samples),
24 __array( char, domain, DOMAIN_LEN )
34 strscpy(__entry->domain, domain, sizeof(__entry->domain));
43 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain,
50 TP_PROTO(dev_t dev, const char *domain, unsigned int depth),
52 TP_ARGS(dev, domain, depth),
56 __array( char, domain, DOMAIN_LEN )
62 strscpy(__entry->domain, domain, sizeof(__entry->domain));
67 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain,
[all …]
/linux-6.12.1/include/linux/
Dirqdomain.h373 extern void irq_domain_update_bus_token(struct irq_domain *domain,
512 extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq,
514 extern void irq_domain_associate_many(struct irq_domain *domain,
530 extern struct irq_desc *__irq_resolve_mapping(struct irq_domain *domain,
534 static inline struct irq_desc *irq_resolve_mapping(struct irq_domain *domain, in irq_resolve_mapping() argument
537 return __irq_resolve_mapping(domain, hwirq, NULL); in irq_resolve_mapping()
545 static inline unsigned int irq_find_mapping(struct irq_domain *domain, in irq_find_mapping() argument
550 if (__irq_resolve_mapping(domain, hwirq, &irq)) in irq_find_mapping()
556 static inline unsigned int irq_linear_revmap(struct irq_domain *domain, in irq_linear_revmap() argument
559 return irq_find_mapping(domain, hwirq); in irq_linear_revmap()
[all …]
/linux-6.12.1/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-6.12.1/drivers/irqchip/
Dirq-atmel-aic5.c87 struct irq_domain *domain = d->domain; in aic5_mask() local
88 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_mask()
104 struct irq_domain *domain = d->domain; in aic5_unmask() local
105 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_unmask()
121 struct irq_domain *domain = d->domain; in aic5_retrigger() local
122 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_retrigger()
135 struct irq_domain *domain = d->domain; in aic5_set_type() local
136 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_set_type()
156 struct irq_domain *domain = d->domain; in aic5_suspend() local
157 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend()
[all …]
/linux-6.12.1/arch/arm64/boot/dts/apple/
Dt8103-pmgr.dtsi13 #power-domain-cells = <0>;
22 #power-domain-cells = <0>;
31 #power-domain-cells = <0>;
40 #power-domain-cells = <0>;
48 #power-domain-cells = <0>;
56 #power-domain-cells = <0>;
64 #power-domain-cells = <0>;
72 #power-domain-cells = <0>;
81 #power-domain-cells = <0>;
90 #power-domain-cells = <0>;
[all …]
Dt8112-pmgr.dtsi13 #power-domain-cells = <0>;
22 #power-domain-cells = <0>;
31 #power-domain-cells = <0>;
40 #power-domain-cells = <0>;
48 #power-domain-cells = <0>;
56 #power-domain-cells = <0>;
65 #power-domain-cells = <0>;
74 #power-domain-cells = <0>;
83 #power-domain-cells = <0>;
92 #power-domain-cells = <0>;
[all …]
/linux-6.12.1/drivers/soc/qcom/
Dqcom_pd_mapper.c25 const char *domain; member
71 struct qcom_pdm_domain *domain; in qcom_pdm_add_service_domain() local
75 list_for_each_entry(domain, &service->domains, list) { in qcom_pdm_add_service_domain()
76 if (!strcmp(domain->name, domain_name)) in qcom_pdm_add_service_domain()
90 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in qcom_pdm_add_service_domain()
91 if (!domain) { in qcom_pdm_add_service_domain()
100 domain->name = domain_name; in qcom_pdm_add_service_domain()
101 domain->instance_id = instance_id; in qcom_pdm_add_service_domain()
102 list_add_tail(&domain->list, &service->domains); in qcom_pdm_add_service_domain()
108 const struct qcom_pdm_domain_data *domain) in qcom_pdm_add_domain() argument
[all …]

12345678910>>...59