Lines Matching refs:tbl
168 ATOM_OBJECT_TABLE *tbl = ((ATOM_OBJECT_TABLE *) bios_get_image(&bp->base, in bios_parser_get_connector_id() local
170 struct_size(tbl, asObjects, 1))); in bios_parser_get_connector_id()
172 if (!tbl) { in bios_parser_get_connector_id()
177 if (tbl->ucNumberOfObjects <= i) { in bios_parser_get_connector_id()
179 i, tbl->ucNumberOfObjects); in bios_parser_get_connector_id()
183 id = le16_to_cpu(tbl->asObjects[i].usObjectID); in bios_parser_get_connector_id()
654 ATOM_ASIC_SS_ASSIGNMENT_V3 *tbl; in get_ss_info_v3_1() local
676 tbl = (ATOM_ASIC_SS_ASSIGNMENT_V3 *) in get_ss_info_v3_1()
682 if (tbl[i].ucClockIndication != (uint8_t) id) in get_ss_info_v3_1()
701 if (SS_MODE_V3_EXTERNAL_SS_MASK & tbl[i].ucSpreadSpectrumMode) in get_ss_info_v3_1()
704 if (SS_MODE_V3_CENTRE_SPREAD_MASK & tbl[i].ucSpreadSpectrumMode) in get_ss_info_v3_1()
713 & tbl[i].ucSpreadSpectrumMode) in get_ss_info_v3_1()
719 le32_to_cpu(tbl[i].ulTargetClockRange) * 10; in get_ss_info_v3_1()
721 (uint32_t)le16_to_cpu(tbl[i].usSpreadSpectrumPercentage); in get_ss_info_v3_1()
723 (uint32_t)(le16_to_cpu(tbl[i].usSpreadRateIn10Hz) * 10); in get_ss_info_v3_1()
1030 ATOM_ASIC_SS_ASSIGNMENT_V2 *tbl; in get_ss_info_from_internal_ss_info_tbl_V2_1() local
1049 tbl = (ATOM_ASIC_SS_ASSIGNMENT_V2 *) in get_ss_info_from_internal_ss_info_tbl_V2_1()
1054 if (tbl[i].ucClockIndication != (uint8_t)id) in get_ss_info_from_internal_ss_info_tbl_V2_1()
1058 & tbl[i].ucSpreadSpectrumMode) { in get_ss_info_from_internal_ss_info_tbl_V2_1()
1062 & tbl[i].ucSpreadSpectrumMode) { in get_ss_info_from_internal_ss_info_tbl_V2_1()
1068 le32_to_cpu(tbl[i].ulTargetClockRange) * 10; in get_ss_info_from_internal_ss_info_tbl_V2_1()
1070 (uint32_t)le16_to_cpu(tbl[i].usSpreadSpectrumPercentage); in get_ss_info_from_internal_ss_info_tbl_V2_1()
1072 (uint32_t)(le16_to_cpu(tbl[i].usSpreadRateIn10Hz) * 10); in get_ss_info_from_internal_ss_info_tbl_V2_1()
1099 ATOM_SPREAD_SPECTRUM_INFO *tbl; in get_ss_info_from_ss_info_table() local
1114 tbl = GET_IMAGE(ATOM_SPREAD_SPECTRUM_INFO, DATA_TABLES(SS_Info)); in get_ss_info_from_ss_info_table()
1115 if (!tbl) in get_ss_info_from_ss_info_table()
1142 table_size = (le16_to_cpu(tbl->sHeader.usStructureSize) - in get_ss_info_from_ss_info_table()
1147 if (id_local != (uint32_t)tbl->asSS_Info[i].ucSS_Id) in get_ss_info_from_ss_info_table()
1153 tbl->asSS_Info[i].ucSpreadSpectrumType) in get_ss_info_from_ss_info_table()
1157 tbl->asSS_Info[i].ucSpreadSpectrumType) in get_ss_info_from_ss_info_table()
1162 (uint32_t)le16_to_cpu(tbl->asSS_Info[i].usSpreadSpectrumPercentage); in get_ss_info_from_ss_info_table()
1163 ss_info->step_and_delay_info.step = tbl->asSS_Info[i].ucSS_Step; in get_ss_info_from_ss_info_table()
1165 tbl->asSS_Info[i].ucSS_Delay; in get_ss_info_from_ss_info_table()
1167 tbl->asSS_Info[i].ucRecommendedRef_Div; in get_ss_info_from_ss_info_table()
1169 (uint32_t)tbl->asSS_Info[i].ucSS_Range * 10000; in get_ss_info_from_ss_info_table()
1626 ATOM_SPREAD_SPECTRUM_INFO *tbl; in get_ss_entry_number_from_ss_info_tbl() local
1642 tbl = GET_IMAGE(ATOM_SPREAD_SPECTRUM_INFO, in get_ss_entry_number_from_ss_info_tbl()
1644 if (!tbl) in get_ss_entry_number_from_ss_info_tbl()
1670 table_size = (le16_to_cpu(tbl->sHeader.usStructureSize) - in get_ss_entry_number_from_ss_info_tbl()
1675 if (id_local == (uint32_t)tbl->asSS_Info[i].ucSS_Id) { in get_ss_entry_number_from_ss_info_tbl()
1717 ATOM_ASIC_SS_ASSIGNMENT_V2 *tbl; in get_ss_entry_number_from_internal_ss_info_tbl_v2_1() local
1735 tbl = (ATOM_ASIC_SS_ASSIGNMENT_V2 *) in get_ss_entry_number_from_internal_ss_info_tbl_v2_1()
1738 if (tbl[i].ucClockIndication == (uint8_t)id) in get_ss_entry_number_from_internal_ss_info_tbl_v2_1()
1759 ATOM_ASIC_SS_ASSIGNMENT_V3 *tbl; in get_ss_entry_number_from_internal_ss_info_tbl_V3_1() local
1776 tbl = (ATOM_ASIC_SS_ASSIGNMENT_V3 *) in get_ss_entry_number_from_internal_ss_info_tbl_V3_1()
1780 if (tbl[i].ucClockIndication == (uint8_t)id) in get_ss_entry_number_from_internal_ss_info_tbl_V3_1()
1976 ATOM_OBJECT_TABLE *tbl; in get_bios_object() local
2004 tbl = ((ATOM_OBJECT_TABLE *) bios_get_image(&bp->base, offset, in get_bios_object()
2005 struct_size(tbl, asObjects, 1))); in get_bios_object()
2006 if (!tbl) in get_bios_object()
2009 for (i = 0; i < tbl->ucNumberOfObjects; i++) in get_bios_object()
2012 le16_to_cpu(tbl->asObjects[i].usObjectID)))) in get_bios_object()
2013 return &tbl->asObjects[i]; in get_bios_object()