Lines Matching refs:vid_mapping_table
1531 struct sumo_vid_mapping_table *vid_mapping_table, in sumo_convert_vid2_to_vid7() argument
1536 for (i = 0; i < vid_mapping_table->num_entries; i++) { in sumo_convert_vid2_to_vid7()
1537 if (vid_mapping_table->entries[i].vid_2bit == vid_2bit) in sumo_convert_vid2_to_vid7()
1538 return vid_mapping_table->entries[i].vid_7bit; in sumo_convert_vid2_to_vid7()
1541 return vid_mapping_table->entries[vid_mapping_table->num_entries - 1].vid_7bit; in sumo_convert_vid2_to_vid7()
1546 struct sumo_vid_mapping_table *vid_mapping_table,
1551 for (i = 0; i < vid_mapping_table->num_entries; i++) {
1552 if (vid_mapping_table->entries[i].vid_7bit == vid_7bit)
1553 return vid_mapping_table->entries[i].vid_2bit;
1556 return vid_mapping_table->entries[vid_mapping_table->num_entries - 1].vid_2bit;
1564 u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid_2bit); in sumo_convert_voltage_index_to_value()
1617 struct sumo_vid_mapping_table *vid_mapping_table, in sumo_construct_vid_mapping_table() argument
1624 vid_mapping_table->entries[table[i].usVoltageIndex].vid_7bit = in sumo_construct_vid_mapping_table()
1626 vid_mapping_table->entries[table[i].usVoltageIndex].vid_2bit = in sumo_construct_vid_mapping_table()
1632 if (vid_mapping_table->entries[i].vid_7bit == 0) { in sumo_construct_vid_mapping_table()
1634 if (vid_mapping_table->entries[j].vid_7bit != 0) { in sumo_construct_vid_mapping_table()
1635 vid_mapping_table->entries[i] = in sumo_construct_vid_mapping_table()
1636 vid_mapping_table->entries[j]; in sumo_construct_vid_mapping_table()
1637 vid_mapping_table->entries[j].vid_7bit = 0; in sumo_construct_vid_mapping_table()
1647 vid_mapping_table->num_entries = i; in sumo_construct_vid_mapping_table()
1721 sumo_construct_vid_mapping_table(rdev, &pi->sys_info.vid_mapping_table, in sumo_parse_sys_info_table()