| /kernel/linux/linux-6.6/Documentation/networking/ |
| 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 …]
|
| D | ila.rst | 112 Transport checksum handling 115 When an address is translated by ILA, an encapsulated transport checksum 118 including checksum offload in NICs, that process the checksum. There are 121 - no action Allow the checksum to be incorrect on the wire. Before 122 a receiver verifies a checksum the ILA to SIR address 125 - adjust transport checksum 127 and if a transport layer checksum is found then it is 128 adjusted to reflect the correct checksum per the 131 - checksum neutral mapping 134 the checksum. The low order sixteen bits of the identifier [all …]
|
| D | udplite.rst | 9 is a variable-length checksum. This has advantages for transport of multimedia 11 fed into the codec instead of being discarded due to a failed checksum test. 37 IPPROTO need to be changed; senders additionally set the checksum coverage 58 using partial checksum coverage and so emulate UDP mode (full coverage). 60 To make use of the partial checksum coverage facilities requires setting a 63 * Sender checksum coverage: UDPLITE_SEND_CSCOV 70 sets the checksum coverage length to 20 bytes (12b data + 8b header). 76 * Receiver checksum coverage: UDPLITE_RECV_CSCOV 79 required to enable traffic with partial checksum coverage. Its function is 92 A detailed discussion of UDP-Lite checksum coverage options is in section IV. [all …]
|
| /kernel/linux/linux-5.10/Documentation/networking/ |
| 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 …]
|
| D | ila.rst | 112 Transport checksum handling 115 When an address is translated by ILA, an encapsulated transport checksum 118 including checksum offload in NICs, that process the checksum. There are 121 - no action Allow the checksum to be incorrect on the wire. Before 122 a receiver verifies a checksum the ILA to SIR address 125 - adjust transport checksum 127 and if a transport layer checksum is found then it is 128 adjusted to reflect the correct checksum per the 131 - checksum neutral mapping 134 the checksum. The low order sixteen bits of the identifier [all …]
|
| D | udplite.rst | 9 is a variable-length checksum. This has advantages for transport of multimedia 11 fed into the codec instead of being discarded due to a failed checksum test. 37 IPPROTO need to be changed; senders additionally set the checksum coverage 58 using partial checksum coverage and so emulate UDP mode (full coverage). 60 To make use of the partial checksum coverage facilities requires setting a 63 * Sender checksum coverage: UDPLITE_SEND_CSCOV 70 sets the checksum coverage length to 20 bytes (12b data + 8b header). 76 * Receiver checksum coverage: UDPLITE_RECV_CSCOV 79 required to enable traffic with partial checksum coverage. Its function is 92 A detailed discussion of UDP-Lite checksum coverage options is in section IV. [all …]
|
| /kernel/linux/linux-6.6/drivers/acpi/acpica/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/alpha/lib/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/alpha/lib/ |
| D | csum_partial_copy.c | 86 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 …]
|
| /kernel/linux/linux-6.6/net/ncsi/ |
| 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 …]
|
| /kernel/linux/linux-5.10/net/ncsi/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/networking/device_drivers/cellular/qualcomm/ |
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/filesystems/ext4/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/filesystems/ext4/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/x86/include/asm/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/x86/include/asm/ |
| D | checksum_64.h | 8 * with some code from asm-x86/checksum.h 16 * csum_fold - Fold and invert a 32bit checksum. 19 * Fold a 32bit running checksum to 16bit and invert it. This is usually 20 * the last step before putting a checksum into a packet. 35 * which always checksum on 4 octet boundaries. 42 * ip_fast_csum - Compute the IPv4 header checksum efficiently. 77 * csum_tcpup_nofold - Compute an IPv4 pseudo header checksum. 84 * Returns the pseudo header checksum the input data. Result is 103 * csum_tcpup_magic - Compute an IPv4 pseudo header checksum. 110 * Returns the 16bit pseudo header checksum the input data already [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/vboxvideo/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/vboxvideo/ |
| 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()
|
| /kernel/linux/linux-6.6/drivers/platform/chrome/wilco_ec/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/platform/chrome/wilco_ec/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/wangxun/txgbe/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/qualcomm/rmnet/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/x86/um/asm/ |
| D | checksum.h | 10 * computes the checksum of a memory block at buff, length len, 24 * csum_fold - Fold and invert a 32bit checksum. 27 * Fold a 32bit running checksum to 16bit and invert it. This is usually 28 * the last step before putting a checksum into a packet. 44 * csum_tcpup_nofold - Compute an IPv4 pseudo header checksum. 51 * Returns the pseudo header checksum the input data. Result is 68 * computes the checksum of the TCP/UDP pseudo-header 69 * returns a 16-bit checksum, already complemented 79 * ip_fast_csum - Compute the IPv4 header checksum efficiently.
|