/linux-6.1.9/drivers/firmware/arm_scmi/ |
D | scmi_pm_domain.c | 57 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() 113 scmi_pd_data->num_domains = num_domains; in scmi_pm_domain_probe() 130 for (i = 0; i < scmi_pd_data->num_domains; i++) { in scmi_pm_domain_remove()
|
D | power.c | 25 __le16 num_domains; member 68 int num_domains; member 90 pi->num_domains = le16_to_cpu(attr->num_domains); in scmi_power_attributes_get() 189 return pi->num_domains; in scmi_power_num_domains_get() 272 return pinfo->num_domains; in scmi_power_get_num_sources() 318 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_power_protocol_init() 323 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_power_protocol_init()
|
D | voltage.c | 67 unsigned int num_domains; member 84 vinfo->num_domains = in scmi_protocol_attributes_get() 222 for (dom = 0; dom < vinfo->num_domains; dom++) { in scmi_voltage_descriptors_get() 267 if (domain_id >= vinfo->num_domains) in __scmi_voltage_get_u32() 291 if (domain_id >= vinfo->num_domains) in scmi_voltage_config_set() 327 if (domain_id >= vinfo->num_domains) in scmi_voltage_level_set() 377 if (domain_id >= vinfo->num_domains || in scmi_voltage_info_get() 388 return vinfo->num_domains; in scmi_voltage_domains_num_get() 422 if (vinfo->num_domains) { in scmi_voltage_protocol_init() 423 vinfo->domains = devm_kcalloc(ph->dev, vinfo->num_domains, in scmi_voltage_protocol_init()
|
D | reset.c | 66 int num_domains; member 85 pi->num_domains = attr & NUM_RESET_DOMAIN_MASK; in scmi_reset_attributes_get() 140 return pi->num_domains; in scmi_reset_num_domains_get() 171 if (domain >= pi->num_domains) in scmi_domain_reset() 288 return pinfo->num_domains; in scmi_reset_get_num_sources() 333 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_reset_protocol_init() 338 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_reset_protocol_init()
|
D | powercap.c | 121 int num_domains; member 151 pi->num_domains = FIELD_GET(GENMASK(15, 0), attributes); in scmi_powercap_attributes_get() 253 (dom_info->parent_id >= pinfo->num_domains || in scmi_powercap_domain_attributes_get() 281 return pi->num_domains; in scmi_powercap_num_domains_get() 289 if (domain_id >= pi->num_domains) in scmi_powercap_dom_info_get() 322 if (!power_cap || domain_id >= pi->num_domains) in scmi_powercap_cap_get() 430 if (!pai || domain_id >= pi->num_domains) in scmi_powercap_pai_get() 528 domain_id >= pi->num_domains) in scmi_powercap_measurements_threshold_get() 545 if (domain_id >= pi->num_domains || in scmi_powercap_measurements_threshold_set() 683 if (evt_id >= ARRAY_SIZE(evt_2_cmd) || src_id >= pi->num_domains) in scmi_powercap_set_notify_enabled() [all …]
|
D | perf.c | 52 __le16 num_domains; member 142 int num_domains; member 172 pi->num_domains = le16_to_cpu(attr->num_domains); in scmi_perf_attributes_get() 776 return pi->num_domains; in scmi_perf_get_num_sources() 826 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_perf_protocol_init() 831 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_perf_protocol_init()
|
/linux-6.1.9/drivers/firmware/ |
D | scpi_pm_domain.c | 72 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()
|
/linux-6.1.9/drivers/soc/actions/ |
D | owl-sps.c | 27 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),
|
/linux-6.1.9/drivers/soc/imx/ |
D | gpc.c | 291 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 …]
|
D | imx8m-blk-ctrl.c | 74 int num_domains; member 199 bc->domains = devm_kcalloc(dev, bc_data->num_domains, in imx8m_blk_ctrl_probe() 205 bc->onecell_data.num_domains = bc_data->num_domains; in imx8m_blk_ctrl_probe() 207 devm_kcalloc(dev, bc_data->num_domains, in imx8m_blk_ctrl_probe() 217 for (i = 0; i < bc_data->num_domains; i++) { in imx8m_blk_ctrl_probe() 329 for (i = 0; bc->onecell_data.num_domains; i++) { in imx8m_blk_ctrl_remove() 363 for (i = 0; i < bc->onecell_data.num_domains; i++) { in imx8m_blk_ctrl_suspend() 389 for (i = 0; i < bc->onecell_data.num_domains; i++) in imx8m_blk_ctrl_resume() 469 .num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data), 509 .num_domains = ARRAY_SIZE(imx8mp_vpu_blk_ctl_domain_data), [all …]
|
D | imx8mp-blk-ctrl.c | 67 int num_domains; member 194 .num_domains = ARRAY_SIZE(imx8mp_hsio_domain_data), 418 .num_domains = ARRAY_SIZE(imx8mp_hdmi_domain_data), 503 int num_domains, i, ret; in imx8mp_blk_ctrl_probe() local 518 num_domains = bc_data->num_domains; in imx8mp_blk_ctrl_probe() 530 bc->domains = devm_kcalloc(dev, num_domains, in imx8mp_blk_ctrl_probe() 536 bc->onecell_data.num_domains = num_domains; in imx8mp_blk_ctrl_probe() 538 devm_kcalloc(dev, num_domains, in imx8mp_blk_ctrl_probe() 551 for (i = 0; i < num_domains; i++) { in imx8mp_blk_ctrl_probe() 662 for (i = 0; bc->onecell_data.num_domains; i++) { in imx8mp_blk_ctrl_remove() [all …]
|
D | imx93-blk-ctrl.c | 89 int num_domains; member 222 bc->domains = devm_kcalloc(dev, bc_data->num_domains, in imx93_blk_ctrl_probe() 228 bc->onecell_data.num_domains = bc_data->num_domains; in imx93_blk_ctrl_probe() 230 devm_kcalloc(dev, bc_data->num_domains, in imx93_blk_ctrl_probe() 245 for (i = 0; i < bc_data->num_domains; i++) { in imx93_blk_ctrl_probe() 301 for (i = 0; bc->onecell_data.num_domains; i++) { in imx93_blk_ctrl_remove() 408 .num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
|
/linux-6.1.9/drivers/soc/rockchip/ |
D | pm_domains.c | 65 int num_domains; member 216 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pmu_block() 257 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pmu_unblock() 548 if (id >= pmu->info->num_domains) { in rockchip_pm_add_one_domain() 690 for (i = 0; i < pmu->genpd_data.num_domains; i++) { in rockchip_pm_domain_cleanup() 791 struct_size(pmu, domains, pmu_info->num_domains), in rockchip_pm_domain_probe() 802 pmu->genpd_data.num_domains = pmu_info->num_domains; in rockchip_pm_domain_probe() 1065 .num_domains = ARRAY_SIZE(px30_pm_domains), 1074 .num_domains = ARRAY_SIZE(rk3036_pm_domains), 1085 .num_domains = ARRAY_SIZE(rk3066_pm_domains), [all …]
|
/linux-6.1.9/drivers/gpu/drm/panfrost/ |
D | panfrost_device.c | 144 int i, num_domains; in panfrost_pm_domain_init() local 146 num_domains = of_count_phandle_with_args(pfdev->dev->of_node, in panfrost_pm_domain_init() 154 if (num_domains < 2 && pfdev->comp->num_pm_domains < 2) in panfrost_pm_domain_init() 157 if (num_domains != pfdev->comp->num_pm_domains) { in panfrost_pm_domain_init() 160 num_domains, pfdev->comp->num_pm_domains); in panfrost_pm_domain_init() 164 if (WARN(num_domains > ARRAY_SIZE(pfdev->pm_domain_devs), in panfrost_pm_domain_init() 168 for (i = 0; i < num_domains; i++) { in panfrost_pm_domain_init()
|
/linux-6.1.9/sound/soc/sof/imx/ |
D | imx8.c | 63 int num_domains; member 209 priv->num_domains = of_count_phandle_with_args(np, "power-domains", in imx8_probe() 211 if (priv->num_domains < 0) { in imx8_probe() 213 return priv->num_domains; in imx8_probe() 216 priv->pd_dev = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe() 221 priv->link = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe() 226 for (i = 0; i < priv->num_domains; i++) { in imx8_probe() 349 for (i = 0; i < priv->num_domains; i++) { in imx8_remove()
|
/linux-6.1.9/drivers/soc/bcm/bcm63xx/ |
D | bcm63xx-power.c | 112 power->genpd_data.num_domains = 0; in bcm63xx_power_probe() 122 power->genpd_data.num_domains = max_bit + 1; in bcm63xx_power_probe() 124 power->dev = devm_kcalloc(dev, power->genpd_data.num_domains, in bcm63xx_power_probe() 130 power->genpd = devm_kcalloc(dev, power->genpd_data.num_domains, in bcm63xx_power_probe()
|
/linux-6.1.9/drivers/soc/mediatek/ |
D | mtk-scpsys.c | 165 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()
|
D | mtk-pm-domains.c | 318 if (id >= scpsys->soc_data->num_domains) { in scpsys_add_one_domain() 552 for (i = scpsys->pd_data.num_domains - 1; i >= 0; i--) { in scpsys_domain_cleanup() 609 scpsys = devm_kzalloc(dev, struct_size(scpsys, domains, soc->num_domains), GFP_KERNEL); in scpsys_probe() 617 scpsys->pd_data.num_domains = soc->num_domains; in scpsys_probe()
|
D | mt8167-pm-domains.h | 101 .num_domains = ARRAY_SIZE(scpsys_domain_data_mt8167),
|
/linux-6.1.9/drivers/remoteproc/ |
D | imx_dsp_rproc.c | 122 int num_domains; member 750 priv->num_domains = of_count_phandle_with_args(dev->of_node, in imx_dsp_attach_pm_domains() 755 if (priv->num_domains <= 1) in imx_dsp_attach_pm_domains() 758 priv->pd_dev = devm_kmalloc_array(dev, priv->num_domains, in imx_dsp_attach_pm_domains() 764 priv->pd_dev_link = devm_kmalloc_array(dev, priv->num_domains, in imx_dsp_attach_pm_domains() 770 for (i = 0; i < priv->num_domains; i++) { in imx_dsp_attach_pm_domains() 807 if (priv->num_domains <= 1) in imx_dsp_detach_pm_domains() 810 for (i = 0; i < priv->num_domains; i++) { in imx_dsp_detach_pm_domains()
|
/linux-6.1.9/drivers/soc/ti/ |
D | ti_sci_pm_domains.c | 97 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()
|
/linux-6.1.9/drivers/soc/tegra/ |
D | powergate-bpmp.c | 278 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()
|
/linux-6.1.9/arch/arm/mach-ux500/ |
D | pm_domains.c | 72 genpd_data->num_domains = ARRAY_SIZE(ux500_pm_domains); in ux500_pm_domains_init()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_crat.h | 63 uint16_t num_domains; member 312 uint16_t num_domains; member
|
/linux-6.1.9/drivers/firmware/imx/ |
D | scu-pd.c | 282 for (i = 0; i < pd_data->num_domains; i++) { in imx_scu_pd_xlate() 380 pd_data->num_domains = count; in imx_scu_init_pm_domains()
|