Lines Matching full:csum

356 	u8  *pp, csum;  in __calc_hdr_byte_sum()  local
362 csum = 0; in __calc_hdr_byte_sum()
364 csum += *pp; in __calc_hdr_byte_sum()
366 return csum; in __calc_hdr_byte_sum()
372 u8 *pp, csum; in __calc_ras_info_byte_sum() local
377 csum = 0; in __calc_ras_info_byte_sum()
379 csum += *pp; in __calc_ras_info_byte_sum()
381 return csum; in __calc_ras_info_byte_sum()
391 u8 csum; in amdgpu_ras_eeprom_correct_header_tag() local
393 csum = -hdr->checksum; in amdgpu_ras_eeprom_correct_header_tag()
396 csum -= (hh[0] + hh[1] + hh[2] + hh[3]); in amdgpu_ras_eeprom_correct_header_tag()
398 csum += hh[0] + hh[1] + hh[2] + hh[3]; in amdgpu_ras_eeprom_correct_header_tag()
399 csum = -csum; in amdgpu_ras_eeprom_correct_header_tag()
402 hdr->checksum = csum; in amdgpu_ras_eeprom_correct_header_tag()
438 u8 csum; in amdgpu_ras_eeprom_reset_table() local
463 csum = __calc_hdr_byte_sum(control); in amdgpu_ras_eeprom_reset_table()
465 csum += __calc_ras_info_byte_sum(control); in amdgpu_ras_eeprom_reset_table()
466 csum = -csum; in amdgpu_ras_eeprom_reset_table()
467 hdr->checksum = csum; in amdgpu_ras_eeprom_reset_table()
736 u8 *buf, *pp, csum; in amdgpu_ras_eeprom_update_header() local
808 csum = 0; in amdgpu_ras_eeprom_update_header()
810 csum += *pp; in amdgpu_ras_eeprom_update_header()
812 csum += __calc_hdr_byte_sum(control); in amdgpu_ras_eeprom_update_header()
814 csum += __calc_ras_info_byte_sum(control); in amdgpu_ras_eeprom_update_header()
816 csum = -csum; in amdgpu_ras_eeprom_update_header()
817 control->tbl_hdr.checksum = csum; in amdgpu_ras_eeprom_update_header()
1260 u8 csum, *buf, *pp; in __verify_ras_table_checksum() local
1289 csum = 0; in __verify_ras_table_checksum()
1291 csum += *pp; in __verify_ras_table_checksum()
1294 return res < 0 ? res : csum; in __verify_ras_table_checksum()