Lines Matching refs:rai
289 __encode_table_ras_info_to_buf(struct amdgpu_ras_eeprom_table_ras_info *rai, in __encode_table_ras_info_to_buf() argument
295 tmp = ((uint32_t)(rai->rma_status) & 0xFF) | in __encode_table_ras_info_to_buf()
296 (((uint32_t)(rai->health_percent) << 8) & 0xFF00) | in __encode_table_ras_info_to_buf()
297 (((uint32_t)(rai->ecc_page_threshold) << 16) & 0xFFFF0000); in __encode_table_ras_info_to_buf()
302 __decode_table_ras_info_from_buf(struct amdgpu_ras_eeprom_table_ras_info *rai, in __decode_table_ras_info_from_buf() argument
309 rai->rma_status = tmp & 0xFF; in __decode_table_ras_info_from_buf()
310 rai->health_percent = (tmp >> 8) & 0xFF; in __decode_table_ras_info_from_buf()
311 rai->ecc_page_threshold = (tmp >> 16) & 0xFFFF; in __decode_table_ras_info_from_buf()
418 struct amdgpu_ras_eeprom_table_ras_info *rai = &control->tbl_rai; in amdgpu_ras_eeprom_reset_table() local
436 rai->rma_status = GPU_HEALTH_USABLE; in amdgpu_ras_eeprom_reset_table()
441 rai->health_percent = 100; in amdgpu_ras_eeprom_reset_table()
443 rai->ecc_page_threshold = con->bad_page_cnt_threshold; in amdgpu_ras_eeprom_reset_table()
1274 struct amdgpu_ras_eeprom_table_ras_info *rai = &control->tbl_rai; in __read_table_ras_info() local
1298 __decode_table_ras_info_from_buf(rai, buf); in __read_table_ras_info()