Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 736) sorted by relevance

12345678910>>...30

/OK3568_Linux_fs/kernel/arch/alpha/lib/
H A Dcsum_partial_copy.c86 unsigned long checksum = ~0U; in csum_partial_cfu_aligned() local
93 checksum += carry; in csum_partial_cfu_aligned()
95 checksum += word; in csum_partial_cfu_aligned()
97 carry = checksum < word; in csum_partial_cfu_aligned()
102 checksum += carry; in csum_partial_cfu_aligned()
109 checksum += word; in csum_partial_cfu_aligned()
111 carry = checksum < word; in csum_partial_cfu_aligned()
113 checksum += carry; in csum_partial_cfu_aligned()
115 return checksum; in csum_partial_cfu_aligned()
131 unsigned long checksum = ~0U; in csum_partial_cfu_dest_aligned() local
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dotp_eeprom.c173 1, &otp_ptr->basic_data.checksum); in otp_read_data()
204 1, &otp_ptr->awb_data.checksum); in otp_read_data()
227 1, &otp_ptr->lsc_data.checksum); in otp_read_data()
231 otp_ptr->lsc_data.checksum); in otp_read_data()
266 1, &otp_ptr->sfr_otp_data.checksum); in otp_read_data()
301 u32 checksum = 0; in rkotp_read_module_info() local
306 checksum += otp_ptr->basic_data.module_size; in rkotp_read_module_info()
310 checksum += otp_ptr->basic_data.version; in rkotp_read_module_info()
314 checksum += otp_ptr->basic_data.id.supplier_id; in rkotp_read_module_info()
318 checksum += otp_ptr->basic_data.id.year; in rkotp_read_module_info()
[all …]
H A Dimx214_eeprom.c74 u32 checksum = 0; in imx214_otp_read_gz() local
113 checksum += r_value; in imx214_otp_read_gz()
116 checksum += gr_value; in imx214_otp_read_gz()
119 checksum += gb_value; in imx214_otp_read_gz()
122 checksum += b_value; in imx214_otp_read_gz()
129 checksum += r_value; in imx214_otp_read_gz()
132 checksum += gr_value; in imx214_otp_read_gz()
135 checksum += gb_value; in imx214_otp_read_gz()
138 checksum += b_value; in imx214_otp_read_gz()
145 if (ret != 0 || (checksum % 0xff) != temp) { in imx214_otp_read_gz()
[all …]
H A Dimx258_eeprom.c74 u32 checksum = 0; in imx258_otp_read_gz() local
113 checksum += r_value; in imx258_otp_read_gz()
116 checksum += gr_value; in imx258_otp_read_gz()
119 checksum += gb_value; in imx258_otp_read_gz()
122 checksum += b_value; in imx258_otp_read_gz()
129 checksum += r_value; in imx258_otp_read_gz()
132 checksum += gr_value; in imx258_otp_read_gz()
135 checksum += gb_value; in imx258_otp_read_gz()
138 checksum += b_value; in imx258_otp_read_gz()
145 if (ret != 0 || (checksum % 0xff) != temp) { in imx258_otp_read_gz()
[all …]
/OK3568_Linux_fs/kernel/net/ncsi/
H A Dncsi-pkt.h39 __be32 checksum; /* Checksum */ member
45 __be32 checksum; /* Checksum */ member
54 __be32 checksum; /* Checksum */ member
63 __be32 checksum; /* Checksum */ member
71 __be32 checksum; /* Checksum */ member
81 __be32 checksum; /* Checksum */ member
90 __be32 checksum; /* Checksum */ member
102 __be32 checksum; /* Checksum */ member
111 __be32 checksum; /* Checksum */ member
121 __be32 checksum; /* Checksum */ member
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/prserv/
H A Ddb.py55 checksum TEXT NOT NULL, \
57 PRIMARY KEY (version, pkgarch, checksum));" % self.table)
81 def _getValueHist(self, version, pkgarch, checksum): argument
83 (version, pkgarch, checksum))
101 (version,pkgarch, checksum,version, pkgarch))
108 (version, pkgarch, checksum))
115 def _getValueNohist(self, version, pkgarch, checksum): argument
117 WHERE version=? AND pkgarch=? AND checksum=? AND \
120 (version, pkgarch, checksum, version, pkgarch))
138 (version, pkgarch, checksum, version, pkgarch))
[all …]
H A Dclient.py16 async def getPR(self, version, pkgarch, checksum): argument
18 {'get-pr': {'version': version, 'pkgarch': pkgarch, 'checksum': checksum}}
23 async def importone(self, version, pkgarch, checksum, value): argument
25 … {'import-one': {'version': version, 'pkgarch': pkgarch, 'checksum': checksum, 'value': value}}
30 async def export(self, version, pkgarch, checksum, colinfo): argument
32 … {'export': {'version': version, 'pkgarch': pkgarch, 'checksum': checksum, 'colinfo': colinfo}}
/OK3568_Linux_fs/u-boot/tools/
H A Dzynqimage.c83 uint32_t checksum; /* 0x48 */ member
93 uint32_t checksum = 0; in zynqimage_checksum() local
98 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum()
99 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum()
100 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum()
101 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum()
102 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum()
103 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum()
104 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum()
105 checksum += le32_to_cpu(ptr->image_load); in zynqimage_checksum()
[all …]
H A Dzynqmpimage.c95 uint32_t checksum; /* 0x48 */ member
107 uint32_t checksum = 0; in zynqmpimage_checksum() local
112 checksum += le32_to_cpu(ptr->width_detection); in zynqmpimage_checksum()
113 checksum += le32_to_cpu(ptr->image_identifier); in zynqmpimage_checksum()
114 checksum += le32_to_cpu(ptr->encryption); in zynqmpimage_checksum()
115 checksum += le32_to_cpu(ptr->image_load); in zynqmpimage_checksum()
116 checksum += le32_to_cpu(ptr->image_offset); in zynqmpimage_checksum()
117 checksum += le32_to_cpu(ptr->pfw_image_length); in zynqmpimage_checksum()
118 checksum += le32_to_cpu(ptr->total_pfw_image_length); in zynqmpimage_checksum()
119 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum()
[all …]
H A Ddefault_image.c46 uint32_t checksum; in image_verify_header() local
66 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header()
69 if (crc32(0, data, len) != checksum) { in image_verify_header()
78 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header()
79 if (crc32(0, data, len) != checksum) { in image_verify_header()
90 uint32_t checksum; in image_set_header() local
96 checksum = crc32(0, in image_set_header()
114 image_set_dcrc(hdr, checksum); in image_set_header()
122 checksum = crc32(0, (const unsigned char *)hdr, in image_set_header()
125 image_set_hcrc(hdr, checksum); in image_set_header()
H A Dmkexynosspl.c80 uint32_t checksum = 0; in main() local
159 for (i = 0, checksum = 0; i < count; i++) in main()
160 checksum += buffer[i]; in main()
161 checksum = cpu_to_le32(checksum); in main()
169 memcpy(&vsh.spl_checksum, &checksum, sizeof(checksum)); in main()
180 write_to_file(ofd, &checksum, sizeof(checksum)); in main()
/OK3568_Linux_fs/buildroot/package/mkpimage/
H A Dmkpimage.c32 uint8_t checksum[2]; member
40 uint8_t checksum[2]; member
181 unsigned checksum; in add_socfpga_header() local
191 sumendp = &header->v0.checksum[0]; in add_socfpga_header()
193 sumendp = &header->v1.checksum[0]; in add_socfpga_header()
237 checksum = 0; in add_socfpga_header()
239 checksum += *bufp; in add_socfpga_header()
242 header->v0.checksum[0] = checksum & 0xff;; in add_socfpga_header()
243 header->v0.checksum[1] = (checksum >> 8) & 0xff;; in add_socfpga_header()
245 header->v1.checksum[0] = checksum & 0xff;; in add_socfpga_header()
[all …]
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dchecksum-offloads.rst12 take advantage of checksum offload capabilities of various NICs.
29 The interface for offloading a transmit checksum to a device is explained in
33 checksum defined by the sk_buff fields skb->csum_start and skb->csum_offset.
34 The device should compute the 16-bit ones-complement checksum (i.e. the
35 'IP-style' checksum) from csum_start to the end of the packet, and fill in the
39 the checksum field is included in the checksum computation, thus it can be used
40 to supply any needed corrections to the checksum (such as the sum of the
43 This interface only allows a single checksum to be offloaded. Where
44 encapsulation is used, the packet may have multiple checksum fields in
52 No offloading of the IP header checksum is performed; it is always done in
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dgsrt.c88 int i, checksum = (file_size >> 16) + file_size; in start_read() local
92 checksum += int16; in start_read()
96 if (checksum & 0xffff) in start_read()
126 int checksum = (VERSION_ >> 16) + VERSION_; in start_write() local
127 checksum += t->tm_year + 1900; in start_write()
128 checksum += ((t->tm_mon + 1) << 8) + t->tm_mday; in start_write()
129 checksum += (t->tm_hour << 8) + t->tm_min; in start_write()
131 checksum += (id[i] << 8) + id[i + 1]; in start_write()
132 checksum += encoding; in start_write()
135 || lsx_writesw(ft, -checksum) in start_write()
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/chrome/wilco_ec/
H A Dmailbox.c77 u8 checksum = 0; in wilco_ec_checksum() local
81 checksum += data_bytes[i]; in wilco_ec_checksum()
83 return checksum; in wilco_ec_checksum()
101 rq->checksum = wilco_ec_checksum(rq, sizeof(*rq)); in wilco_ec_prepare()
102 rq->checksum += wilco_ec_checksum(msg->request_data, msg->request_size); in wilco_ec_prepare()
103 rq->checksum = -rq->checksum; in wilco_ec_prepare()
120 u8 checksum; in wilco_ec_transfer() local
152 checksum = cros_ec_lpc_io_bytes_mec(MEC_IO_READ, 0, in wilco_ec_transfer()
155 if (checksum) { in wilco_ec_transfer()
156 dev_dbg(ec->dev, "bad packet checksum 0x%02x\n", rs->checksum); in wilco_ec_transfer()
/OK3568_Linux_fs/kernel/Documentation/filesystems/ext4/
H A Dchecksums.rst8 The desired checksum algorithm is indicated in the superblock, though as
10 structures did not have space to fit a full 32-bit checksum, so only the
20 checksum, it will request that you run ``e2fsck -D`` to have the
24 protected by a checksum!
27 of checksum. The checksum function is whatever the superblock describes
39 - The entire superblock up to the checksum field. The UUID lives inside
43 - UUID + the entire MMP block up to the checksum field.
46 - UUID + the entire extended attribute block. The checksum field is set to
51 fake entry enclosing the checksum field.
55 The checksum field is set to zero.
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/
H A Dchecksum.py85 checksum = self.get_checksum(f)
89 return checksum
109 checksum = checksum_file(fullpth)
110 if checksum:
111 dirchecksums.append((fullpth, checksum))
132 checksum = checksum_file(f)
133 if checksum:
134 checksums.append((f, checksum))
139 checksum = checksum_file(pth)
140 if checksum:
[all …]
/OK3568_Linux_fs/u-boot/lib/rsa/
H A Drsa-checksum.c22 int region_count, uint8_t *checksum) in rsa_hash_calculate() argument
48 ret = algo->hash_finish(algo, ctx, checksum, algo->digest_size); in rsa_hash_calculate()
59 int region_count, uint8_t *checksum) in hw_rsa_hash_calculate() argument
82 region_count, checksum); in hw_rsa_hash_calculate()
89 int region_count, uint8_t *checksum) in hash_calculate() argument
92 return rsa_hash_calculate(name, region, region_count, checksum); in hash_calculate()
95 return rsa_hash_calculate(name, region, region_count, checksum); in hash_calculate()
97 return hw_rsa_hash_calculate(name, region, region_count, checksum); in hash_calculate()
H A Drsa-verify.c163 struct checksum_algo *checksum = info->checksum; in padding_pkcs_15_verify() local
164 int ret, pad_len = msg_len - checksum->checksum_len; in padding_pkcs_15_verify()
167 ret = rsa_verify_padding(msg, pad_len, checksum); in padding_pkcs_15_verify()
204 static int mask_generation_function1(struct checksum_algo *checksum, in mask_generation_function1() argument
212 int hash_len = checksum->checksum_len; in mask_generation_function1()
231 ret = checksum->calculate(checksum->name, in mask_generation_function1()
255 static int compute_hash_prime(struct checksum_algo *checksum, in compute_hash_prime() argument
271 ret = checksum->calculate(checksum->name, region, region_count, hprime); in compute_hash_prime()
296 struct checksum_algo *checksum = info->checksum; in padding_pss_verify() local
332 mask_generation_function1(checksum, h, h_len, db_mask, db_mask_len); in padding_pss_verify()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vboxvideo/
H A Dvbox_hgsmi.c37 u32 checksum; in hgsmi_checksum() local
39 checksum = hgsmi_hash_process(0, (u8 *)&offset, sizeof(offset)); in hgsmi_checksum()
40 checksum = hgsmi_hash_process(checksum, (u8 *)header, sizeof(*header)); in hgsmi_checksum()
42 checksum = hgsmi_hash_process(checksum, (u8 *)tail, 4); in hgsmi_checksum()
44 return hgsmi_hash_end(checksum); in hgsmi_checksum()
69 t->checksum = hgsmi_checksum(offset, h, t); in hgsmi_buffer_alloc()
/OK3568_Linux_fs/buildroot/dl/stressapptest/git/src/
H A Dadler32memcpy.cc87 AdlerChecksum *checksum) { in CalculateAdlerChecksum() argument
119 checksum->Set(a1, a2, b1, b2); in CalculateAdlerChecksum()
125 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyC() argument
159 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyC()
166 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyWarmC() argument
221 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyWarmC()
227 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyAsm() argument
393 if (checksum != NULL) { in AdlerMemcpyAsm()
394 checksum->Set(checksum_arr[0], checksum_arr[1], in AdlerMemcpyAsm()
509 if (checksum != NULL) { in AdlerMemcpyAsm()
[all …]
/OK3568_Linux_fs/kernel/kernel/gcov/
H A Dclang.c63 u32 checksum; member
72 u32 checksum; member
114 u32 checksum) in llvm_gcda_start_file() argument
118 current_info->checksum = checksum; in llvm_gcda_start_file()
122 void llvm_gcda_start_file(const char *orig_filename, u32 version, u32 checksum) in llvm_gcda_start_file() argument
126 current_info->checksum = checksum; in llvm_gcda_start_file()
142 info->checksum = func_checksum; in llvm_gcda_emit_function()
160 info->checksum = func_checksum; in llvm_gcda_emit_function()
287 if (info1->checksum != info2->checksum) in gcov_info_is_compatible()
293 if (fn_ptr1->checksum != fn_ptr2->checksum) in gcov_info_is_compatible()
[all …]
/OK3568_Linux_fs/u-boot/common/
H A Dkgdb.c227 unsigned char checksum; in getpacket() local
244 checksum = 0; in getpacket()
254 checksum = checksum + ch; in getpacket()
267 if (checksum != xmitcsum) in getpacket()
282 } while (checksum != xmitcsum); in getpacket()
289 unsigned char checksum; in putpacket() local
296 checksum = 0; in putpacket()
301 checksum += ch; in putpacket()
306 putDebugChar(hexchars[checksum >> 4]); in putpacket()
307 putDebugChar(hexchars[checksum & 0xf]); in putpacket()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/
H A Digc_nvm.c163 u16 checksum = 0; in igc_validate_nvm_checksum() local
173 checksum += nvm_data; in igc_validate_nvm_checksum()
176 if (checksum != (u16)NVM_SUM) { in igc_validate_nvm_checksum()
196 u16 checksum = 0; in igc_update_nvm_checksum() local
206 checksum += nvm_data; in igc_update_nvm_checksum()
208 checksum = (u16)NVM_SUM - checksum; in igc_update_nvm_checksum()
209 ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); in igc_update_nvm_checksum()
/OK3568_Linux_fs/u-boot/net/
H A Dchecksum.c39 unsigned long checksum; in add_ip_checksums() local
50 checksum = sum + new; in add_ip_checksums()
51 if (checksum > 0xffff) in add_ip_checksums()
52 checksum -= 0xffff; in add_ip_checksums()
54 return (~checksum) & 0xffff; in add_ip_checksums()

12345678910>>...30