Lines Matching refs:buff

58 					  unsigned char *buff)  in __encode_table_header_to_buff()  argument
60 uint32_t *pp = (uint32_t *) buff; in __encode_table_header_to_buff()
70 unsigned char *buff) in __decode_table_header_from_buff() argument
72 uint32_t *pp = (uint32_t *)buff; in __decode_table_header_from_buff()
82 unsigned char *buff) in __update_table_header() argument
89 .buf = buff, in __update_table_header()
93 *(uint16_t *)buff = EEPROM_HDR_START; in __update_table_header()
94 __encode_table_header_to_buff(&control->tbl_hdr, buff + EEPROM_ADDRESS_SIZE); in __update_table_header()
109 unsigned char buff[EEPROM_ADDRESS_SIZE + EEPROM_TABLE_HEADER_SIZE] = { 0 }; in amdgpu_ras_eeprom_init() local
115 .buf = buff, in amdgpu_ras_eeprom_init()
141 __decode_table_header_from_buff(hdr, &buff[2]); in amdgpu_ras_eeprom_init()
159 ret = __update_table_header(control, buff); in amdgpu_ras_eeprom_init()
184 unsigned char *buff) in __encode_table_record_to_buff() argument
190 buff[i++] = record->err_type; in __encode_table_record_to_buff()
192 buff[i++] = record->bank; in __encode_table_record_to_buff()
195 memcpy(buff + i, &tmp, 8); in __encode_table_record_to_buff()
199 memcpy(buff + i, &tmp, 6); in __encode_table_record_to_buff()
202 buff[i++] = record->mem_channel; in __encode_table_record_to_buff()
203 buff[i++] = record->mcumc_id; in __encode_table_record_to_buff()
206 memcpy(buff + i, &tmp, 6); in __encode_table_record_to_buff()
211 unsigned char *buff) in __decode_table_record_from_buff() argument
217 record->err_type = buff[i++]; in __decode_table_record_from_buff()
219 record->bank = buff[i++]; in __decode_table_record_from_buff()
221 memcpy(&tmp, buff + i, 8); in __decode_table_record_from_buff()
225 memcpy(&tmp, buff + i, 6); in __decode_table_record_from_buff()
229 buff[i++] = record->mem_channel; in __decode_table_record_from_buff()
230 buff[i++] = record->mcumc_id; in __decode_table_record_from_buff()
232 memcpy(&tmp, buff + i, 6); in __decode_table_record_from_buff()
376 unsigned char *buff = &buffs[i * (EEPROM_ADDRESS_SIZE + EEPROM_TABLE_RECORD_SIZE)]; in amdgpu_ras_eeprom_process_recods() local
390 msg->buf = buff; in amdgpu_ras_eeprom_process_recods()
393 buff[0] = ((control->next_addr >> 8) & 0xff); in amdgpu_ras_eeprom_process_recods()
394 buff[1] = (control->next_addr & 0xff); in amdgpu_ras_eeprom_process_recods()
398 __encode_table_record_to_buff(control, record, buff + EEPROM_ADDRESS_SIZE); in amdgpu_ras_eeprom_process_recods()
418 unsigned char *buff = &buffs[i*(EEPROM_ADDRESS_SIZE + EEPROM_TABLE_RECORD_SIZE)]; in amdgpu_ras_eeprom_process_recods() local
421 __decode_table_record_from_buff(control, record, buff + EEPROM_ADDRESS_SIZE); in amdgpu_ras_eeprom_process_recods()