Lines Matching refs:pkg_dev
113 int isst_get_ctdp_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument
116 return isst_ops->get_config_levels(id, pkg_dev); in isst_get_ctdp_levels()
195 struct isst_pkg_ctdp pkg_dev; in isst_get_pbf_info() local
198 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_pbf_info()
204 if (level > pkg_dev.levels) { in isst_get_pbf_info()
235 struct isst_pkg_ctdp pkg_dev; in isst_get_fact_info() local
238 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_fact_info()
244 if (level > pkg_dev.levels) { in isst_get_fact_info()
299 struct isst_pkg_ctdp pkg_dev; in isst_set_trl_from_current_tdp() local
303 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_set_trl_from_current_tdp()
307 ret = isst_get_get_trl(id, pkg_dev.current_level, 0, trl); in isst_set_trl_from_current_tdp()
344 void isst_get_process_ctdp_complete(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in isst_get_process_ctdp_complete() argument
348 if (!pkg_dev->processed) in isst_get_process_ctdp_complete()
351 for (i = 0; i < pkg_dev->levels; ++i) { in isst_get_process_ctdp_complete()
354 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_get_process_ctdp_complete()
368 int isst_get_process_ctdp(struct isst_id *id, int tdp_level, struct isst_pkg_ctdp *pkg_dev) in isst_get_process_ctdp() argument
372 if (pkg_dev->processed) in isst_get_process_ctdp()
375 ret = isst_get_ctdp_levels(id, pkg_dev); in isst_get_process_ctdp()
380 id->cpu, pkg_dev->enabled, pkg_dev->current_level, in isst_get_process_ctdp()
381 pkg_dev->levels); in isst_get_process_ctdp()
383 if (tdp_level != 0xff && tdp_level > pkg_dev->levels) { in isst_get_process_ctdp()
388 if (!pkg_dev->enabled) in isst_get_process_ctdp()
391 for (i = 0; i <= pkg_dev->levels; ++i) { in isst_get_process_ctdp()
399 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_get_process_ctdp()
411 pkg_dev->processed = 1; in isst_get_process_ctdp()
427 if (!pkg_dev->enabled && is_skx_based_platform()) { in isst_get_process_ctdp()