Home
last modified time | relevance | path

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

12345678910>>...51

/Linux-v5.15/kernel/irq/
Dirqdomain.c28 static void irq_domain_check_hierarchy(struct irq_domain *domain);
145 struct irq_domain *domain; in __irq_domain_add() local
153 domain = kzalloc_node(struct_size(domain, revmap, size), in __irq_domain_add()
155 if (!domain) in __irq_domain_add()
164 domain->fwnode = fwnode; in __irq_domain_add()
165 domain->name = kstrdup(fwid->name, GFP_KERNEL); in __irq_domain_add()
166 if (!domain->name) { in __irq_domain_add()
167 kfree(domain); in __irq_domain_add()
170 domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; in __irq_domain_add()
173 domain->fwnode = fwnode; in __irq_domain_add()
[all …]
Dmsi.c215 static void msi_check_level(struct irq_domain *domain, struct msi_msg *msg) in msi_check_level() argument
217 struct msi_domain_info *info = domain->host_data; in msi_check_level()
249 msi_check_level(irq_data->domain, msg); in msi_domain_set_affinity()
256 static int msi_domain_activate(struct irq_domain *domain, in msi_domain_activate() argument
262 msi_check_level(irq_data->domain, msg); in msi_domain_activate()
267 static void msi_domain_deactivate(struct irq_domain *domain, in msi_domain_deactivate() argument
276 static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq, in msi_domain_alloc() argument
279 struct msi_domain_info *info = domain->host_data; in msi_domain_alloc()
284 if (irq_find_mapping(domain, hwirq) > 0) in msi_domain_alloc()
287 if (domain->parent) { in msi_domain_alloc()
[all …]
Dirq_sim.c18 struct irq_domain *domain; member
112 irqnum = irq_find_mapping(work_ctx->domain, offset); in irq_sim_handle_irq()
117 static int irq_sim_domain_map(struct irq_domain *domain, in irq_sim_domain_map() argument
120 struct irq_sim_work_ctx *work_ctx = domain->host_data; in irq_sim_domain_map()
136 static void irq_sim_domain_unmap(struct irq_domain *domain, unsigned int virq) in irq_sim_domain_unmap() argument
141 irqd = irq_domain_get_irq_data(domain, virq); in irq_sim_domain_unmap()
177 work_ctx->domain = irq_domain_create_linear(fwnode, num_irqs, in irq_domain_create_sim()
180 if (!work_ctx->domain) in irq_domain_create_sim()
186 return work_ctx->domain; in irq_domain_create_sim()
203 void irq_domain_remove_sim(struct irq_domain *domain) in irq_domain_remove_sim() argument
[all …]
/Linux-v5.15/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-v5.15/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()
277 nport->domain->indicator, false); in efc_cmd_nport_attach()
312 efc_domain_get_mbox_status(struct efc_domain *domain, u8 *mqe, int status) in efc_domain_get_mbox_status() argument
314 struct efc *efc = domain->efc; in efc_domain_get_mbox_status()
320 domain->indicator, status, in efc_domain_get_mbox_status()
329 efc_domain_free_resources(struct efc_domain *domain, int evt, void *data) in efc_domain_free_resources() argument
331 struct efc *efc = domain->efc; in efc_domain_free_resources()
334 if (domain->dma.virt) { in efc_domain_free_resources()
[all …]
Defc_nport.c45 efc_nport_find_wwn(struct efc_domain *domain, uint64_t wwnn, uint64_t wwpn) in efc_nport_find_wwn() argument
50 list_for_each_entry(nport, &domain->nport_list, list_entry) { in efc_nport_find_wwn()
66 efc_nport_alloc(struct efc_domain *domain, uint64_t wwpn, uint64_t wwnn, in efc_nport_alloc() argument
71 if (domain->efc->enable_ini) in efc_nport_alloc()
76 nport = efc_nport_find_wwn(domain, wwnn, wwpn); in efc_nport_alloc()
78 efc_log_err(domain->efc, in efc_nport_alloc()
93 nport->efc = domain->efc; in efc_nport_alloc()
95 nport->domain = domain; in efc_nport_alloc()
97 nport->instance_index = domain->nport_count++; in efc_nport_alloc()
105 memcpy(nport->service_params, domain->service_params, in efc_nport_alloc()
[all …]
/Linux-v5.15/drivers/soc/imx/
Dgpcv2.c222 struct imx_pgc_domain *domain = to_imx_pgc_domain(genpd); in imx_pgc_power_up() local
226 ret = pm_runtime_get_sync(domain->dev); in imx_pgc_power_up()
228 pm_runtime_put_noidle(domain->dev); in imx_pgc_power_up()
232 if (!IS_ERR(domain->regulator)) { in imx_pgc_power_up()
233 ret = regulator_enable(domain->regulator); in imx_pgc_power_up()
235 dev_err(domain->dev, "failed to enable regulator\n"); in imx_pgc_power_up()
241 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx_pgc_power_up()
243 dev_err(domain->dev, "failed to enable reset clocks\n"); in imx_pgc_power_up()
247 if (domain->bits.pxx) { in imx_pgc_power_up()
249 regmap_update_bits(domain->regmap, GPC_PU_PGC_SW_PUP_REQ, in imx_pgc_power_up()
[all …]
Dgpc.c130 static int imx_pgc_get_clocks(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_get_clocks() argument
143 domain->clk[i] = clk; in imx_pgc_get_clocks()
145 domain->num_clks = i; in imx_pgc_get_clocks()
151 clk_put(domain->clk[i]); in imx_pgc_get_clocks()
156 static void imx_pgc_put_clocks(struct imx_pm_domain *domain) in imx_pgc_put_clocks() argument
160 for (i = domain->num_clks - 1; i >= 0; i--) in imx_pgc_put_clocks()
161 clk_put(domain->clk[i]); in imx_pgc_put_clocks()
164 static int imx_pgc_parse_dt(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_parse_dt() argument
167 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt()
168 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt()
[all …]
/Linux-v5.15/drivers/iommu/
Dipmmu-vmsa.c208 static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_read_root() argument
211 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root()
214 static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_root() argument
217 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root()
220 static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_all() argument
223 if (domain->mmu != domain->mmu->root) in ipmmu_ctx_write_all()
224 ipmmu_ctx_write(domain->mmu, domain->context_id, reg, data); in ipmmu_ctx_write_all()
226 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_all()
251 static void ipmmu_tlb_sync(struct ipmmu_vmsa_domain *domain) in ipmmu_tlb_sync() argument
255 while (ipmmu_ctx_read_root(domain, IMCTR) & IMCTR_FLUSH) { in ipmmu_tlb_sync()
[all …]
Dexynos-iommu.c234 struct iommu_domain *domain; /* domain this device is attached */ member
250 struct iommu_domain domain; /* generic domain data structure */ member
270 struct exynos_iommu_domain *domain; /* domain we belong to */ member
281 return container_of(dom, struct exynos_iommu_domain, domain); in to_exynos_domain()
441 if (data->domain) in exynos_sysmmu_irq()
442 ret = report_iommu_fault(&data->domain->domain, in exynos_sysmmu_irq()
671 if (data->domain) { in exynos_sysmmu_suspend()
689 if (data->domain) { in exynos_sysmmu_resume()
730 struct exynos_iommu_domain *domain; in exynos_iommu_domain_alloc() local
740 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in exynos_iommu_domain_alloc()
[all …]
Diommu.c48 struct iommu_domain *domain; member
80 static int __iommu_attach_device(struct iommu_domain *domain,
82 static int __iommu_attach_group(struct iommu_domain *domain,
84 static void __iommu_detach_group(struct iommu_domain *domain,
765 struct iommu_domain *domain = group->default_domain; in iommu_create_device_direct_mappings() local
771 if (!domain || !iommu_is_dma_domain(domain)) in iommu_create_device_direct_mappings()
774 BUG_ON(!domain->pgsize_bitmap); in iommu_create_device_direct_mappings()
776 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_create_device_direct_mappings()
786 if (domain->ops->apply_resv_region) in iommu_create_device_direct_mappings()
787 domain->ops->apply_resv_region(dev, domain, entry); in iommu_create_device_direct_mappings()
[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()
121 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device()
122 domain->geometry.aperture_end = zdev->end_dma; in s390_iommu_attach_device()
123 domain->geometry.force_aperture = true; in s390_iommu_attach_device()
[all …]
/Linux-v5.15/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.15/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.15/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 strlcpy(__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 strlcpy(__entry->domain, domain, sizeof(__entry->domain));
67 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain,
[all …]
/Linux-v5.15/include/linux/
Diommu.h99 static inline bool iommu_is_dma_domain(struct iommu_domain *domain) in iommu_is_dma_domain() argument
101 return domain->type & __IOMMU_DOMAIN_DMA_API; in iommu_is_dma_domain()
249 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
250 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
251 int (*map)(struct iommu_domain *domain, unsigned long iova,
253 int (*map_pages)(struct iommu_domain *domain, unsigned long iova,
256 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
258 size_t (*unmap_pages)(struct iommu_domain *domain, unsigned long iova,
261 void (*flush_iotlb_all)(struct iommu_domain *domain);
262 void (*iotlb_sync_map)(struct iommu_domain *domain, unsigned long iova,
[all …]
Dirqdomain.h296 extern void irq_domain_update_bus_token(struct irq_domain *domain,
387 extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq,
389 extern void irq_domain_associate_many(struct irq_domain *domain,
405 extern struct irq_desc *__irq_resolve_mapping(struct irq_domain *domain,
409 static inline struct irq_desc *irq_resolve_mapping(struct irq_domain *domain, in irq_resolve_mapping() argument
412 return __irq_resolve_mapping(domain, hwirq, NULL); in irq_resolve_mapping()
420 static inline unsigned int irq_find_mapping(struct irq_domain *domain, in irq_find_mapping() argument
425 if (__irq_resolve_mapping(domain, hwirq, &irq)) in irq_find_mapping()
431 static inline unsigned int irq_linear_revmap(struct irq_domain *domain, in irq_linear_revmap() argument
434 return irq_find_mapping(domain, hwirq); in irq_linear_revmap()
[all …]
/Linux-v5.15/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.15/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.15/drivers/iommu/intel/
Diommu.c282 #define for_each_domain_iommu(idx, domain) \ argument
284 if (domain->iommu_refcnt[idx])
322 static void domain_exit(struct dmar_domain *domain);
323 static void domain_remove_dev_info(struct dmar_domain *domain);
326 static int intel_iommu_attach_device(struct iommu_domain *domain,
328 static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain,
470 struct dmar_domain *domain) in set_iommu_domain() argument
484 domains[did & 0xff] = domain; in set_iommu_domain()
523 static inline int domain_type_is_si(struct dmar_domain *domain) in domain_type_is_si() argument
525 return domain->flags & DOMAIN_FLAG_STATIC_IDENTITY; in domain_type_is_si()
[all …]
/Linux-v5.15/drivers/iommu/amd/
Diommu.c138 return container_of(dom, struct protection_domain, domain); in to_pdomain()
376 if (dev_data->domain) in amd_iommu_uninit_device()
1238 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages() argument
1245 build_inv_iommu_pages(&cmd, address, size, domain->id, pde); in __domain_flush_pages()
1248 if (!domain->dev_iommu[i]) in __domain_flush_pages()
1258 list_for_each_entry(dev_data, &domain->dev_list, list) { in __domain_flush_pages()
1269 static void domain_flush_pages(struct protection_domain *domain, in domain_flush_pages() argument
1273 __domain_flush_pages(domain, address, size, pde); in domain_flush_pages()
1306 __domain_flush_pages(domain, address, flush_size, pde); in domain_flush_pages()
1313 void amd_iommu_domain_flush_tlb_pde(struct protection_domain *domain) in amd_iommu_domain_flush_tlb_pde() argument
[all …]
/Linux-v5.15/drivers/soc/xilinx/
Dzynqmp_pm_domains.c72 static int zynqmp_gpd_power_on(struct generic_pm_domain *domain) in zynqmp_gpd_power_on() argument
77 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_power_on()
84 __func__, domain->name, pd->node_id, ret); in zynqmp_gpd_power_on()
88 pr_debug("%s() Powered on %s domain\n", __func__, domain->name); in zynqmp_gpd_power_on()
101 static int zynqmp_gpd_power_off(struct generic_pm_domain *domain) in zynqmp_gpd_power_off() argument
109 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_power_off()
114 __func__, domain->name); in zynqmp_gpd_power_off()
118 list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { in zynqmp_gpd_power_off()
123 domain->name); in zynqmp_gpd_power_off()
137 __func__, domain->name, pd->node_id, ret); in zynqmp_gpd_power_off()
[all …]

12345678910>>...51