/Linux-v4.19/kernel/irq/ |
D | irqdomain.c | 28 static void irq_domain_check_hierarchy(struct irq_domain *domain); 136 struct irq_domain *domain; in __irq_domain_add() local 140 domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), in __irq_domain_add() 142 if (WARN_ON(!domain)) in __irq_domain_add() 151 domain->name = kstrdup(fwid->name, GFP_KERNEL); in __irq_domain_add() 152 if (!domain->name) { in __irq_domain_add() 153 kfree(domain); in __irq_domain_add() 156 domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; in __irq_domain_add() 159 domain->fwnode = fwnode; in __irq_domain_add() 160 domain->name = fwid->name; in __irq_domain_add() [all …]
|
D | msi.c | 79 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-v4.19/drivers/iommu/ |
D | ipmmu-vmsa.c | 263 static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_read_root() argument 266 return ipmmu_read(domain->mmu->root, in ipmmu_ctx_read_root() 267 domain->context_id * IM_CTX_SIZE + reg); in ipmmu_ctx_read_root() 270 static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_root() argument 273 ipmmu_write(domain->mmu->root, in ipmmu_ctx_write_root() 274 domain->context_id * IM_CTX_SIZE + reg, data); in ipmmu_ctx_write_root() 277 static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_all() argument 280 if (domain->mmu != domain->mmu->root) in ipmmu_ctx_write_all() 281 ipmmu_write(domain->mmu, in ipmmu_ctx_write_all() 282 domain->context_id * IM_CTX_SIZE + reg, data); in ipmmu_ctx_write_all() [all …]
|
D | iommu.c | 60 struct iommu_domain *domain; member 113 static int __iommu_attach_device(struct iommu_domain *domain, 115 static int __iommu_attach_group(struct iommu_domain *domain, 117 static void __iommu_detach_group(struct iommu_domain *domain, 524 struct iommu_domain *domain = group->default_domain; in iommu_group_create_direct_mappings() local 530 if (!domain || domain->type != IOMMU_DOMAIN_DMA) in iommu_group_create_direct_mappings() 533 BUG_ON(!domain->pgsize_bitmap); in iommu_group_create_direct_mappings() 535 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_group_create_direct_mappings() 544 if (domain->ops->apply_resv_region) in iommu_group_create_direct_mappings() 545 domain->ops->apply_resv_region(dev, domain, entry); in iommu_group_create_direct_mappings() [all …]
|
D | exynos-iommu.c | 239 struct iommu_domain *domain; /* domain this device is attached */ member 255 struct iommu_domain domain; /* generic domain data structure */ member 275 struct exynos_iommu_domain *domain; /* domain we belong to */ member 286 return container_of(dom, struct exynos_iommu_domain, domain); in to_exynos_domain() 446 if (data->domain) in exynos_sysmmu_irq() 447 ret = report_iommu_fault(&data->domain->domain, in exynos_sysmmu_irq() 681 if (data->domain) { in exynos_sysmmu_suspend() 699 if (data->domain) { in exynos_sysmmu_resume() 740 struct exynos_iommu_domain *domain; in exynos_iommu_domain_alloc() local 747 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in exynos_iommu_domain_alloc() [all …]
|
D | amd_iommu.c | 114 static void update_domain(struct protection_domain *domain); 115 static int protection_domain_init(struct protection_domain *domain); 124 struct protection_domain domain; member 195 return container_of(dom, struct protection_domain, domain); in to_pdomain() 198 static struct dma_ops_domain* to_dma_ops_domain(struct protection_domain *domain) in to_dma_ops_domain() argument 200 BUG_ON(domain->flags != PD_DMA_OPS_MASK); in to_dma_ops_domain() 201 return container_of(domain, struct dma_ops_domain, domain); in to_dma_ops_domain() 489 if (dev_data->domain) in iommu_uninit_device() 1236 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages() argument 1243 build_inv_iommu_pages(&cmd, address, size, domain->id, pde); in __domain_flush_pages() [all …]
|
D | intel-iommu.c | 379 #define for_each_domain_iommu(idx, domain) \ argument 381 if (domain->iommu_refcnt[idx]) 410 static void domain_exit(struct dmar_domain *domain); 411 static void domain_remove_dev_info(struct dmar_domain *domain); 412 static void dmar_remove_one_dev_info(struct dmar_domain *domain, 417 static int domain_detach_iommu(struct dmar_domain *domain, 518 return container_of(dom, struct dmar_domain, domain); in to_dmar_domain() 583 struct dmar_domain *domain) in set_iommu_domain() argument 597 domains[did & 0xff] = domain; in set_iommu_domain() 636 static inline int domain_type_is_vm(struct dmar_domain *domain) in domain_type_is_vm() argument [all …]
|
D | s390-iommu.c | 25 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-v4.19/drivers/soc/imx/ |
D | gpcv2.c | 75 struct imx7_pgc_domain *domain = container_of(genpd, in imx7_gpc_pu_pgc_sw_pxx_req() local 81 const bool has_regulator = !IS_ERR(domain->regulator); in imx7_gpc_pu_pgc_sw_pxx_req() 85 regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, in imx7_gpc_pu_pgc_sw_pxx_req() 86 domain->bits.map, domain->bits.map); in imx7_gpc_pu_pgc_sw_pxx_req() 89 ret = regulator_enable(domain->regulator); in imx7_gpc_pu_pgc_sw_pxx_req() 91 dev_err(domain->dev, "failed to enable regulator\n"); in imx7_gpc_pu_pgc_sw_pxx_req() 97 regmap_update_bits(domain->regmap, GPC_PGC_CTRL(domain->pgc), in imx7_gpc_pu_pgc_sw_pxx_req() 100 regmap_update_bits(domain->regmap, offset, in imx7_gpc_pu_pgc_sw_pxx_req() 101 domain->bits.pxx, domain->bits.pxx); in imx7_gpc_pu_pgc_sw_pxx_req() 111 regmap_read(domain->regmap, offset, &pxx_req); in imx7_gpc_pu_pgc_sw_pxx_req() [all …]
|
D | gpc.c | 135 static int imx_pgc_get_clocks(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_get_clocks() argument 148 domain->clk[i] = clk; in imx_pgc_get_clocks() 150 domain->num_clks = i; in imx_pgc_get_clocks() 156 clk_put(domain->clk[i]); in imx_pgc_get_clocks() 161 static void imx_pgc_put_clocks(struct imx_pm_domain *domain) in imx_pgc_put_clocks() argument 165 for (i = domain->num_clks - 1; i >= 0; i--) in imx_pgc_put_clocks() 166 clk_put(domain->clk[i]); in imx_pgc_put_clocks() 169 static int imx_pgc_parse_dt(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_parse_dt() argument 172 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt() 173 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt() [all …]
|
/Linux-v4.19/include/linux/ |
D | iommu.h | 196 int (*attach_dev)(struct iommu_domain *domain, struct device *dev); 197 void (*detach_dev)(struct iommu_domain *domain, struct device *dev); 198 int (*map)(struct iommu_domain *domain, unsigned long iova, 200 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova, 202 void (*flush_iotlb_all)(struct iommu_domain *domain); 203 void (*iotlb_range_add)(struct iommu_domain *domain, 205 void (*iotlb_sync)(struct iommu_domain *domain); 206 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova); 210 int (*domain_get_attr)(struct iommu_domain *domain, 212 int (*domain_set_attr)(struct iommu_domain *domain, [all …]
|
D | irqdomain.h | 282 extern void irq_domain_update_bus_token(struct irq_domain *domain, 366 extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq, 368 extern void irq_domain_associate_many(struct irq_domain *domain, 371 extern void irq_domain_disassociate(struct irq_domain *domain, 389 static inline unsigned int irq_linear_revmap(struct irq_domain *domain, in irq_linear_revmap() argument 392 return hwirq < domain->revmap_size ? domain->linear_revmap[hwirq] : 0; in irq_linear_revmap() 397 extern int irq_create_strict_mappings(struct irq_domain *domain, 421 int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest); 425 extern struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, 427 extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
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 …]
|
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 …]
|
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-v4.19/drivers/dca/ |
D | dca-core.c | 60 struct dca_domain *domain; in dca_allocate_domain() local 62 domain = kzalloc(sizeof(*domain), GFP_NOWAIT); in dca_allocate_domain() 63 if (!domain) in dca_allocate_domain() 66 INIT_LIST_HEAD(&domain->dca_providers); in dca_allocate_domain() 67 domain->pci_rc = rc; in dca_allocate_domain() 69 return domain; in dca_allocate_domain() 72 static void dca_free_domain(struct dca_domain *domain) in dca_free_domain() argument 74 list_del(&domain->node); in dca_free_domain() 75 kfree(domain); in dca_free_domain() 97 struct dca_domain *domain; in unregister_dca_providers() local [all …]
|
/Linux-v4.19/drivers/soc/dove/ |
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-v4.19/drivers/irqchip/ |
D | irq-atmel-aic5.c | 88 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-v4.19/Documentation/devicetree/bindings/power/ |
D | power_domain.txt | 7 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-v4.19/drivers/firmware/arm_scmi/ |
D | perf.c | 54 __le32 domain; member 59 __le32 domain; member 70 __le32 domain; member 75 __le32 domain; member 141 scmi_perf_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_domain_attributes_get() argument 149 SCMI_PROTOCOL_PERF, sizeof(domain), in scmi_perf_domain_attributes_get() 154 *(__le32 *)t->tx.buf = cpu_to_le32(domain); in scmi_perf_domain_attributes_get() 192 scmi_perf_describe_levels_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_describe_levels_get() argument 212 dom_info->domain = cpu_to_le32(domain); in scmi_perf_describe_levels_get() 252 static int scmi_perf_limits_set(const struct scmi_handle *handle, u32 domain, in scmi_perf_limits_set() argument [all …]
|
/Linux-v4.19/drivers/vfio/ |
D | vfio_iommu_type1.c | 72 struct iommu_domain *domain; member 665 static long vfio_sync_unpin(struct vfio_dma *dma, struct vfio_domain *domain, in vfio_sync_unpin() argument 671 iommu_tlb_sync(domain->domain); in vfio_sync_unpin() 697 static size_t unmap_unpin_fast(struct vfio_domain *domain, in unmap_unpin_fast() argument 707 unmapped = iommu_unmap_fast(domain->domain, *iova, len); in unmap_unpin_fast() 712 iommu_tlb_range_add(domain->domain, *iova, unmapped); in unmap_unpin_fast() 728 *unlocked += vfio_sync_unpin(dma, domain, in unmap_unpin_fast() 736 static size_t unmap_unpin_slow(struct vfio_domain *domain, in unmap_unpin_slow() argument 741 size_t unmapped = iommu_unmap(domain->domain, *iova, len); in unmap_unpin_slow() 758 struct vfio_domain *domain, *d; in vfio_unmap_unpin() local [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/venus/ |
D | hfi_parser.c | 25 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-v4.19/Documentation/devicetree/bindings/soc/rockchip/ |
D | power_domain.txt | 6 Required properties for power domain controller: 17 - #power-domain-cells: Number of cells in a power-domain specifier. 22 Required properties for power domain sub nodes: 23 - reg: index of the power domain, should use macros in: 24 "include/dt-bindings/power/px30-power.h" - for PX30 type power domain. 25 "include/dt-bindings/power/rk3036-power.h" - for RK3036 type power domain. 26 "include/dt-bindings/power/rk3128-power.h" - for RK3128 type power domain. 27 "include/dt-bindings/power/rk3228-power.h" - for RK3228 type power domain. 28 "include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain. 29 "include/dt-bindings/power/rk3328-power.h" - for RK3328 type power domain. [all …]
|
/Linux-v4.19/drivers/gpu/drm/etnaviv/ |
D | etnaviv_perfmon.c | 18 const struct etnaviv_pm_domain *domain, 39 const struct etnaviv_pm_domain *domain, in simple_reg_read() argument 46 const struct etnaviv_pm_domain *domain, in perf_reg_read() argument 49 gpu_write(gpu, domain->profile_config, signal->data); in perf_reg_read() 51 return gpu_read(gpu, domain->profile_read); in perf_reg_read() 55 const struct etnaviv_pm_domain *domain, in pipe_reg_read() argument 66 gpu_write(gpu, domain->profile_config, signal->data); in pipe_reg_read() 67 value += gpu_read(gpu, domain->profile_read); in pipe_reg_read() 405 struct drm_etnaviv_pm_domain *domain) in etnaviv_pm_query_dom() argument 407 const struct etnaviv_pm_domain_meta *meta = &doms_meta[domain->pipe]; in etnaviv_pm_query_dom() [all …]
|
/Linux-v4.19/kernel/ |
D | async.c | 78 struct async_domain *domain; member 85 static async_cookie_t lowest_in_progress(struct async_domain *domain) in lowest_in_progress() argument 93 if (domain) { in lowest_in_progress() 94 if (!list_empty(&domain->pending)) in lowest_in_progress() 95 first = list_first_entry(&domain->pending, in lowest_in_progress() 152 static async_cookie_t __async_schedule(async_func_t func, void *data, struct async_domain *domain) in __async_schedule() argument 180 entry->domain = domain; in __async_schedule() 187 list_add_tail(&entry->domain_list, &domain->pending); in __async_schedule() 188 if (domain->registered) in __async_schedule() 230 struct async_domain *domain) in async_schedule_domain() argument [all …]
|