Home
last modified time | relevance | path

Searched refs:csum (Results 1 – 25 of 99) sorted by relevance

1234

/third_party/uboot/u-boot-2020.01/board/Synology/ds414/
Dcmd_syno.c61 unsigned char csum = 0; in do_syno_populate() local
65 csum += bufp[i]; in do_syno_populate()
70 if (csum != bufp[i]) { /* seventh byte is checksum value */ in do_syno_populate()
87 int csum = 0; in do_syno_populate() local
92 csum += bufp[n]; in do_syno_populate()
107 if (strict_strtoul(csump, 10, &c) || c != csum) { in do_syno_populate()
115 unsigned char csum = 0; in do_syno_populate() local
118 csum += bufp[n]; in do_syno_populate()
120 if (csum != bufp[n]) { in do_syno_populate()
/third_party/uboot/u-boot-2020.01/tools/gdb/
Dremote.c635 unsigned char csum = 0; local
654 csum += buf[i];
658 *p++ = tohex ((csum >> 4) & 0xf);
659 *p++ = tohex (csum & 0xf);
753 unsigned char csum; in read_frame() local
757 csum = 0; in read_frame()
784 if (csum == pktcsum) in read_frame()
793 pktcsum, csum); in read_frame()
800 csum += c; in read_frame()
802 csum += c; in read_frame()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/misc/
Dcros_ec_spi.c88 int csum, len; in cros_ec_spi_command() local
127 csum = cros_ec_calc_checksum(out, 3) in cros_ec_spi_command()
129 out[3 + dout_len] = (uint8_t)csum; in cros_ec_spi_command()
158 csum = cros_ec_calc_checksum(p, len + 2); in cros_ec_spi_command()
159 if (csum != p[len + 2]) { in cros_ec_spi_command()
161 p[2 + len], csum); in cros_ec_spi_command()
Dcros_ec_lpc.c87 int csum; in cros_ec_lpc_command() local
101 csum = cmd + args.flags + args.command_version + args.data_size; in cros_ec_lpc_command()
103 csum += *d; in cros_ec_lpc_command()
105 args.checksum = (uint8_t)csum; in cros_ec_lpc_command()
166 csum = cmd + args.flags + args.command_version + args.data_size; in cros_ec_lpc_command()
168 csum += *d; in cros_ec_lpc_command()
170 if (args.checksum != (uint8_t)csum) { in cros_ec_lpc_command()
Dcros_ec_i2c.c123 int len, csum, ret; in cros_ec_i2c_command() local
203 csum = cros_ec_calc_checksum(in_ptr, 2 + len); in cros_ec_i2c_command()
204 if (csum != in_ptr[2 + len]) { in cros_ec_i2c_command()
206 __func__, in_ptr[2 + din_len], csum); in cros_ec_i2c_command()
/third_party/uboot/u-boot-2020.01/net/
Dcdp.c50 ushort csum; in cdp_compute_csum() local
97 csum = ~(ushort)result; in cdp_compute_csum()
100 if (csum != htons(csum)) /* little endian */ in cdp_compute_csum()
101 csum = htons(csum); in cdp_compute_csum()
103 return csum; in cdp_compute_csum()
/third_party/e2fsprogs/tests/j_corrupt_commit_csum/
Dname1 corrupt commit csum (csum v3)
/third_party/e2fsprogs/tests/j_corrupt_sb_csum/
Dname1 corrupt sb csum (csum v3)
/third_party/e2fsprogs/tests/j_corrupt_descr_csum/
Dname1 corrupt descr csum (csum v3)
/third_party/e2fsprogs/tests/j_corrupt_revoke_csum/
Dname1 corrupt revoke csum (csum v3)
/third_party/uboot/u-boot-2020.01/tools/
Dkwboot.c70 uint8_t csum; member
367 block->csum = 0; in kwboot_xm_makeblock()
369 block->csum += block->data[i]; in kwboot_xm_makeblock()
614 uint8_t *data = _data, csum; in kwboot_img_csum8() local
616 for (csum = 0; size-- > 0; data++) in kwboot_img_csum8()
617 csum += *data; in kwboot_img_csum8()
619 return csum; in kwboot_img_csum8()
627 uint8_t csum; in kwboot_img_patch_hdr() local
651 csum = kwboot_img_csum8(hdr, hdrsz) - hdr->checksum; in kwboot_img_patch_hdr()
652 if (csum != hdr->checksum) { in kwboot_img_patch_hdr()
[all …]
Dsocfpgaimage.c143 uint16_t csum; in sfp_build_header() local
146 csum = sfp_hdr_checksum((uint8_t *)&header_v0, 0); in sfp_build_header()
147 header_v0.checksum = cpu_to_le16(csum); in sfp_build_header()
150 csum = sfp_hdr_checksum((uint8_t *)&header_v1, 1); in sfp_build_header()
151 header_v1.checksum = cpu_to_le16(csum); in sfp_build_header()
Dstm32image.c54 uint32_t csum = 0; in stm32image_checksum() local
65 csum += *p; in stm32image_checksum()
70 return csum; in stm32image_checksum()
Dzynqmpbif.c332 uint32_t csum; in bif_add_part() local
382 csum = zynqmp_csum(&parthdr, &parthdr.checksum); in bif_add_part()
383 parthdr.checksum = cpu_to_le32(csum); in bif_add_part()
414 csum = zynqmp_csum(bif_output.last_part, in bif_add_part()
416 bif_output.last_part->checksum = cpu_to_le32(csum); in bif_add_part()
837 uint32_t csum; in zynqmpbif_copy_image() local
963 csum = zynqmp_csum(&bif_output.header->width_detection, in zynqmpbif_copy_image()
965 bif_output.header->checksum = cpu_to_le32(csum); in zynqmpbif_copy_image()
968 csum = zynqmp_csum(bif_output.imgheader, in zynqmpbif_copy_image()
970 bif_output.imgheader->checksum = cpu_to_le32(csum); in zynqmpbif_copy_image()
/third_party/e2fsprogs/lib/ext2fs/
Dblknum.c223 __u32 csum; in ext2fs_block_bitmap_checksum() local
226 csum = gdp->bg_block_bitmap_csum_lo; in ext2fs_block_bitmap_checksum()
228 csum |= ((__u32)gdp->bg_block_bitmap_csum_hi << 16); in ext2fs_block_bitmap_checksum()
229 return csum; in ext2fs_block_bitmap_checksum()
264 __u32 csum; in ext2fs_inode_bitmap_checksum() local
267 csum = gdp->bg_inode_bitmap_csum_lo; in ext2fs_inode_bitmap_checksum()
269 csum |= ((__u32)gdp->bg_inode_bitmap_csum_hi << 16); in ext2fs_inode_bitmap_checksum()
270 return csum; in ext2fs_inode_bitmap_checksum()
/third_party/libwebsockets/lib/misc/
Dromfs.c219 romfs_get_info(romfs_t romfs, const char *path, size_t *len, size_t *csum) in romfs_get_info() argument
233 if (csum) in romfs_get_info()
234 *csum = untohl(ci->checksum); in romfs_get_info()
/third_party/uboot/u-boot-2020.01/product/hiosd/hdmi/hdmi_2_0/drv/
Ddrv_hdmi_infoframe.c63 hi_u8 csum = 0; in hdmi_infoframe_checksum() local
76 csum += ptr[i]; in hdmi_infoframe_checksum()
78 if ((0 < csum) && (csum <= 255)) { in hdmi_infoframe_checksum()
79 ptr[3] = 256 - csum; in hdmi_infoframe_checksum()
/third_party/e2fsprogs/debugfs/
Djournal.c876 __u32 csum; in jbd2_commit_block_csum_set() local
885 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_commit_block_csum_set()
886 h->h_chksum[0] = ext2fs_cpu_to_be32(csum); in jbd2_commit_block_csum_set()
892 __u32 csum; in jbd2_revoke_csum_set() local
900 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_revoke_csum_set()
901 tail->r_checksum = ext2fs_cpu_to_be32(csum); in jbd2_revoke_csum_set()
907 __u32 csum; in jbd2_descr_block_csum_set() local
915 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_descr_block_csum_set()
916 tail->t_checksum = ext2fs_cpu_to_be32(csum); in jbd2_descr_block_csum_set()
/third_party/FreeBSD/sys/dev/usb/net/
Dif_axge.c233 uint8_t csum; in axge_csum_cfg() local
235 csum = 0; in axge_csum_cfg()
236 csum |= CTCR_IP | CTCR_TCP | CTCR_UDP; in axge_csum_cfg()
237 axge_write_cmd_1(sc, AXGE_ACCESS_MAC, AXGE_CTCR, csum); in axge_csum_cfg()
239 csum = 0; in axge_csum_cfg()
240 csum |= CRCR_IP | CRCR_TCP | CRCR_UDP; in axge_csum_cfg()
241 axge_write_cmd_1(sc, AXGE_ACCESS_MAC, AXGE_CRCR, csum); in axge_csum_cfg()
/third_party/libnl/lib/route/link/
Dgeneve.c653 int rtnl_link_geneve_set_udp_csum(struct rtnl_link *link, uint8_t csum) in rtnl_link_geneve_set_udp_csum() argument
659 geneve->udp_csum = csum; in rtnl_link_geneve_set_udp_csum()
690 int rtnl_link_geneve_set_udp_zero_csum6_tx(struct rtnl_link *link, uint8_t csum) in rtnl_link_geneve_set_udp_zero_csum6_tx() argument
696 geneve->udp_zero_csum6_tx = csum; in rtnl_link_geneve_set_udp_zero_csum6_tx()
727 int rtnl_link_geneve_set_udp_zero_csum6_rx(struct rtnl_link *link, uint8_t csum) in rtnl_link_geneve_set_udp_zero_csum6_rx() argument
733 geneve->udp_zero_csum6_rx = csum; in rtnl_link_geneve_set_udp_zero_csum6_rx()
/third_party/ltp/testcases/network/lib6/
Dasapi_01.c200 static unsigned short csum(unsigned short partial, unsigned char *packet, in csum() function
324 cs = csum(0, (unsigned char *)&ph, sizeof(ph)); in client()
325 cs = csum(~cs, rpbuf, xlen); in client()
326 if (!csum(0, rpbuf, xlen)) { in client()
/third_party/e2fsprogs/tests/
Dfilter.sed27 s/, csum 0x\([0-9a-f]*\)//g
28 s/ csum 0x\([0-9a-f]*\)//g
/third_party/uboot/u-boot-2020.01/arch/x86/lib/
Dsfi.c53 hdr->csum = 0; in finish_table()
54 hdr->csum = table_compute_checksum(hdr, hdr->len); in finish_table()
/third_party/e2fsprogs/tests/j_corrupt_commit_tid/
Dname1 corrupt commit tid (csum v3)
/third_party/e2fsprogs/tests/j_corrupt_revoke_block/
Dname1 corrupt revoke block (csum v3)

1234