Lines Matching refs:ext_hdr
507 ATOM_PPLIB_EXTENDEDHEADER *ext_hdr = (ATOM_PPLIB_EXTENDEDHEADER *) in amdgpu_parse_extended_power_table() local
510 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2) && in amdgpu_parse_extended_power_table()
511 ext_hdr->usVCETableOffset) { in amdgpu_parse_extended_power_table()
514 le16_to_cpu(ext_hdr->usVCETableOffset) + 1); in amdgpu_parse_extended_power_table()
518 le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + in amdgpu_parse_extended_power_table()
523 le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + in amdgpu_parse_extended_power_table()
572 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V3) && in amdgpu_parse_extended_power_table()
573 ext_hdr->usUVDTableOffset) { in amdgpu_parse_extended_power_table()
576 le16_to_cpu(ext_hdr->usUVDTableOffset) + 1); in amdgpu_parse_extended_power_table()
580 le16_to_cpu(ext_hdr->usUVDTableOffset) + 1 + in amdgpu_parse_extended_power_table()
608 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V4) && in amdgpu_parse_extended_power_table()
609 ext_hdr->usSAMUTableOffset) { in amdgpu_parse_extended_power_table()
613 le16_to_cpu(ext_hdr->usSAMUTableOffset) + 1); in amdgpu_parse_extended_power_table()
635 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5) && in amdgpu_parse_extended_power_table()
636 ext_hdr->usPPMTableOffset) { in amdgpu_parse_extended_power_table()
639 le16_to_cpu(ext_hdr->usPPMTableOffset)); in amdgpu_parse_extended_power_table()
666 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V6) && in amdgpu_parse_extended_power_table()
667 ext_hdr->usACPTableOffset) { in amdgpu_parse_extended_power_table()
671 le16_to_cpu(ext_hdr->usACPTableOffset) + 1); in amdgpu_parse_extended_power_table()
693 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V7) && in amdgpu_parse_extended_power_table()
694 ext_hdr->usPowerTuneTableOffset) { in amdgpu_parse_extended_power_table()
696 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); in amdgpu_parse_extended_power_table()
707 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); in amdgpu_parse_extended_power_table()
714 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); in amdgpu_parse_extended_power_table()
731 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V8) && in amdgpu_parse_extended_power_table()
732 ext_hdr->usSclkVddgfxTableOffset) { in amdgpu_parse_extended_power_table()
735 le16_to_cpu(ext_hdr->usSclkVddgfxTableOffset)); in amdgpu_parse_extended_power_table()