| /src/external/bsd/elftoolchain/dist/libelf/ |
| libelf_checksum.c | 57 unsigned long checksum; local 76 * checksum along the way. 83 checksum = 0; 96 checksum = _libelf_sum(checksum, 101 * Return a 16-bit checksum compatible with Solaris. 103 return (long) (((checksum >> 16) & 0xFFFFUL) + (checksum & 0xFFFFUL));
|
| /src/sys/arch/hpcarm/dev/ |
| ipaq_atmelgpio.c | 164 int i, checksum, length, rx_data; local 174 checksum = data[1]; 178 checksum += (uint8_t)(*buf++); 180 data[length-1] = checksum; 208 rxbuf->checksum = rx_data; 212 rxbuf->checksum += rx_data; 219 if (rx_data == FRAME_EOF || rx_data == rxbuf->checksum)
|
| ipaq_atmelvar.h | 43 uint8_t checksum; member in struct:atmel_rx
|
| /src/sys/external/bsd/drm2/dist/drm/vboxvideo/ |
| vbox_hgsmi.c | 37 /* Not really a checksum but that is the naming used in all vbox code */ 42 u32 checksum; local 44 checksum = hgsmi_hash_process(0, (u8 *)&offset, sizeof(offset)); 45 checksum = hgsmi_hash_process(checksum, (u8 *)header, sizeof(*header)); 46 /* 4 -> Do not checksum the checksum itself */ 47 checksum = hgsmi_hash_process(checksum, (u8 *)tail, 4); 49 return hgsmi_hash_end(checksum); [all...] |
| hgsmi_defs.h | 66 u32 checksum; member in struct:hgsmi_buffer_tail
|
| /src/sys/external/mit/xen-include-public/dist/xen/include/public/hvm/ |
| hvm_info_table.h | 48 uint8_t checksum; member in struct:hvm_info_table
|
| /src/external/bsd/tcpdump/dist/ |
| checksum.c | 22 __RCSID("$NetBSD: checksum.c,v 1.9 2024/09/02 16:15:29 christos Exp $"); 105 * Creates the OSI Fletcher checksum. See 8473-1, Appendix C, section C.3. 106 * The checksum field of the passed PDU does not need to be reset to zero. 117 uint16_t checksum; local 125 * Ignore the contents of the checksum field. 156 checksum = ((x << 8) | y); 158 return checksum;
|
| /src/external/zlib/pigz/dist/zopfli/ |
| zlib_container.c | 28 /* Calculates the adler32 checksum of the data */ 54 unsigned checksum = adler32(in, (unsigned)insize); local 68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); 69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); 70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); 71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize);
|
| /src/sys/arch/next68k/next68k/ |
| disksubr.c | 79 uint16_t *checksum; local 82 checksum = &ondisk->NEXT68K_LABEL_cd_v3_checksum; 84 checksum = &ondisk->NEXT68K_LABEL_cd_checksum; 86 if (nextstep_checksum((uint8_t *)ondisk, (uint8_t *)checksum) != 87 *checksum) { 172 uint16_t *checksum; local 296 checksum = &ondisk->NEXT68K_LABEL_cd_v3_checksum; 298 checksum = &ondisk->NEXT68K_LABEL_cd_checksum; 300 *checksum = nextstep_checksum((uint8_t *)ondisk, (uint8_t *)checksum); [all...] |
| /src/sys/dev/pci/igc/ |
| igc_nvm.c | 206 * igc_validate_nvm_checksum_generic - Validate EEPROM checksum 209 * Calculates the EEPROM checksum by reading/adding each word of the EEPROM 215 uint16_t checksum = 0; local 227 checksum += nvm_data; 230 if (checksum != (uint16_t) NVM_SUM) { 231 DEBUGOUT("NVM Checksum Invalid\n");
|
| /src/usr.sbin/installboot/arch/ |
| next68k.c | 88 uint16_t *checksum; local 121 checksum = &next68klabel->NEXT68K_LABEL_cd_v3_checksum; 123 checksum = &next68klabel->cd_checksum; 125 if (nextstep_checksum (next68klabel, checksum) != 126 be16toh(*checksum)) { 127 warn("Disklabel checksum invalid on `%s'", 223 *checksum = htobe16(nextstep_checksum (next68klabel, 224 checksum));
|
| /src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/ |
| rpc_ek.c | 39 TCPA_DIGEST checksum; local 69 &eKSize, &eK, &checksum); 86 if (setData(TCSD_PACKET_TYPE_DIGEST, 2, &checksum, 0, &data->comm)) { 103 TCPA_DIGEST checksum; local 119 result = TCSP_ReadPubek_Internal(hContext, antiReplay, &pubEKSize, &pubEK, &checksum); 134 if (setData(TCSD_PACKET_TYPE_DIGEST, 2, &checksum, 0, &data->comm)) { 237 TPM_DIGEST checksum; local 277 eKPtrSize, eKPtr, genResetAuth, &eKResetAuth, &eKSize, &eK, &checksum); 298 if (setData(TCSD_PACKET_TYPE_DIGEST, 3, &checksum, 0, &data->comm)) {
|
| rpc_maint.c | 214 TCPA_DIGEST checksum; local 244 &checksum); 251 if (setData(TCSD_PACKET_TYPE_DIGEST, 0, &checksum, 0, &data->comm)) { 268 TCPA_DIGEST checksum; local 283 result = TCSP_ReadManuMaintPub_Internal(hContext, antiReplay, &checksum); 289 if (setData(TCSD_PACKET_TYPE_DIGEST, 0, &checksum, 0, &data->comm)) {
|
| /src/external/gpl2/mkhybrid/dist/ |
| eltorito.c | 121 int checksum; local 178 * compute the checksum 180 checksum=0; 191 checksum += (unsigned int)checksum_ptr[i]; 192 checksum += ((unsigned int)checksum_ptr[i+1])*256; 196 * now find out the real checksum 198 checksum = -checksum; 199 set_721(valid_desc.cksum, (unsigned int) checksum);
|
| /src/external/gpl3/binutils/dist/gprofng/src/ |
| ArchiveExp.cc | 132 uint32_t checksum = lo->get_checksum (); local 133 char *linkName = dbe_sprintf (NTXT ("../../%s/%u"), SP_ARCHIVES_DIR, checksum); 148 return dbe_sprintf (NTXT ("%s/%u"), get_fndr_arch_name (), checksum);
|
| /src/external/gpl3/binutils.old/dist/gprofng/src/ |
| ArchiveExp.cc | 132 uint32_t checksum = lo->get_checksum (); local 133 char *linkName = dbe_sprintf (NTXT ("../../%s/%u"), SP_ARCHIVES_DIR, checksum); 148 return dbe_sprintf (NTXT ("%s/%u"), get_fndr_arch_name (), checksum);
|
| /src/sys/arch/landisk/include/ |
| bootinfo.h | 50 uint16_t type, checksum; member in struct:btinfo_bootdisk::__anon1549
|
| /src/sys/dev/ata/ |
| ata_raid_jmicron.c | 97 printf("checksum 0x%04x\n", info->checksum); 128 uint16_t checksum, *ptr; local 167 /* calculate checksum and compare for valid */ 168 for (checksum = 0, ptr = (uint16_t *)info, count = 0; 170 checksum += *ptr++; 171 if (checksum) { 172 DPRINTF(("%s: JMicron checksum failed\n",
|
| ata_raid_via.c | 108 printf("checksum 0x%02x\n", info->checksum); 122 uint8_t checksum, checksum_alt, byte3, *ptr; local 167 /* calculate checksum and compare for valid */ 168 for (byte3 = 0, checksum = 0, ptr = (uint8_t *)info, count = 0; 173 checksum += *ptr++; 174 checksum_alt = checksum + (byte3 & ~VIA_T_BOOTABLE); 175 checksum += byte3; 176 if (checksum != info->checksum && checksum_alt != info->checksum) [all...] |
| /src/sys/dev/hdaudio/ |
| hdmireg.h | 43 uint8_t checksum; member in struct:hdmi_audio_infoframe
|
| /src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| amdgpu_virt.c | 233 /* calculate checksum */ 246 uint32_t checksum = 0; local 258 AMDGPU_FW_VRAM_PF2VF_READ(adev, checksum, &checksum); 265 adev->virt.fw_reserve.checksum_key, checksum); 266 if (checkval == checksum) { 288 AMDGPU_FW_VRAM_VF2PF_WRITE(adev, checksum,
|
| /src/external/bsd/elftosb/dist/sbtool/ |
| EncoreBootImageReader.cpp | 223 //! the checksum field is verified to be sure it's correct. 270 uint8_t checksum = calculateCommandChecksum(header); local 271 if (checksum != header.m_checksum) 273 throw read_error("boot tag checksum is invalid"); 291 uint8_t checksum = 0x5a; local 294 // start at one to skip checksum field 297 checksum += bytes[i]; 300 return checksum;
|
| /src/external/bsd/openldap/dist/libraries/liblutil/ |
| md5.c | 314 unsigned char checksum[LUTIL_MD5_BYTES]; local 328 lutil_MD5Final (checksum, &context); 331 printf ("%02x", (unsigned int) checksum[i]);
|
| /src/external/bsd/zstd/dist/contrib/pzstd/ |
| Options.h | 36 bool checksum; member in struct:pzstd::Options 49 WriteMode writeMode, bool checksum, int verbosity) 54 checksum(checksum), verbosity(verbosity) {} 61 params.fParams.checksumFlag = checksum;
|
| /src/external/mpl/dhcp/dist/common/ |
| packet.c | 30 * very similar to that contribution, although the packet checksum code 32 * users, without whose gracious and thorough help the checksum code would 47 /* Compute the easy part of the checksum on a range of bytes. */ 49 u_int32_t checksum (buf, nbytes, sum) function 57 log_debug ("checksum (%x %d %x)", (unsigned)buf, nbytes, sum); 60 /* Checksum all the pairs of bytes first... */ 71 /* If there's a single byte left over, checksum it, too. Network 86 /* Finish computing the checksum, and then put it into network byte order. */ 165 /* Checksum the IP header... */ 166 ip.ip_sum = wrapsum (checksum ((unsigned char *)&ip, sizeof ip, 0)) [all...] |