Lines Matching refs:resp
125 unsigned int req_data, unsigned int *resp) in _send_mbox_command() argument
155 *resp = value; in _send_mbox_command()
163 *resp = value; in _send_mbox_command()
200 *resp = mbox_cmds.mbox_cmd[0].resp_data; in _send_mbox_command()
203 cpu, command, sub_command, parameter, req_data, *resp); in _send_mbox_command()
221 unsigned int resp; in mbox_read_pm_config() local
225 &resp); in mbox_read_pm_config()
229 debug_printf("cpu:%d READ_PM_CONFIG resp:%x\n", id->cpu, resp); in mbox_read_pm_config()
231 *cp_state = resp & BIT(16); in mbox_read_pm_config()
232 *cp_cap = resp & BIT(0) ? 1 : 0; in mbox_read_pm_config()
239 unsigned int resp; in mbox_get_config_levels() local
243 CONFIG_TDP_GET_LEVELS_INFO, 0, 0, &resp); in mbox_get_config_levels()
253 debug_printf("cpu:%d CONFIG_TDP_GET_LEVELS_INFO resp:%x\n", id->cpu, resp); in mbox_get_config_levels()
255 pkg_dev->version = resp & 0xff; in mbox_get_config_levels()
256 pkg_dev->levels = (resp >> 8) & 0xff; in mbox_get_config_levels()
257 pkg_dev->current_level = (resp >> 16) & 0xff; in mbox_get_config_levels()
258 pkg_dev->locked = !!(resp & BIT(24)); in mbox_get_config_levels()
259 pkg_dev->enabled = !!(resp & BIT(31)); in mbox_get_config_levels()
268 unsigned int resp; in mbox_get_ctdp_control() local
273 config_index, &resp); in mbox_get_ctdp_control()
277 ctdp_level->fact_support = resp & BIT(0); in mbox_get_ctdp_control()
278 ctdp_level->pbf_support = !!(resp & BIT(1)); in mbox_get_ctdp_control()
279 ctdp_level->fact_enabled = !!(resp & BIT(16)); in mbox_get_ctdp_control()
280 ctdp_level->pbf_enabled = !!(resp & BIT(17)); in mbox_get_ctdp_control()
293 id->cpu, resp, ctdp_level->fact_support, ctdp_level->pbf_support, in mbox_get_ctdp_control()
302 unsigned int resp; in _get_uncore_p0_p1_info() local
311 (BIT(16) | config_index) , &resp); in _get_uncore_p0_p1_info()
316 ctdp_level->uncore_p0 = resp & GENMASK(7, 0); in _get_uncore_p0_p1_info()
317 ctdp_level->uncore_p1 = (resp & GENMASK(15, 8)) >> 8; in _get_uncore_p0_p1_info()
318 ctdp_level->uncore_pm = (resp & GENMASK(31, 24)) >> 24; in _get_uncore_p0_p1_info()
322 id->cpu, config_index, resp, ctdp_level->uncore_p0, ctdp_level->uncore_p1, in _get_uncore_p0_p1_info()
330 config_index, &resp); in _get_uncore_p0_p1_info()
337 ctdp_level->uncore_p0 = resp & GENMASK(7, 0); in _get_uncore_p0_p1_info()
338 ctdp_level->uncore_p1 = (resp & GENMASK(15, 8)) >> 8; in _get_uncore_p0_p1_info()
341 id->cpu, config_index, resp, ctdp_level->uncore_p0, in _get_uncore_p0_p1_info()
387 unsigned int resp; in _get_p1_info() local
390 config_index, &resp); in _get_p1_info()
398 ctdp_level->sse_p1 = resp & GENMASK(7, 0); in _get_p1_info()
399 ctdp_level->avx2_p1 = (resp & GENMASK(15, 8)) >> 8; in _get_p1_info()
400 ctdp_level->avx512_p1 = (resp & GENMASK(23, 16)) >> 16; in _get_p1_info()
401 ctdp_level->amx_p1 = (resp & GENMASK(31, 24)) >> 24; in _get_p1_info()
404 id->cpu, config_index, resp, ctdp_level->sse_p1, in _get_p1_info()
411 unsigned int resp; in _get_uncore_mem_freq() local
415 0, config_index, &resp); in _get_uncore_mem_freq()
421 ctdp_level->mem_freq = resp & GENMASK(7, 0); in _get_uncore_mem_freq()
438 id->cpu, config_index, resp, ctdp_level->mem_freq); in _get_uncore_mem_freq()
444 unsigned int resp; in mbox_get_tdp_info() local
448 0, config_index, &resp); in mbox_get_tdp_info()
454 ctdp_level->pkg_tdp = resp & GENMASK(14, 0); in mbox_get_tdp_info()
455 ctdp_level->tdp_ratio = (resp & GENMASK(23, 16)) >> 16; in mbox_get_tdp_info()
459 id->cpu, config_index, resp, ctdp_level->tdp_ratio, in mbox_get_tdp_info()
463 0, config_index, &resp); in mbox_get_tdp_info()
467 ctdp_level->t_proc_hot = resp & GENMASK(7, 0); in mbox_get_tdp_info()
475 id->cpu, config_index, resp, ctdp_level->t_proc_hot); in mbox_get_tdp_info()
483 unsigned int resp; in mbox_get_pwr_info() local
487 0, config_index, &resp); in mbox_get_pwr_info()
491 ctdp_level->pkg_max_power = resp & GENMASK(14, 0); in mbox_get_pwr_info()
492 ctdp_level->pkg_min_power = (resp & GENMASK(30, 16)) >> 16; in mbox_get_pwr_info()
496 id->cpu, config_index, resp, ctdp_level->pkg_max_power, in mbox_get_pwr_info()
505 unsigned int resp; in mbox_get_coremask_info() local
515 (i << 8) | config_index, &resp); in mbox_get_coremask_info()
521 id->cpu, config_index, i, resp); in mbox_get_coremask_info()
523 mask = (unsigned long long)resp << (32 * i); in mbox_get_coremask_info()
538 unsigned int req, resp; in mbox_get_get_trl() local
544 &resp); in mbox_get_get_trl()
550 id->cpu, req, resp); in mbox_get_get_trl()
552 trl[0] = resp & GENMASK(7, 0); in mbox_get_get_trl()
553 trl[1] = (resp & GENMASK(15, 8)) >> 8; in mbox_get_get_trl()
554 trl[2] = (resp & GENMASK(23, 16)) >> 16; in mbox_get_get_trl()
555 trl[3] = (resp & GENMASK(31, 24)) >> 24; in mbox_get_get_trl()
560 &resp); in mbox_get_get_trl()
565 req, resp); in mbox_get_get_trl()
567 trl[4] = resp & GENMASK(7, 0); in mbox_get_get_trl()
568 trl[5] = (resp & GENMASK(15, 8)) >> 8; in mbox_get_get_trl()
569 trl[6] = (resp & GENMASK(23, 16)) >> 16; in mbox_get_get_trl()
570 trl[7] = (resp & GENMASK(31, 24)) >> 24; in mbox_get_get_trl()
608 unsigned int resp; in mbox_set_tdp_level() local
619 tdp_level, &resp); in mbox_set_tdp_level()
631 unsigned int req, resp; in mbox_get_pbf_info() local
643 0, (i << 8) | level, &resp); in mbox_get_pbf_info()
649 id->cpu, resp); in mbox_get_pbf_info()
651 mask = (unsigned long long)resp << (32 * i); in mbox_get_pbf_info()
661 &resp); in mbox_get_pbf_info()
666 resp); in mbox_get_pbf_info()
668 pbf_info->p1_low = resp & 0xff; in mbox_get_pbf_info()
669 pbf_info->p1_high = (resp & GENMASK(15, 8)) >> 8; in mbox_get_pbf_info()
673 id->cpu, CONFIG_TDP, CONFIG_TDP_PBF_GET_TDP_INFO, 0, req, &resp); in mbox_get_pbf_info()
677 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_TDP_INFO resp:%x\n", id->cpu, resp); in mbox_get_pbf_info()
679 pbf_info->tdp = resp & 0xffff; in mbox_get_pbf_info()
683 id->cpu, CONFIG_TDP, CONFIG_TDP_PBF_GET_TJ_MAX_INFO, 0, req, &resp); in mbox_get_pbf_info()
688 resp); in mbox_get_pbf_info()
689 pbf_info->t_control = (resp >> 8) & 0xff; in mbox_get_pbf_info()
690 pbf_info->t_prochot = resp & 0xff; in mbox_get_pbf_info()
700 unsigned int req = 0, resp; in mbox_set_pbf_fact_status() local
736 CONFIG_TDP_SET_TDP_CONTROL, 0, req, &resp); in mbox_set_pbf_fact_status()
749 unsigned int resp; in _get_fact_bucket_info() local
758 (i << 8) | level, &resp); in _get_fact_bucket_info()
764 id->cpu, i, level, resp); in _get_fact_bucket_info()
768 (resp >> (j * 8)) & 0xff; in _get_fact_bucket_info()
779 (k << 16) | (i << 8) | level, &resp); in _get_fact_bucket_info()
785 id->cpu, i, level, k, resp); in _get_fact_bucket_info()
789 (resp >> (j * 8)) & 0xff; in _get_fact_bucket_info()
799 unsigned int resp; in mbox_get_fact_info() local
804 level, &resp); in mbox_get_fact_info()
809 id->cpu, resp); in mbox_get_fact_info()
811 fact_info->lp_ratios[0] = resp & 0xff; in mbox_get_fact_info()
812 fact_info->lp_ratios[1] = (resp >> 8) & 0xff; in mbox_get_fact_info()
813 fact_info->lp_ratios[2] = (resp >> 16) & 0xff; in mbox_get_fact_info()
839 unsigned int resp; in mbox_get_clos_information() local
843 &resp); in mbox_get_clos_information()
847 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG resp:%x\n", id->cpu, resp); in mbox_get_clos_information()
849 if (resp & BIT(1)) in mbox_get_clos_information()
854 if (resp & BIT(2)) in mbox_get_clos_information()
864 unsigned int req, resp; in _write_pm_config() local
873 &resp); in _write_pm_config()
877 debug_printf("cpu:%d WRITE_PM_CONFIG resp:%x\n", id->cpu, resp); in _write_pm_config()
884 unsigned int req, resp; in mbox_pm_qos_config() local
916 &resp); in mbox_pm_qos_config()
922 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG resp:%x\n", id->cpu, resp); in mbox_pm_qos_config()
924 req = resp; in mbox_pm_qos_config()
940 BIT(MBOX_CMD_WRITE_BIT), req, &resp); in mbox_pm_qos_config()
952 unsigned int resp; in mbox_pm_get_clos() local
956 &resp); in mbox_pm_get_clos()
960 clos_config->epp = resp & 0x0f; in mbox_pm_get_clos()
961 clos_config->clos_prop_prio = (resp >> 4) & 0x0f; in mbox_pm_get_clos()
962 clos_config->clos_min = (resp >> 8) & 0xff; in mbox_pm_get_clos()
963 clos_config->clos_max = (resp >> 16) & 0xff; in mbox_pm_get_clos()
964 clos_config->clos_desired = (resp >> 24) & 0xff; in mbox_pm_get_clos()
971 unsigned int req, resp; in mbox_set_clos() local
984 &resp); in mbox_set_clos()
995 unsigned int resp; in mbox_clos_get_assoc_status() local
1003 &resp); in mbox_clos_get_assoc_status()
1008 resp); in mbox_clos_get_assoc_status()
1009 *clos_id = (resp >> 16) & 0x03; in mbox_clos_get_assoc_status()
1016 unsigned int req, resp; in mbox_clos_associate() local
1025 req, &resp); in mbox_clos_associate()