Lines Matching refs:feature_id

316 	enum smu_feature_mask feature_id = 0;  in smu_clk_dpm_is_enabled()  local
321 feature_id = SMU_FEATURE_DPM_UCLK_BIT; in smu_clk_dpm_is_enabled()
325 feature_id = SMU_FEATURE_DPM_GFXCLK_BIT; in smu_clk_dpm_is_enabled()
328 feature_id = SMU_FEATURE_DPM_SOCCLK_BIT; in smu_clk_dpm_is_enabled()
334 if(!smu_feature_is_enabled(smu, feature_id)) { in smu_clk_dpm_is_enabled()
612 int feature_id; in smu_feature_is_enabled() local
618 feature_id = smu_feature_get_index(smu, mask); in smu_feature_is_enabled()
619 if (feature_id < 0) in smu_feature_is_enabled()
622 WARN_ON(feature_id > feature->feature_num); in smu_feature_is_enabled()
625 ret = test_bit(feature_id, feature->enabled); in smu_feature_is_enabled()
635 int feature_id; in smu_feature_set_enabled() local
639 feature_id = smu_feature_get_index(smu, mask); in smu_feature_set_enabled()
640 if (feature_id < 0) in smu_feature_set_enabled()
643 WARN_ON(feature_id > feature->feature_num); in smu_feature_set_enabled()
645 feature_mask = 1ULL << feature_id; in smu_feature_set_enabled()
653 test_and_set_bit(feature_id, feature->enabled); in smu_feature_set_enabled()
655 test_and_clear_bit(feature_id, feature->enabled); in smu_feature_set_enabled()
666 int feature_id; in smu_feature_is_supported() local
669 feature_id = smu_feature_get_index(smu, mask); in smu_feature_is_supported()
670 if (feature_id < 0) in smu_feature_is_supported()
673 WARN_ON(feature_id > feature->feature_num); in smu_feature_is_supported()
676 ret = test_bit(feature_id, feature->supported); in smu_feature_is_supported()
687 int feature_id; in smu_feature_set_supported() local
690 feature_id = smu_feature_get_index(smu, mask); in smu_feature_set_supported()
691 if (feature_id < 0) in smu_feature_set_supported()
694 WARN_ON(feature_id > feature->feature_num); in smu_feature_set_supported()
698 test_and_set_bit(feature_id, feature->supported); in smu_feature_set_supported()
700 test_and_clear_bit(feature_id, feature->supported); in smu_feature_set_supported()