Lines Matching refs:rai
283 __encode_table_ras_info_to_buf(struct amdgpu_ras_eeprom_table_ras_info *rai, in __encode_table_ras_info_to_buf() argument
289 tmp = ((uint32_t)(rai->rma_status) & 0xFF) | in __encode_table_ras_info_to_buf()
290 (((uint32_t)(rai->health_percent) << 8) & 0xFF00) | in __encode_table_ras_info_to_buf()
291 (((uint32_t)(rai->ecc_page_threshold) << 16) & 0xFFFF0000); in __encode_table_ras_info_to_buf()
296 __decode_table_ras_info_from_buf(struct amdgpu_ras_eeprom_table_ras_info *rai, in __decode_table_ras_info_from_buf() argument
303 rai->rma_status = tmp & 0xFF; in __decode_table_ras_info_from_buf()
304 rai->health_percent = (tmp >> 8) & 0xFF; in __decode_table_ras_info_from_buf()
305 rai->ecc_page_threshold = (tmp >> 16) & 0xFFFF; in __decode_table_ras_info_from_buf()
412 struct amdgpu_ras_eeprom_table_ras_info *rai = &control->tbl_rai; in amdgpu_ras_eeprom_reset_table() local
430 rai->rma_status = GPU_HEALTH_USABLE; in amdgpu_ras_eeprom_reset_table()
435 rai->health_percent = 100; in amdgpu_ras_eeprom_reset_table()
437 rai->ecc_page_threshold = con->bad_page_cnt_threshold; in amdgpu_ras_eeprom_reset_table()
1268 struct amdgpu_ras_eeprom_table_ras_info *rai = &control->tbl_rai; in __read_table_ras_info() local
1292 __decode_table_ras_info_from_buf(rai, buf); in __read_table_ras_info()