/kernel/linux/linux-5.10/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 (!domain) in __irq_domain_add() 151 domain->fwnode = fwnode; in __irq_domain_add() 152 domain->name = kstrdup(fwid->name, GFP_KERNEL); in __irq_domain_add() 153 if (!domain->name) { in __irq_domain_add() 154 kfree(domain); in __irq_domain_add() 157 domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; in __irq_domain_add() 160 domain->fwnode = fwnode; 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 …]
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | ipmmu-vmsa.c | 210 static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_read_root() argument 213 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root() 216 static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_root() argument 219 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root() 222 static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_all() argument 225 if (domain->mmu != domain->mmu->root) in ipmmu_ctx_write_all() 226 ipmmu_ctx_write(domain->mmu, domain->context_id, reg, data); in ipmmu_ctx_write_all() 228 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_all() 253 static void ipmmu_tlb_sync(struct ipmmu_vmsa_domain *domain) in ipmmu_tlb_sync() argument 257 while (ipmmu_ctx_read_root(domain, IMCTR) & IMCTR_FLUSH) { in ipmmu_tlb_sync() [all …]
|
D | exynos-iommu.c | 236 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 …]
|
D | iommu.c | 46 struct iommu_domain *domain; member 87 static int __iommu_attach_device(struct iommu_domain *domain, 89 static int __iommu_attach_group(struct iommu_domain *domain, 91 static void __iommu_detach_group(struct iommu_domain *domain, 723 struct iommu_domain *domain = group->default_domain; in iommu_create_device_direct_mappings() local 729 if (!domain || domain->type != IOMMU_DOMAIN_DMA) in iommu_create_device_direct_mappings() 732 BUG_ON(!domain->pgsize_bitmap); in iommu_create_device_direct_mappings() 734 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_create_device_direct_mappings() 743 if (domain->ops->apply_resv_region) in iommu_create_device_direct_mappings() 744 domain->ops->apply_resv_region(dev, domain, entry); in iommu_create_device_direct_mappings() [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 …]
|
/kernel/linux/linux-5.10/drivers/soc/imx/ |
D | gpcv2.c | 133 struct imx_pgc_domain *domain = container_of(genpd, in imx_gpc_pu_pgc_sw_pxx_req() local 139 const bool has_regulator = !IS_ERR(domain->regulator); in imx_gpc_pu_pgc_sw_pxx_req() 143 regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, in imx_gpc_pu_pgc_sw_pxx_req() 144 domain->bits.map, domain->bits.map); in imx_gpc_pu_pgc_sw_pxx_req() 147 ret = regulator_enable(domain->regulator); in imx_gpc_pu_pgc_sw_pxx_req() 149 dev_err(domain->dev, "failed to enable regulator\n"); in imx_gpc_pu_pgc_sw_pxx_req() 155 for (i = 0; i < domain->num_clks; i++) in imx_gpc_pu_pgc_sw_pxx_req() 156 clk_prepare_enable(domain->clk[i]); in imx_gpc_pu_pgc_sw_pxx_req() 159 regmap_update_bits(domain->regmap, GPC_PGC_CTRL(domain->pgc), in imx_gpc_pu_pgc_sw_pxx_req() 162 if (domain->bits.hsk) in imx_gpc_pu_pgc_sw_pxx_req() [all …]
|
D | gpc.c | 130 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/dca/ |
D | dca-core.c | 44 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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | iommu.h | 240 int (*attach_dev)(struct iommu_domain *domain, struct device *dev); 241 void (*detach_dev)(struct iommu_domain *domain, struct device *dev); 242 int (*map)(struct iommu_domain *domain, unsigned long iova, 244 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova, 246 void (*flush_iotlb_all)(struct iommu_domain *domain); 247 void (*iotlb_sync_map)(struct iommu_domain *domain); 248 void (*iotlb_sync)(struct iommu_domain *domain, 250 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova); 255 int (*domain_get_attr)(struct iommu_domain *domain, 257 int (*domain_set_attr)(struct iommu_domain *domain, [all …]
|
D | irqdomain.h | 295 extern void irq_domain_update_bus_token(struct irq_domain *domain, 379 extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq, 381 extern void irq_domain_associate_many(struct irq_domain *domain, 384 extern void irq_domain_disassociate(struct irq_domain *domain, 410 static inline unsigned int irq_linear_revmap(struct irq_domain *domain, in irq_linear_revmap() argument 413 return hwirq < domain->revmap_size ? domain->linear_revmap[hwirq] : 0; in irq_linear_revmap() 418 extern int irq_create_strict_mappings(struct irq_domain *domain, 452 int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest); 456 extern struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, 458 extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | kyber.h | 16 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/iommu/intel/ |
D | iommu.c | 299 #define for_each_domain_iommu(idx, domain) \ argument 301 if (domain->iommu_refcnt[idx]) 329 static void domain_exit(struct dmar_domain *domain); 330 static void domain_remove_dev_info(struct dmar_domain *domain); 333 static int intel_iommu_attach_device(struct iommu_domain *domain, 335 static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain, 492 struct dmar_domain *domain) in set_iommu_domain() argument 506 domains[did & 0xff] = domain; in set_iommu_domain() 545 static inline int domain_type_is_si(struct dmar_domain *domain) in domain_type_is_si() argument 547 return domain->flags & DOMAIN_FLAG_STATIC_IDENTITY; in domain_type_is_si() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/rockchip/ |
D | power_domain.txt | 6 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/iommu/amd/ |
D | iommu.c | 100 static void update_domain(struct protection_domain *domain); 102 static void update_and_flush_device_table(struct protection_domain *domain, 152 return container_of(dom, struct protection_domain, domain); in to_pdomain() 155 static void amd_iommu_domain_get_pgtable(struct protection_domain *domain, in amd_iommu_domain_get_pgtable() argument 158 u64 pt_root = atomic64_read(&domain->pt_root); in amd_iommu_domain_get_pgtable() 164 static void amd_iommu_domain_set_pt_root(struct protection_domain *domain, u64 root) in amd_iommu_domain_set_pt_root() argument 166 atomic64_set(&domain->pt_root, root); in amd_iommu_domain_set_pt_root() 169 static void amd_iommu_domain_clr_pt_root(struct protection_domain *domain) in amd_iommu_domain_clr_pt_root() argument 171 amd_iommu_domain_set_pt_root(domain, 0); in amd_iommu_domain_clr_pt_root() 174 static void amd_iommu_domain_set_pgtable(struct protection_domain *domain, in amd_iommu_domain_set_pgtable() argument [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/ |
D | perf.c | 63 __le32 domain; member 68 __le32 domain; member 79 __le32 domain; member 84 __le32 domain; member 113 __le32 domain; member 208 scmi_perf_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_domain_attributes_get() argument 216 SCMI_PROTOCOL_PERF, sizeof(domain), in scmi_perf_domain_attributes_get() 221 put_unaligned_le32(domain, t->tx.buf); in scmi_perf_domain_attributes_get() 260 scmi_perf_describe_levels_get(const struct scmi_handle *handle, u32 domain, in scmi_perf_describe_levels_get() argument 280 dom_info->domain = cpu_to_le32(domain); in scmi_perf_describe_levels_get() [all …]
|
/kernel/linux/linux-5.10/drivers/soc/xilinx/ |
D | zynqmp_pm_domains.c | 72 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/ |
D | etnaviv_perfmon.c | 19 const struct etnaviv_pm_domain *domain, 41 const struct etnaviv_pm_domain *domain, in perf_reg_read() argument 44 gpu_write(gpu, domain->profile_config, signal->data); in perf_reg_read() 46 return gpu_read(gpu, domain->profile_read); in perf_reg_read() 50 const struct etnaviv_pm_domain *domain, in pipe_reg_read() argument 61 gpu_write(gpu, domain->profile_config, signal->data); in pipe_reg_read() 62 value += gpu_read(gpu, domain->profile_read); in pipe_reg_read() 74 const struct etnaviv_pm_domain *domain, in hi_total_cycle_read() argument 88 const struct etnaviv_pm_domain *domain, in hi_total_idle_cycle_read() argument 447 const struct etnaviv_pm_domain *domain = NULL; in pm_domain() local [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_display_power.h | 224 #define for_each_power_domain(domain, mask) \ argument 225 for ((domain) = 0; (domain) < POWER_DOMAIN_NUM; (domain)++) \ 226 for_each_if(BIT_ULL(domain) & (mask)) 266 intel_display_power_domain_str(enum intel_display_power_domain domain); 269 enum intel_display_power_domain domain); 273 enum intel_display_power_domain domain); 275 enum intel_display_power_domain domain); 278 enum intel_display_power_domain domain); 280 enum intel_display_power_domain domain); 282 enum intel_display_power_domain domain, [all …]
|