• Home
  • Raw
  • Download

Lines Matching refs:ret

12 	int ret;  in isst_write_pm_config()  local
19 ret = isst_send_mbox_command(cpu, WRITE_PM_CONFIG, PM_FEATURE, 0, req, in isst_write_pm_config()
21 if (ret) in isst_write_pm_config()
22 return ret; in isst_write_pm_config()
32 int ret; in isst_read_pm_config() local
34 ret = isst_send_mbox_command(cpu, READ_PM_CONFIG, PM_FEATURE, 0, 0, in isst_read_pm_config()
36 if (ret) in isst_read_pm_config()
37 return ret; in isst_read_pm_config()
50 int ret; in isst_get_ctdp_levels() local
52 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_ctdp_levels()
54 if (ret) { in isst_get_ctdp_levels()
79 int ret; in isst_get_ctdp_control() local
81 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_ctdp_control()
84 if (ret) in isst_get_ctdp_control()
85 return ret; in isst_get_ctdp_control()
92 ret = isst_read_pm_config(cpu, &cp_state, &cp_cap); in isst_get_ctdp_control()
93 if (ret) { in isst_get_ctdp_control()
113 int ret; in isst_get_tdp_info() local
115 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_GET_TDP_INFO, in isst_get_tdp_info()
117 if (ret) { in isst_get_tdp_info()
119 return ret; in isst_get_tdp_info()
136 int ret; in isst_get_pwr_info() local
138 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_GET_PWR_INFO, in isst_get_pwr_info()
140 if (ret) in isst_get_pwr_info()
141 return ret; in isst_get_pwr_info()
158 int ret; in isst_get_uncore_p0_p1_info() local
159 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_uncore_p0_p1_info()
162 if (ret) { in isst_get_uncore_p0_p1_info()
180 int ret; in isst_get_p1_info() local
181 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_GET_P1_INFO, 0, in isst_get_p1_info()
183 if (ret) { in isst_get_p1_info()
203 int ret; in isst_get_uncore_mem_freq() local
205 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_GET_MEM_FREQ, in isst_get_uncore_mem_freq()
207 if (ret) { in isst_get_uncore_mem_freq()
236 int ret; in isst_get_tjmax_info() local
238 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_GET_TJMAX_INFO, in isst_get_tjmax_info()
240 if (ret) in isst_get_tjmax_info()
241 return ret; in isst_get_tjmax_info()
256 int i, ret; in isst_get_coremask_info() local
263 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_coremask_info()
266 if (ret) in isst_get_coremask_info()
267 return ret; in isst_get_coremask_info()
289 int ret; in isst_get_get_trl_from_msr() local
291 ret = isst_send_msr_command(cpu, 0x1AD, 0, &msr_trl); in isst_get_get_trl_from_msr()
292 if (ret) in isst_get_get_trl_from_msr()
293 return ret; in isst_get_get_trl_from_msr()
310 int ret; in isst_get_get_trl() local
313 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_get_trl()
316 if (ret) in isst_get_get_trl()
317 return ret; in isst_get_get_trl()
329 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_get_trl()
332 if (ret) in isst_get_get_trl()
333 return ret; in isst_get_get_trl()
348 int ret; in isst_get_trl_bucket_info() local
354 ret = isst_send_msr_command(cpu, 0x1ae, 0, buckets_info); in isst_get_trl_bucket_info()
355 if (ret) in isst_get_trl_bucket_info()
356 return ret; in isst_get_trl_bucket_info()
367 int ret; in isst_set_tdp_level_msr() local
379 ret = isst_send_msr_command(cpu, 0x64b, 1, &level); in isst_set_tdp_level_msr()
380 if (ret) in isst_set_tdp_level_msr()
381 return ret; in isst_set_tdp_level_msr()
391 int ret; in isst_set_tdp_level() local
400 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_SET_LEVEL, 0, in isst_set_tdp_level()
402 if (ret) { in isst_set_tdp_level()
404 return ret; in isst_set_tdp_level()
414 int i, ret, max_punit_core, max_mask_index; in isst_get_pbf_info() local
417 ret = isst_get_ctdp_levels(cpu, &pkg_dev); in isst_get_pbf_info()
418 if (ret) { in isst_get_pbf_info()
420 return ret; in isst_get_pbf_info()
428 ret = isst_get_ctdp_control(cpu, level, &ctdp_level); in isst_get_pbf_info()
429 if (ret) in isst_get_pbf_info()
430 return ret; in isst_get_pbf_info()
446 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_pbf_info()
449 if (ret) in isst_get_pbf_info()
464 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_pbf_info()
467 if (ret) in isst_get_pbf_info()
468 return ret; in isst_get_pbf_info()
477 ret = isst_send_mbox_command( in isst_get_pbf_info()
479 if (ret) in isst_get_pbf_info()
480 return ret; in isst_get_pbf_info()
487 ret = isst_send_mbox_command( in isst_get_pbf_info()
489 if (ret) in isst_get_pbf_info()
490 return ret; in isst_get_pbf_info()
511 int ret; in isst_set_pbf_fact_status() local
513 ret = isst_get_ctdp_levels(cpu, &pkg_dev); in isst_set_pbf_fact_status()
514 if (ret) in isst_set_pbf_fact_status()
519 ret = isst_get_ctdp_control(cpu, current_level, &ctdp_level); in isst_set_pbf_fact_status()
520 if (ret) in isst_set_pbf_fact_status()
521 return ret; in isst_set_pbf_fact_status()
545 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_set_pbf_fact_status()
547 if (ret) in isst_set_pbf_fact_status()
548 return ret; in isst_set_pbf_fact_status()
560 int i, k, ret; in isst_get_fact_bucket_info() local
565 ret = isst_send_mbox_command( in isst_get_fact_bucket_info()
569 if (ret) in isst_get_fact_bucket_info()
570 return ret; in isst_get_fact_bucket_info()
586 ret = isst_send_mbox_command( in isst_get_fact_bucket_info()
590 if (ret) in isst_get_fact_bucket_info()
591 return ret; in isst_get_fact_bucket_info()
626 int j, ret, print; in isst_get_fact_info() local
628 ret = isst_get_ctdp_levels(cpu, &pkg_dev); in isst_get_fact_info()
629 if (ret) { in isst_get_fact_info()
631 return ret; in isst_get_fact_info()
639 ret = isst_get_ctdp_control(cpu, level, &ctdp_level); in isst_get_fact_info()
640 if (ret) in isst_get_fact_info()
641 return ret; in isst_get_fact_info()
648 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_fact_info()
651 if (ret) in isst_get_fact_info()
652 return ret; in isst_get_fact_info()
661 ret = isst_get_fact_bucket_info(cpu, level, fact_info->bucket_info); in isst_get_fact_info()
662 if (ret) in isst_get_fact_info()
663 return ret; in isst_get_fact_info()
685 int ret; in isst_get_trl() local
687 ret = isst_send_msr_command(cpu, 0x1AD, 0, trl); in isst_get_trl()
688 if (ret) in isst_get_trl()
689 return ret; in isst_get_trl()
696 int ret; in isst_set_trl() local
701 ret = isst_send_msr_command(cpu, 0x1AD, 1, &trl); in isst_set_trl()
702 if (ret) in isst_set_trl()
703 return ret; in isst_set_trl()
711 int ret; in isst_set_trl_from_current_tdp() local
720 ret = isst_get_ctdp_levels(cpu, &pkg_dev); in isst_set_trl_from_current_tdp()
721 if (ret) in isst_set_trl_from_current_tdp()
722 return ret; in isst_set_trl_from_current_tdp()
724 ret = isst_get_get_trl(cpu, pkg_dev.current_level, 0, trl); in isst_set_trl_from_current_tdp()
725 if (ret) in isst_set_trl_from_current_tdp()
726 return ret; in isst_set_trl_from_current_tdp()
735 ret = isst_send_msr_command(cpu, 0x1AD, 1, &msr_trl); in isst_set_trl_from_current_tdp()
736 if (ret) in isst_set_trl_from_current_tdp()
737 return ret; in isst_set_trl_from_current_tdp()
746 int ret; in isst_get_config_tdp_lock_status() local
748 ret = isst_send_msr_command(cpu, 0x64b, 0, &tdp_control); in isst_get_config_tdp_lock_status()
749 if (ret) in isst_get_config_tdp_lock_status()
750 return ret; in isst_get_config_tdp_lock_status()
752 ret = !!(tdp_control & BIT(31)); in isst_get_config_tdp_lock_status()
754 return ret; in isst_get_config_tdp_lock_status()
776 int i, ret, valid = 0; in isst_get_process_ctdp() local
781 ret = isst_get_ctdp_levels(cpu, pkg_dev); in isst_get_process_ctdp()
782 if (ret) in isst_get_process_ctdp()
783 return ret; in isst_get_process_ctdp()
812 ret = isst_get_ctdp_control(cpu, i, ctdp_level); in isst_get_process_ctdp()
813 if (ret) in isst_get_process_ctdp()
821 ret = isst_get_pbf_info(cpu, i, &ctdp_level->pbf_info); in isst_get_process_ctdp()
822 if (!ret) in isst_get_process_ctdp()
827 ret = isst_get_fact_info(cpu, i, 0xff, in isst_get_process_ctdp()
829 if (ret) in isst_get_process_ctdp()
830 return ret; in isst_get_process_ctdp()
847 ret = isst_get_tdp_info(cpu, i, ctdp_level); in isst_get_process_ctdp()
848 if (ret) in isst_get_process_ctdp()
849 return ret; in isst_get_process_ctdp()
851 ret = isst_get_pwr_info(cpu, i, ctdp_level); in isst_get_process_ctdp()
852 if (ret) in isst_get_process_ctdp()
853 return ret; in isst_get_process_ctdp()
855 ret = isst_get_tjmax_info(cpu, i, ctdp_level); in isst_get_process_ctdp()
856 if (ret) in isst_get_process_ctdp()
857 return ret; in isst_get_process_ctdp()
861 ret = isst_get_coremask_info(cpu, i, ctdp_level); in isst_get_process_ctdp()
862 if (ret) in isst_get_process_ctdp()
863 return ret; in isst_get_process_ctdp()
865 ret = isst_get_trl_bucket_info(cpu, &ctdp_level->buckets_info); in isst_get_process_ctdp()
866 if (ret) in isst_get_process_ctdp()
867 return ret; in isst_get_process_ctdp()
869 ret = isst_get_get_trl(cpu, i, 0, in isst_get_process_ctdp()
871 if (ret) in isst_get_process_ctdp()
872 return ret; in isst_get_process_ctdp()
874 ret = isst_get_get_trl(cpu, i, 1, in isst_get_process_ctdp()
876 if (ret) in isst_get_process_ctdp()
877 return ret; in isst_get_process_ctdp()
879 ret = isst_get_get_trl(cpu, i, 2, in isst_get_process_ctdp()
881 if (ret) in isst_get_process_ctdp()
882 return ret; in isst_get_process_ctdp()
898 int ret; in isst_clos_get_clos_information() local
900 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG, 0, 0, in isst_clos_get_clos_information()
902 if (ret) in isst_clos_get_clos_information()
903 return ret; in isst_clos_get_clos_information()
923 int ret; in isst_pm_qos_config() local
929 ret = isst_get_ctdp_levels(cpu, &pkg_dev); in isst_pm_qos_config()
930 if (ret) { in isst_pm_qos_config()
932 return ret; in isst_pm_qos_config()
935 ret = isst_get_ctdp_control(cpu, pkg_dev.current_level, in isst_pm_qos_config()
937 if (ret) in isst_pm_qos_config()
938 return ret; in isst_pm_qos_config()
944 ret = isst_write_pm_config(cpu, 0); in isst_pm_qos_config()
945 if (ret) in isst_pm_qos_config()
948 ret = isst_write_pm_config(cpu, 1); in isst_pm_qos_config()
949 if (ret) in isst_pm_qos_config()
953 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG, 0, 0, in isst_pm_qos_config()
955 if (ret) { in isst_pm_qos_config()
957 return ret; in isst_pm_qos_config()
977 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG, in isst_pm_qos_config()
979 if (ret) in isst_pm_qos_config()
980 return ret; in isst_pm_qos_config()
991 int ret; in isst_pm_get_clos() local
993 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_CLOS, clos, 0, in isst_pm_get_clos()
995 if (ret) in isst_pm_get_clos()
996 return ret; in isst_pm_get_clos()
1014 int ret; in isst_set_clos() local
1024 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_CLOS, param, req, in isst_set_clos()
1026 if (ret) in isst_set_clos()
1027 return ret; in isst_set_clos()
1038 int core_id, ret; in isst_clos_get_assoc_status() local
1043 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PQR_ASSOC, param, 0, in isst_clos_get_assoc_status()
1045 if (ret) in isst_clos_get_assoc_status()
1046 return ret; in isst_clos_get_assoc_status()
1059 int core_id, ret; in isst_clos_associate() local
1065 ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PQR_ASSOC, param, in isst_clos_associate()
1067 if (ret) in isst_clos_associate()
1068 return ret; in isst_clos_associate()