Home
last modified time | relevance | path

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

123

/third_party/uboot/u-boot-2020.01/board/gateworks/gw_ventana/
Deeprom.c22 int chksum; in read_eeprom() local
56 for (chksum = 0, i = 0; i < sizeof(*info)-2; i++) in read_eeprom()
57 chksum += buf[i]; in read_eeprom()
58 if ((info->chksum[0] != chksum>>8) || in read_eeprom()
59 (info->chksum[1] != (chksum&0xff))) { in read_eeprom()
189 int chksum; in do_econfig() local
193 for (chksum = 0, i = 0; i < sizeof(*info)-2; i++) in do_econfig()
194 chksum += buf[i]; in do_econfig()
196 (info->chksum[0] << 8) | info->chksum[1]); in do_econfig()
197 debug("new chksum:0x%04x\n", chksum); in do_econfig()
[all …]
/third_party/uboot/u-boot-2020.01/common/
Dbloblist.c151 u32 chksum; in bloblist_calc_chksum() local
153 chksum = crc32(0, (unsigned char *)hdr, in bloblist_calc_chksum()
154 offsetof(struct bloblist_hdr, chksum)); in bloblist_calc_chksum()
156 chksum = crc32(chksum, (void *)rec, rec->hdr_size); in bloblist_calc_chksum()
157 chksum = crc32(chksum, (void *)rec + rec->hdr_size, rec->size); in bloblist_calc_chksum()
160 return chksum; in bloblist_calc_chksum()
179 hdr->chksum = 0; in bloblist_new()
188 u32 chksum; in bloblist_check() local
197 chksum = bloblist_calc_chksum(hdr); in bloblist_check()
198 if (hdr->chksum != chksum) { in bloblist_check()
[all …]
Ds_record.c18 unsigned char chksum; /* buffer for checksum */ in srec_decode() local
20 chksum = 0; in srec_decode()
42 chksum += *count; in srec_decode()
95 chksum += v; in srec_decode()
105 chksum += v; in srec_decode()
117 chksum += v; in srec_decode()
125 chksum += v; in srec_decode()
139 chksum += v; in srec_decode()
148 if ((unsigned char)v != (unsigned char)~chksum) { in srec_decode()
/third_party/lwip/src/core/ipv4/
Dicmp.c219 if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input()
220 iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1); in icmp_input()
222 iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8)); in icmp_input()
227 iecho->chksum = 0; in icmp_input()
231 iecho->chksum = 0; in icmp_input()
392 icmphdr->chksum = 0; in icmp_send_response()
395 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
/third_party/lwip/src/core/
Dtcp_out.c99 len, &seg->chksum, &seg->chksum_swapped); \
101 #define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) \ argument
102 tcp_seg_add_chksum(LWIP_CHKSUM_COPY(dst, src, len), len, chksum, chksum_swapped);
105 #define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) MEMCPY(dst, src, len) argument
182 seg->chksum = 0; in tcp_create_segment()
283 tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, in tcp_seg_add_chksum() argument
288 helper = chksum + *seg_chksum; in tcp_seg_add_chksum()
289 chksum = FOLD_U32T(helper); in tcp_seg_add_chksum()
292 chksum = SWAP_BYTES_IN_WORD(chksum); in tcp_seg_add_chksum()
294 *seg_chksum = chksum; in tcp_seg_add_chksum()
[all …]
Dudp.c356 if (udphdr->chksum != 0) { in udp_input()
490 u8_t have_chksum, u16_t chksum) in udp_send_chksum() argument
501 have_chksum, chksum); in udp_send_chksum()
535 u16_t dst_port, u8_t have_chksum, u16_t chksum) in udp_sendto_chksum() argument
601 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum); in udp_sendto_chksum()
639 u16_t chksum) in udp_sendto_if_chksum() argument
694 return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip); in udp_sendto_if_chksum()
714 u16_t chksum, const ip_addr_t *src_ip) in udp_sendto_if_src_chksum() argument
792 udphdr->chksum = 0x0000; in udp_sendto_if_src_chksum()
832 udphdr->chksum = ip_chksum_pseudo_partial(q, IP_PROTO_UDPLITE, in udp_sendto_if_src_chksum()
[all …]
/third_party/lwip/src/include/lwip/prot/
Dnd6.h56 PACK_STRUCT_FIELD(u16_t chksum);
74 PACK_STRUCT_FIELD(u16_t chksum);
96 PACK_STRUCT_FIELD(u16_t chksum);
121 PACK_STRUCT_FIELD(u16_t chksum);
142 PACK_STRUCT_FIELD(u16_t chksum);
Dicmp6.h141 PACK_STRUCT_FIELD(u16_t chksum);
157 PACK_STRUCT_FIELD(u16_t chksum);
Dip4.h126 #define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum) argument
Dudp.h57 PACK_STRUCT_FIELD(u16_t chksum);
Dmld6.h56 PACK_STRUCT_FIELD(u16_t chksum);
Dicmp.h72 PACK_STRUCT_FIELD(u16_t chksum);
/third_party/lwip/src/include/lwip/apps/
Dfs.h48 u16_t chksum; member
73 const struct fsdata_chksum *chksum; member
118 const struct fsdata_chksum *chksum; member
/third_party/optimized-routines/networking/
DDir.mk25 build/bin/test/chksum
64 $(EMULATOR) build/bin/test/chksum -i simple
65 $(EMULATOR) build/bin/test/chksum -i scalar
66 $(EMULATOR) build/bin/test/chksum -i simd || true # simd is not always available
/third_party/uboot/u-boot-2020.01/arch/x86/cpu/tangier/
Dsdram.c27 char chksum = 0; in sfi_table_check() local
38 chksum += *pos++; in sfi_table_check()
40 if (chksum) in sfi_table_check()
44 return chksum ? -EILSEQ : 0; in sfi_table_check()
/third_party/lwip/src/include/lwip/
Dudp.h144 u16_t chksum);
147 u8_t have_chksum, u16_t chksum);
149 u8_t have_chksum, u16_t chksum);
152 u8_t have_chksum, u16_t chksum, const ip_addr_t *src_ip);
Dnetbuf.h106 #define netbuf_set_chksum(buf, chksum) do { (buf)->flags = NETBUF_FLAG_CHKSUM; \ argument
107 (buf)->toport_chksum = chksum; } while(0)
/third_party/uboot/u-boot-2020.01/net/
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()
/third_party/uboot/u-boot-2020.01/disk/
Dpart_iso.c53 unsigned short chksum; in part_get_info_iso_verb() local
111 chksum=0; in part_get_info_iso_verb()
114 chksum += le16_to_cpu(chksumbuf[i]); in part_get_info_iso_verb()
115 if(chksum!=0) { in part_get_info_iso_verb()
/third_party/f2fs-tools/lib/
Dlibf2fs.c560 __u32 chksum, chksum_seed; in f2fs_inode_chksum() local
565 chksum = f2fs_cal_crc32(c.chksum_seed, (__u8 *)&ino, in f2fs_inode_chksum()
567 chksum_seed = f2fs_cal_crc32(chksum, (__u8 *)&gen, sizeof(gen)); in f2fs_inode_chksum()
569 chksum = f2fs_cal_crc32(chksum_seed, (__u8 *)ri, offset); in f2fs_inode_chksum()
570 chksum = f2fs_cal_crc32(chksum, (__u8 *)&dummy_cs, cs_size); in f2fs_inode_chksum()
572 chksum = f2fs_cal_crc32(chksum, (__u8 *)ri + offset, in f2fs_inode_chksum()
574 return chksum; in f2fs_inode_chksum()
580 __u32 chksum; in f2fs_checkpoint_chksum() local
582 chksum = f2fs_cal_crc32(F2FS_SUPER_MAGIC, cp, chksum_ofs); in f2fs_checkpoint_chksum()
584 chksum_ofs += sizeof(chksum); in f2fs_checkpoint_chksum()
[all …]
/third_party/lwip/src/core/ipv6/
Dicmp6.c184 ((struct icmp6_echo_hdr *)(r->payload))->chksum = 0; in icmp6_input()
187 ((struct icmp6_echo_hdr *)(r->payload))->chksum = ip6_chksum_pseudo(r, in icmp6_input()
412 icmp6hdr->chksum = 0; in icmp6_send_response_with_addrs_and_netif()
415 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response_with_addrs_and_netif()
/third_party/lwip/src/apps/http/
Dfs.c82 file->chksum = f->chksum; in fs_open()
/third_party/uboot/u-boot-2020.01/test/
Dbloblist.c143 hdr->chksum++; in bloblist_test_checksum()
145 hdr->chksum--; in bloblist_test_checksum()
/third_party/ffmpeg/libavformat/
Drdt.h59 void ff_rdt_calc_response_and_checksum(char response[41], char chksum[9],
/third_party/uboot/u-boot-2020.01/include/
Dbloblist.h76 u32 chksum; member

123