Lines Matching refs:ss_assign
888 union asic_ss_assignment *ss_assign; in amdgpu_atombios_get_asic_ss_info() local
913 ss_assign = (union asic_ss_assignment *)((u8 *)&ss_info->info.asSpreadSpectrum[0]); in amdgpu_atombios_get_asic_ss_info()
915 if ((ss_assign->v1.ucClockIndication == id) && in amdgpu_atombios_get_asic_ss_info()
916 (clock <= le32_to_cpu(ss_assign->v1.ulTargetClockRange))) { in amdgpu_atombios_get_asic_ss_info()
918 le16_to_cpu(ss_assign->v1.usSpreadSpectrumPercentage); in amdgpu_atombios_get_asic_ss_info()
919 ss->type = ss_assign->v1.ucSpreadSpectrumMode; in amdgpu_atombios_get_asic_ss_info()
920 ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz); in amdgpu_atombios_get_asic_ss_info()
924 ss_assign = (union asic_ss_assignment *) in amdgpu_atombios_get_asic_ss_info()
925 ((u8 *)ss_assign + sizeof(ATOM_ASIC_SS_ASSIGNMENT)); in amdgpu_atombios_get_asic_ss_info()
931 ss_assign = (union asic_ss_assignment *)((u8 *)&ss_info->info_2.asSpreadSpectrum[0]); in amdgpu_atombios_get_asic_ss_info()
933 if ((ss_assign->v2.ucClockIndication == id) && in amdgpu_atombios_get_asic_ss_info()
934 (clock <= le32_to_cpu(ss_assign->v2.ulTargetClockRange))) { in amdgpu_atombios_get_asic_ss_info()
936 le16_to_cpu(ss_assign->v2.usSpreadSpectrumPercentage); in amdgpu_atombios_get_asic_ss_info()
937 ss->type = ss_assign->v2.ucSpreadSpectrumMode; in amdgpu_atombios_get_asic_ss_info()
938 ss->rate = le16_to_cpu(ss_assign->v2.usSpreadRateIn10Hz); in amdgpu_atombios_get_asic_ss_info()
946 ss_assign = (union asic_ss_assignment *) in amdgpu_atombios_get_asic_ss_info()
947 ((u8 *)ss_assign + sizeof(ATOM_ASIC_SS_ASSIGNMENT_V2)); in amdgpu_atombios_get_asic_ss_info()
953 ss_assign = (union asic_ss_assignment *)((u8 *)&ss_info->info_3.asSpreadSpectrum[0]); in amdgpu_atombios_get_asic_ss_info()
955 if ((ss_assign->v3.ucClockIndication == id) && in amdgpu_atombios_get_asic_ss_info()
956 (clock <= le32_to_cpu(ss_assign->v3.ulTargetClockRange))) { in amdgpu_atombios_get_asic_ss_info()
958 le16_to_cpu(ss_assign->v3.usSpreadSpectrumPercentage); in amdgpu_atombios_get_asic_ss_info()
959 ss->type = ss_assign->v3.ucSpreadSpectrumMode; in amdgpu_atombios_get_asic_ss_info()
960 ss->rate = le16_to_cpu(ss_assign->v3.usSpreadRateIn10Hz); in amdgpu_atombios_get_asic_ss_info()
961 if (ss_assign->v3.ucSpreadSpectrumMode & in amdgpu_atombios_get_asic_ss_info()
973 ss_assign = (union asic_ss_assignment *) in amdgpu_atombios_get_asic_ss_info()
974 ((u8 *)ss_assign + sizeof(ATOM_ASIC_SS_ASSIGNMENT_V3)); in amdgpu_atombios_get_asic_ss_info()