Searched refs:num_recs (Results 1 – 3 of 3) sorted by relevance
311 control->num_recs = (hdr->tbl_size - EEPROM_TABLE_HEADER_SIZE) / in amdgpu_ras_eeprom_init()317 control->num_recs); in amdgpu_ras_eeprom_init()321 if (ras->bad_page_cnt_threshold > control->num_recs) { in amdgpu_ras_eeprom_init()511 ((control->num_recs + num) >= ras->bad_page_cnt_threshold)) { in amdgpu_ras_eeprom_process_recods()514 control->num_recs + num, ras->bad_page_cnt_threshold); in amdgpu_ras_eeprom_process_recods()588 control->num_recs += num; in amdgpu_ras_eeprom_process_recods()589 control->num_recs %= EEPROM_MAX_RECORD_NUM; in amdgpu_ras_eeprom_process_recods()593 control->num_recs * EEPROM_TABLE_RECORD_SIZE; in amdgpu_ras_eeprom_process_recods()
48 unsigned int num_recs; member
1683 save_count = data->count - control->num_recs; in amdgpu_ras_save_bad_pages()1687 &data->bps[control->num_recs], in amdgpu_ras_save_bad_pages()1712 if (!control->num_recs || (amdgpu_bad_page_threshold == 0)) in amdgpu_ras_load_bad_pages()1715 bps = kcalloc(control->num_recs, sizeof(*bps), GFP_KERNEL); in amdgpu_ras_load_bad_pages()1720 control->num_recs)) { in amdgpu_ras_load_bad_pages()1726 ret = amdgpu_ras_add_bad_pages(adev, bps, control->num_recs); in amdgpu_ras_load_bad_pages()1916 if (con->eeprom_control.num_recs) { in amdgpu_ras_recovery_init()