/linux/kernel/irq/ |
H A D | irqdomain.c | 28 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 …]
|
H A D | msi.c | 184 (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/drivers/vdpa/vdpa_user/ |
H A D | iova_domain.c | 20 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/drivers/scsi/elx/libefc/ |
H A D | efc_domain.c | 17 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 …]
|
H A D | efc_cmds.c | 132 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 …]
|
H A D | efc_nport.c | 45 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/drivers/pmdomain/imx/ |
H A D | imx93-pd.c | 37 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 …]
|
H A D | gpc.c | 131 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/drivers/iommu/intel/ |
H A D | cache.c | 43 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 …]
|
/linux/drivers/iommu/ |
H A D | ipmmu-vmsa.c | 211 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 …]
|
H A D | iommu-sva.c | 76 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 …]
|
H A D | exynos-iommu.c | 238 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/arch/arm/boot/dts/ti/keystone/ |
H A D | keystone-k2hk-clocks.dtsi | 59 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 …]
|
H A D | keystone-k2l-clocks.dtsi | 49 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 …]
|
H A D | keystone-clocks.dtsi | 166 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/drivers/dca/ |
H A D | dca-core.c | 45 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/include/trace/events/ |
H A D | kyber.h | 16 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/include/linux/ |
H A D | irqdomain.h | 373 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/drivers/soc/dove/ |
H A D | pmu.c | 143 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/drivers/irqchip/ |
H A D | irq-atmel-aic5.c | 87 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/arch/arm64/boot/dts/apple/ |
H A D | t8103-pmgr.dtsi | 13 #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 …]
|
H A D | t8112-pmgr.dtsi | 13 #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/drivers/soc/qcom/ |
H A D | qcom_pd_mapper.c | 25 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 …]
|
/linux/drivers/pmdomain/xilinx/ |
H A D | zynqmp-pm-domains.c | 73 static int zynqmp_gpd_power_on(struct generic_pm_domain *domain) in zynqmp_gpd_power_on() argument 75 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_on() 83 dev_err(&domain->dev, in zynqmp_gpd_power_on() 89 dev_dbg(&domain->dev, "set requirement to 0x%x for PM node id %d\n", in zynqmp_gpd_power_on() 104 static int zynqmp_gpd_power_off(struct generic_pm_domain *domain) in zynqmp_gpd_power_off() argument 106 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_off() 114 dev_dbg(&domain->dev, "PM node id %d is already released\n", in zynqmp_gpd_power_off() 119 list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { in zynqmp_gpd_power_off() 124 domain->name); in zynqmp_gpd_power_off() 133 dev_err(&domain->dev, in zynqmp_gpd_power_off() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_power.h | 187 enum intel_display_power_domain domain); 189 enum intel_display_power_domain domain); 192 enum intel_display_power_domain domain); 194 enum intel_display_power_domain domain, 200 enum intel_display_power_domain domain, 204 enum intel_display_power_domain domain, in intel_display_power_put_async() argument 207 __intel_display_power_put_async(i915, domain, wakeref, -1); in intel_display_power_put_async() 212 enum intel_display_power_domain domain, in intel_display_power_put_async_delay() argument 216 __intel_display_power_put_async(i915, domain, wakeref, delay_ms); in intel_display_power_put_async_delay() 220 enum intel_display_power_domain domain); [all …]
|