/openbmc/linux/Documentation/networking/ |
H A D | checksum-offloads.rst | 4 Checksum Offloads 12 take advantage of checksum offload capabilities of various NICs. 16 * TX Checksum Offload 17 * LCO: Local Checksum Offload 18 * RCO: Remote Checksum Offload 22 * RX Checksum Offload 26 TX Checksum Offload 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 [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | utcksum.c | 29 * exception on bad checksum. 37 u8 checksum; in acpi_ut_verify_checksum() local 41 * They are the odd tables, have no standard ACPI header and no checksum in acpi_ut_verify_checksum() 48 /* Compute the checksum on the table */ in acpi_ut_verify_checksum() 51 checksum = in acpi_ut_verify_checksum() 53 table->checksum); in acpi_ut_verify_checksum() 55 /* Computed checksum matches table? */ in acpi_ut_verify_checksum() 57 if (checksum != table->checksum) { in acpi_ut_verify_checksum() 59 "Incorrect checksum in table [%4.4s] - 0x%2.2X, " in acpi_ut_verify_checksum() 61 table->signature, table->checksum, in acpi_ut_verify_checksum() [all …]
|
/openbmc/linux/arch/alpha/lib/ |
H A D | csum_partial_copy.c | 16 #include <net/checksum.h> 87 unsigned long checksum = ~0U; in csum_partial_cfu_aligned() local 94 checksum += carry; in csum_partial_cfu_aligned() 96 checksum += word; in csum_partial_cfu_aligned() 98 carry = checksum < word; in csum_partial_cfu_aligned() 103 checksum += carry; in csum_partial_cfu_aligned() 110 checksum += word; in csum_partial_cfu_aligned() 112 carry = checksum < word; in csum_partial_cfu_aligned() 114 checksum += carry; in csum_partial_cfu_aligned() 116 return checksum; in csum_partial_cfu_aligned() [all …]
|
/openbmc/ipmbbridge/ |
H A D | ipmbutils.cpp | 25 * @brief Ipmb utils for checksum 29 uint8_t checksum = 0; in ipmbChecksumValidate() local 31 // compute checksum. in ipmbChecksumValidate() 34 checksum += data[idx]; in ipmbChecksumValidate() 37 // check if checksum is valid. in ipmbChecksumValidate() 38 if (0 == checksum) in ipmbChecksumValidate() 40 // checksum valid. in ipmbChecksumValidate() 45 // checksum invalid. in ipmbChecksumValidate() 52 uint8_t checksum = 0; in ipmbChecksumCompute() local 54 // compute checksum. in ipmbChecksumCompute() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/prserv/ |
H A D | db.py | 19 # "No History" mode - for a given query tuple (version, pkgarch, checksum), 24 # tuple (version, pkgarch, checksum), otherwise return historical value. 41 checksum TEXT NOT NULL, \ 43 PRIMARY KEY (version, pkgarch, checksum, value));" % self.table) 81 def test_checksum_value(self, version, pkgarch, checksum, value): argument 82 …he specified value is found in the database for the specified package, architecture and checksum""" 85 …data=cursor.execute("SELECT value FROM %s WHERE version=? AND pkgarch=? and checksum=? and value=?… 86 (version, pkgarch, checksum, value)) 117 def find_value(self, version, pkgarch, checksum, history=False): argument 118 """Returns the value for the specified checksum if found or None otherwise.""" [all …]
|
H A D | client.py | 17 async def getPR(self, version, pkgarch, checksum, history=False): argument 19 … {"get-pr": {"version": version, "pkgarch": pkgarch, "checksum": checksum, "history": history}} 24 async def test_pr(self, version, pkgarch, checksum, history=False): argument 26 … {"test-pr": {"version": version, "pkgarch": pkgarch, "checksum": checksum, "history": history}} 45 async def importone(self, version, pkgarch, checksum, value): argument 47 … {"import-one": {"version": version, "pkgarch": pkgarch, "checksum": checksum, "value": value}} 52 async def export(self, version, pkgarch, checksum, colinfo, history=False): argument 54 …{"export": {"version": version, "pkgarch": pkgarch, "checksum": checksum, "colinfo": colinfo, "his…
|
/openbmc/linux/net/ncsi/ |
H A D | ncsi-pkt.h | 39 __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 …]
|
/openbmc/linux/Documentation/networking/device_drivers/cellular/qualcomm/ |
H A D | rmnet.rst | 66 Function Raw bytes Checksum offload header 82 Checksum offload header, has the information about the checksum processing done 83 by the hardware.Checksum offload header fields are in big endian format. 88 Function Reserved Valid Checksum start offset 91 Function Checksum length Checksum value 95 Valid bit indicates whether the partial checksum is calculated and is valid. 101 Checksum start offset, Indicates the offset in bytes from the beginning of the 102 IP header, from which modem computed checksum. 104 Checksum length is the Length in bytes starting from CKSUM_START_OFFSET, 105 over which checksum is computed. [all …]
|
/openbmc/u-boot/include/net/ |
H A D | ncsi-pkt.h | 39 __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 …]
|
/openbmc/linux/Documentation/filesystems/ext4/ |
H A D | checksums.rst | 8 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 …]
|
/openbmc/u-boot/lib/rsa/ |
H A D | rsa-verify.c | 34 * @algo: Checksum algo structure having information on DER encoding etc. 64 struct checksum_algo *checksum = info->checksum; in padding_pkcs_15_verify() local 65 int ret, pad_len = msg_len - checksum->checksum_len; in padding_pkcs_15_verify() 68 ret = rsa_verify_padding(msg, pad_len, checksum); in padding_pkcs_15_verify() 98 * @checksum: A Hash function 105 static int mask_generation_function1(struct checksum_algo *checksum, in mask_generation_function1() argument 113 int hash_len = checksum->checksum_len; in mask_generation_function1() 132 ret = checksum->calculate(checksum->name, in mask_generation_function1() 136 debug("%s: Error in checksum calculation\n", __func__); in mask_generation_function1() 156 static int compute_hash_prime(struct checksum_algo *checksum, in compute_hash_prime() argument [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | checksum.py | 1 # Local file checksum cache implementation 46 # Checksum + mtime cache (persistent) 64 bb.debug(2, "file %s changed mtime, recompute checksum" % f) 85 checksum = self.get_checksum(f) 87 … bb.warn("Unable to get checksum for %s SRC_URI entry %s: %s" % (pn, os.path.basename(f), e)) 89 return checksum 94 # we care about from a checksum perspective. This means that files that change subdirectory 102 bb.fatal("Refusing to checksum /") 109 checksum = checksum_file(fullpth) 110 if checksum: [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | checksum_64.h | 8 * with some code from asm-x86/checksum.h 15 * csum_fold - Fold and invert a 32bit checksum. 18 * Fold a 32bit running checksum to 16bit and invert it. This is usually 19 * the last step before putting a checksum into a packet. 34 * which always checksum on 4 octet boundaries. 41 * ip_fast_csum - Compute the IPv4 header checksum efficiently. 76 * csum_tcpup_nofold - Compute an IPv4 pseudo header checksum. 83 * Returns the pseudo header checksum the input data. Result is 102 * csum_tcpup_magic - Compute an IPv4 pseudo header checksum. 109 * Returns the 16bit pseudo header checksum the input data already [all …]
|
/openbmc/u-boot/board/xilinx/zynq/ |
H A D | bootimg.c | 91 u32 checksum; in zynq_validate_hdr() local 104 checksum = 0; in zynq_validate_hdr() 106 checksum += hap->fields[index]; in zynq_validate_hdr() 108 checksum ^= 0xFFFFFFFF; in zynq_validate_hdr() 110 if (hap->fields[ZYNQ_PART_HDR_CHKSUM_WORD_COUNT] != checksum) { in zynq_validate_hdr() 111 printf("Error: Checksum 0x%8.8x != 0x%8.8x\n", in zynq_validate_hdr() 112 checksum, hap->fields[ZYNQ_PART_HDR_CHKSUM_WORD_COUNT]); in zynq_validate_hdr() 125 * Validate the partition by calculationg the md5 checksum for the 126 * partition and compare with checksum present in checksum offset of 131 u8 checksum[MD5_CHECKSUM_SIZE]; in zynq_validate_partition() local [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_nvm.c | 155 * igc_validate_nvm_checksum - Validate EEPROM checksum 158 * Calculates the EEPROM checksum by reading/adding each word of the EEPROM 163 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() 177 hw_dbg("NVM Checksum Invalid\n"); in igc_validate_nvm_checksum() 187 * igc_update_nvm_checksum - Update EEPROM checksum 190 * Updates the EEPROM checksum by reading/adding each word of the EEPROM 191 * up to the checksum. Then calculates the EEPROM checksum and writes the 196 u16 checksum = 0; in igc_update_nvm_checksum() local [all …]
|
/openbmc/qemu/rust/ |
H A D | Cargo.lock | 9 checksum = "c84fc003e338a6f69fbd4f7fe9f92b535ff13e9af8997f3b14b6ddff8b1df46d" 15 checksum = "dc707ed8ebf81de5cd6c7f48f54b4c8621760926cdf35a57000747c512e67b57" 25 checksum = "feb11e002038ad243af39c2068c8a72bcf147acf05025dcdb916fcc000adb2d8" 38 checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" 44 checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" 63 checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" 75 checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" 86 checksum = "ec96c6a92621310b51366f1e28d05ef11489516e93be030060e5fc12024a49d6" 112 checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" 121 checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" [all …]
|
/openbmc/u-boot/tools/ |
H A D | mkexynosspl.c | 21 * calculates the checksum of CHECKSUM_OFFSET bytes and compares with data at 27 * size, header size included) and its checksum. Then it reads the rest of the 29 * checksum and compares it with value read from the header. 63 * Then it calculates checksum of the buffer by just summing up all bytes. 67 * checksum is appended to the file in little endian format, which results 68 * in checksum added exactly at CHECKSUM_OFFSET. 70 * - for variable size SPL the checksum and file size are stored in the 79 uint32_t checksum = 0; in main() local 158 for (i = 0, checksum = 0; i < count; i++) in main() 159 checksum += buffer[i]; in main() [all …]
|
H A D | zynqimage.c | 33 * 0x 48 - Checksum 82 uint32_t checksum; /* 0x48 */ member 92 uint32_t checksum = 0; in zynqimage_checksum() local 97 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum() 98 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum() 99 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum() 100 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum() 101 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum() 102 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum() 103 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum() [all …]
|
/openbmc/linux/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_hgsmi.c | 32 /* Not really a checksum but that is the naming used in all vbox code */ 37 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() 41 /* 4 -> Do not checksum the checksum itself */ 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()
|
/openbmc/linux/drivers/platform/chrome/wilco_ec/ |
H A D | mailbox.c | 68 * wilco_ec_checksum() - Compute 8-bit checksum over data range. 69 * @data: Data to checksum. 70 * @size: Number of bytes to checksum. 72 * Return: 8-bit checksum of provided data. 77 u8 checksum = 0; in wilco_ec_checksum() local 81 checksum += data_bytes[i]; in wilco_ec_checksum() 83 return checksum; in wilco_ec_checksum() 100 /* Checksum header and data */ in wilco_ec_prepare() 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() [all …]
|
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/ |
H A D | txgbe_hw.c | 182 * txgbe_calc_eeprom_checksum - Calculates and returns the checksum 184 * @checksum: pointer to cheksum 188 static int txgbe_calc_eeprom_checksum(struct wx *wx, u16 *checksum) in txgbe_calc_eeprom_checksum() argument 212 *checksum += local_buffer[i]; in txgbe_calc_eeprom_checksum() 217 *checksum = TXGBE_EEPROM_SUM - *checksum; in txgbe_calc_eeprom_checksum() 223 * txgbe_validate_eeprom_checksum - Validate EEPROM checksum 225 * @checksum_val: calculated checksum 227 * Performs checksum calculation and validates the EEPROM checksum. If the 233 u16 checksum; in txgbe_validate_eeprom_checksum() local 240 status = wx_read_ee_hostif(wx, 0, &checksum); in txgbe_validate_eeprom_checksum() [all …]
|
/openbmc/openbmc/meta-security/recipes-ids/aide/aide/ |
H A D | aide.conf | 42 #md5: md5 checksum 43 #sha1: sha1 checksum 44 #sha256: sha256 checksum 45 #sha512: sha512 checksum 46 #rmd160: rmd160 checksum 47 #tiger: tiger checksum 49 #haval: haval checksum (MHASH only) 50 #gost: gost checksum (MHASH only) 51 #crc32: crc32 checksum (MHASH only) 52 #whirlpool: whirlpool checksum (MHASH only)
|
/openbmc/u-boot/common/ |
H A D | ddr_spd.c | 31 * Calculate checksum in spd_check() 39 printf("SPD checksum unexpected. " in spd_check() 40 "Checksum in SPD = %02X, computed SPD = %02X\n", in spd_check() 109 printf("SPD checksum unexpected.\n" in ddr3_spd_check() 110 "Checksum lsb in SPD = %02X, computed SPD = %02X\n" in ddr3_spd_check() 111 "Checksum msb in SPD = %02X, computed SPD = %02X\n", in ddr3_spd_check() 132 printf("SPD checksum unexpected.\n" in ddr4_spd_check() 133 "Checksum lsb in SPD = %02X, computed SPD = %02X\n" in ddr4_spd_check() 134 "Checksum msb in SPD = %02X, computed SPD = %02X\n", in ddr4_spd_check() 148 printf("SPD checksum unexpected.\n" in ddr4_spd_check() [all …]
|
/openbmc/qemu/tests/avocado/avocado_qemu/ |
H A D | linuxtest.py | 32 #: A collection of known distros and their respective image checksum 37 {'checksum': ('e3c1b309d9203604922d6e255c2c5d09' 48 {'checksum': ('1e18d9c0cf734940c4b5d5ec592facae' 60 {'checksum': ('7c3528b85a3df4b2306e892199a9e1e4' 63 {'checksum': ('4caaab5a434fd4d1079149a072fdc789' 68 {'checksum': ('b367755c664a2d7a26955bbfff985855' 80 {'checksum': ('e7f75cdfd523fe5ac2ca9eeece68edc1' 106 def checksum(self): member in LinuxDistro 107 """Gets the cloud-image file checksum""" 108 return self._info.get('checksum', None) [all …]
|
/openbmc/linux/drivers/net/ethernet/qualcomm/rmnet/ |
H A D | rmnet_map_data.c | 42 /* Computing the checksum over just the IPv4 header--including its in rmnet_map_ipv4_dl_csum_trailer() 43 * checksum field--should yield 0. If it doesn't, the IP header in rmnet_map_ipv4_dl_csum_trailer() 51 /* We don't support checksum offload on IPv4 fragments */ in rmnet_map_ipv4_dl_csum_trailer() 57 /* Checksum offload is only supported for UDP and TCP protocols */ in rmnet_map_ipv4_dl_csum_trailer() 64 /* RFC 768: UDP checksum is optional for IPv4, and is 0 if unused */ in rmnet_map_ipv4_dl_csum_trailer() 70 /* The checksum value in the trailer is computed over the entire in rmnet_map_ipv4_dl_csum_trailer() 72 * transport checksum from this, we first subract the contribution in rmnet_map_ipv4_dl_csum_trailer() 73 * of the IP header from the trailer checksum. We then add the in rmnet_map_ipv4_dl_csum_trailer() 74 * checksum computed over the pseudo header. in rmnet_map_ipv4_dl_csum_trailer() 77 * trailer checksum. Therefore the checksum in the trailer is in rmnet_map_ipv4_dl_csum_trailer() [all …]
|