Home
last modified time | relevance | path

Searched refs:chksum (Results 1 – 7 of 7) sorted by relevance

/rk3399_rockchip-uboot/board/gateworks/gw_ventana/
H A Deeprom.c22 int chksum; in read_eeprom() local
54 for (chksum = 0, i = 0; i < sizeof(*info)-2; i++) in read_eeprom()
55 chksum += buf[i]; in read_eeprom()
56 if ((info->chksum[0] != chksum>>8) || in read_eeprom()
57 (info->chksum[1] != (chksum&0xff))) { in read_eeprom()
166 int chksum; in do_econfig() local
170 for (chksum = 0, i = 0; i < sizeof(*info)-2; i++) in do_econfig()
171 chksum += buf[i]; in do_econfig()
173 (info->chksum[0] << 8) | info->chksum[1]); in do_econfig()
174 debug("new chksum:0x%04x\n", chksum); in do_econfig()
[all …]
H A Dventana_eeprom.h35 u8 chksum[2]; /* 0x4E */ member
/rk3399_rockchip-uboot/common/
H A Ds_record.c19 unsigned char chksum; /* buffer for checksum */ in srec_decode() local
21 chksum = 0; in srec_decode()
43 chksum += *count; in srec_decode()
96 chksum += v; in srec_decode()
106 chksum += v; in srec_decode()
118 chksum += v; in srec_decode()
126 chksum += v; in srec_decode()
140 chksum += v; in srec_decode()
149 if ((unsigned char)v != (unsigned char)~chksum) { in srec_decode()
/rk3399_rockchip-uboot/arch/x86/cpu/tangier/
H A Dsdram.c28 char chksum = 0; in sfi_table_check() local
39 chksum += *pos++; in sfi_table_check()
41 if (chksum) in sfi_table_check()
45 return chksum ? -EILSEQ : 0; in sfi_table_check()
/rk3399_rockchip-uboot/net/
H A Dcdp.c113 ushort chksum; in cdp_send_trigger() local
212 chksum = cdp_compute_csum((uchar *)net_tx_packet + len, in cdp_send_trigger()
214 if (chksum == 0) in cdp_send_trigger()
215 chksum = 0xFFFF; in cdp_send_trigger()
216 *cp = htons(chksum); in cdp_send_trigger()
/rk3399_rockchip-uboot/disk/
H A Dpart_iso.c54 unsigned short chksum; in part_get_info_iso_verb() local
112 chksum=0; in part_get_info_iso_verb()
115 chksum += le16_to_cpu(chksumbuf[i]); in part_get_info_iso_verb()
116 if(chksum!=0) { in part_get_info_iso_verb()
/rk3399_rockchip-uboot/fs/fat/
H A Dfat.c801 u8 chksum, alias_checksum = ((dir_slot *)dent)->alias_checksum; in extract_vfat_name() local
822 chksum = mkcksum(dent->name, dent->ext); in extract_vfat_name()
825 if (chksum != alias_checksum) { in extract_vfat_name()
827 chksum, alias_checksum, itr->l_name, dent->name, dent->ext); in extract_vfat_name()