Home
last modified time | relevance | path

Searched refs:num_domains (Results 1 – 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
Dscmi_pm_domain.c56 int num_domains, i; in scmi_pm_domain_probe() local
67 num_domains = handle->power_ops->num_domains_get(handle); in scmi_pm_domain_probe()
68 if (num_domains < 0) { in scmi_pm_domain_probe()
70 return num_domains; in scmi_pm_domain_probe()
73 scmi_pd = devm_kcalloc(dev, num_domains, sizeof(*scmi_pd), GFP_KERNEL); in scmi_pm_domain_probe()
81 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scmi_pm_domain_probe()
85 for (i = 0; i < num_domains; i++, scmi_pd++) { in scmi_pm_domain_probe()
107 scmi_pd_data->num_domains = num_domains; in scmi_pm_domain_probe()
124 for (i = 0; i < scmi_pd_data->num_domains; i++) { in scmi_pm_domain_remove()
Dpower.c23 __le16 num_domains; member
65 int num_domains; member
87 pi->num_domains = le16_to_cpu(attr->num_domains); in scmi_power_attributes_get()
176 return pi->num_domains; in scmi_power_num_domains_get()
280 pinfo->dom_info = devm_kcalloc(handle->dev, pinfo->num_domains, in scmi_power_protocol_init()
285 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_power_protocol_init()
295 pinfo->num_domains); in scmi_power_protocol_init()
Dreset.c63 int num_domains; member
82 pi->num_domains = attr & NUM_RESET_DOMAIN_MASK; in scmi_reset_attributes_get()
126 return pi->num_domains; in scmi_reset_num_domains_get()
290 pinfo->dom_info = devm_kcalloc(handle->dev, pinfo->num_domains, in scmi_reset_protocol_init()
295 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_reset_protocol_init()
305 pinfo->num_domains); in scmi_reset_protocol_init()
Dperf.c41 __le16 num_domains; member
166 int num_domains; member
196 pi->num_domains = le16_to_cpu(attr->num_domains); in scmi_perf_attributes_get()
867 pinfo->dom_info = devm_kcalloc(handle->dev, pinfo->num_domains, in scmi_perf_protocol_init()
872 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_perf_protocol_init()
886 pinfo->num_domains); in scmi_perf_protocol_init()
/kernel/linux/linux-5.10/drivers/firmware/
Dscpi_pm_domain.c72 int ret, num_domains, i; in scpi_pm_domain_probe() local
89 ret = of_property_read_u32(np, "num-domains", &num_domains); in scpi_pm_domain_probe()
95 scpi_pd = devm_kcalloc(dev, num_domains, sizeof(*scpi_pd), GFP_KERNEL); in scpi_pm_domain_probe()
103 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scpi_pm_domain_probe()
107 for (i = 0; i < num_domains; i++, scpi_pd++) { in scpi_pm_domain_probe()
132 scpi_pd_data->num_domains = num_domains; in scpi_pm_domain_probe()
/kernel/linux/linux-5.10/drivers/soc/actions/
Dowl-sps.c27 unsigned num_domains; member
118 struct_size(sps, domains, sps_info->num_domains), in owl_sps_probe()
132 sps->genpd_data.num_domains = sps_info->num_domains; in owl_sps_probe()
134 for (i = 0; i < sps_info->num_domains; i++) { in owl_sps_probe()
200 .num_domains = ARRAY_SIZE(s500_sps_domains),
240 .num_domains = ARRAY_SIZE(s700_sps_domains),
296 .num_domains = ARRAY_SIZE(s900_sps_domains),
/kernel/linux/linux-5.10/drivers/soc/imx/
Dgpc.c291 int num_domains; member
297 .num_domains = 2,
303 .num_domains = 2,
309 .num_domains = 3,
315 .num_domains = 4,
357 .num_domains = 2,
361 unsigned int num_domains) in imx_gpc_old_dt_init() argument
366 for (i = 0; i < num_domains; i++) { in imx_gpc_old_dt_init()
384 for (i = 0; i < num_domains; i++) in imx_gpc_old_dt_init()
397 for (i = 0; i < num_domains; i++) in imx_gpc_old_dt_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/
Dpanfrost_device.c149 int i, num_domains; in panfrost_pm_domain_init() local
151 num_domains = of_count_phandle_with_args(pfdev->dev->of_node, in panfrost_pm_domain_init()
159 if (num_domains < 2 && pfdev->comp->num_pm_domains < 2) in panfrost_pm_domain_init()
162 if (num_domains != pfdev->comp->num_pm_domains) { in panfrost_pm_domain_init()
165 num_domains, pfdev->comp->num_pm_domains); in panfrost_pm_domain_init()
169 if (WARN(num_domains > ARRAY_SIZE(pfdev->pm_domain_devs), in panfrost_pm_domain_init()
173 for (i = 0; i < num_domains; i++) { in panfrost_pm_domain_init()
/kernel/linux/linux-5.10/sound/soc/sof/imx/
Dimx8.c55 int num_domains; member
230 priv->num_domains = of_count_phandle_with_args(np, "power-domains", in imx8_probe()
232 if (priv->num_domains < 0) { in imx8_probe()
234 return priv->num_domains; in imx8_probe()
237 priv->pd_dev = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
242 priv->link = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
247 for (i = 0; i < priv->num_domains; i++) { in imx8_probe()
356 for (i = 0; i < priv->num_domains; i++) { in imx8_remove()
/kernel/linux/linux-5.10/drivers/soc/rockchip/
Dpm_domains.c55 int num_domains; member
399 if (id >= pmu->info->num_domains) { in rockchip_pm_add_one_domain()
543 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pm_domain_cleanup()
644 struct_size(pmu, domains, pmu_info->num_domains), in rockchip_pm_domain_probe()
655 pmu->genpd_data.num_domains = pmu_info->num_domains; in rockchip_pm_domain_probe()
851 .num_domains = ARRAY_SIZE(px30_pm_domains),
860 .num_domains = ARRAY_SIZE(rk3036_pm_domains),
871 .num_domains = ARRAY_SIZE(rk3066_pm_domains),
882 .num_domains = ARRAY_SIZE(rk3128_pm_domains),
893 .num_domains = ARRAY_SIZE(rk3188_pm_domains),
[all …]
/kernel/linux/linux-5.10/drivers/soc/bcm/bcm63xx/
Dbcm63xx-power.c114 power->genpd_data.num_domains = 0; in bcm63xx_power_probe()
124 power->genpd_data.num_domains = max_bit + 1; in bcm63xx_power_probe()
126 power->dev = devm_kcalloc(dev, power->genpd_data.num_domains, in bcm63xx_power_probe()
132 power->genpd = devm_kcalloc(dev, power->genpd_data.num_domains, in bcm63xx_power_probe()
/kernel/linux/linux-5.10/drivers/soc/mediatek/
Dmtk-scpsys.c165 int num_domains; member
482 pd_data->num_domains = num; in init_scp()
1016 .num_domains = ARRAY_SIZE(scp_domain_data_mt2701),
1026 .num_domains = ARRAY_SIZE(scp_domain_data_mt2712),
1038 .num_domains = ARRAY_SIZE(scp_domain_data_mt6797),
1050 .num_domains = ARRAY_SIZE(scp_domain_data_mt7622),
1060 .num_domains = ARRAY_SIZE(scp_domain_data_mt7623a),
1070 .num_domains = ARRAY_SIZE(scp_domain_data_mt8173),
1118 scp = init_scp(pdev, soc->domains, soc->num_domains, &soc->regs, in scpsys_probe()
1123 mtk_register_power_domains(pdev, scp, soc->num_domains); in scpsys_probe()
/kernel/linux/linux-5.10/drivers/soc/ti/
Dti_sci_pm_domains.c97 if (idx >= genpd_data->num_domains) { in ti_sci_pd_xlate()
189 pd_provider->data.num_domains = max_id + 1; in ti_sci_pm_domain_probe()
/kernel/linux/linux-5.10/drivers/soc/tegra/
Dpowergate-bpmp.c279 genpd->num_domains = count; in tegra_bpmp_add_powergates()
297 unsigned int i = genpd->num_domains; in tegra_bpmp_remove_powergates()
315 for (i = 0; i < genpd->num_domains; i++) { in tegra_powergate_xlate()
/kernel/linux/linux-5.10/arch/arm/mach-ux500/
Dpm_domains.c72 genpd_data->num_domains = ARRAY_SIZE(ux500_pm_domains); in ux500_pm_domains_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.h62 uint16_t num_domains; member
311 uint16_t num_domains; member
Dkfd_crat.c505 num_nodes = crat_table->num_domains; in kfd_parse_crat_table()
1001 crat_table->num_domains = 0; in kfd_create_vcrat_image_cpu()
1011 crat_table->num_domains, in kfd_create_vcrat_image_cpu()
1023 crat_table->num_domains, in kfd_create_vcrat_image_cpu()
1052 crat_table->num_domains++; in kfd_create_vcrat_image_cpu()
1206 crat_table->num_domains = 1; in kfd_create_vcrat_image_gpu()
/kernel/linux/linux-5.10/drivers/firmware/imx/
Dscu-pd.c240 for (i = 0; i < pd_data->num_domains; i++) { in imx_scu_pd_xlate()
333 pd_data->num_domains = count; in imx_scu_init_pm_domains()
/kernel/linux/linux-5.10/drivers/clk/mmp/
Dclk-of-mmp2.c496 pxa_unit->pd_data.num_domains++; in mmp2_pm_domain_init()
502 pxa_unit->pd_data.num_domains++; in mmp2_pm_domain_init()
509 pxa_unit->pd_data.num_domains++; in mmp2_pm_domain_init()
/kernel/linux/linux-5.10/drivers/soc/renesas/
Drcar-sysc.c398 domains->onecell_data.num_domains = ARRAY_SIZE(domains->domains); in rcar_sysc_pd_init()
471 for (i = 0; i < rcar_sysc_onecell_data->num_domains; i++) { in rcar_sysc_power_cpu()
/kernel/linux/linux-5.10/arch/arm/mach-zx/
Dzx296702-pm-domain.c163 genpd_data->num_domains = ARRAY_SIZE(zx296702_pm_domains); in zx296702_pd_probe()
/kernel/linux/linux-5.10/drivers/soc/zte/
Dzx2967_pm_domains.c124 genpd_data->num_domains = domain_num; in zx2967_pd_probe()
/kernel/linux/linux-5.10/drivers/soc/amlogic/
Dmeson-secure-pwrc.c162 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe()
/kernel/linux/linux-5.10/drivers/soc/bcm/
Draspberrypi-power.c172 rpi_domains->xlate.num_domains = RPI_POWER_DOMAIN_COUNT; in rpi_power_probe()
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dqcom_aoss.c379 data->num_domains = i; in qmp_pd_add()
402 for (i = 0; i < data->num_domains; i++) in qmp_pd_remove()

12