Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/pmdomain/arm/
Dscmi_perf_domain.c86 int num_domains, i, ret = 0; in scmi_perf_domain_probe() local
99 num_domains = perf_ops->num_domains_get(ph); in scmi_perf_domain_probe()
100 if (num_domains < 0) { in scmi_perf_domain_probe()
102 num_domains); in scmi_perf_domain_probe()
103 return num_domains; in scmi_perf_domain_probe()
104 } else if (!num_domains) { in scmi_perf_domain_probe()
108 scmi_pd = devm_kcalloc(dev, num_domains, sizeof(*scmi_pd), GFP_KERNEL); in scmi_perf_domain_probe()
116 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scmi_perf_domain_probe()
120 for (i = 0; i < num_domains; i++, scmi_pd++) { in scmi_perf_domain_probe()
142 scmi_pd_data->num_domains = num_domains; in scmi_perf_domain_probe()
[all …]
Dscmi_pm_domain.c57 int num_domains, i; in scmi_pm_domain_probe() local
73 num_domains = power_ops->num_domains_get(ph); in scmi_pm_domain_probe()
74 if (num_domains < 0) { in scmi_pm_domain_probe()
76 return num_domains; in scmi_pm_domain_probe()
79 scmi_pd = devm_kcalloc(dev, num_domains, sizeof(*scmi_pd), GFP_KERNEL); in scmi_pm_domain_probe()
87 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scmi_pm_domain_probe()
91 for (i = 0; i < num_domains; i++, scmi_pd++) { in scmi_pm_domain_probe()
114 scmi_pd_data->num_domains = num_domains; in scmi_pm_domain_probe()
131 for (i = 0; i < scmi_pd_data->num_domains; i++) { in scmi_pm_domain_remove()
Dscpi_pm_domain.c73 int ret, num_domains, i; in scpi_pm_domain_probe() local
90 ret = of_property_read_u32(np, "num-domains", &num_domains); in scpi_pm_domain_probe()
96 scpi_pd = devm_kcalloc(dev, num_domains, sizeof(*scpi_pd), GFP_KERNEL); in scpi_pm_domain_probe()
104 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scpi_pm_domain_probe()
108 for (i = 0; i < num_domains; i++, scpi_pd++) { in scpi_pm_domain_probe()
133 scpi_pd_data->num_domains = num_domains; in scpi_pm_domain_probe()
/linux-6.12.1/drivers/pmdomain/sunxi/
Dsun20i-ppu.c40 unsigned int num_domains; member
117 pds = devm_kcalloc(dev, desc->num_domains, sizeof(*pds), GFP_KERNEL); in sun20i_ppu_probe()
125 ppu->domains = devm_kcalloc(dev, desc->num_domains, in sun20i_ppu_probe()
130 ppu->num_domains = desc->num_domains; in sun20i_ppu_probe()
149 for (unsigned int i = 0; i < ppu->num_domains; ++i) { in sun20i_ppu_probe()
182 .num_domains = ARRAY_SIZE(sun20i_d1_ppu_pd_names),
/linux-6.12.1/drivers/pmdomain/actions/
Dowl-sps.c29 unsigned num_domains; member
112 struct_size(sps, domains, sps_info->num_domains), in owl_sps_probe()
126 sps->genpd_data.num_domains = sps_info->num_domains; in owl_sps_probe()
128 for (i = 0; i < sps_info->num_domains; i++) { in owl_sps_probe()
194 .num_domains = ARRAY_SIZE(s500_sps_domains),
234 .num_domains = ARRAY_SIZE(s700_sps_domains),
290 .num_domains = ARRAY_SIZE(s900_sps_domains),
/linux-6.12.1/drivers/pmdomain/imx/
Dgpc.c290 int num_domains; member
296 .num_domains = 2,
302 .num_domains = 2,
308 .num_domains = 3,
314 .num_domains = 4,
356 .num_domains = 2,
360 unsigned int num_domains) in imx_gpc_old_dt_init() argument
365 for (i = 0; i < num_domains; i++) { in imx_gpc_old_dt_init()
383 for (i = 0; i < num_domains; i++) in imx_gpc_old_dt_init()
396 for (i = 0; i < num_domains; i++) in imx_gpc_old_dt_init()
[all …]
Dimx8m-blk-ctrl.c76 int num_domains; member
201 bc->domains = devm_kcalloc(dev, bc_data->num_domains, in imx8m_blk_ctrl_probe()
207 bc->onecell_data.num_domains = bc_data->num_domains; in imx8m_blk_ctrl_probe()
209 devm_kcalloc(dev, bc_data->num_domains, in imx8m_blk_ctrl_probe()
224 for (i = 0; i < bc_data->num_domains; i++) { in imx8m_blk_ctrl_probe()
343 for (i = 0; bc->onecell_data.num_domains; i++) { in imx8m_blk_ctrl_remove()
375 for (i = 0; i < bc->onecell_data.num_domains; i++) { in imx8m_blk_ctrl_suspend()
401 for (i = 0; i < bc->onecell_data.num_domains; i++) in imx8m_blk_ctrl_resume()
481 .num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
521 .num_domains = ARRAY_SIZE(imx8mp_vpu_blk_ctl_domain_data),
[all …]
Dimx8mp-blk-ctrl.c79 int num_domains; member
293 .num_domains = ARRAY_SIZE(imx8mp_hsio_domain_data),
520 .num_domains = ARRAY_SIZE(imx8mp_hdmi_domain_data),
605 int num_domains, i, ret; in imx8mp_blk_ctrl_probe() local
620 num_domains = bc_data->num_domains; in imx8mp_blk_ctrl_probe()
632 bc->domains = devm_kcalloc(dev, num_domains, in imx8mp_blk_ctrl_probe()
638 bc->onecell_data.num_domains = num_domains; in imx8mp_blk_ctrl_probe()
640 devm_kcalloc(dev, num_domains, in imx8mp_blk_ctrl_probe()
653 for (i = 0; i < num_domains; i++) { in imx8mp_blk_ctrl_probe()
773 for (i = 0; bc->onecell_data.num_domains; i++) { in imx8mp_blk_ctrl_remove()
[all …]
Dimx93-blk-ctrl.c89 int num_domains; member
224 bc->domains = devm_kcalloc(dev, bc_data->num_domains, in imx93_blk_ctrl_probe()
230 bc->onecell_data.num_domains = bc_data->num_domains; in imx93_blk_ctrl_probe()
232 devm_kcalloc(dev, bc_data->num_domains, in imx93_blk_ctrl_probe()
247 for (i = 0; i < bc_data->num_domains; i++) { in imx93_blk_ctrl_probe()
318 for (i = 0; i < bc->onecell_data.num_domains; i++) { in imx93_blk_ctrl_remove()
423 .num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
/linux-6.12.1/drivers/firmware/arm_scmi/
Dpower.c28 __le16 num_domains; member
72 int num_domains; member
94 pi->num_domains = le16_to_cpu(attr->num_domains); in scmi_power_attributes_get()
200 return pi->num_domains; in scmi_power_num_domains_get()
249 src_id >= pinfo->num_domains) in scmi_power_notify_supported()
297 return pinfo->num_domains; in scmi_power_get_num_sources()
344 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_power_protocol_init()
349 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_power_protocol_init()
Dvoltage.c70 unsigned int num_domains; member
87 vinfo->num_domains = in scmi_protocol_attributes_get()
225 for (dom = 0; dom < vinfo->num_domains; dom++) { in scmi_voltage_descriptors_get()
272 if (domain_id >= vinfo->num_domains) in __scmi_voltage_get_u32()
296 if (domain_id >= vinfo->num_domains) in scmi_voltage_config_set()
332 if (domain_id >= vinfo->num_domains) in scmi_voltage_level_set()
382 if (domain_id >= vinfo->num_domains || in scmi_voltage_info_get()
393 return vinfo->num_domains; in scmi_voltage_domains_num_get()
427 if (vinfo->num_domains) { in scmi_voltage_protocol_init()
428 vinfo->domains = devm_kcalloc(ph->dev, vinfo->num_domains, in scmi_voltage_protocol_init()
Dreset.c69 int num_domains; member
89 pi->num_domains = attr & NUM_RESET_DOMAIN_MASK; in scmi_reset_attributes_get()
153 return pi->num_domains; in scmi_reset_num_domains_get()
184 if (domain >= pi->num_domains) in scmi_domain_reset()
244 if (evt_id != SCMI_EVENT_RESET_ISSUED || src_id >= pi->num_domains) in scmi_reset_notify_supported()
315 return pinfo->num_domains; in scmi_reset_get_num_sources()
361 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_reset_protocol_init()
366 for (domain = 0; domain < pinfo->num_domains; domain++) in scmi_reset_protocol_init()
Dpowercap.c126 int num_domains; member
158 pi->num_domains = FIELD_GET(GENMASK(15, 0), attributes); in scmi_powercap_attributes_get()
274 (dom_info->parent_id >= pinfo->num_domains || in scmi_powercap_domain_attributes_get()
302 return pi->num_domains; in scmi_powercap_num_domains_get()
310 if (domain_id >= pi->num_domains) in scmi_powercap_dom_info_get()
494 if (!pai || domain_id >= pi->num_domains) in scmi_powercap_pai_get()
592 domain_id >= pi->num_domains) in scmi_powercap_measurements_threshold_get()
609 if (domain_id >= pi->num_domains || in scmi_powercap_measurements_threshold_set()
819 if (evt_id >= ARRAY_SIZE(evt_2_cmd) || src_id >= pi->num_domains) in scmi_powercap_notify_supported()
838 if (evt_id >= ARRAY_SIZE(evt_2_cmd) || src_id >= pi->num_domains) in scmi_powercap_set_notify_enabled()
[all …]
Dperf.c61 __le16 num_domains; member
182 u16 num_domains; member
214 pi->num_domains = le16_to_cpu(attr->num_domains); in scmi_perf_attributes_get()
245 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_perf_xa_destroy()
509 return pi->num_domains; in scmi_perf_num_domains_get()
517 if (domain >= pi->num_domains) in scmi_perf_domain_lookup()
1251 return pi->num_domains; in scmi_perf_get_num_sources()
1304 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_perf_protocol_init()
1309 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_perf_protocol_init()
/linux-6.12.1/drivers/clk/imx/
Dclk-imx8-acm.c30 int num_domains; member
267 dev_pm->num_domains = of_count_phandle_with_args(dev->of_node, "power-domains", in clk_imx_acm_attach_pm_domains()
269 if (dev_pm->num_domains <= 1) in clk_imx_acm_attach_pm_domains()
272 dev_pm->pd_dev = devm_kmalloc_array(dev, dev_pm->num_domains, in clk_imx_acm_attach_pm_domains()
279 dev_pm->num_domains, in clk_imx_acm_attach_pm_domains()
285 for (i = 0; i < dev_pm->num_domains; i++) { in clk_imx_acm_attach_pm_domains()
323 if (dev_pm->num_domains <= 1) in clk_imx_acm_detach_pm_domains()
326 for (i = 0; i < dev_pm->num_domains; i++) { in clk_imx_acm_detach_pm_domains()
/linux-6.12.1/drivers/pmdomain/rockchip/
Dpm-domains.c75 int num_domains; member
250 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pmu_block()
291 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pmu_unblock()
683 if (id >= pmu->info->num_domains) { in rockchip_pm_add_one_domain()
826 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pm_domain_cleanup()
914 struct_size(pmu, domains, pmu_info->num_domains), in rockchip_pm_domain_probe()
925 pmu->genpd_data.num_domains = pmu_info->num_domains; in rockchip_pm_domain_probe()
1206 .num_domains = ARRAY_SIZE(px30_pm_domains),
1215 .num_domains = ARRAY_SIZE(rk3036_pm_domains),
1226 .num_domains = ARRAY_SIZE(rk3066_pm_domains),
[all …]
/linux-6.12.1/drivers/pmdomain/starfive/
Djh71xx-pmu.c61 int num_domains; member
350 pmu->genpd = devm_kcalloc(dev, match_data->num_domains, in jh71xx_pmu_probe()
359 pmu->genpd_data.num_domains = match_data->num_domains; in jh71xx_pmu_probe()
361 for (i = 0; i < match_data->num_domains; i++) { in jh71xx_pmu_probe()
414 .num_domains = ARRAY_SIZE(jh7110_power_domains),
433 .num_domains = ARRAY_SIZE(jh7110_aon_power_domains),
/linux-6.12.1/sound/soc/sof/imx/
Dimx8.c56 int num_domains; member
199 priv->num_domains = of_count_phandle_with_args(np, "power-domains", in imx8_probe()
201 if (priv->num_domains < 0) { in imx8_probe()
203 return priv->num_domains; in imx8_probe()
206 priv->pd_dev = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
211 priv->link = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
216 for (i = 0; i < priv->num_domains; i++) { in imx8_probe()
340 for (i = 0; i < priv->num_domains; i++) { in imx8_remove()
/linux-6.12.1/drivers/gpu/drm/panfrost/
Dpanfrost_device.c145 int i, num_domains; in panfrost_pm_domain_init() local
147 num_domains = of_count_phandle_with_args(pfdev->dev->of_node, in panfrost_pm_domain_init()
155 if (num_domains < 2 && pfdev->comp->num_pm_domains < 2) in panfrost_pm_domain_init()
158 if (num_domains != pfdev->comp->num_pm_domains) { in panfrost_pm_domain_init()
161 num_domains, pfdev->comp->num_pm_domains); in panfrost_pm_domain_init()
165 if (WARN(num_domains > ARRAY_SIZE(pfdev->pm_domain_devs), in panfrost_pm_domain_init()
169 for (i = 0; i < num_domains; i++) { in panfrost_pm_domain_init()
/linux-6.12.1/drivers/cpufreq/
Dqcom-cpufreq-hw.c638 int ret, i, num_domains; in qcom_cpufreq_hw_driver_probe() local
665 for (num_domains = 0; num_domains < MAX_FREQ_DOMAINS; num_domains++) in qcom_cpufreq_hw_driver_probe()
666 if (!platform_get_resource(pdev, IORESOURCE_MEM, num_domains)) in qcom_cpufreq_hw_driver_probe()
669 qcom_cpufreq.data = devm_kzalloc(dev, sizeof(struct qcom_cpufreq_data) * num_domains, in qcom_cpufreq_hw_driver_probe()
678 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, num_domains), GFP_KERNEL); in qcom_cpufreq_hw_driver_probe()
682 clk_data->num = num_domains; in qcom_cpufreq_hw_driver_probe()
684 for (i = 0; i < num_domains; i++) { in qcom_cpufreq_hw_driver_probe()
/linux-6.12.1/drivers/pmdomain/bcm/
Dbcm63xx-power.c111 power->genpd_data.num_domains = 0; in bcm63xx_power_probe()
121 power->genpd_data.num_domains = max_bit + 1; in bcm63xx_power_probe()
123 power->dev = devm_kcalloc(dev, power->genpd_data.num_domains, in bcm63xx_power_probe()
129 power->genpd = devm_kcalloc(dev, power->genpd_data.num_domains, in bcm63xx_power_probe()
/linux-6.12.1/drivers/pmdomain/mediatek/
Dmtk-scpsys.c165 int num_domains; member
480 pd_data->num_domains = num; in init_scp()
1014 .num_domains = ARRAY_SIZE(scp_domain_data_mt2701),
1024 .num_domains = ARRAY_SIZE(scp_domain_data_mt2712),
1036 .num_domains = ARRAY_SIZE(scp_domain_data_mt6797),
1048 .num_domains = ARRAY_SIZE(scp_domain_data_mt7622),
1058 .num_domains = ARRAY_SIZE(scp_domain_data_mt7623a),
1068 .num_domains = ARRAY_SIZE(scp_domain_data_mt8173),
1116 scp = init_scp(pdev, soc->domains, soc->num_domains, &soc->regs, in scpsys_probe()
1121 mtk_register_power_domains(pdev, scp, soc->num_domains); in scpsys_probe()
Dmtk-pm-domains.c372 if (id >= scpsys->soc_data->num_domains) { in scpsys_add_one_domain()
611 for (i = scpsys->pd_data.num_domains - 1; i >= 0; i--) { in scpsys_domain_cleanup()
676 scpsys = devm_kzalloc(dev, struct_size(scpsys, domains, soc->num_domains), GFP_KERNEL); in scpsys_probe()
684 scpsys->pd_data.num_domains = soc->num_domains; in scpsys_probe()
/linux-6.12.1/drivers/pmdomain/ti/
Dti_sci_pm_domains.c97 if (idx >= genpd_data->num_domains) { in ti_sci_pd_xlate()
207 pd_provider->data.num_domains = max_id + 1; in ti_sci_pm_domain_probe()
/linux-6.12.1/drivers/pmdomain/tegra/
Dpowergate-bpmp.c278 genpd->num_domains = count; in tegra_bpmp_add_powergates()
296 unsigned int i = genpd->num_domains; in tegra_bpmp_remove_powergates()
314 for (i = 0; i < genpd->num_domains; i++) { in tegra_powergate_xlate()

123