Searched refs:rai (Results 1 – 7 of 7) sorted by relevance
289 __encode_table_ras_info_to_buf(struct amdgpu_ras_eeprom_table_ras_info *rai, in __encode_table_ras_info_to_buf() argument295 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() argument309 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() local436 rai->rma_status = GPU_HEALTH_USABLE; in amdgpu_ras_eeprom_reset_table()[all …]
7 * Harninder Rai <harninder.rai@nxp.com>