Lines Matching full:limits

835  * @limits: Pointer to the power_limits structure containing limit values
838 * It returns false if limits is NULL or if the corresponding limit value is zero.
842 static bool has_valid_limit(const char *name, const struct power_limits *limits) in has_valid_limit() argument
846 if (!limits) in has_valid_limit()
850 limit_value = limits->ppt_pl1_spl_max; in has_valid_limit()
852 limit_value = limits->ppt_pl2_sppt_max; in has_valid_limit()
854 limit_value = limits->ppt_pl3_fppt_max; in has_valid_limit()
856 limit_value = limits->ppt_apu_sppt_max; in has_valid_limit()
858 limit_value = limits->ppt_platform_sppt_max; in has_valid_limit()
860 limit_value = limits->nv_dynamic_boost_max; in has_valid_limit()
862 limit_value = limits->nv_temp_target_max; in has_valid_limit()
865 limit_value = limits->nv_tgp_max; in has_valid_limit()
874 const struct power_limits *limits; in asus_fw_attr_add() local
937 /* Check if this is a power-related tunable requiring limits */ in asus_fw_attr_add()
940 limits = ac_rog_tunables->power_limits; in asus_fw_attr_add()
942 should_create = has_valid_limit(name, limits); in asus_fw_attr_add()
994 pr_warn("No matching power limits found for this system\n"); in init_rog_tunables()
1048 pr_debug("AC power limits initialized for %s\n", dmi_id->matches[0].substr); in init_rog_tunables()
1050 pr_debug("No AC PPT limits defined\n"); in init_rog_tunables()
1098 pr_debug("DC power limits initialized for %s\n", dmi_id->matches[0].substr); in init_rog_tunables()
1100 pr_debug("No DC PPT limits defined\n"); in init_rog_tunables()